Lines Matching refs:sdd
615 struct sd_data *sdd = sd->private; in build_balance_mask() local
622 sibling = *per_cpu_ptr(sdd->sd, i); in build_balance_mask()
674 struct sd_data *sdd = sd->private; in init_overlap_sched_group() local
681 sg->sgc = *per_cpu_ptr(sdd->sgc, cpu); in init_overlap_sched_group()
703 struct sd_data *sdd = sd->private; in build_overlap_sched_groups() local
715 sibling = *per_cpu_ptr(sdd->sd, i); in build_overlap_sched_groups()
828 static struct sched_group *get_group(int cpu, struct sd_data *sdd) in get_group() argument
830 struct sched_domain *sd = *per_cpu_ptr(sdd->sd, cpu); in get_group()
837 sg = *per_cpu_ptr(sdd->sg, cpu); in get_group()
838 sg->sgc = *per_cpu_ptr(sdd->sgc, cpu); in get_group()
869 struct sd_data *sdd = sd->private; in build_sched_groups() local
885 sg = get_group(i, sdd); in build_sched_groups()
1027 struct sd_data *sdd = sd->private; in claim_allocations() local
1029 WARN_ON_ONCE(*per_cpu_ptr(sdd->sd, cpu) != sd); in claim_allocations()
1030 *per_cpu_ptr(sdd->sd, cpu) = NULL; in claim_allocations()
1032 if (atomic_read(&(*per_cpu_ptr(sdd->sds, cpu))->ref)) in claim_allocations()
1033 *per_cpu_ptr(sdd->sds, cpu) = NULL; in claim_allocations()
1035 if (atomic_read(&(*per_cpu_ptr(sdd->sg, cpu))->ref)) in claim_allocations()
1036 *per_cpu_ptr(sdd->sg, cpu) = NULL; in claim_allocations()
1038 if (atomic_read(&(*per_cpu_ptr(sdd->sgc, cpu))->ref)) in claim_allocations()
1039 *per_cpu_ptr(sdd->sgc, cpu) = NULL; in claim_allocations()
1084 struct sd_data *sdd = &tl->data; in sd_init() local
1085 struct sched_domain *sd = *per_cpu_ptr(sdd->sd, cpu); in sd_init()
1192 sd->shared = *per_cpu_ptr(sdd->sds, sd_id); in sd_init()
1197 sd->private = sdd; in sd_init()
1506 struct sd_data *sdd = &tl->data; in __sdt_alloc() local
1508 sdd->sd = alloc_percpu(struct sched_domain *); in __sdt_alloc()
1509 if (!sdd->sd) in __sdt_alloc()
1512 sdd->sds = alloc_percpu(struct sched_domain_shared *); in __sdt_alloc()
1513 if (!sdd->sds) in __sdt_alloc()
1516 sdd->sg = alloc_percpu(struct sched_group *); in __sdt_alloc()
1517 if (!sdd->sg) in __sdt_alloc()
1520 sdd->sgc = alloc_percpu(struct sched_group_capacity *); in __sdt_alloc()
1521 if (!sdd->sgc) in __sdt_alloc()
1535 *per_cpu_ptr(sdd->sd, j) = sd; in __sdt_alloc()
1542 *per_cpu_ptr(sdd->sds, j) = sds; in __sdt_alloc()
1551 *per_cpu_ptr(sdd->sg, j) = sg; in __sdt_alloc()
1562 *per_cpu_ptr(sdd->sgc, j) = sgc; in __sdt_alloc()
1575 struct sd_data *sdd = &tl->data; in __sdt_free() local
1580 if (sdd->sd) { in __sdt_free()
1581 sd = *per_cpu_ptr(sdd->sd, j); in __sdt_free()
1584 kfree(*per_cpu_ptr(sdd->sd, j)); in __sdt_free()
1587 if (sdd->sds) in __sdt_free()
1588 kfree(*per_cpu_ptr(sdd->sds, j)); in __sdt_free()
1589 if (sdd->sg) in __sdt_free()
1590 kfree(*per_cpu_ptr(sdd->sg, j)); in __sdt_free()
1591 if (sdd->sgc) in __sdt_free()
1592 kfree(*per_cpu_ptr(sdd->sgc, j)); in __sdt_free()
1594 free_percpu(sdd->sd); in __sdt_free()
1595 sdd->sd = NULL; in __sdt_free()
1596 free_percpu(sdd->sds); in __sdt_free()
1597 sdd->sds = NULL; in __sdt_free()
1598 free_percpu(sdd->sg); in __sdt_free()
1599 sdd->sg = NULL; in __sdt_free()
1600 free_percpu(sdd->sgc); in __sdt_free()
1601 sdd->sgc = NULL; in __sdt_free()