Home
last modified time | relevance | path

Searched refs:odr_idx (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/drivers/iio/accel/
Dadxl355_core.c556 int odr_idx, hpf_idx, calibbias; in adxl355_write_raw() local
560 odr_idx = adxl355_find_match(adxl355_odr_table, in adxl355_write_raw()
563 if (odr_idx < 0) in adxl355_write_raw()
564 return odr_idx; in adxl355_write_raw()
566 return adxl355_set_odr(data, odr_idx); in adxl355_write_raw()
Dadxl380.c449 unsigned int trig_cfg, odr_idx; in adxl380_get_odr() local
455 odr_idx = (FIELD_GET(ADXL380_TRIG_CFG_SINC_RATE_MSK, trig_cfg) << 1) | in adxl380_get_odr()
458 *odr = st->chip_info->samp_freq_tbl[odr_idx]; in adxl380_get_odr()
/linux-6.12.1/drivers/misc/lis3lv02d/
Dlis3lv02d.c224 int odr_idx = lis3lv02d_get_odr_index(lis3); in lis3lv02d_get_pwron_wait() local
225 int div = lis3->odrs[odr_idx]; in lis3lv02d_get_pwron_wait()
228 if (odr_idx == 0) { in lis3lv02d_get_pwron_wait()
233 dev_err(&lis3->pdev->dev, "Error unknown odrs-index: %d\n", odr_idx); in lis3lv02d_get_pwron_wait()
826 int odr_idx; in lis3lv02d_rate_show() local
830 odr_idx = lis3lv02d_get_odr_index(lis3); in lis3lv02d_rate_show()
831 return sprintf(buf, "%d\n", lis3->odrs[odr_idx]); in lis3lv02d_rate_show()