Lines Matching refs:sdd

907 	struct sd_data *sdd = sd->private;  in build_balance_mask()  local
914 sibling = *per_cpu_ptr(sdd->sd, i); in build_balance_mask()
968 struct sd_data *sdd = sd->private; in init_overlap_sched_group() local
975 sg->sgc = *per_cpu_ptr(sdd->sgc, cpu); in init_overlap_sched_group()
1023 struct sd_data *sdd = sd->private; in build_overlap_sched_groups() local
1035 sibling = *per_cpu_ptr(sdd->sd, i); in build_overlap_sched_groups()
1183 static struct sched_group *get_group(int cpu, struct sd_data *sdd) in get_group() argument
1185 struct sched_domain *sd = *per_cpu_ptr(sdd->sd, cpu); in get_group()
1193 sg = *per_cpu_ptr(sdd->sg, cpu); in get_group()
1194 sg->sgc = *per_cpu_ptr(sdd->sgc, cpu); in get_group()
1232 struct sd_data *sdd = sd->private; in build_sched_groups() local
1248 sg = get_group(i, sdd); in build_sched_groups()
1507 struct sd_data *sdd = sd->private; in claim_allocations() local
1509 WARN_ON_ONCE(*per_cpu_ptr(sdd->sd, cpu) != sd); in claim_allocations()
1510 *per_cpu_ptr(sdd->sd, cpu) = NULL; in claim_allocations()
1512 if (atomic_read(&(*per_cpu_ptr(sdd->sds, cpu))->ref)) in claim_allocations()
1513 *per_cpu_ptr(sdd->sds, cpu) = NULL; in claim_allocations()
1515 if (atomic_read(&(*per_cpu_ptr(sdd->sg, cpu))->ref)) in claim_allocations()
1516 *per_cpu_ptr(sdd->sg, cpu) = NULL; in claim_allocations()
1518 if (atomic_read(&(*per_cpu_ptr(sdd->sgc, cpu))->ref)) in claim_allocations()
1519 *per_cpu_ptr(sdd->sgc, cpu) = NULL; in claim_allocations()
1560 struct sd_data *sdd = &tl->data; in sd_init() local
1561 struct sched_domain *sd = *per_cpu_ptr(sdd->sd, cpu); in sd_init()
1657 sd->shared = *per_cpu_ptr(sdd->sds, sd_id); in sd_init()
1662 sd->private = sdd; in sd_init()
2191 struct sd_data *sdd = &tl->data; in __sdt_alloc() local
2193 sdd->sd = alloc_percpu(struct sched_domain *); in __sdt_alloc()
2194 if (!sdd->sd) in __sdt_alloc()
2197 sdd->sds = alloc_percpu(struct sched_domain_shared *); in __sdt_alloc()
2198 if (!sdd->sds) in __sdt_alloc()
2201 sdd->sg = alloc_percpu(struct sched_group *); in __sdt_alloc()
2202 if (!sdd->sg) in __sdt_alloc()
2205 sdd->sgc = alloc_percpu(struct sched_group_capacity *); in __sdt_alloc()
2206 if (!sdd->sgc) in __sdt_alloc()
2220 *per_cpu_ptr(sdd->sd, j) = sd; in __sdt_alloc()
2227 *per_cpu_ptr(sdd->sds, j) = sds; in __sdt_alloc()
2236 *per_cpu_ptr(sdd->sg, j) = sg; in __sdt_alloc()
2247 *per_cpu_ptr(sdd->sgc, j) = sgc; in __sdt_alloc()
2260 struct sd_data *sdd = &tl->data; in __sdt_free() local
2265 if (sdd->sd) { in __sdt_free()
2266 sd = *per_cpu_ptr(sdd->sd, j); in __sdt_free()
2269 kfree(*per_cpu_ptr(sdd->sd, j)); in __sdt_free()
2272 if (sdd->sds) in __sdt_free()
2273 kfree(*per_cpu_ptr(sdd->sds, j)); in __sdt_free()
2274 if (sdd->sg) in __sdt_free()
2275 kfree(*per_cpu_ptr(sdd->sg, j)); in __sdt_free()
2276 if (sdd->sgc) in __sdt_free()
2277 kfree(*per_cpu_ptr(sdd->sgc, j)); in __sdt_free()
2279 free_percpu(sdd->sd); in __sdt_free()
2280 sdd->sd = NULL; in __sdt_free()
2281 free_percpu(sdd->sds); in __sdt_free()
2282 sdd->sds = NULL; in __sdt_free()
2283 free_percpu(sdd->sg); in __sdt_free()
2284 sdd->sg = NULL; in __sdt_free()
2285 free_percpu(sdd->sgc); in __sdt_free()
2286 sdd->sgc = NULL; in __sdt_free()