Lines Matching refs:cpu_dev
32 static struct scpi_dvfs_info *scpi_get_dvfs_info(struct device *cpu_dev) in scpi_get_dvfs_info() argument
34 int domain = topology_physical_package_id(cpu_dev->id); in scpi_get_dvfs_info()
41 static int scpi_opp_table_ops(struct device *cpu_dev, bool remove) in scpi_opp_table_ops() argument
45 struct scpi_dvfs_info *info = scpi_get_dvfs_info(cpu_dev); in scpi_opp_table_ops()
55 dev_pm_opp_remove(cpu_dev, opp->freq); in scpi_opp_table_ops()
57 ret = dev_pm_opp_add(cpu_dev, opp->freq, in scpi_opp_table_ops()
60 dev_warn(cpu_dev, "failed to add opp %uHz %umV\n", in scpi_opp_table_ops()
63 dev_pm_opp_remove(cpu_dev, (--opp)->freq); in scpi_opp_table_ops()
70 static int scpi_get_transition_latency(struct device *cpu_dev) in scpi_get_transition_latency() argument
72 struct scpi_dvfs_info *info = scpi_get_dvfs_info(cpu_dev); in scpi_get_transition_latency()
79 static int scpi_init_opp_table(struct device *cpu_dev) in scpi_init_opp_table() argument
81 return scpi_opp_table_ops(cpu_dev, false); in scpi_init_opp_table()
84 static void scpi_free_opp_table(struct device *cpu_dev) in scpi_free_opp_table() argument
86 scpi_opp_table_ops(cpu_dev, true); in scpi_free_opp_table()