Lines Matching refs:sdd

848 	struct sd_data *sdd = sd->private;  in build_balance_mask()  local
855 sibling = *per_cpu_ptr(sdd->sd, i); in build_balance_mask()
907 struct sd_data *sdd = sd->private; in init_overlap_sched_group() local
914 sg->sgc = *per_cpu_ptr(sdd->sgc, cpu); in init_overlap_sched_group()
937 struct sd_data *sdd = sd->private; in build_overlap_sched_groups() local
949 sibling = *per_cpu_ptr(sdd->sd, i); in build_overlap_sched_groups()
1062 static struct sched_group *get_group(int cpu, struct sd_data *sdd) in get_group() argument
1064 struct sched_domain *sd = *per_cpu_ptr(sdd->sd, cpu); in get_group()
1072 sg = *per_cpu_ptr(sdd->sg, cpu); in get_group()
1073 sg->sgc = *per_cpu_ptr(sdd->sgc, cpu); in get_group()
1110 struct sd_data *sdd = sd->private; in build_sched_groups() local
1126 sg = get_group(i, sdd); in build_sched_groups()
1265 struct sd_data *sdd = sd->private; in claim_allocations() local
1267 WARN_ON_ONCE(*per_cpu_ptr(sdd->sd, cpu) != sd); in claim_allocations()
1268 *per_cpu_ptr(sdd->sd, cpu) = NULL; in claim_allocations()
1270 if (atomic_read(&(*per_cpu_ptr(sdd->sds, cpu))->ref)) in claim_allocations()
1271 *per_cpu_ptr(sdd->sds, cpu) = NULL; in claim_allocations()
1273 if (atomic_read(&(*per_cpu_ptr(sdd->sg, cpu))->ref)) in claim_allocations()
1274 *per_cpu_ptr(sdd->sg, cpu) = NULL; in claim_allocations()
1276 if (atomic_read(&(*per_cpu_ptr(sdd->sgc, cpu))->ref)) in claim_allocations()
1277 *per_cpu_ptr(sdd->sgc, cpu) = NULL; in claim_allocations()
1319 struct sd_data *sdd = &tl->data; in sd_init() local
1320 struct sched_domain *sd = *per_cpu_ptr(sdd->sd, cpu); in sd_init()
1412 sd->shared = *per_cpu_ptr(sdd->sds, sd_id); in sd_init()
1417 sd->private = sdd; in sd_init()
1743 struct sd_data *sdd = &tl->data; in __sdt_alloc() local
1745 sdd->sd = alloc_percpu(struct sched_domain *); in __sdt_alloc()
1746 if (!sdd->sd) in __sdt_alloc()
1749 sdd->sds = alloc_percpu(struct sched_domain_shared *); in __sdt_alloc()
1750 if (!sdd->sds) in __sdt_alloc()
1753 sdd->sg = alloc_percpu(struct sched_group *); in __sdt_alloc()
1754 if (!sdd->sg) in __sdt_alloc()
1757 sdd->sgc = alloc_percpu(struct sched_group_capacity *); in __sdt_alloc()
1758 if (!sdd->sgc) in __sdt_alloc()
1772 *per_cpu_ptr(sdd->sd, j) = sd; in __sdt_alloc()
1779 *per_cpu_ptr(sdd->sds, j) = sds; in __sdt_alloc()
1788 *per_cpu_ptr(sdd->sg, j) = sg; in __sdt_alloc()
1799 *per_cpu_ptr(sdd->sgc, j) = sgc; in __sdt_alloc()
1812 struct sd_data *sdd = &tl->data; in __sdt_free() local
1817 if (sdd->sd) { in __sdt_free()
1818 sd = *per_cpu_ptr(sdd->sd, j); in __sdt_free()
1821 kfree(*per_cpu_ptr(sdd->sd, j)); in __sdt_free()
1824 if (sdd->sds) in __sdt_free()
1825 kfree(*per_cpu_ptr(sdd->sds, j)); in __sdt_free()
1826 if (sdd->sg) in __sdt_free()
1827 kfree(*per_cpu_ptr(sdd->sg, j)); in __sdt_free()
1828 if (sdd->sgc) in __sdt_free()
1829 kfree(*per_cpu_ptr(sdd->sgc, j)); in __sdt_free()
1831 free_percpu(sdd->sd); in __sdt_free()
1832 sdd->sd = NULL; in __sdt_free()
1833 free_percpu(sdd->sds); in __sdt_free()
1834 sdd->sds = NULL; in __sdt_free()
1835 free_percpu(sdd->sg); in __sdt_free()
1836 sdd->sg = NULL; in __sdt_free()
1837 free_percpu(sdd->sgc); in __sdt_free()
1838 sdd->sgc = NULL; in __sdt_free()