Home
last modified time | relevance | path

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

/linux/drivers/iio/gyro/
H A Dadxrs290.c205 const unsigned int hpf_idx) in adxrs290_set_filter_freq() argument
210 val = ADXRS290_HPF(hpf_idx) | ADXRS290_LPF(lpf_idx); in adxrs290_set_filter_freq()
367 int ret, lpf_idx, hpf_idx; in adxrs290_write_raw() local
386 hpf_idx = st->hpf_3db_freq_idx; in adxrs290_write_raw()
387 ret = adxrs290_set_filter_freq(indio_dev, lpf_idx, hpf_idx); in adxrs290_write_raw()
391 hpf_idx = adxrs290_find_match(adxrs290_hpf_3db_freq_hz_table, in adxrs290_write_raw()
394 if (hpf_idx < 0) { in adxrs290_write_raw()
400 st->hpf_3db_freq_idx = hpf_idx; in adxrs290_write_raw()
403 ret = adxrs290_set_filter_freq(indio_dev, lpf_idx, hpf_idx); in adxrs290_write_raw()
/linux/drivers/iio/accel/
H A Dadxl355_core.c556 int odr_idx, hpf_idx, calibbias; in adxl355_write_raw() local
568 hpf_idx = adxl355_find_match(data->adxl355_hpf_3db_table, in adxl355_write_raw()
571 if (hpf_idx < 0) in adxl355_write_raw()
572 return hpf_idx; in adxl355_write_raw()
574 return adxl355_set_hpf_3db(data, hpf_idx); in adxl355_write_raw()
H A Dadxl380.c617 unsigned int trig_cfg, hpf_idx; in adxl380_get_hpf() local
625 hpf_idx = FIELD_GET(ADXL380_FILTER_HPF_CORNER_MSK, trig_cfg); in adxl380_get_hpf()
627 *hpf_int = st->hpf_tbl[hpf_idx][0]; in adxl380_get_hpf()
628 *hpf_frac = st->hpf_tbl[hpf_idx][1]; in adxl380_get_hpf()