Home
last modified time | relevance | path

Searched refs:bw_bits (Results 1 – 4 of 4) sorted by relevance

/Linux-v6.6/drivers/iio/gyro/
Dbmg160_core.c123 int bw_bits; member
161 return bmg160_samp_freq_table[i].bw_bits; in bmg160_convert_freq_to_bit()
171 int bw_bits; in bmg160_set_bw() local
173 bw_bits = bmg160_convert_freq_to_bit(val); in bmg160_set_bw()
174 if (bw_bits < 0) in bmg160_set_bw()
175 return bw_bits; in bmg160_set_bw()
177 ret = regmap_write(data->regmap, BMG160_REG_PMU_BW, bw_bits); in bmg160_set_bw()
191 unsigned int bw_bits; in bmg160_get_filter() local
193 ret = regmap_read(data->regmap, BMG160_REG_PMU_BW, &bw_bits); in bmg160_get_filter()
200 bw_bits &= ~BMG160_REG_PMU_BW_RES; in bmg160_get_filter()
[all …]
Dfxas21002c_core.c480 unsigned int bw_bits; in fxas21002c_lpf_get() local
484 ret = regmap_field_read(data->regmap_fields[F_BW], &bw_bits); in fxas21002c_lpf_get()
488 *val2 = fxas21002c_lpf_bw_from_value(data, bw_bits) * 10000; in fxas21002c_lpf_get()
500 int bw_bits; in fxas21002c_lpf_set() local
504 bw_bits = fxas21002c_lpf_value_from_bw(data, bw); in fxas21002c_lpf_set()
505 if (bw_bits < 0) in fxas21002c_lpf_set()
506 return bw_bits; in fxas21002c_lpf_set()
516 if ((odr == 25 && bw_bits > 0x01) || (odr == 12 && bw_bits > 0)) in fxas21002c_lpf_set()
519 return fxas21002c_write(data, F_BW, bw_bits); in fxas21002c_lpf_set()
/Linux-v6.6/drivers/iio/accel/
Dbmc150-accel-core.c163 u8 bw_bits; member
174 int bw_bits; member
258 bmc150_accel_samp_freq_table[i].bw_bits); in bmc150_accel_set_bw()
262 data->bw_bits = in bmc150_accel_set_bw()
263 bmc150_accel_samp_freq_table[i].bw_bits; in bmc150_accel_set_bw()
310 if (bmc150_accel_samp_freq_table[i].bw_bits == data->bw_bits) { in bmc150_accel_get_bw()
326 if (bmc150_accel_sample_upd_time[i].bw_bits == data->bw_bits) in bmc150_accel_get_startup_times()
Dbmc150-accel.h74 u8 bw_bits; member