Lines Matching full:sdd
863 struct sd_data *sdd = sd->private; in build_balance_mask() local
870 sibling = *per_cpu_ptr(sdd->sd, i); in build_balance_mask()
922 struct sd_data *sdd = sd->private; in init_overlap_sched_group() local
929 sg->sgc = *per_cpu_ptr(sdd->sgc, cpu); in init_overlap_sched_group()
977 struct sd_data *sdd = sd->private; in build_overlap_sched_groups() local
989 sibling = *per_cpu_ptr(sdd->sd, i); in build_overlap_sched_groups()
1137 static struct sched_group *get_group(int cpu, struct sd_data *sdd) in get_group() argument
1139 struct sched_domain *sd = *per_cpu_ptr(sdd->sd, cpu); in get_group()
1147 sg = *per_cpu_ptr(sdd->sg, cpu); in get_group()
1148 sg->sgc = *per_cpu_ptr(sdd->sgc, cpu); in get_group()
1185 struct sd_data *sdd = sd->private; in build_sched_groups() local
1201 sg = get_group(i, sdd); in build_sched_groups()
1349 struct sd_data *sdd = sd->private; in claim_allocations() local
1351 WARN_ON_ONCE(*per_cpu_ptr(sdd->sd, cpu) != sd); in claim_allocations()
1352 *per_cpu_ptr(sdd->sd, cpu) = NULL; in claim_allocations()
1354 if (atomic_read(&(*per_cpu_ptr(sdd->sds, cpu))->ref)) in claim_allocations()
1355 *per_cpu_ptr(sdd->sds, cpu) = NULL; in claim_allocations()
1357 if (atomic_read(&(*per_cpu_ptr(sdd->sg, cpu))->ref)) in claim_allocations()
1358 *per_cpu_ptr(sdd->sg, cpu) = NULL; in claim_allocations()
1360 if (atomic_read(&(*per_cpu_ptr(sdd->sgc, cpu))->ref)) in claim_allocations()
1361 *per_cpu_ptr(sdd->sgc, cpu) = NULL; in claim_allocations()
1403 struct sd_data *sdd = &tl->data; in sd_init() local
1404 struct sched_domain *sd = *per_cpu_ptr(sdd->sd, cpu); in sd_init()
1496 sd->shared = *per_cpu_ptr(sdd->sds, sd_id); in sd_init()
1501 sd->private = sdd; in sd_init()
1826 struct sd_data *sdd = &tl->data; in __sdt_alloc() local
1828 sdd->sd = alloc_percpu(struct sched_domain *); in __sdt_alloc()
1829 if (!sdd->sd) in __sdt_alloc()
1832 sdd->sds = alloc_percpu(struct sched_domain_shared *); in __sdt_alloc()
1833 if (!sdd->sds) in __sdt_alloc()
1836 sdd->sg = alloc_percpu(struct sched_group *); in __sdt_alloc()
1837 if (!sdd->sg) in __sdt_alloc()
1840 sdd->sgc = alloc_percpu(struct sched_group_capacity *); in __sdt_alloc()
1841 if (!sdd->sgc) in __sdt_alloc()
1855 *per_cpu_ptr(sdd->sd, j) = sd; in __sdt_alloc()
1862 *per_cpu_ptr(sdd->sds, j) = sds; in __sdt_alloc()
1871 *per_cpu_ptr(sdd->sg, j) = sg; in __sdt_alloc()
1882 *per_cpu_ptr(sdd->sgc, j) = sgc; in __sdt_alloc()
1895 struct sd_data *sdd = &tl->data; in __sdt_free() local
1900 if (sdd->sd) { in __sdt_free()
1901 sd = *per_cpu_ptr(sdd->sd, j); in __sdt_free()
1904 kfree(*per_cpu_ptr(sdd->sd, j)); in __sdt_free()
1907 if (sdd->sds) in __sdt_free()
1908 kfree(*per_cpu_ptr(sdd->sds, j)); in __sdt_free()
1909 if (sdd->sg) in __sdt_free()
1910 kfree(*per_cpu_ptr(sdd->sg, j)); in __sdt_free()
1911 if (sdd->sgc) in __sdt_free()
1912 kfree(*per_cpu_ptr(sdd->sgc, j)); in __sdt_free()
1914 free_percpu(sdd->sd); in __sdt_free()
1915 sdd->sd = NULL; in __sdt_free()
1916 free_percpu(sdd->sds); in __sdt_free()
1917 sdd->sds = NULL; in __sdt_free()
1918 free_percpu(sdd->sg); in __sdt_free()
1919 sdd->sg = NULL; in __sdt_free()
1920 free_percpu(sdd->sgc); in __sdt_free()
1921 sdd->sgc = NULL; in __sdt_free()