Lines Matching refs:cpu_pg
172 #define PG_CPU_INIT(class, cp, cpu_pg) \ argument
175 pg_classes[class].pgc_ops->cpu_init(cp, cpu_pg); \
178 #define PG_CPU_FINI(class, cp, cpu_pg) \ argument
181 pg_classes[class].pgc_ops->cpu_fini(cp, cpu_pg); \
462 pg_cpu_add(pg_t *pg, cpu_t *cp, cpu_pg_t *cpu_pg) in pg_cpu_add() argument
480 err = group_add(&cpu_pg->pgs, pg, GRP_RESIZE); in pg_cpu_add()
489 pg_cpu_delete(pg_t *pg, cpu_t *cp, cpu_pg_t *cpu_pg) in pg_cpu_delete() argument
507 err = group_remove(&cpu_pg->pgs, pg, GRP_RESIZE); in pg_cpu_delete()
556 cpu_pg_t *cpu_pg; in pg_cpu_init() local
573 cpu_pg = pg_cpu_data_alloc(); in pg_cpu_init()
579 PG_CPU_INIT(i, cp, cpu_pg); in pg_cpu_init()
585 cp->cpu_pg = cpu_pg; in pg_cpu_init()
587 return (cpu_pg); in pg_cpu_init()
603 cpu_pg_t *cpu_pg; in pg_cpu_fini() local
608 cpu_pg = cp->cpu_pg; in pg_cpu_fini()
614 if (cpu_pg == NULL || pg_cpu_is_bootstrapped(cp)) in pg_cpu_fini()
624 cpu_pg = cpu_pg_deferred; in pg_cpu_fini()
628 PG_CPU_FINI(i, cp, cpu_pg); in pg_cpu_fini()
630 pg_cpu_data_free(cpu_pg); in pg_cpu_fini()
753 cp->cpu_pg = &bootstrap_pg_data; in pg_cpu_bootstrap()
764 return (cp->cpu_pg == &bootstrap_pg_data); in pg_cpu_is_bootstrapped()
801 grp = &cp->cpu_pg->pgs; in pg_ev_thread_swtch()
822 grp = &cp->cpu_pg->pgs; in pg_ev_thread_remain()