Home
last modified time | relevance | path

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

/linux-4.19.296/drivers/iio/common/st_sensors/
Dst_sensors_core.c69 static int st_sensors_match_odr(struct st_sensor_settings *sensor_settings, in st_sensors_match_odr() argument
75 if (sensor_settings->odr.odr_avl[i].hz == 0) in st_sensors_match_odr()
78 if (sensor_settings->odr.odr_avl[i].hz == odr) { in st_sensors_match_odr()
79 odr_out->hz = sensor_settings->odr.odr_avl[i].hz; in st_sensors_match_odr()
80 odr_out->value = sensor_settings->odr.odr_avl[i].value; in st_sensors_match_odr()
96 if (!sdata->sensor_settings->odr.mask) in st_sensors_set_odr()
99 err = st_sensors_match_odr(sdata->sensor_settings, odr, &odr_out); in st_sensors_set_odr()
103 if ((sdata->sensor_settings->odr.addr == in st_sensors_set_odr()
104 sdata->sensor_settings->pw.addr) && in st_sensors_set_odr()
105 (sdata->sensor_settings->odr.mask == in st_sensors_set_odr()
[all …]
Dst_sensors_trigger.c34 if (!sdata->sensor_settings->drdy_irq.stat_drdy.addr) in st_sensors_new_samples_available()
42 sdata->sensor_settings->drdy_irq.stat_drdy.addr, in st_sensors_new_samples_available()
50 if (status & sdata->sensor_settings->drdy_irq.stat_drdy.mask) in st_sensors_new_samples_available()
148 if (!sdata->sensor_settings->drdy_irq.addr_ihl) { in st_sensors_allocate_trigger()
160 sdata->sensor_settings->drdy_irq.addr_ihl, in st_sensors_allocate_trigger()
161 sdata->sensor_settings->drdy_irq.mask_ihl, 1); in st_sensors_allocate_trigger()
207 sdata->sensor_settings->drdy_irq.stat_drdy.addr) in st_sensors_allocate_trigger()
/linux-4.19.296/drivers/iio/pressure/
Dst_pressure_core.c627 press_data->num_data_channels = press_data->sensor_settings->num_ch - 1; in st_press_common_probe()
628 press_data->multiread_bit = press_data->sensor_settings->multi_read_bit; in st_press_common_probe()
629 indio_dev->channels = press_data->sensor_settings->ch; in st_press_common_probe()
630 indio_dev->num_channels = press_data->sensor_settings->num_ch; in st_press_common_probe()
634 &press_data->sensor_settings->fs.fs_avl[0]; in st_press_common_probe()
636 press_data->odr = press_data->sensor_settings->odr.odr_avl[0].hz; in st_press_common_probe()
639 if (!pdata && (press_data->sensor_settings->drdy_irq.int1.addr || in st_press_common_probe()
640 press_data->sensor_settings->drdy_irq.int2.addr)) in st_press_common_probe()
/linux-4.19.296/drivers/iio/gyro/
Dst_gyro_core.c466 gdata->multiread_bit = gdata->sensor_settings->multi_read_bit; in st_gyro_common_probe()
467 indio_dev->channels = gdata->sensor_settings->ch; in st_gyro_common_probe()
471 &gdata->sensor_settings->fs.fs_avl[0]; in st_gyro_common_probe()
472 gdata->odr = gdata->sensor_settings->odr.odr_avl[0].hz; in st_gyro_common_probe()
/linux-4.19.296/drivers/iio/magnetometer/
Dst_magn_core.c490 mdata->multiread_bit = mdata->sensor_settings->multi_read_bit; in st_magn_common_probe()
491 indio_dev->channels = mdata->sensor_settings->ch; in st_magn_common_probe()
495 &mdata->sensor_settings->fs.fs_avl[0]; in st_magn_common_probe()
496 mdata->odr = mdata->sensor_settings->odr.odr_avl[0].hz; in st_magn_common_probe()
/linux-4.19.296/include/linux/iio/common/
Dst_sensors.h263 struct st_sensor_settings *sensor_settings; member
338 int num_sensors_list, const struct st_sensor_settings *sensor_settings);
/linux-4.19.296/drivers/iio/accel/
Dst_accel_core.c943 adata->multiread_bit = adata->sensor_settings->multi_read_bit; in st_accel_common_probe()
944 indio_dev->channels = adata->sensor_settings->ch; in st_accel_common_probe()
948 &adata->sensor_settings->fs.fs_avl[0]; in st_accel_common_probe()
949 adata->odr = adata->sensor_settings->odr.odr_avl[0].hz; in st_accel_common_probe()