Lines Matching refs:bw_bits
124 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()
204 if (bmg160_samp_freq_table[i].bw_bits == bw_bits) in bmg160_get_filter()
226 bmg160_samp_freq_table[i].bw_bits); in bmg160_set_filter()
450 unsigned int bw_bits; in bmg160_get_bw() local
453 ret = regmap_read(data->regmap, BMG160_REG_PMU_BW, &bw_bits); in bmg160_get_bw()
460 bw_bits &= ~BMG160_REG_PMU_BW_RES; in bmg160_get_bw()
463 if (bmg160_samp_freq_table[i].bw_bits == bw_bits) { in bmg160_get_bw()