Home
last modified time | relevance | path

Searched refs:scpi_ops (Results 1 – 5 of 5) sorted by relevance

/linux-4.4.14/drivers/hwmon/
Dscpi-hwmon.c41 struct scpi_ops *scpi_ops; member
53 struct scpi_ops *scpi_ops = scpi_sensors->scpi_ops; in scpi_read_temp() local
58 ret = scpi_ops->sensor_get_value(sensor->info.sensor_id, &value); in scpi_read_temp()
71 struct scpi_ops *scpi_ops = scpi_sensors->scpi_ops; in scpi_show_sensor() local
78 ret = scpi_ops->sensor_get_value(sensor->info.sensor_id, &value); in scpi_show_sensor()
117 struct scpi_ops *scpi_ops; in scpi_hwmon_probe() local
122 scpi_ops = get_scpi_ops(); in scpi_hwmon_probe()
123 if (!scpi_ops) in scpi_hwmon_probe()
126 ret = scpi_ops->sensor_get_capability(&nr_sensors); in scpi_hwmon_probe()
147 scpi_sensors->scpi_ops = scpi_ops; in scpi_hwmon_probe()
[all …]
/linux-4.4.14/drivers/cpufreq/
Dscpi-cpufreq.c30 static struct scpi_ops *scpi_ops; variable
38 return scpi_ops->dvfs_get_info(domain); in scpi_get_dvfs_info()
98 scpi_ops = get_scpi_ops(); in scpi_cpufreq_probe()
99 if (!scpi_ops) in scpi_cpufreq_probe()
108 scpi_ops = NULL; in scpi_cpufreq_remove()
/linux-4.4.14/drivers/clk/
Dclk-scpi.c32 struct scpi_ops *scpi_ops; member
44 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()
/linux-4.4.14/include/linux/
Dscpi_protocol.h61 struct scpi_ops { struct
75 struct scpi_ops *get_scpi_ops(void); argument
77 static inline struct scpi_ops *get_scpi_ops(void) { return NULL; } in get_scpi_ops()
/linux-4.4.14/drivers/firmware/
Darm_scpi.c165 struct scpi_ops *scpi_ops; member
541 static struct scpi_ops scpi_ops = { variable
554 struct scpi_ops *get_scpi_ops(void) in get_scpi_ops()
556 return scpi_info ? scpi_info->scpi_ops : NULL; in get_scpi_ops()
743 scpi_info->scpi_ops = &scpi_ops; in scpi_probe()