Lines Matching refs:szc

67 #define	PLCNT_INCR(pp, mnode, mtype, szc, flags)			\
68 plcnt_inc_dec(pp, mtype, szc, 1l << PAGE_BSZS_SHIFT(szc), flags)
69 #define PLCNT_DECR(pp, mnode, mtype, szc, flags) \
70 plcnt_inc_dec(pp, mtype, szc, -1l << PAGE_BSZS_SHIFT(szc), flags)
117 #define PAGE_FREELISTS(mnode, szc, color, mtype) \
118 (*(page_freelists[mtype][szc] + (color)))
148 #define MEM_NODE_ITERATOR_INIT(pfn, mnode, szc, it)
193 #define PAGE_GET_COLOR_SHIFT(szc, nszc) \
194 (hw_page_array[(nszc)].hp_shift - hw_page_array[(szc)].hp_shift)
196 #define PAGE_CONVERT_COLOR(ncolor, szc, nszc) \
197 ((ncolor) << PAGE_GET_COLOR_SHIFT((szc), (nszc)))
199 #define PFN_2_COLOR(pfn, szc, it) \
201 (hw_page_array[szc].hp_shift - hw_page_array[0].hp_shift))
203 #define PNUM_SIZE(szc) \
204 (hw_page_array[(szc)].hp_pgcnt)
205 #define PNUM_SHIFT(szc) \
206 (hw_page_array[(szc)].hp_shift - hw_page_array[0].hp_shift)
207 #define PAGE_GET_SHIFT(szc) \
208 (hw_page_array[(szc)].hp_shift)
209 #define PAGE_GET_PAGECOLORS(szc) \
210 (hw_page_array[(szc)].hp_colors)
216 #define PAGE_NEXT_PFN_FOR_COLOR(pfn, szc, color, ceq_mask, color_mask, it) \
218 uint_t pfn_shift = PAGE_BSZS_SHIFT(szc); \
231 /* get the color equivalency mask for the next szc */
232 #define PAGE_GET_NSZ_MASK(szc, mask) \
233 ((mask) >> (PAGE_GET_SHIFT((szc) + 1) - PAGE_GET_SHIFT(szc)))
235 /* get the color of the next szc */
236 #define PAGE_GET_NSZ_COLOR(szc, color) \
237 ((color) >> (PAGE_GET_SHIFT((szc) + 1) - PAGE_GET_SHIFT(szc)))
239 /* Find the bin for the given page if it was of size szc */
240 #define PP_2_BIN_SZC(pp, szc) (PFN_2_COLOR(pp->p_pagenum, szc, NULL))
248 #define SZCPAGES(szc) (1 << PAGE_BSZS_SHIFT(szc))
249 #define PFN_BASE(pfnum, szc) (pfnum & ~(SZCPAGES(szc) - 1))
257 uint_t plw_colors; /* num of colors for szc */
272 void page_list_walk_init(uchar_t szc, uint_t flags, uint_t bin,
275 uint_t page_list_walk_next_bin(uchar_t szc, uint_t bin,
325 #define CHK_LPG(pp, szc) chk_lpg(pp, szc)
328 #define CHK_LPG(pp, szc)
335 #define PP_GROUPLEADER(pp, szc) \
336 (&(pp)[-(int)((pp)->p_pagenum & (SZCPAGES(szc)-1))])
367 /* For x86, userszc is the same as the kernel's szc */
369 #define SZC_2_USERSZC(szc) (szc)
388 * Return the log2(pagesize(szc) / MMU_PAGESIZE) --- or the shift count
391 #define PAGE_BSZS_SHIFT(szc) (LEVEL_SHIFT(szc) - MMU_PAGESHIFT)
438 #define AS_2_BIN(as, seg, vp, addr, bin, szc) \
441 (hw_page_array[szc].hp_shift - hw_page_array[0].hp_shift))