Lines Matching refs:tl

1512 sd_init(struct sched_domain_topology_level *tl,  in sd_init()  argument
1516 struct sd_data *sdd = &tl->data; in sd_init()
1525 sched_domains_curr_level = tl->numa_level; in sd_init()
1528 sd_weight = cpumask_weight(tl->mask(cpu)); in sd_init()
1530 if (tl->sd_flags) in sd_init()
1531 sd_flags = (*tl->sd_flags)(); in sd_init()
1563 .name = tl->name, in sd_init()
1568 cpumask_and(sd_span, cpu_map, tl->mask(cpu)); in sd_init()
1597 if (sched_domains_numa_distance[tl->numa_level] > node_reclaim_distance) { in sd_init()
1640 #define for_each_sd_topology(tl) \ argument
1641 for (tl = sched_domain_topology; tl->mask; tl++)
1643 void set_sched_topology(struct sched_domain_topology_level *tl) in set_sched_topology() argument
1648 sched_domain_topology = tl; in set_sched_topology()
1751 struct sched_domain_topology_level *tl; in sched_init_numa() local
1862 tl = kzalloc((i + nr_levels + 1) * in sched_init_numa()
1864 if (!tl) in sched_init_numa()
1871 tl[i] = sched_domain_topology[i]; in sched_init_numa()
1876 tl[i++] = (struct sched_domain_topology_level){ in sched_init_numa()
1886 tl[i] = (struct sched_domain_topology_level){ in sched_init_numa()
1895 sched_domain_topology = tl; in sched_init_numa()
2003 struct sched_domain_topology_level *tl; in __sdt_alloc() local
2006 for_each_sd_topology(tl) { in __sdt_alloc()
2007 struct sd_data *sdd = &tl->data; in __sdt_alloc()
2072 struct sched_domain_topology_level *tl; in __sdt_free() local
2075 for_each_sd_topology(tl) { in __sdt_free()
2076 struct sd_data *sdd = &tl->data; in __sdt_free()
2106 static struct sched_domain *build_sched_domain(struct sched_domain_topology_level *tl, in build_sched_domain() argument
2110 struct sched_domain *sd = sd_init(tl, cpu_map, child, cpu); in build_sched_domain()
2140 static bool topology_span_sane(struct sched_domain_topology_level *tl, in topology_span_sane() argument
2146 if (tl->flags & SDTL_OVERLAP) in topology_span_sane()
2164 if (!cpumask_equal(tl->mask(cpu), tl->mask(i)) && in topology_span_sane()
2165 cpumask_intersects(tl->mask(cpu), tl->mask(i))) in topology_span_sane()
2195 struct sched_domain_topology_level *tl; in build_sched_domains() local
2198 for_each_sd_topology(tl) { in build_sched_domains()
2200 if (WARN_ON(!topology_span_sane(tl, cpu_map, i))) in build_sched_domains()
2203 sd = build_sched_domain(tl, cpu_map, attr, sd, i); in build_sched_domains()
2207 if (tl == sched_domain_topology) in build_sched_domains()
2209 if (tl->flags & SDTL_OVERLAP) in build_sched_domains()