Lines Matching refs:sdd
903 struct sd_data *sdd = sd->private; in build_balance_mask() local
910 sibling = *per_cpu_ptr(sdd->sd, i); in build_balance_mask()
964 struct sd_data *sdd = sd->private; in init_overlap_sched_group() local
971 sg->sgc = *per_cpu_ptr(sdd->sgc, cpu); in init_overlap_sched_group()
1019 struct sd_data *sdd = sd->private; in build_overlap_sched_groups() local
1031 sibling = *per_cpu_ptr(sdd->sd, i); in build_overlap_sched_groups()
1179 static struct sched_group *get_group(int cpu, struct sd_data *sdd) in get_group() argument
1181 struct sched_domain *sd = *per_cpu_ptr(sdd->sd, cpu); in get_group()
1189 sg = *per_cpu_ptr(sdd->sg, cpu); in get_group()
1190 sg->sgc = *per_cpu_ptr(sdd->sgc, cpu); in get_group()
1228 struct sd_data *sdd = sd->private; in build_sched_groups() local
1244 sg = get_group(i, sdd); in build_sched_groups()
1493 struct sd_data *sdd = sd->private; in claim_allocations() local
1495 WARN_ON_ONCE(*per_cpu_ptr(sdd->sd, cpu) != sd); in claim_allocations()
1496 *per_cpu_ptr(sdd->sd, cpu) = NULL; in claim_allocations()
1498 if (atomic_read(&(*per_cpu_ptr(sdd->sds, cpu))->ref)) in claim_allocations()
1499 *per_cpu_ptr(sdd->sds, cpu) = NULL; in claim_allocations()
1501 if (atomic_read(&(*per_cpu_ptr(sdd->sg, cpu))->ref)) in claim_allocations()
1502 *per_cpu_ptr(sdd->sg, cpu) = NULL; in claim_allocations()
1504 if (atomic_read(&(*per_cpu_ptr(sdd->sgc, cpu))->ref)) in claim_allocations()
1505 *per_cpu_ptr(sdd->sgc, cpu) = NULL; in claim_allocations()
1546 struct sd_data *sdd = &tl->data; in sd_init() local
1547 struct sched_domain *sd = *per_cpu_ptr(sdd->sd, cpu); in sd_init()
1643 sd->shared = *per_cpu_ptr(sdd->sds, sd_id); in sd_init()
1648 sd->private = sdd; in sd_init()
2173 struct sd_data *sdd = &tl->data; in __sdt_alloc() local
2175 sdd->sd = alloc_percpu(struct sched_domain *); in __sdt_alloc()
2176 if (!sdd->sd) in __sdt_alloc()
2179 sdd->sds = alloc_percpu(struct sched_domain_shared *); in __sdt_alloc()
2180 if (!sdd->sds) in __sdt_alloc()
2183 sdd->sg = alloc_percpu(struct sched_group *); in __sdt_alloc()
2184 if (!sdd->sg) in __sdt_alloc()
2187 sdd->sgc = alloc_percpu(struct sched_group_capacity *); in __sdt_alloc()
2188 if (!sdd->sgc) in __sdt_alloc()
2202 *per_cpu_ptr(sdd->sd, j) = sd; in __sdt_alloc()
2209 *per_cpu_ptr(sdd->sds, j) = sds; in __sdt_alloc()
2218 *per_cpu_ptr(sdd->sg, j) = sg; in __sdt_alloc()
2229 *per_cpu_ptr(sdd->sgc, j) = sgc; in __sdt_alloc()
2242 struct sd_data *sdd = &tl->data; in __sdt_free() local
2247 if (sdd->sd) { in __sdt_free()
2248 sd = *per_cpu_ptr(sdd->sd, j); in __sdt_free()
2251 kfree(*per_cpu_ptr(sdd->sd, j)); in __sdt_free()
2254 if (sdd->sds) in __sdt_free()
2255 kfree(*per_cpu_ptr(sdd->sds, j)); in __sdt_free()
2256 if (sdd->sg) in __sdt_free()
2257 kfree(*per_cpu_ptr(sdd->sg, j)); in __sdt_free()
2258 if (sdd->sgc) in __sdt_free()
2259 kfree(*per_cpu_ptr(sdd->sgc, j)); in __sdt_free()
2261 free_percpu(sdd->sd); in __sdt_free()
2262 sdd->sd = NULL; in __sdt_free()
2263 free_percpu(sdd->sds); in __sdt_free()
2264 sdd->sds = NULL; in __sdt_free()
2265 free_percpu(sdd->sg); in __sdt_free()
2266 sdd->sg = NULL; in __sdt_free()
2267 free_percpu(sdd->sgc); in __sdt_free()
2268 sdd->sgc = NULL; in __sdt_free()