Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/iio/gyro/
Dbmg160_core.c118 int bw_bits; member
156 return bmg160_samp_freq_table[i].bw_bits; in bmg160_convert_freq_to_bit()
166 int bw_bits; in bmg160_set_bw() local
168 bw_bits = bmg160_convert_freq_to_bit(val); in bmg160_set_bw()
169 if (bw_bits < 0) in bmg160_set_bw()
170 return bw_bits; in bmg160_set_bw()
172 ret = regmap_write(data->regmap, BMG160_REG_PMU_BW, bw_bits); in bmg160_set_bw()
186 unsigned int bw_bits; in bmg160_get_filter() local
188 ret = regmap_read(data->regmap, BMG160_REG_PMU_BW, &bw_bits); in bmg160_get_filter()
195 bw_bits &= ~BMG160_REG_PMU_BW_RES; in bmg160_get_filter()
[all …]
Dfxas21002c_core.c485 unsigned int bw_bits; in fxas21002c_lpf_get() local
489 ret = regmap_field_read(data->regmap_fields[F_BW], &bw_bits); in fxas21002c_lpf_get()
493 *val2 = fxas21002c_lpf_bw_from_value(data, bw_bits) * 10000; in fxas21002c_lpf_get()
505 int bw_bits; in fxas21002c_lpf_set() local
509 bw_bits = fxas21002c_lpf_value_from_bw(data, bw); in fxas21002c_lpf_set()
510 if (bw_bits < 0) in fxas21002c_lpf_set()
511 return bw_bits; in fxas21002c_lpf_set()
521 if ((odr == 25 && bw_bits > 0x01) || (odr == 12 && bw_bits > 0)) in fxas21002c_lpf_set()
524 return fxas21002c_write(data, F_BW, bw_bits); in fxas21002c_lpf_set()
/Linux-v5.10/drivers/iio/accel/
Dbmc150-accel-core.c200 u8 bw_bits; member
213 u8 bw_bits; member
224 int bw_bits; member
308 bmc150_accel_samp_freq_table[i].bw_bits); in bmc150_accel_set_bw()
312 data->bw_bits = in bmc150_accel_set_bw()
313 bmc150_accel_samp_freq_table[i].bw_bits; in bmc150_accel_set_bw()
360 if (bmc150_accel_samp_freq_table[i].bw_bits == data->bw_bits) { in bmc150_accel_get_bw()
376 if (bmc150_accel_sample_upd_time[i].bw_bits == data->bw_bits) in bmc150_accel_get_startup_times()