Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/iio/gyro/
Dbmg160_core.c124 int bw_bits; member
162 return bmg160_samp_freq_table[i].bw_bits; in bmg160_convert_freq_to_bit()
172 int bw_bits; in bmg160_set_bw() local
174 bw_bits = bmg160_convert_freq_to_bit(val); in bmg160_set_bw()
175 if (bw_bits < 0) in bmg160_set_bw()
176 return bw_bits; in bmg160_set_bw()
178 ret = regmap_write(data->regmap, BMG160_REG_PMU_BW, bw_bits); in bmg160_set_bw()
192 unsigned int bw_bits; in bmg160_get_filter() local
194 ret = regmap_read(data->regmap, BMG160_REG_PMU_BW, &bw_bits); in bmg160_get_filter()
201 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-6.1.9/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