Lines Matching refs:pg_classes
145 (pg_classes[class].pgc_ops->alloc ? \
146 pg_classes[class].pgc_ops->alloc() : \
147 pg_classes[pg_default_cid].pgc_ops->alloc())
152 pg_classes[pg_default_cid].pgc_ops->free(pg)) \
174 if (pg_classes[class].pgc_ops->cpu_init) \
175 pg_classes[class].pgc_ops->cpu_init(cp, cpu_pg); \
180 if (pg_classes[class].pgc_ops->cpu_fini) \
181 pg_classes[class].pgc_ops->cpu_fini(cp, cpu_pg); \
186 if (pg_classes[class].pgc_ops->cpu_active) \
187 pg_classes[class].pgc_ops->cpu_active(cp); \
192 if (pg_classes[class].pgc_ops->cpu_inactive) \
193 pg_classes[class].pgc_ops->cpu_inactive(cp); \
201 if (pg_classes[class].pgc_ops->cpupart_in) \
202 pg_classes[class].pgc_ops->cpupart_in(cp, pp); \
207 if (pg_classes[class].pgc_ops->cpupart_out) \
208 pg_classes[class].pgc_ops->cpupart_out(cp, pp); \
213 if (pg_classes[class].pgc_ops->cpupart_move) \
214 pg_classes[class].pgc_ops->cpupart_move(cp, old, new); \
219 static pg_class_t *pg_classes;
304 * Allocate a new pg_class_t in the pg_classes array
307 pg_classes = kmem_zalloc(sizeof (pg_class_t), KM_SLEEP);
309 classes_old = pg_classes;
310 pg_classes =
313 (void) kcopy(classes_old, pg_classes,
319 newclass = &pg_classes[cid];
405 pg->pg_class = &pg_classes[cid];