Lines Matching refs:t
699 static void scan_thread_topology(int *map, struct topology *t, int cpu, in scan_thread_topology() argument
705 for (i = 0; i < t->sib_thr_nr; i++) { in scan_thread_topology()
706 if (!test_bit(cpu, cpumask_bits(&t->sib_thr[i]))) in scan_thread_topology()
709 for_each_set_bit(thr, cpumask_bits(&t->sib_thr[i]), nr_cpus) in scan_thread_topology()
715 static void scan_core_topology(int *map, struct topology *t, int nr_cpus) in scan_core_topology() argument
721 for (i = 0; i < t->sib_core_nr; i++) in scan_core_topology()
722 for_each_set_bit(cpu, cpumask_bits(&t->sib_core[i]), nr_cpus) in scan_core_topology()
723 scan_thread_topology(map, t, cpu, &pos, nr_cpus); in scan_core_topology()
755 struct topology t; in svg_build_topology_map() local
760 t.sib_core_nr = env->nr_sibling_cores; in svg_build_topology_map()
761 t.sib_thr_nr = env->nr_sibling_threads; in svg_build_topology_map()
762 t.sib_core = calloc(env->nr_sibling_cores, sizeof(cpumask_t)); in svg_build_topology_map()
763 t.sib_thr = calloc(env->nr_sibling_threads, sizeof(cpumask_t)); in svg_build_topology_map()
768 if (!t.sib_core || !t.sib_thr) { in svg_build_topology_map()
774 if (str_to_bitmap(sib_core, &t.sib_core[i], nr_cpus)) { in svg_build_topology_map()
783 if (str_to_bitmap(sib_thr, &t.sib_thr[i], nr_cpus)) { in svg_build_topology_map()
800 scan_core_topology(topology_map, &t, nr_cpus); in svg_build_topology_map()
805 zfree(&t.sib_core); in svg_build_topology_map()
806 zfree(&t.sib_thr); in svg_build_topology_map()