Lines Matching refs:npfn

489 	pfn_t npfn, pfn_ceq_mask, pfn_color;  in page_next_pfn_for_color_cpu()  local
535 npfn = ADD_MASKED(pfn, pstep, pfn_ceq_mask, mask); in page_next_pfn_for_color_cpu()
544 npfn = ADD_MASKED(pfn, pstep, pfn_ceq_mask, mask); in page_next_pfn_for_color_cpu()
546 if ((((npfn ^ pfn) >> 15) & 0x1f) == 0) in page_next_pfn_for_color_cpu()
553 npfn = (pfn >> 15) << 15; in page_next_pfn_for_color_cpu()
554 npfn |= (ceq_mask & color & 3) << 5; in page_next_pfn_for_color_cpu()
558 npfn = ADD_MASKED(npfn, (1 << 15), pfn_ceq_mask, mask); in page_next_pfn_for_color_cpu()
563 npfn |= ((npfn >> 15) ^ (color >> 2)) & (ceq_mask >> 2); in page_next_pfn_for_color_cpu()
574 npfn = ((pfn >> 20) << 20) | (color << 15); in page_next_pfn_for_color_cpu()
578 npfn = pfn + pstep; in page_next_pfn_for_color_cpu()
579 pfnmn = PAPFN_2_MNODE(npfn); in page_next_pfn_for_color_cpu()
580 if ((((page_papfn_2_color_cpu(npfn, szc) ^ color) & in page_next_pfn_for_color_cpu()
588 npfn = ((pfn >> 20) << 20) | pfn_color; in page_next_pfn_for_color_cpu()
592 if ((pfnmn = PAPFN_2_MNODE(npfn)) != it->mi_mnode) in page_next_pfn_for_color_cpu()
593 npfn += ((it->mi_mnode - pfnmn) & it->mi_mnode_mask) << in page_next_pfn_for_color_cpu()
601 while (npfn <= pfn) { in page_next_pfn_for_color_cpu()
602 npfn = ADD_MASKED(npfn, pstep, pfn_ceq_mask, mask); in page_next_pfn_for_color_cpu()
614 npfn = (pfn & ~(pfn_t)0x7f); in page_next_pfn_for_color_cpu()
615 npfn |= (((pfn >> 15) & 0x1f) ^ pfn_color) & pfn_ceq_mask; in page_next_pfn_for_color_cpu()
616 npfn = (szc == TTE64K) ? (npfn & ~(pfn_t)0x7) : npfn; in page_next_pfn_for_color_cpu()
618 if (((page_papfn_2_color_cpu(npfn, szc) ^ color) & in page_next_pfn_for_color_cpu()
622 while (npfn <= pfn) { in page_next_pfn_for_color_cpu()
623 npfn = ADD_MASKED(npfn, pstep, pfn_ceq_mask, in page_next_pfn_for_color_cpu()
626 if ((((npfn ^ pfn) >> 15) & 0x1f) == 0) in page_next_pfn_for_color_cpu()
632 npfn = (szc == TTE8K) ? ((pfn >> 15) << 15) : in page_next_pfn_for_color_cpu()
636 if ((pfnmn = PAPFN_2_MNODE(npfn)) != it->mi_mnode) { in page_next_pfn_for_color_cpu()
637 npfn += ((it->mi_mnode - pfnmn) & it->mi_mnode_mask) << in page_next_pfn_for_color_cpu()
644 while (npfn <= pfn) { in page_next_pfn_for_color_cpu()
645 npfn = ADD_MASKED(npfn, (1 << 15), tmpmask, mask); in page_next_pfn_for_color_cpu()
649 npfn |= (((npfn >> 15) & 0x1f) ^ pfn_color) & pfn_ceq_mask; in page_next_pfn_for_color_cpu()
650 npfn = (szc == TTE64K) ? (npfn & ~(pfn_t)0x7) : npfn; in page_next_pfn_for_color_cpu()
653 ASSERT(((page_papfn_2_color_cpu(npfn, szc) ^ color) & ceq_mask) == 0); in page_next_pfn_for_color_cpu()
654 ASSERT(PAPFN_2_MNODE(npfn) == it->mi_mnode); in page_next_pfn_for_color_cpu()
657 npfn -= it->mi_ra_to_pa; in page_next_pfn_for_color_cpu()
660 if (npfn > it->mi_mblock_end) { in page_next_pfn_for_color_cpu()
661 pfn = plat_mem_node_iterator_init(npfn, it->mi_mnode, szc, it, in page_next_pfn_for_color_cpu()
670 return (npfn); in page_next_pfn_for_color_cpu()