Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/iio/common/st_sensors/
Dst_sensors_core.c51 static int st_sensors_match_odr(struct st_sensor_settings *sensor_settings, in st_sensors_match_odr() argument
57 if (sensor_settings->odr.odr_avl[i].hz == 0) in st_sensors_match_odr()
60 if (sensor_settings->odr.odr_avl[i].hz == odr) { in st_sensors_match_odr()
61 odr_out->hz = sensor_settings->odr.odr_avl[i].hz; in st_sensors_match_odr()
62 odr_out->value = sensor_settings->odr.odr_avl[i].value; in st_sensors_match_odr()
80 if (!sdata->sensor_settings->odr.mask) in st_sensors_set_odr()
83 err = st_sensors_match_odr(sdata->sensor_settings, odr, &odr_out); in st_sensors_set_odr()
87 if ((sdata->sensor_settings->odr.addr == in st_sensors_set_odr()
88 sdata->sensor_settings->pw.addr) && in st_sensors_set_odr()
89 (sdata->sensor_settings->odr.mask == in st_sensors_set_odr()
[all …]
Dst_sensors_trigger.c33 if (!sdata->sensor_settings->drdy_irq.stat_drdy.addr) in st_sensors_new_samples_available()
41 sdata->sensor_settings->drdy_irq.stat_drdy.addr, in st_sensors_new_samples_available()
49 return !!(status & sdata->sensor_settings->drdy_irq.stat_drdy.mask); in st_sensors_new_samples_available()
145 if (!sdata->sensor_settings->drdy_irq.addr_ihl) { in st_sensors_allocate_trigger()
155 sdata->sensor_settings->drdy_irq.addr_ihl, in st_sensors_allocate_trigger()
156 sdata->sensor_settings->drdy_irq.mask_ihl, 1); in st_sensors_allocate_trigger()
181 if (!sdata->sensor_settings->drdy_irq.stat_drdy.addr) { in st_sensors_allocate_trigger()
206 sdata->sensor_settings->drdy_irq.stat_drdy.addr) in st_sensors_allocate_trigger()
Dst_sensors_spi.c91 sdata->sensor_settings); in st_sensors_spi_configure()
96 if (sdata->sensor_settings->multi_read_bit) in st_sensors_spi_configure()
Dst_sensors_i2c.c44 if (sdata->sensor_settings->multi_read_bit) in st_sensors_i2c_configure()
/linux-6.6.21/drivers/iio/pressure/
Dst_pressure_core.c763 press_data->num_data_channels = press_data->sensor_settings->num_ch - 1; in st_press_common_probe()
764 indio_dev->channels = press_data->sensor_settings->ch; in st_press_common_probe()
765 indio_dev->num_channels = press_data->sensor_settings->num_ch; in st_press_common_probe()
767 press_data->current_fullscale = &press_data->sensor_settings->fs.fs_avl[0]; in st_press_common_probe()
769 press_data->odr = press_data->sensor_settings->odr.odr_avl[0].hz; in st_press_common_probe()
772 if (!pdata && (press_data->sensor_settings->drdy_irq.int1.addr || in st_press_common_probe()
773 press_data->sensor_settings->drdy_irq.int2.addr)) in st_press_common_probe()
Dst_pressure_spi.c83 press_data->sensor_settings = (struct st_sensor_settings *)settings; in st_press_spi_probe()
Dst_pressure_i2c.c100 press_data->sensor_settings = (struct st_sensor_settings *)settings; in st_press_i2c_probe()
/linux-6.6.21/drivers/iio/imu/st_lsm9ds0/
Dst_lsm9ds0_core.c40 data->sensor_settings = (struct st_sensor_settings *)settings; in st_lsm9ds0_probe_accel()
66 data->sensor_settings = (struct st_sensor_settings *)settings; in st_lsm9ds0_probe_magn()
/linux-6.6.21/drivers/iio/gyro/
Dst_gyro_core.c485 indio_dev->channels = gdata->sensor_settings->ch; in st_gyro_common_probe()
492 gdata->current_fullscale = &gdata->sensor_settings->fs.fs_avl[0]; in st_gyro_common_probe()
493 gdata->odr = gdata->sensor_settings->odr.odr_avl[0].hz; in st_gyro_common_probe()
Dst_gyro_i2c.c82 gdata->sensor_settings = (struct st_sensor_settings *)settings; in st_gyro_i2c_probe()
Dst_gyro_spi.c87 gdata->sensor_settings = (struct st_sensor_settings *)settings; in st_gyro_spi_probe()
/linux-6.6.21/drivers/iio/magnetometer/
Dst_magn_core.c621 indio_dev->channels = mdata->sensor_settings->ch; in st_magn_common_probe()
628 mdata->current_fullscale = &mdata->sensor_settings->fs.fs_avl[0]; in st_magn_common_probe()
629 mdata->odr = mdata->sensor_settings->odr.odr_avl[0].hz; in st_magn_common_probe()
Dst_magn_spi.c77 mdata->sensor_settings = (struct st_sensor_settings *)settings; in st_magn_spi_probe()
Dst_magn_i2c.c82 mdata->sensor_settings = (struct st_sensor_settings *)settings; in st_magn_i2c_probe()
/linux-6.6.21/drivers/iio/accel/
Dst_accel_spi.c132 adata->sensor_settings = (struct st_sensor_settings *)settings; in st_accel_spi_probe()
Dst_accel_i2c.c190 adata->sensor_settings = (struct st_sensor_settings *)settings; in st_accel_i2c_probe()
Dst_accel_core.c1429 indio_dev->channels = adata->sensor_settings->ch; in st_accel_common_probe()
1443 adata->current_fullscale = &adata->sensor_settings->fs.fs_avl[0]; in st_accel_common_probe()
1444 adata->odr = adata->sensor_settings->odr.odr_avl[0].hz; in st_accel_common_probe()
/linux-6.6.21/include/linux/iio/common/
Dst_sensors.h244 struct st_sensor_settings *sensor_settings; member