Home
last modified time | relevance | path

Searched full:odr (Results 1 – 25 of 57) sorted by relevance

123

/linux/drivers/iio/imu/inv_icm42600/
H A Dinv_icm42600_core.c116 .odr = INV_ICM42600_ODR_50HZ,
122 .odr = INV_ICM42600_ODR_50HZ,
132 .odr = INV_ICM42600_ODR_50HZ,
138 .odr = INV_ICM42600_ODR_50HZ,
191 uint32_t inv_icm42600_odr_to_period(enum inv_icm42600_odr odr) in inv_icm42600_odr_to_period() argument
224 return odr_periods[odr]; in inv_icm42600_odr_to_period()
305 if (conf->odr < 0) in inv_icm42600_set_accel_conf()
306 conf->odr = oldconf->odr; in inv_icm42600_set_accel_conf()
310 /* force power mode against ODR when sensor is on */ in inv_icm42600_set_accel_conf()
314 if (conf->odr <= INV_ICM42600_ODR_1KHZ_LN) { in inv_icm42600_set_accel_conf()
[all …]
H A Dinv_icm42600_buffer.c46 const void **timestamp, unsigned int *odr) in inv_icm42600_fifo_decode_packet() argument
58 *odr = 0; in inv_icm42600_fifo_decode_packet()
62 /* handle odr flags */ in inv_icm42600_fifo_decode_packet()
63 *odr = 0; in inv_icm42600_fifo_decode_packet()
65 *odr |= INV_ICM42600_SENSOR_GYRO; in inv_icm42600_fifo_decode_packet()
67 *odr |= INV_ICM42600_SENSOR_ACCEL; in inv_icm42600_fifo_decode_packet()
106 period_gyro = inv_icm42600_odr_to_period(st->conf.gyro.odr); in inv_icm42600_buffer_update_fifo_period()
111 period_accel = inv_icm42600_odr_to_period(st->conf.accel.odr); in inv_icm42600_buffer_update_fifo_period()
191 * value. Latency depends on watermark and ODR. It requires several steps:
215 /* compute sensors latency, depending on sensor watermark and odr */ in inv_icm42600_buffer_update_watermark()
[all …]
/linux/drivers/iio/common/st_sensors/
H A Dst_sensors_core.c52 unsigned int odr, struct st_sensor_odr_avl *odr_out) 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()
72 int st_sensors_set_odr(struct iio_dev *indio_dev, unsigned int odr) in st_sensors_set_odr() argument
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()
89 (sdata->sensor_settings->odr.mask == in st_sensors_set_odr()
[all …]
/linux/drivers/iio/accel/
H A Dadxl355_core.c225 enum adxl355_odr odr; member
278 u64 odr; in adxl355_fill_3db_frequency_table() local
281 odr = mul_u64_u32_shr(adxl355_odr_table[data->odr][0], MEGA, 0) + in adxl355_fill_3db_frequency_table()
282 adxl355_odr_table[data->odr][1]; in adxl355_fill_3db_frequency_table()
286 div = div64_u64_rem(mul_u64_u32_shr(odr, multiplier, 0), in adxl355_fill_3db_frequency_table()
374 enum adxl355_odr odr) in adxl355_set_odr() argument
380 if (data->odr == odr) { in adxl355_set_odr()
391 FIELD_PREP(ADXL355_FILTER_ODR_MSK, odr)); in adxl355_set_odr()
395 data->odr = odr; in adxl355_set_odr()
539 *val = adxl355_odr_table[data->odr][0]; in adxl355_read_raw()
[all …]
H A Dadxl367.c169 enum adxl367_odr odr; member
523 int freq_hz = adxl367_samp_freq_tbl[st->odr][0]; in adxl367_time_ms_to_samples()
524 int freq_microhz = adxl367_samp_freq_tbl[st->odr][1]; in adxl367_time_ms_to_samples()
596 static int _adxl367_set_odr(struct adxl367_state *st, enum adxl367_odr odr) in _adxl367_set_odr() argument
603 odr)); in _adxl367_set_odr()
607 /* Activity timers depend on ODR */ in _adxl367_set_odr()
616 st->odr = odr; in _adxl367_set_odr()
621 static int adxl367_set_odr(struct iio_dev *indio_dev, enum adxl367_odr odr) in adxl367_set_odr() argument
633 ret = _adxl367_set_odr(st, odr); in adxl367_set_odr()
687 enum adxl367_odr *odr) in adxl367_find_odr() argument
[all …]
H A Dadxl372.c292 enum adxl372_odr odr; member
383 enum adxl372_odr odr) in adxl372_set_odr() argument
389 ADXL372_TIMING_ODR_MODE(odr)); in adxl372_set_odr()
393 st->odr = odr; in adxl372_set_odr()
476 * ODR = 6400 Hz. It is 6.6 ms per code for ODR = 3200 Hz and below. in adxl372_set_activity_time_ms()
478 if (st->odr == ADXL372_ODR_6400HZ) in adxl372_set_activity_time_ms()
506 * ODR = 6400 Hz. It is 26 ms per code for ODR = 3200 Hz and below. in adxl372_set_inactivity_time_ms()
508 if (st->odr == ADXL372_ODR_6400HZ) in adxl372_set_inactivity_time_ms()
783 *val = adxl372_samp_freq_tbl[st->odr]; in adxl372_read_raw()
809 * The timer period depends on the ODR selected. in adxl372_write_raw()
[all …]
H A Dst_accel_core.c126 .odr = {
208 .odr = {
287 .odr = {
377 .odr = {
450 .odr = {
523 .odr = {
593 .odr = {
651 .odr = {
726 .odr = {
807 .odr = {
[all …]
H A Dbma400_core.c488 unsigned int odr; in bma400_get_accel_output_data_rate() local
503 * In normal mode the ODR can be found in the ACC_CONFIG1 in bma400_get_accel_output_data_rate()
510 odr = val & BMA400_ACC_ODR_MASK; in bma400_get_accel_output_data_rate()
511 if (odr < BMA400_ACC_ODR_MIN_RAW || in bma400_get_accel_output_data_rate()
512 odr > BMA400_ACC_ODR_MAX_RAW) { in bma400_get_accel_output_data_rate()
517 bma400_output_data_rate_from_raw(odr, &data->sample_freq.hz, in bma400_get_accel_output_data_rate()
538 unsigned int odr; in bma400_set_accel_output_data_rate() local
564 odr = (~BMA400_ACC_ODR_MASK & val) | idx; in bma400_set_accel_output_data_rate()
566 ret = regmap_write(data->regmap, BMA400_ACC_CONFIG1_REG, odr); in bma400_set_accel_output_data_rate()
773 * Update our cached osr and odr based on the new in bma400_set_power_mode()
[all …]
/linux/drivers/iio/gyro/
H A Dfxas21002c_core.c117 * ODR * 0.lpf_values. So, for ODR = 800Hz with a lpf value = 0.32
126 * ODR * 0.0hpf_values. So, for ODR = 800Hz with a hpf value = 0.018750
447 static int fxas21002c_odr_get(struct fxas21002c_data *data, int *odr) in fxas21002c_odr_get() argument
457 *odr = fxas21002c_odr_hz_from_value(data, odr_bits); in fxas21002c_odr_get()
467 static int fxas21002c_odr_set(struct fxas21002c_data *data, int odr) in fxas21002c_odr_set() argument
471 odr_bits = fxas21002c_odr_value_from_hz(data, odr); in fxas21002c_odr_set()
501 int odr; in fxas21002c_lpf_set() local
509 * From table 33 of the device spec, for ODR = 25Hz and 12.5 value 0.08 in fxas21002c_lpf_set()
510 * is not allowed and for ODR = 12.5 value 0.16 is also not allowed in fxas21002c_lpf_set()
512 ret = fxas21002c_odr_get(data, &odr); in fxas21002c_lpf_set()
[all …]
H A Dst_gyro_core.c77 .odr = {
155 .odr = {
229 .odr = {
303 .odr = {
396 *val = gdata->odr; in st_gyro_read_raw()
493 gdata->odr = gdata->sensor_settings->odr.odr_avl[0].hz; in st_gyro_common_probe()
/linux/Documentation/ABI/testing/
H A Dsysfs-bus-iio-inv_icm426006 requested power mode to use if the ODR support it. If ODR
11 be different for ODR supporting only 1 mode.
/linux/include/linux/iio/common/
H A Dst_sensors.h193 * @odr: Output data rate register and ODR list available.
210 struct st_sensor_odr odr; member
230 * @odr: Output data rate of the sensor [Hz].
239 * @odr_lock: Local lock for preventing concurrent ODR accesses/changes
250 unsigned int odr; member
298 int st_sensors_set_odr(struct iio_dev *indio_dev, unsigned int odr);
/linux/drivers/iio/imu/st_lsm6dsx/
H A Dst_lsm6dsx_shub.c159 u32 odr, timeout; in st_lsm6dsx_shub_wait_complete() local
162 odr = (hw->enable_mask & BIT(ST_LSM6DSX_ID_ACC)) ? sensor->odr : 12500; in st_lsm6dsx_shub_wait_complete()
164 timeout = max_t(u32, 2000000U / odr + 1, 10); in st_lsm6dsx_shub_wait_complete()
403 u32 odr, u16 *val) in st_lsm6dsx_shub_get_odr_val() argument
410 if (settings->odr_table.odr_avl[i].milli_hz == odr) in st_lsm6dsx_shub_get_odr_val()
422 st_lsm6dsx_shub_set_odr(struct st_lsm6dsx_sensor *sensor, u32 odr) in st_lsm6dsx_shub_set_odr() argument
428 err = st_lsm6dsx_shub_get_odr_val(sensor, odr, &val); in st_lsm6dsx_shub_set_odr()
638 int odr; in st_lsm6dsx_shub_write_raw() local
641 odr = st_lsm6dsx_check_odr(ref_sensor, val, &odr_val); in st_lsm6dsx_shub_write_raw()
642 if (odr < 0) { in st_lsm6dsx_shub_write_raw()
[all …]
H A Dst_lsm6dsx_buffer.c15 * value of the decimation factor and ODR set for each FIFO data set.
108 u32 decimator = max_odr / sensor->odr; in st_lsm6dsx_get_decimator_val()
139 *max_odr = max_t(u32, *max_odr, sensor->odr); in st_lsm6dsx_get_max_min_odr()
140 *min_odr = min_t(u32, *min_odr, sensor->odr); in st_lsm6dsx_get_max_min_odr()
146 u8 sip = sensor->odr / min_odr; in st_lsm6dsx_get_sip()
234 err = st_lsm6dsx_check_odr(sensor, sensor->odr, in st_lsm6dsx_set_fifo_odr()
425 * - gyroscope ODR = 208Hz, accelerometer ODR = 104Hz in st_lsm6dsx_read_fifo()
426 * Since the gyroscope ODR is twice the accelerometer one, the in st_lsm6dsx_read_fifo()
710 if (data->val[i].milli_hz == sensor->odr) { in st_lsm6dsx_update_samples_to_discard()
H A Dst_lsm6dsx_core.c19 * - Accelerometer/Gyroscope supported ODR [Hz]: 12.5, 26, 52, 104, 208, 416
29 * - Accelerometer/Gyroscope supported ODR [Hz]: 12.5, 26, 52, 104, 208, 416
46 * - Accelerometer/Gyroscope supported ODR [Hz]: 12.5, 26, 52, 104, 208, 416,
54 * - Accelerometer/Gyroscope supported ODR [Hz]: 7.5, 15, 30, 60, 120, 240,
62 * - Accelerometer supported ODR [Hz]: 10, 50, 119, 238, 476, 952
64 * - Gyroscope supported ODR [Hz]: 15, 60, 119, 238, 476, 952
1634 int st_lsm6dsx_check_odr(struct st_lsm6dsx_sensor *sensor, u32 odr, u8 *val) in st_lsm6dsx_check_odr() argument
1642 * ext devices can run at different odr respect to in st_lsm6dsx_check_odr()
1645 if (odr_table->odr_avl[i].milli_hz >= odr) in st_lsm6dsx_check_odr()
1657 st_lsm6dsx_check_odr_dependency(struct st_lsm6dsx_hw *hw, u32 odr, in st_lsm6dsx_check_odr_dependency() argument
[all …]
/linux/drivers/iio/adc/
H A Dad4130.c806 * the relation between filter mode, ODR and FS.
808 * Notice that the max ODR of each filter mode is not necessarily the
809 * absolute max ODR supported by the chip.
811 * The ODR divider is not explicitly specified, but it can be deduced based
812 * on the ODR range of each filter mode.
814 * For example, for Sinc4+Sinc1, max ODR is 218.18. That means that the
815 * absolute max ODR is divided by 11 to achieve the max ODR of this filter
818 * The formulas for converting between ODR and FS for a specific filter
821 * Notice that FS = 1 actually means max ODR, and that ODR decreases by
822 * (maximum ODR / maximum FS) for each increment of FS.
[all …]
H A Dad7780.c66 unsigned int odr; member
130 *val = st->odr; in ad7780_read_raw()
174 st->odr = ad778x_odr_avail[val]; in ad7780_write_raw()
196 st->odr = ad778x_odr_avail[raw_sample & AD7780_FILTER]; in ad7780_postprocess_sample()
/linux/drivers/iio/magnetometer/
H A Dst_magn_core.c152 .odr = {
231 .odr = {
311 .odr = {
384 .odr = {
433 .odr = {
532 *val = mdata->odr; in st_magn_read_raw()
629 mdata->odr = mdata->sensor_settings->odr.odr_avl[0].hz; in st_magn_common_probe()
H A Dbmc150_magn.c173 u8 odr; member
325 int rep_z, int odr) in bmc150_magn_set_max_odr() argument
343 if (odr <= 0) { in bmc150_magn_set_max_odr()
344 ret = bmc150_magn_get_odr(data, &odr); in bmc150_magn_set_max_odr()
350 if (odr > max_odr) { in bmc150_magn_set_max_odr()
353 odr); in bmc150_magn_set_max_odr()
729 ret = bmc150_magn_set_odr(data, preset.odr); in bmc150_magn_init()
731 dev_err(data->dev, "Failed to set ODR to %d\n", in bmc150_magn_init()
732 preset.odr); in bmc150_magn_init()
753 preset.odr); in bmc150_magn_init()
/linux/drivers/iio/pressure/
H A Dst_pressure_core.c238 .odr = {
311 .odr = {
363 .odr = {
432 .odr = {
499 .odr = {
568 .odr = {
687 *val = press_data->odr; in st_press_read_raw()
769 press_data->odr = press_data->sensor_settings->odr.odr_avl[0].hz; in st_press_common_probe()
/linux/drivers/char/ipmi/
H A Dkcs_bmc.h20 * @odr: Output Data Register
25 u32 odr; member
/linux/drivers/iio/imu/bmi270/
H A Dbmi270_core.c120 int odr; member
294 static int bmi270_set_odr(struct bmi270_data *data, int chan_type, int odr, in bmi270_set_odr() argument
317 if (bmi270_odr_item.tbl[i].odr != odr || in bmi270_set_odr()
328 static int bmi270_get_odr(struct bmi270_data *data, int chan_type, int *odr, in bmi270_get_odr() argument
359 *odr = bmi270_odr_item.tbl[i].odr; in bmi270_get_odr()
/linux/drivers/scsi/aacraid/
H A Drx.c50 rx_writel(dev, MUnit.ODR,DoorBellPrintfReady); in aac_rx_intr_producer()
54 rx_writel(dev, MUnit.ODR, DoorBellAdapterNormCmdReady); in aac_rx_intr_producer()
58 rx_writel(dev, MUnit.ODR,DoorBellAdapterNormRespReady); in aac_rx_intr_producer()
62 rx_writel(dev, MUnit.ODR, DoorBellAdapterNormCmdNotFull); in aac_rx_intr_producer()
65 rx_writel(dev, MUnit.ODR, DoorBellAdapterNormCmdNotFull); in aac_rx_intr_producer()
66 rx_writel(dev, MUnit.ODR, DoorBellAdapterNormRespNotFull); in aac_rx_intr_producer()
101 MUnit.ODR, in aac_rx_intr_message()
640 rx_writel(dev, MUnit.ODR, 0xffffffff); in _aac_rx_init()
/linux/arch/powerpc/platforms/44x/
H A Dgpio.c33 __be32 odr; member
103 clrbits32(&regs->odr, GPIO_MASK(gpio)); in ppc4xx_gpio_dir_in()
136 clrbits32(&regs->odr, GPIO_MASK(gpio)); in ppc4xx_gpio_dir_out()
/linux/drivers/iio/imu/bmi160/
H A Dbmi160_core.c197 int odr; member
388 int odr, int uodr) in bmi160_set_odr() argument
393 if (bmi160_odr_table[t].tbl[i].odr == odr && in bmi160_set_odr()
407 int *odr, int *uodr) in bmi160_get_odr() argument
424 *odr = bmi160_odr_table[t].tbl[i].odr; in bmi160_get_odr()

123