Lines Matching refs:cnt

339 	pgcnt_t	plc_mt_pgmax;		/* max page cnt */
340 pgcnt_t plc_mt_clpgcnt; /* cache list cnt */
341 pgcnt_t plc_mt_flpgcnt; /* free list cnt - small pages */
342 pgcnt_t plc_mt_lgpgcnt; /* free list cnt - large pages */
379 #define PLCNT_DO(pp, mn, mtype, szc, cnt, flags) { \
382 atomic_add_long(&plcnt[mn][mtype].plc_mt_clpgcnt, cnt); \
384 atomic_add_long(&plcnt[mn][mtype].plc_mt_lgpgcnt, cnt); \
386 atomic_add_long(&plcnt[mn][mtype].plc_mt_flpgcnt, cnt); \
388 cnt); \
390 plc_mtsc_pgcnt[bin], cnt); \
401 #define PLCNT_DO(pp, mn, mtype, szc, cnt, flags) { \
403 atomic_add_long(&plcnt[mn][mtype].plc_mt_clpgcnt, cnt); \
405 atomic_add_long(&plcnt[mn][mtype].plc_mt_lgpgcnt, cnt); \
407 atomic_add_long(&plcnt[mn][mtype].plc_mt_flpgcnt, cnt); \
413 long cnt = (1 << PAGE_BSZS_SHIFT(szc)); \
414 PLCNT_DO(pp, mn, mtype, szc, cnt, flags); \
418 long cnt = ((-1) << PAGE_BSZS_SHIFT(szc)); \
419 PLCNT_DO(pp, mn, mtype, szc, cnt, flags); \
428 long cnt = (1 << PAGE_BSZS_SHIFT((pp)->p_szc)); \
430 atomic_add_long(&plcnt[mn][MTYPE_NORELOC].plc_mt_pgmax, cnt); \
431 atomic_add_long(&plcnt[mn][MTYPE_RELOC].plc_mt_pgmax, -cnt); \
440 #define PLCNT_MODIFY_MAX(pfn, cnt) { \
441 spgcnt_t _cnt = (spgcnt_t)(cnt); \
471 #define PAGE_CTRS_ADJUST(pfn, cnt, rv) { \
472 spgcnt_t _cnt = (spgcnt_t)(cnt); \
658 int cnt = as_color_bin(as); \
662 while ((cnt & vac_colors_mask) != \
664 cnt++; \
666 bin = cnt = cnt & color_mask; \
669 cnt = (cnt + 1) & color_mask; \
670 if (cnt == (as_color_start(as) & color_mask)) { \
671 cnt = as_color_start(as) = as_color_start(as) + \
674 as_color_bin(as) = cnt & color_mask; \
703 * Function to get an ecache color bin: F(as, cnt, vcolor).
712 * cnt is a bin ptr kept on a per as basis. As we page_create we increment
722 * In theory cnt should be updated using cas only but if we are off by one