Searched refs:scpi_ops (Results 1 – 6 of 6) sorted by relevance
41 struct scpi_ops *scpi_ops; member77 struct scpi_ops *scpi_ops = scpi_sensors->scpi_ops; in scpi_read_temp() local82 ret = scpi_ops->sensor_get_value(sensor->info.sensor_id, &value); in scpi_read_temp()97 struct scpi_ops *scpi_ops = scpi_sensors->scpi_ops; in scpi_show_sensor() local104 ret = scpi_ops->sensor_get_value(sensor->info.sensor_id, &value); in scpi_show_sensor()140 struct scpi_ops *scpi_ops; in scpi_hwmon_probe() local146 scpi_ops = get_scpi_ops(); in scpi_hwmon_probe()147 if (!scpi_ops) in scpi_hwmon_probe()150 ret = scpi_ops->sensor_get_capability(&nr_sensors); in scpi_hwmon_probe()171 scpi_sensors->scpi_ops = scpi_ops; in scpi_hwmon_probe()[all …]
28 struct scpi_ops *ops;83 struct scpi_ops *scpi_ops; in scpi_pm_domain_probe() local86 scpi_ops = get_scpi_ops(); in scpi_pm_domain_probe()87 if (!scpi_ops) in scpi_pm_domain_probe()95 if (!scpi_ops->device_set_power_state || in scpi_pm_domain_probe()96 !scpi_ops->device_get_power_state) { in scpi_pm_domain_probe()123 scpi_pd->ops = scpi_ops; in scpi_pm_domain_probe()
264 struct scpi_ops *scpi_ops; member791 static struct scpi_ops scpi_ops = { variable809 struct scpi_ops *get_scpi_ops(void) in get_scpi_ops()811 return scpi_info ? scpi_info->scpi_ops : NULL; in get_scpi_ops()993 scpi_ops.clk_set_val = legacy_scpi_clk_set_val; in scpi_probe()1023 scpi_info->scpi_ops = &scpi_ops; in scpi_probe()
40 static struct scpi_ops *scpi_ops; variable79 domain = scpi_ops->device_domain_id(cpu_dev); in scpi_get_sharing_cpus()91 tdomain = scpi_ops->device_domain_id(tcpu_dev); in scpi_get_sharing_cpus()113 ret = scpi_ops->add_opps_to_device(cpu_dev); in scpi_cpufreq_init()166 latency = scpi_ops->get_transition_latency(cpu_dev); in scpi_cpufreq_init()222 scpi_ops = get_scpi_ops(); in scpi_cpufreq_probe()223 if (!scpi_ops) in scpi_cpufreq_probe()236 scpi_ops = NULL; in scpi_cpufreq_remove()
32 struct scpi_ops *scpi_ops; member44 return clk->scpi_ops->clk_get_val(clk->id); in scpi_clk_recalc_rate()64 return clk->scpi_ops->clk_set_val(clk->id, rate); in scpi_clk_set_rate()97 int idx = clk->scpi_ops->dvfs_get_idx(clk->id); in scpi_dvfs_recalc_rate()134 return clk->scpi_ops->dvfs_set_idx(clk->id, (u8)ret); in scpi_dvfs_set_rate()162 sclk->scpi_ops = get_scpi_ops(); in scpi_clk_ops_init()165 sclk->info = sclk->scpi_ops->dvfs_get_info(sclk->id); in scpi_clk_ops_init()169 if (sclk->scpi_ops->clk_get_range(sclk->id, &min, &max) || !max) in scpi_clk_ops_init()
62 struct scpi_ops { struct81 struct scpi_ops *get_scpi_ops(void); argument83 static inline struct scpi_ops *get_scpi_ops(void) { return NULL; } in get_scpi_ops()