Lines Matching refs:cg
630 smp_topo_fill(struct cpu_group *cg) in smp_topo_fill() argument
634 for (c = 0; c < cg->cg_children; c++) in smp_topo_fill()
635 smp_topo_fill(&cg->cg_child[c]); in smp_topo_fill()
636 cg->cg_first = CPU_FFS(&cg->cg_mask) - 1; in smp_topo_fill()
637 cg->cg_last = CPU_FLS(&cg->cg_mask) - 1; in smp_topo_fill()
831 struct cpu_group *cg; in smp_topo_find() local
837 cg = top; in smp_topo_find()
839 if (!CPU_OVERLAP(&cg->cg_mask, &mask)) in smp_topo_find()
841 if (cg->cg_children == 0) in smp_topo_find()
842 return (cg); in smp_topo_find()
843 children = cg->cg_children; in smp_topo_find()
844 for (i = 0, cg = cg->cg_child; i < children; cg++, i++) in smp_topo_find()
845 if (CPU_OVERLAP(&cg->cg_mask, &mask)) in smp_topo_find()