Lines Matching refs:sdd
894 struct sd_data *sdd = sd->private; in build_balance_mask() local
901 sibling = *per_cpu_ptr(sdd->sd, i); in build_balance_mask()
955 struct sd_data *sdd = sd->private; in init_overlap_sched_group() local
962 sg->sgc = *per_cpu_ptr(sdd->sgc, cpu); in init_overlap_sched_group()
1010 struct sd_data *sdd = sd->private; in build_overlap_sched_groups() local
1022 sibling = *per_cpu_ptr(sdd->sd, i); in build_overlap_sched_groups()
1170 static struct sched_group *get_group(int cpu, struct sd_data *sdd) in get_group() argument
1172 struct sched_domain *sd = *per_cpu_ptr(sdd->sd, cpu); in get_group()
1180 sg = *per_cpu_ptr(sdd->sg, cpu); in get_group()
1181 sg->sgc = *per_cpu_ptr(sdd->sgc, cpu); in get_group()
1219 struct sd_data *sdd = sd->private; in build_sched_groups() local
1235 sg = get_group(i, sdd); in build_sched_groups()
1484 struct sd_data *sdd = sd->private; in claim_allocations() local
1486 WARN_ON_ONCE(*per_cpu_ptr(sdd->sd, cpu) != sd); in claim_allocations()
1487 *per_cpu_ptr(sdd->sd, cpu) = NULL; in claim_allocations()
1489 if (atomic_read(&(*per_cpu_ptr(sdd->sds, cpu))->ref)) in claim_allocations()
1490 *per_cpu_ptr(sdd->sds, cpu) = NULL; in claim_allocations()
1492 if (atomic_read(&(*per_cpu_ptr(sdd->sg, cpu))->ref)) in claim_allocations()
1493 *per_cpu_ptr(sdd->sg, cpu) = NULL; in claim_allocations()
1495 if (atomic_read(&(*per_cpu_ptr(sdd->sgc, cpu))->ref)) in claim_allocations()
1496 *per_cpu_ptr(sdd->sgc, cpu) = NULL; in claim_allocations()
1537 struct sd_data *sdd = &tl->data; in sd_init() local
1538 struct sched_domain *sd = *per_cpu_ptr(sdd->sd, cpu); in sd_init()
1634 sd->shared = *per_cpu_ptr(sdd->sds, sd_id); in sd_init()
1639 sd->private = sdd; in sd_init()
2071 struct sd_data *sdd = &tl->data; in __sdt_alloc() local
2073 sdd->sd = alloc_percpu(struct sched_domain *); in __sdt_alloc()
2074 if (!sdd->sd) in __sdt_alloc()
2077 sdd->sds = alloc_percpu(struct sched_domain_shared *); in __sdt_alloc()
2078 if (!sdd->sds) in __sdt_alloc()
2081 sdd->sg = alloc_percpu(struct sched_group *); in __sdt_alloc()
2082 if (!sdd->sg) in __sdt_alloc()
2085 sdd->sgc = alloc_percpu(struct sched_group_capacity *); in __sdt_alloc()
2086 if (!sdd->sgc) in __sdt_alloc()
2100 *per_cpu_ptr(sdd->sd, j) = sd; in __sdt_alloc()
2107 *per_cpu_ptr(sdd->sds, j) = sds; in __sdt_alloc()
2116 *per_cpu_ptr(sdd->sg, j) = sg; in __sdt_alloc()
2127 *per_cpu_ptr(sdd->sgc, j) = sgc; in __sdt_alloc()
2140 struct sd_data *sdd = &tl->data; in __sdt_free() local
2145 if (sdd->sd) { in __sdt_free()
2146 sd = *per_cpu_ptr(sdd->sd, j); in __sdt_free()
2149 kfree(*per_cpu_ptr(sdd->sd, j)); in __sdt_free()
2152 if (sdd->sds) in __sdt_free()
2153 kfree(*per_cpu_ptr(sdd->sds, j)); in __sdt_free()
2154 if (sdd->sg) in __sdt_free()
2155 kfree(*per_cpu_ptr(sdd->sg, j)); in __sdt_free()
2156 if (sdd->sgc) in __sdt_free()
2157 kfree(*per_cpu_ptr(sdd->sgc, j)); in __sdt_free()
2159 free_percpu(sdd->sd); in __sdt_free()
2160 sdd->sd = NULL; in __sdt_free()
2161 free_percpu(sdd->sds); in __sdt_free()
2162 sdd->sds = NULL; in __sdt_free()
2163 free_percpu(sdd->sg); in __sdt_free()
2164 sdd->sg = NULL; in __sdt_free()
2165 free_percpu(sdd->sgc); in __sdt_free()
2166 sdd->sgc = NULL; in __sdt_free()