Home
last modified time | relevance | path

Searched refs:sensor_data (Results 1 – 7 of 7) sorted by relevance

/drivers/iio/humidity/
Dam2315.c103 struct am2315_sensor_data *sensor_data) in am2315_read_data() argument
145 sensor_data->hum_data = (rx_buf[AM2315_HUM_OFFSET] << 8) | in am2315_read_data()
147 sensor_data->temp_data = (rx_buf[AM2315_TEMP_OFFSET] << 8) | in am2315_read_data()
165 struct am2315_sensor_data sensor_data; in am2315_trigger_handler() local
167 ret = am2315_read_data(data, &sensor_data); in am2315_trigger_handler()
173 data->scan.chans[0] = sensor_data.hum_data; in am2315_trigger_handler()
174 data->scan.chans[1] = sensor_data.temp_data; in am2315_trigger_handler()
179 data->scan.chans[i] = (bit ? sensor_data.temp_data : in am2315_trigger_handler()
180 sensor_data.hum_data); in am2315_trigger_handler()
198 struct am2315_sensor_data sensor_data; in am2315_read_raw() local
[all …]
/drivers/hwmon/
Dscpi-hwmon.c18 struct sensor_data { struct
34 struct sensor_data *data; argument
57 static void scpi_scale_reading(u64 *value, struct sensor_data *sensor) in scpi_scale_reading()
70 struct sensor_data *sensor = &scpi_sensors->data[zone->sensor_id]; in scpi_read_temp()
90 struct sensor_data *sensor; in scpi_show_sensor()
94 sensor = container_of(attr, struct sensor_data, dev_attr_input); in scpi_show_sensor()
117 struct sensor_data *sensor; in scpi_show_label()
119 sensor = container_of(attr, struct sensor_data, dev_attr_label); in scpi_show_label()
182 struct sensor_data *sensor = &scpi_sensors->data[idx]; in scpi_hwmon_probe()
267 struct sensor_data *sensor = &scpi_sensors->data[i]; in scpi_hwmon_probe()
Dibmpowernv.c73 struct sensor_data { struct
100 struct sensor_data *sdata = container_of(devattr, struct sensor_data, in show_sensor() argument
126 struct sensor_data *sdata = container_of(devattr, struct sensor_data, in show_enable()
136 struct sensor_data *sdata = container_of(devattr, struct sensor_data, in store_enable()
166 struct sensor_data *sdata = container_of(devattr, struct sensor_data, in show_label()
184 struct sensor_data *sdata, const char *label) in make_sensor_label()
317 static u32 get_sensor_hwmon_index(struct sensor_data *sdata, in get_sensor_hwmon_index()
318 struct sensor_data *sdata_table, int count) in get_sensor_hwmon_index()
483 static void create_hwmon_attr(struct sensor_data *sdata, const char *attr_name, in create_hwmon_attr()
506 static void populate_sensor(struct sensor_data *sdata, int od, int hd, int sid, in populate_sensor()
[all …]
/drivers/media/usb/gspca/
Dsonixb.c82 struct sensor_data { struct
422 static const struct sensor_data sensor_data[] = { variable
544 i2cOV[1] = sensor_data[sd->sensor].sensor_addr; in setbrightness()
632 i2c[1] = sensor_data[sd->sensor].sensor_addr; in setgain()
764 i2c[1] = sensor_data[sd->sensor].sensor_addr; in setexposure()
870 i2c[1] = sensor_data[sd->sensor].sensor_addr; in setfreq()
891 if (sensor_data[sd->sensor].flags & F_SIF) { in do_autogain()
931 if (!(sensor_data[sd->sensor].flags & F_SIF)) { in sd_config()
1097 memcpy(&regs[0x01], sensor_data[sd->sensor].bridge_init, 0x19); in sd_start()
1112 if (sensor_data[sd->sensor].flags & F_SIF) { in sd_start()
[all …]
Dt613.c135 static const struct additional_sensor_data sensor_data[] = { variable
513 all_gain_reg[7] = sensor_data[sd->sensor].reg80; in setawb_n_RGB()
631 sensor = &sensor_data[sd->sensor]; in sd_init()
785 sensor = &sensor_data[sd->sensor]; in sd_start()
805 reg_w_buf(gspca_dev, sensor_data[sd->sensor].stream, in sd_stopN()
806 sizeof sensor_data[sd->sensor].stream); in sd_stopN()
807 reg_w_buf(gspca_dev, sensor_data[sd->sensor].stream, in sd_stopN()
808 sizeof sensor_data[sd->sensor].stream); in sd_stopN()
/drivers/thermal/
Dthermal_of.c81 void *sensor_data; member
95 return data->ops->get_temp(data->sensor_data, temp); in of_thermal_get_temp()
106 return data->ops->set_trips(data->sensor_data, low, high); in of_thermal_set_trips()
192 return data->ops->set_emul_temp(data->sensor_data, temp); in of_thermal_set_emul_temp()
203 return data->ops->get_trend(data->sensor_data, trip, trend); in of_thermal_get_trend()
211 return data->ops->change_mode(data->sensor_data, mode); in of_thermal_change_mode()
218 data->ops->hot(data->sensor_data); in of_thermal_hot_notify()
225 data->ops->critical(data->sensor_data); in of_thermal_critical_notify()
332 ret = data->ops->set_trip_temp(data->sensor_data, trip, temp); in of_thermal_set_trip_temp()
418 tz->sensor_data = data; in thermal_zone_of_add_sensor()
[all …]
/drivers/iio/proximity/
Dsrf08.c185 s16 sensor_data; in srf08_trigger_handler() local
187 sensor_data = srf08_read_ranging(data); in srf08_trigger_handler()
188 if (sensor_data < 0) in srf08_trigger_handler()
193 data->scan.chan = sensor_data; in srf08_trigger_handler()