Home
last modified time | relevance | path

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

/linux/drivers/iio/humidity/
A 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()
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
203 ret = am2315_read_data(data, &sensor_data); in am2315_read_raw()
[all …]
/linux/arch/powerpc/platforms/powernv/
A Dopal-sensor.c18 int opal_get_sensor_data(u32 sensor_hndl, u32 *sensor_data) in opal_get_sensor_data() argument
39 *sensor_data = be32_to_cpu(data); in opal_get_sensor_data()
44 *sensor_data = be32_to_cpu(data); in opal_get_sensor_data()
62 int opal_get_sensor_data_u64(u32 sensor_hndl, u64 *sensor_data) in opal_get_sensor_data_u64() argument
73 *sensor_data = sdata; in opal_get_sensor_data_u64()
92 *sensor_data = be64_to_cpu(data); in opal_get_sensor_data_u64()
97 *sensor_data = be64_to_cpu(data); in opal_get_sensor_data_u64()
/linux/drivers/hwmon/
A 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()
A 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 …]
/linux/drivers/media/usb/gspca/
A 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()
1112 if (sensor_data[sd->sensor].flags & F_SIF) { in sd_start()
1180 i2c_w_vector(gspca_dev, sensor_data[sd->sensor].sensor_init, in sd_start()
[all …]
A 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()
/linux/drivers/thermal/
A 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()
310 ret = data->ops->set_trip_temp(data->sensor_data, trip, temp); in of_thermal_set_trip_temp()
396 tz->sensor_data = data; in thermal_zone_of_add_sensor()
574 tz->sensor_data = NULL; in thermal_zone_of_sensor_unregister()
/linux/drivers/iio/proximity/
A 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()
/linux/arch/powerpc/include/asm/
A Dopal.h197 int64_t opal_sensor_read(uint32_t sensor_hndl, int token, __be32 *sensor_data);
198 int64_t opal_sensor_read_u64(u32 sensor_hndl, int token, __be64 *sensor_data);
343 extern int opal_get_sensor_data(u32 sensor_hndl, u32 *sensor_data);
344 extern int opal_get_sensor_data_u64(u32 sensor_hndl, u64 *sensor_data);

Completed in 23 milliseconds