Lines Matching refs:pd
34 static void em_debug_create_ps(struct em_perf_state *ps, struct dentry *pd) in em_debug_create_ps() argument
42 d = debugfs_create_dir(name, pd); in em_debug_create_ps()
59 struct em_perf_domain *pd = s->private; in em_debug_flags_show() local
61 seq_printf(s, "%#lx\n", pd->flags); in em_debug_flags_show()
106 static int em_create_perf_table(struct device *dev, struct em_perf_domain *pd, in em_create_perf_table() argument
185 pd->table = table; in em_create_perf_table()
186 pd->nr_perf_states = nr_states; in em_create_perf_table()
199 struct em_perf_domain *pd; in em_create_pd() local
212 pd = kzalloc(sizeof(*pd) + cpumask_size(), GFP_KERNEL); in em_create_pd()
213 if (!pd) in em_create_pd()
216 cpumask_copy(em_span_cpus(pd), cpus); in em_create_pd()
218 pd = kzalloc(sizeof(*pd), GFP_KERNEL); in em_create_pd()
219 if (!pd) in em_create_pd()
223 ret = em_create_perf_table(dev, pd, nr_states, cb, flags); in em_create_pd()
225 kfree(pd); in em_create_pd()
232 cpu_dev->em_pd = pd; in em_create_pd()
235 dev->em_pd = pd; in em_create_pd()
242 struct em_perf_domain *pd = dev->em_pd; in em_cpufreq_update_efficiencies() local
248 if (!_is_cpu_device(dev) || !pd) in em_cpufreq_update_efficiencies()
251 policy = cpufreq_cpu_get(cpumask_first(em_span_cpus(pd))); in em_cpufreq_update_efficiencies()
257 table = pd->table; in em_cpufreq_update_efficiencies()
259 for (i = 0; i < pd->nr_perf_states; i++) { in em_cpufreq_update_efficiencies()
276 pd->flags |= EM_PERF_DOMAIN_SKIP_INEFFICIENCIES; in em_cpufreq_update_efficiencies()