Lines Matching full:sdd
914 struct sd_data *sdd = sd->private; in build_balance_mask() local
921 sibling = *per_cpu_ptr(sdd->sd, i); in build_balance_mask()
975 struct sd_data *sdd = sd->private; in init_overlap_sched_group() local
982 sg->sgc = *per_cpu_ptr(sdd->sgc, cpu); in init_overlap_sched_group()
1030 struct sd_data *sdd = sd->private; in build_overlap_sched_groups() local
1042 sibling = *per_cpu_ptr(sdd->sd, i); in build_overlap_sched_groups()
1190 static struct sched_group *get_group(int cpu, struct sd_data *sdd) in get_group() argument
1192 struct sched_domain *sd = *per_cpu_ptr(sdd->sd, cpu); in get_group()
1200 sg = *per_cpu_ptr(sdd->sg, cpu); in get_group()
1201 sg->sgc = *per_cpu_ptr(sdd->sgc, cpu); in get_group()
1239 struct sd_data *sdd = sd->private; in build_sched_groups() local
1255 sg = get_group(i, sdd); in build_sched_groups()
1575 struct sd_data *sdd = sd->private; in claim_allocations() local
1577 WARN_ON_ONCE(*per_cpu_ptr(sdd->sd, cpu) != sd); in claim_allocations()
1578 *per_cpu_ptr(sdd->sd, cpu) = NULL; in claim_allocations()
1580 if (atomic_read(&(*per_cpu_ptr(sdd->sds, cpu))->ref)) in claim_allocations()
1581 *per_cpu_ptr(sdd->sds, cpu) = NULL; in claim_allocations()
1583 if (atomic_read(&(*per_cpu_ptr(sdd->sg, cpu))->ref)) in claim_allocations()
1584 *per_cpu_ptr(sdd->sg, cpu) = NULL; in claim_allocations()
1586 if (atomic_read(&(*per_cpu_ptr(sdd->sgc, cpu))->ref)) in claim_allocations()
1587 *per_cpu_ptr(sdd->sgc, cpu) = NULL; in claim_allocations()
1629 struct sd_data *sdd = &tl->data; in sd_init() local
1630 struct sched_domain *sd = *per_cpu_ptr(sdd->sd, cpu); in sd_init()
1717 sd->shared = *per_cpu_ptr(sdd->sds, sd_id); in sd_init()
1722 sd->private = sdd; in sd_init()
2294 struct sd_data *sdd = &tl->data; in __sdt_alloc() local
2296 sdd->sd = alloc_percpu(struct sched_domain *); in __sdt_alloc()
2297 if (!sdd->sd) in __sdt_alloc()
2300 sdd->sds = alloc_percpu(struct sched_domain_shared *); in __sdt_alloc()
2301 if (!sdd->sds) in __sdt_alloc()
2304 sdd->sg = alloc_percpu(struct sched_group *); in __sdt_alloc()
2305 if (!sdd->sg) in __sdt_alloc()
2308 sdd->sgc = alloc_percpu(struct sched_group_capacity *); in __sdt_alloc()
2309 if (!sdd->sgc) in __sdt_alloc()
2323 *per_cpu_ptr(sdd->sd, j) = sd; in __sdt_alloc()
2330 *per_cpu_ptr(sdd->sds, j) = sds; in __sdt_alloc()
2339 *per_cpu_ptr(sdd->sg, j) = sg; in __sdt_alloc()
2348 *per_cpu_ptr(sdd->sgc, j) = sgc; in __sdt_alloc()
2361 struct sd_data *sdd = &tl->data; in __sdt_free() local
2366 if (sdd->sd) { in __sdt_free()
2367 sd = *per_cpu_ptr(sdd->sd, j); in __sdt_free()
2370 kfree(*per_cpu_ptr(sdd->sd, j)); in __sdt_free()
2373 if (sdd->sds) in __sdt_free()
2374 kfree(*per_cpu_ptr(sdd->sds, j)); in __sdt_free()
2375 if (sdd->sg) in __sdt_free()
2376 kfree(*per_cpu_ptr(sdd->sg, j)); in __sdt_free()
2377 if (sdd->sgc) in __sdt_free()
2378 kfree(*per_cpu_ptr(sdd->sgc, j)); in __sdt_free()
2380 free_percpu(sdd->sd); in __sdt_free()
2381 sdd->sd = NULL; in __sdt_free()
2382 free_percpu(sdd->sds); in __sdt_free()
2383 sdd->sds = NULL; in __sdt_free()
2384 free_percpu(sdd->sg); in __sdt_free()
2385 sdd->sg = NULL; in __sdt_free()
2386 free_percpu(sdd->sgc); in __sdt_free()
2387 sdd->sgc = NULL; in __sdt_free()