Lines Matching refs:top

604 	struct cpu_group *top;
612 top = smp_topo_1level(CG_SHARE_NONE, 2, 0);
616 top = smp_topo_none();
620 top = smp_topo_1level(CG_SHARE_L2, 2, 0);
624 top = smp_topo_1level(CG_SHARE_L3, 4, 0);
628 top = smp_topo_2level(CG_SHARE_NONE, 2, CG_SHARE_L2, 2, 0);
632 top = smp_topo_1level(CG_SHARE_L1, 2, CG_FLAG_HTT);
636 top = smp_topo_2level(CG_SHARE_L3, 4, CG_SHARE_L2, 8,
641 top = cpu_topo();
647 if (top->cg_count != mp_ncpus)
649 top, top->cg_count, mp_ncpus);
650 if (CPU_CMP(&top->cg_mask, &all_cpus))
652 top, cpusetobj_strprint(cpusetbuf, &top->cg_mask),
659 while (top->cg_children == 1) {
660 top = &top->cg_child[0];
661 top->cg_parent = NULL;
663 return (top);
680 struct cpu_group *top;
682 top = &group[0];
683 top->cg_parent = NULL;
684 top->cg_child = NULL;
685 top->cg_mask = all_cpus;
686 top->cg_count = mp_ncpus;
687 top->cg_children = 0;
688 top->cg_level = CG_SHARE_NONE;
689 top->cg_flags = 0;
691 return (top);
730 struct cpu_group *top;
736 top = &group[0];
738 top->cg_child = child = &group[1];
739 top->cg_level = CG_SHARE_NONE;
741 cpu = smp_topo_addleaf(top, child, share, count, flags, cpu);
742 return (top);
749 struct cpu_group *top;
757 top = &group[0];
759 top->cg_child = l2g;
760 top->cg_level = CG_SHARE_NONE;
761 top->cg_children = mp_ncpus / (l2count * l1count);
762 l1g = l2g + top->cg_children;
763 for (i = 0; i < top->cg_children; i++, l2g++) {
764 l2g->cg_parent = top;
771 return (top);
776 smp_topo_find(struct cpu_group *top, int cpu)
784 cg = top;
1017 topo_next_node(struct topo_node *top, struct topo_node *node)
1027 while (node != top && (node = node->parent) != top)
1039 topo_next_nonchild_node(struct topo_node *top, struct topo_node *node)
1046 while (node != top && (node = node->parent) != top)