Home
last modified time | relevance | path

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

/linux-5.19.10/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-5.19.10/drivers/iio/pressure/
Dst_pressure_core.c693 press_data->num_data_channels = press_data->sensor_settings->num_ch - 1; in st_press_common_probe()
694 indio_dev->channels = press_data->sensor_settings->ch; in st_press_common_probe()
695 indio_dev->num_channels = press_data->sensor_settings->num_ch; in st_press_common_probe()
697 press_data->current_fullscale = &press_data->sensor_settings->fs.fs_avl[0]; in st_press_common_probe()
699 press_data->odr = press_data->sensor_settings->odr.odr_avl[0].hz; in st_press_common_probe()
702 if (!pdata && (press_data->sensor_settings->drdy_irq.int1.addr || in st_press_common_probe()
703 press_data->sensor_settings->drdy_irq.int2.addr)) in st_press_common_probe()
Dst_pressure_spi.c79 press_data->sensor_settings = (struct st_sensor_settings *)settings; in st_press_spi_probe()
Dst_pressure_i2c.c96 press_data->sensor_settings = (struct st_sensor_settings *)settings; in st_press_i2c_probe()
/linux-5.19.10/drivers/iio/imu/st_lsm9ds0/
Dst_lsm9ds0_core.c92 data->sensor_settings = (struct st_sensor_settings *)settings; in st_lsm9ds0_probe_accel()
120 data->sensor_settings = (struct st_sensor_settings *)settings; in st_lsm9ds0_probe_magn()
/linux-5.19.10/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_spi.c87 gdata->sensor_settings = (struct st_sensor_settings *)settings; in st_gyro_spi_probe()
Dst_gyro_i2c.c83 gdata->sensor_settings = (struct st_sensor_settings *)settings; in st_gyro_i2c_probe()
/linux-5.19.10/drivers/iio/magnetometer/
Dst_magn_core.c619 indio_dev->channels = mdata->sensor_settings->ch; in st_magn_common_probe()
626 mdata->current_fullscale = &mdata->sensor_settings->fs.fs_avl[0]; in st_magn_common_probe()
627 mdata->odr = mdata->sensor_settings->odr.odr_avl[0].hz; in st_magn_common_probe()
Dst_magn_spi.c73 mdata->sensor_settings = (struct st_sensor_settings *)settings; in st_magn_spi_probe()
Dst_magn_i2c.c79 mdata->sensor_settings = (struct st_sensor_settings *)settings; in st_magn_i2c_probe()
/linux-5.19.10/drivers/iio/accel/
Dst_accel_spi.c124 adata->sensor_settings = (struct st_sensor_settings *)settings; in st_accel_spi_probe()
Dst_accel_i2c.c180 adata->sensor_settings = (struct st_sensor_settings *)settings; in st_accel_i2c_probe()
Dst_accel_core.c1426 indio_dev->channels = adata->sensor_settings->ch; in st_accel_common_probe()
1440 adata->current_fullscale = &adata->sensor_settings->fs.fs_avl[0]; in st_accel_common_probe()
1441 adata->odr = adata->sensor_settings->odr.odr_avl[0].hz; in st_accel_common_probe()
/linux-5.19.10/include/linux/iio/common/
Dst_sensors.h245 struct st_sensor_settings *sensor_settings; member