Home
last modified time | relevance | path

Searched refs:sensor_settings (Results 1 – 6 of 6) sorted by relevance

/drivers/iio/common/st_sensors/
Dst_sensors_core.c68 static int st_sensors_match_odr(struct st_sensor_settings *sensor_settings, in st_sensors_match_odr() argument
74 if (sensor_settings->odr.odr_avl[i].hz == 0) in st_sensors_match_odr()
77 if (sensor_settings->odr.odr_avl[i].hz == odr) { in st_sensors_match_odr()
78 odr_out->hz = sensor_settings->odr.odr_avl[i].hz; in st_sensors_match_odr()
79 odr_out->value = sensor_settings->odr.odr_avl[i].value; in st_sensors_match_odr()
95 err = st_sensors_match_odr(sdata->sensor_settings, odr, &odr_out); in st_sensors_set_odr()
99 if ((sdata->sensor_settings->odr.addr == in st_sensors_set_odr()
100 sdata->sensor_settings->pw.addr) && in st_sensors_set_odr()
101 (sdata->sensor_settings->odr.mask == in st_sensors_set_odr()
102 sdata->sensor_settings->pw.mask)) { in st_sensors_set_odr()
[all …]
Dst_sensors_trigger.c34 if (!sdata->sensor_settings->drdy_irq.addr_stat_drdy) in st_sensors_new_samples_available()
42 sdata->sensor_settings->drdy_irq.addr_stat_drdy, in st_sensors_new_samples_available()
156 if (!sdata->sensor_settings->drdy_irq.addr_ihl) { in st_sensors_allocate_trigger()
168 sdata->sensor_settings->drdy_irq.addr_ihl, in st_sensors_allocate_trigger()
169 sdata->sensor_settings->drdy_irq.mask_ihl, 1); in st_sensors_allocate_trigger()
215 sdata->sensor_settings->drdy_irq.addr_stat_drdy) in st_sensors_allocate_trigger()
/drivers/iio/pressure/
Dst_pressure_core.c666 press_data->num_data_channels = press_data->sensor_settings->num_ch - 1; in st_press_common_probe()
667 press_data->multiread_bit = press_data->sensor_settings->multi_read_bit; in st_press_common_probe()
668 indio_dev->channels = press_data->sensor_settings->ch; in st_press_common_probe()
669 indio_dev->num_channels = press_data->sensor_settings->num_ch; in st_press_common_probe()
673 &press_data->sensor_settings->fs.fs_avl[0]; in st_press_common_probe()
675 press_data->odr = press_data->sensor_settings->odr.odr_avl[0].hz; in st_press_common_probe()
678 if (!pdata && press_data->sensor_settings->drdy_irq.addr) in st_press_common_probe()
/drivers/iio/gyro/
Dst_gyro_core.c440 gdata->multiread_bit = gdata->sensor_settings->multi_read_bit; in st_gyro_common_probe()
441 indio_dev->channels = gdata->sensor_settings->ch; in st_gyro_common_probe()
445 &gdata->sensor_settings->fs.fs_avl[0]; in st_gyro_common_probe()
446 gdata->odr = gdata->sensor_settings->odr.odr_avl[0].hz; in st_gyro_common_probe()
/drivers/iio/magnetometer/
Dst_magn_core.c603 mdata->multiread_bit = mdata->sensor_settings->multi_read_bit; in st_magn_common_probe()
604 indio_dev->channels = mdata->sensor_settings->ch; in st_magn_common_probe()
608 &mdata->sensor_settings->fs.fs_avl[0]; in st_magn_common_probe()
609 mdata->odr = mdata->sensor_settings->odr.odr_avl[0].hz; in st_magn_common_probe()
/drivers/iio/accel/
Dst_accel_core.c850 adata->multiread_bit = adata->sensor_settings->multi_read_bit; in st_accel_common_probe()
851 indio_dev->channels = adata->sensor_settings->ch; in st_accel_common_probe()
855 &adata->sensor_settings->fs.fs_avl[0]; in st_accel_common_probe()
856 adata->odr = adata->sensor_settings->odr.odr_avl[0].hz; in st_accel_common_probe()