/Linux-v4.19/drivers/iio/common/st_sensors/ |
D | st_sensors_core.c | 70 unsigned int odr, struct st_sensor_odr_avl *odr_out) 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() 90 int st_sensors_set_odr(struct iio_dev *indio_dev, unsigned int odr) in st_sensors_set_odr() argument 96 if (!sdata->sensor_settings->odr.addr) 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() 105 (sdata->sensor_settings->odr.mask == in st_sensors_set_odr() [all …]
|
/Linux-v4.19/drivers/iio/accel/ |
D | st_accel_core.c | 108 .odr = { 190 .odr = { 269 .odr = { 359 .odr = { 431 .odr = { 503 .odr = { 573 .odr = { 631 .odr = { 706 .odr = { 787 .odr = { [all …]
|
/Linux-v4.19/drivers/iio/gyro/ |
D | st_gyro_core.c | 68 .odr = { 147 .odr = { 221 .odr = { 309 *val = gdata->odr; in st_gyro_read_raw() 399 gdata->odr = gdata->sensor_settings->odr.odr_avl[0].hz; in st_gyro_common_probe()
|
D | bmg160_core.c | 123 int odr; member 162 if (bmg160_samp_freq_table[i].odr == val) in bmg160_convert_freq_to_bit() 465 *val = bmg160_samp_freq_table[i].odr; in bmg160_get_bw()
|
/Linux-v4.19/drivers/iio/magnetometer/ |
D | st_magn_core.c | 115 .odr = { 194 .odr = { 272 .odr = { 340 .odr = { 406 *val = mdata->odr; in st_magn_read_raw() 496 mdata->odr = mdata->sensor_settings->odr.odr_avl[0].hz; in st_magn_common_probe()
|
D | bmc150_magn.c | 176 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() 708 ret = bmc150_magn_set_odr(data, preset.odr); in bmc150_magn_init() 711 preset.odr); in bmc150_magn_init() 732 preset.odr); in bmc150_magn_init()
|
/Linux-v4.19/drivers/iio/pressure/ |
D | st_pressure_core.c | 247 .odr = { 320 .odr = { 372 .odr = { 441 .odr = { 561 *val = press_data->odr; in st_press_read_raw() 636 press_data->odr = press_data->sensor_settings->odr.odr_avl[0].hz; in st_press_common_probe()
|
D | zpa2326.c | 91 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 }, 418 err = regmap_write(regs, ZPA2326_CTRL_REG3_REG, freq->odr); in zpa2326_config_oneshot() 1342 zpa2326_highest_frequency()->odr); in zpa2326_set_trigger_state() 1381 priv->frequency->odr); in zpa2326_set_trigger_state()
|
/Linux-v4.19/drivers/char/ipmi/ |
D | kcs_bmc_aspeed.c | 230 { .idr = LPC_IDR1, .odr = LPC_ODR1, .str = LPC_STR1 }, 231 { .idr = LPC_IDR2, .odr = LPC_ODR2, .str = LPC_STR2 }, 232 { .idr = LPC_IDR3, .odr = LPC_ODR3, .str = LPC_STR3 }, 233 { .idr = LPC_IDR4, .odr = LPC_ODR4, .str = LPC_STR4 }, 287 kcs_bmc->ioreg.idr, kcs_bmc->ioreg.odr, kcs_bmc->ioreg.str); in aspeed_kcs_probe()
|
D | kcs_bmc_npcm7xx.c | 162 kcs_bmc->ioreg.odr = priv->reg->dob; in npcm7xx_kcs_probe() 182 kcs_bmc->ioreg.idr, kcs_bmc->ioreg.odr, kcs_bmc->ioreg.str); in npcm7xx_kcs_probe()
|
D | kcs_bmc.h | 65 u32 odr; member
|
D | kcs_bmc.c | 55 kcs_bmc->io_outputb(kcs_bmc, kcs_bmc->ioreg.odr, data); in write_data()
|
/Linux-v4.19/drivers/iio/imu/st_lsm6dsx/ |
D | st_lsm6dsx_core.c | 398 static int st_lsm6dsx_check_odr(struct st_lsm6dsx_sensor *sensor, u16 odr, in st_lsm6dsx_check_odr() argument 404 if (st_lsm6dsx_odr_table[sensor->id].odr_avl[i].hz == odr) in st_lsm6dsx_check_odr() 415 static int st_lsm6dsx_set_odr(struct st_lsm6dsx_sensor *sensor, u16 odr) in st_lsm6dsx_set_odr() argument 422 err = st_lsm6dsx_check_odr(sensor, odr, &val); in st_lsm6dsx_set_odr() 435 err = st_lsm6dsx_set_odr(sensor, sensor->odr); in st_lsm6dsx_sensor_enable() 472 delay = 1000000 / sensor->odr; in st_lsm6dsx_read_oneshot() 503 *val = sensor->odr; in st_lsm6dsx_read_raw() 539 sensor->odr = val; in st_lsm6dsx_write_raw() 778 sensor->odr = st_lsm6dsx_odr_table[id].odr_avl[0].hz; in st_lsm6dsx_alloc_iiodev() 896 err = st_lsm6dsx_set_odr(sensor, sensor->odr); in st_lsm6dsx_resume()
|
D | st_lsm6dsx_buffer.c | 98 *max_odr = max_t(u16, *max_odr, sensor->odr); in st_lsm6dsx_get_max_min_odr() 99 *min_odr = min_t(u16, *min_odr, sensor->odr); in st_lsm6dsx_get_max_min_odr() 119 sensor->sip = sensor->odr / min_odr; in st_lsm6dsx_update_decimators() 120 sensor->decimator = max_odr / sensor->odr; in st_lsm6dsx_update_decimators()
|
D | st_lsm6dsx.h | 123 u16 odr; member
|
/Linux-v4.19/drivers/iio/imu/bmi160/ |
D | bmi160_core.c | 164 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()
|
/Linux-v4.19/arch/powerpc/platforms/4xx/ |
D | gpio.c | 45 __be32 odr; member 115 clrbits32(®s->odr, GPIO_MASK(gpio)); in ppc4xx_gpio_dir_in() 148 clrbits32(®s->odr, GPIO_MASK(gpio)); in ppc4xx_gpio_dir_out()
|
/Linux-v4.19/include/linux/iio/common/ |
D | st_sensors.h | 226 struct st_sensor_odr odr; member 273 unsigned int odr; member 328 int st_sensors_set_odr(struct iio_dev *indio_dev, unsigned int odr);
|
/Linux-v4.19/arch/powerpc/sysdev/ |
D | cpm2.c | 326 u32 dir, par, sor, odr, dat; member 353 setbits32(&iop[port].odr, pin); in cpm2_set_pin() 355 clrbits32(&iop[port].odr, pin); in cpm2_set_pin()
|
D | cpm_common.c | 98 u32 dir, par, sor, odr, dat; member
|
D | cpm1.c | 300 __be32 dir, par, odr, dat; member 304 __be32 dir, par, sor, odr, dat; member
|
/Linux-v4.19/drivers/iio/humidity/ |
D | hts221_core.c | 154 static int hts221_update_odr(struct hts221_hw *hw, u8 odr) in hts221_update_odr() argument 159 if (hts221_odr_table[i].hz == odr) in hts221_update_odr() 172 hw->odr = odr; in hts221_update_odr() 450 *val = hw->odr; in hts221_read_raw()
|
D | hts221.h | 42 u8 odr; member
|