Lines Matching refs:sdd

873 	struct sd_data *sdd = sd->private;  in build_balance_mask()  local
880 sibling = *per_cpu_ptr(sdd->sd, i); in build_balance_mask()
932 struct sd_data *sdd = sd->private; in init_overlap_sched_group() local
939 sg->sgc = *per_cpu_ptr(sdd->sgc, cpu); in init_overlap_sched_group()
987 struct sd_data *sdd = sd->private; in build_overlap_sched_groups() local
999 sibling = *per_cpu_ptr(sdd->sd, i); in build_overlap_sched_groups()
1147 static struct sched_group *get_group(int cpu, struct sd_data *sdd) in get_group() argument
1149 struct sched_domain *sd = *per_cpu_ptr(sdd->sd, cpu); in get_group()
1157 sg = *per_cpu_ptr(sdd->sg, cpu); in get_group()
1158 sg->sgc = *per_cpu_ptr(sdd->sgc, cpu); in get_group()
1195 struct sd_data *sdd = sd->private; in build_sched_groups() local
1211 sg = get_group(i, sdd); in build_sched_groups()
1460 struct sd_data *sdd = sd->private; in claim_allocations() local
1462 WARN_ON_ONCE(*per_cpu_ptr(sdd->sd, cpu) != sd); in claim_allocations()
1463 *per_cpu_ptr(sdd->sd, cpu) = NULL; in claim_allocations()
1465 if (atomic_read(&(*per_cpu_ptr(sdd->sds, cpu))->ref)) in claim_allocations()
1466 *per_cpu_ptr(sdd->sds, cpu) = NULL; in claim_allocations()
1468 if (atomic_read(&(*per_cpu_ptr(sdd->sg, cpu))->ref)) in claim_allocations()
1469 *per_cpu_ptr(sdd->sg, cpu) = NULL; in claim_allocations()
1471 if (atomic_read(&(*per_cpu_ptr(sdd->sgc, cpu))->ref)) in claim_allocations()
1472 *per_cpu_ptr(sdd->sgc, cpu) = NULL; in claim_allocations()
1516 struct sd_data *sdd = &tl->data; in sd_init() local
1517 struct sched_domain *sd = *per_cpu_ptr(sdd->sd, cpu); in sd_init()
1613 sd->shared = *per_cpu_ptr(sdd->sds, sd_id); in sd_init()
1618 sd->private = sdd; in sd_init()
2007 struct sd_data *sdd = &tl->data; in __sdt_alloc() local
2009 sdd->sd = alloc_percpu(struct sched_domain *); in __sdt_alloc()
2010 if (!sdd->sd) in __sdt_alloc()
2013 sdd->sds = alloc_percpu(struct sched_domain_shared *); in __sdt_alloc()
2014 if (!sdd->sds) in __sdt_alloc()
2017 sdd->sg = alloc_percpu(struct sched_group *); in __sdt_alloc()
2018 if (!sdd->sg) in __sdt_alloc()
2021 sdd->sgc = alloc_percpu(struct sched_group_capacity *); in __sdt_alloc()
2022 if (!sdd->sgc) in __sdt_alloc()
2036 *per_cpu_ptr(sdd->sd, j) = sd; in __sdt_alloc()
2043 *per_cpu_ptr(sdd->sds, j) = sds; in __sdt_alloc()
2052 *per_cpu_ptr(sdd->sg, j) = sg; in __sdt_alloc()
2063 *per_cpu_ptr(sdd->sgc, j) = sgc; in __sdt_alloc()
2076 struct sd_data *sdd = &tl->data; in __sdt_free() local
2081 if (sdd->sd) { in __sdt_free()
2082 sd = *per_cpu_ptr(sdd->sd, j); in __sdt_free()
2085 kfree(*per_cpu_ptr(sdd->sd, j)); in __sdt_free()
2088 if (sdd->sds) in __sdt_free()
2089 kfree(*per_cpu_ptr(sdd->sds, j)); in __sdt_free()
2090 if (sdd->sg) in __sdt_free()
2091 kfree(*per_cpu_ptr(sdd->sg, j)); in __sdt_free()
2092 if (sdd->sgc) in __sdt_free()
2093 kfree(*per_cpu_ptr(sdd->sgc, j)); in __sdt_free()
2095 free_percpu(sdd->sd); in __sdt_free()
2096 sdd->sd = NULL; in __sdt_free()
2097 free_percpu(sdd->sds); in __sdt_free()
2098 sdd->sds = NULL; in __sdt_free()
2099 free_percpu(sdd->sg); in __sdt_free()
2100 sdd->sg = NULL; in __sdt_free()
2101 free_percpu(sdd->sgc); in __sdt_free()
2102 sdd->sgc = NULL; in __sdt_free()