Lines Matching refs:szc

90 #define	PAGE_FREELISTS(mnode, szc, color, mtype) \  argument
91 (*(page_freelists[szc][mtype][mnode] + (color)))
141 #define MEM_NODE_ITERATOR_INIT(pfn, mnode, szc, it) \ argument
142 (pfn) = plat_mem_node_iterator_init((pfn), (mnode), (szc), (it), 1)
153 #define MEM_NODE_ITERATOR_INIT(pfn, mnode, szc, it) argument
222 #define PAGE_GET_COLOR_SHIFT(szc, nszc) \ argument
224 page_get_color_shift_cpu(szc, nszc) : \
226 hw_page_array[(szc)].hp_shift))
228 #define PAGE_CONVERT_COLOR(ncolor, szc, nszc) \ argument
230 page_convert_color_cpu(ncolor, szc, nszc) : \
231 ((ncolor) << PAGE_GET_COLOR_SHIFT((szc), (nszc))))
233 #define PFN_2_COLOR(pfn, szc, it) \ argument
235 page_pfn_2_color_cpu(pfn, szc, it) : \
237 (hw_page_array[szc].hp_shift - \
240 #define PNUM_SIZE(szc) \ argument
241 (hw_page_array[(szc)].hp_pgcnt)
242 #define PNUM_SHIFT(szc) \ argument
243 (hw_page_array[(szc)].hp_shift - hw_page_array[0].hp_shift)
244 #define PAGE_GET_SHIFT(szc) \ argument
245 (hw_page_array[(szc)].hp_shift)
246 #define PAGE_GET_PAGECOLORS(szc) \ argument
247 (hw_page_array[(szc)].hp_colors)
253 #define PAGE_NEXT_PFN_FOR_COLOR(pfn, szc, color, ceq_mask, color_mask, it) \ argument
257 uint_t pfn_shift = PAGE_BSZS_SHIFT(szc); \
269 pfn = page_next_pfn_for_color_cpu(pfn, szc, color, \
275 #define PAGE_GET_NSZ_MASK(szc, mask) \ argument
277 ((mask) >> (PAGE_GET_SHIFT((szc) + 1) - PAGE_GET_SHIFT(szc))) : \
278 page_get_nsz_color_mask_cpu(szc, mask))
281 #define PAGE_GET_NSZ_COLOR(szc, color) \ argument
283 ((color) >> (PAGE_GET_SHIFT((szc) + 1) - PAGE_GET_SHIFT(szc))) : \
284 page_get_nsz_color_cpu(szc, color))
287 #define PP_2_BIN_SZC(pp, szc) (PFN_2_COLOR(pp->p_pagenum, szc, (void *)(-1))) argument
300 #define PFN_BASE(pfnum, szc) (pfnum & ~((1 << PAGE_BSZS_SHIFT(szc)) - 1)) argument
323 void page_list_walk_init(uchar_t szc, uint_t flags, uint_t bin,
329 #define CHK_LPG(pp, szc) chk_lpg(pp, szc) argument
332 #define CHK_LPG(pp, szc) argument
355 int szc; \
356 for (szc = 0; szc < mmu_page_sizes; szc++) { \
357 int colors = page_get_pagecolors(szc); \
364 int mn, mt, szc, colors; \
365 for (szc = 0; szc < mmu_page_sizes; szc++) { \
366 colors = page_get_pagecolors(szc); \
369 plcnt[mn][mt].plc_mts[szc]. \
371 plcnt[mn][mt].plc_mts[szc]. \
379 #define PLCNT_DO(pp, mn, mtype, szc, cnt, flags) { \ argument
383 else if (szc) \
387 atomic_add_long(&plcnt[mn][mtype].plc_mts[szc].plc_mts_pgcnt, \
389 atomic_add_long(&plcnt[mn][mtype].plc_mts[szc]. \
401 #define PLCNT_DO(pp, mn, mtype, szc, cnt, flags) { \ argument
404 else if (szc) \
412 #define PLCNT_INCR(pp, mn, mtype, szc, flags) { \ argument
413 long cnt = (1 << PAGE_BSZS_SHIFT(szc)); \
414 PLCNT_DO(pp, mn, mtype, szc, cnt, flags); \
417 #define PLCNT_DECR(pp, mn, mtype, szc, flags) { \ argument
418 long cnt = ((-1) << PAGE_BSZS_SHIFT(szc)); \
419 PLCNT_DO(pp, mn, mtype, szc, cnt, flags); \
553 #define PAGE_BSZS_SHIFT(szc) TTE_BSZS_SHIFT(szc) argument
625 #define AS_2_BIN(as, seg, vp, addr, bin, szc) \ argument
643 if ((szc) == 0 || &page_pfn_2_color_cpu == NULL) { \
645 bin = PFN_2_COLOR(pfn, szc, NULL); \
647 bin = PFN_2_COLOR(pfn, szc, NULL); \
649 bin &= hw_page_array[(szc)].hp_colors - 1; \
655 szc, NULL); \
667 bin >>= PAGE_GET_COLOR_SHIFT(0, szc); \
678 ASSERT(bin < page_get_pagecolors(szc));
829 #define SZC_2_USERSZC(szc) (szc_2_userszc[szc]) argument