Home
last modified time | relevance | path

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

/drivers/iio/common/st_sensors/
Dst_sensors_core.c69 unsigned int odr, struct st_sensor_odr_avl *odr_out) 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()
89 int st_sensors_set_odr(struct iio_dev *indio_dev, unsigned int odr) in st_sensors_set_odr() argument
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()
101 (sdata->sensor_settings->odr.mask == in st_sensors_set_odr()
105 sdata->sensor_settings->odr.addr, in st_sensors_set_odr()
[all …]
/drivers/iio/accel/
Dst_accel_core.c296 .odr = {
378 .odr = {
443 .odr = {
525 .odr = {
580 .odr = {
634 .odr = {
695 .odr = {
758 *val = adata->odr; in st_accel_read_raw()
856 adata->odr = adata->sensor_settings->odr.odr_avl[0].hz; in st_accel_common_probe()
/drivers/iio/pressure/
Dst_pressure_core.c331 .odr = {
387 .odr = {
433 .odr = {
487 .odr = {
598 *val = press_data->odr; in st_press_read_raw()
675 press_data->odr = press_data->sensor_settings->odr.odr_avl[0].hz; in st_press_common_probe()
Dzpa2326.c91 u16 odr; member
99 { .hz = 1, .odr = 1 << ZPA2326_CTRL_REG3_ODR_SHIFT },
100 { .hz = 5, .odr = 5 << ZPA2326_CTRL_REG3_ODR_SHIFT },
101 { .hz = 11, .odr = 6 << ZPA2326_CTRL_REG3_ODR_SHIFT },
102 { .hz = 23, .odr = 7 << ZPA2326_CTRL_REG3_ODR_SHIFT },
422 err = regmap_write(regs, ZPA2326_CTRL_REG3_REG, freq->odr); in zpa2326_config_oneshot()
1350 zpa2326_highest_frequency()->odr); in zpa2326_set_trigger_state()
1389 priv->frequency->odr); in zpa2326_set_trigger_state()
/drivers/iio/gyro/
Dst_gyro_core.c140 .odr = {
210 .odr = {
275 .odr = {
354 *val = gdata->odr; in st_gyro_read_raw()
446 gdata->odr = gdata->sensor_settings->odr.odr_avl[0].hz; in st_gyro_common_probe()
Dbmg160_core.c124 int odr; member
163 if (bmg160_samp_freq_table[i].odr == val) in bmg160_convert_freq_to_bit()
466 *val = bmg160_samp_freq_table[i].odr; in bmg160_get_bw()
/drivers/iio/imu/bmi160/
Dbmi160_core.c164 int odr; member
341 int odr, int uodr) in bmi160_set_odr() argument
346 if (bmi160_odr_table[t].tbl[i].odr == odr && in bmi160_set_odr()
360 int *odr, int *uodr) in bmi160_get_odr() argument
377 *odr = bmi160_odr_table[t].tbl[i].odr; in bmi160_get_odr()
/drivers/iio/magnetometer/
Dst_magn_core.c242 .odr = {
320 .odr = {
398 .odr = {
454 .odr = {
517 *val = mdata->odr; in st_magn_read_raw()
609 mdata->odr = mdata->sensor_settings->odr.odr_avl[0].hz; in st_magn_common_probe()
Dbmc150_magn.c176 u8 odr; member
331 int rep_z, int odr) in bmc150_magn_set_max_odr() argument
349 if (odr <= 0) { in bmc150_magn_set_max_odr()
350 ret = bmc150_magn_get_odr(data, &odr); in bmc150_magn_set_max_odr()
356 if (odr > max_odr) { in bmc150_magn_set_max_odr()
359 odr); in bmc150_magn_set_max_odr()
709 ret = bmc150_magn_set_odr(data, preset.odr); in bmc150_magn_init()
712 preset.odr); in bmc150_magn_init()
733 preset.odr); in bmc150_magn_init()