/* Given an array of @nr_slbs SLB entries, @slbs, return non-zero if the address @new_addr is present.  */
static int __slb_present(struct spu_slb *slbs, int nr_slbs, void *new_addr)
/* Given an array of @nr_slbs SLB entries, @slbs, return non-zero if the address @new_addr is present.  */
static int __slb_present(struct spu_slb *slbs, int nr_slbs, void *new_addr)
{
	unsigned long ea = (unsigned long)new_addr;
	int i;
	for (i = 0; i < nr_slbs; i++)
		if (!((slbs[i].esid ^ ea) & ESID_MASK))
			return 1;
	return 0;
}