Lines Matching refs:scmi_sensors
18 struct scmi_sensors { struct
94 struct scmi_sensors *scmi_sensors = dev_get_drvdata(dev); in scmi_hwmon_read() local
96 sensor = *(scmi_sensors->info[type] + channel); in scmi_hwmon_read()
98 return scmi_hwmon_read_scaled_value(scmi_sensors->ph, sensor, val); in scmi_hwmon_read()
106 struct scmi_sensors *scmi_sensors = dev_get_drvdata(dev); in scmi_hwmon_read_string() local
108 sensor = *(scmi_sensors->info[type] + channel); in scmi_hwmon_read_string()
119 const struct scmi_sensors *scmi_sensors = drvdata; in scmi_hwmon_is_visible() local
121 sensor = *(scmi_sensors->info[type] + channel); in scmi_hwmon_is_visible()
234 struct scmi_sensors *scmi_sensors; in scmi_hwmon_probe() local
255 scmi_sensors = devm_kzalloc(dev, sizeof(*scmi_sensors), GFP_KERNEL); in scmi_hwmon_probe()
256 if (!scmi_sensors) in scmi_hwmon_probe()
259 scmi_sensors->ph = ph; in scmi_hwmon_probe()
304 scmi_sensors->info[type] = in scmi_hwmon_probe()
306 sizeof(*scmi_sensors->info), GFP_KERNEL); in scmi_hwmon_probe()
307 if (!scmi_sensors->info[type]) in scmi_hwmon_probe()
324 *(scmi_sensors->info[type] + idx) = sensor; in scmi_hwmon_probe()
330 scmi_sensors, chip_info, in scmi_hwmon_probe()
338 sensor = *(scmi_sensors->info[hwmon_temp] + i); in scmi_hwmon_probe()