Lines Matching refs:avg
173 const struct hts221_avg *avg = &hts221_avg_list[type]; in hts221_update_avg() local
177 if (avg->avg_avl[i] == val) in hts221_update_avg()
183 data = ((i << __ffs(avg->mask)) & avg->mask); in hts221_update_avg()
184 err = regmap_update_bits(hw->regmap, avg->addr, in hts221_update_avg()
185 avg->mask, data); in hts221_update_avg()
214 const struct hts221_avg *avg = &hts221_avg_list[HTS221_SENSOR_H]; in hts221_sysfs_rh_oversampling_avail() local
218 for (i = 0; i < ARRAY_SIZE(avg->avg_avl); i++) in hts221_sysfs_rh_oversampling_avail()
220 avg->avg_avl[i]); in hts221_sysfs_rh_oversampling_avail()
231 const struct hts221_avg *avg = &hts221_avg_list[HTS221_SENSOR_T]; in hts221_sysfs_temp_oversampling_avail() local
235 for (i = 0; i < ARRAY_SIZE(avg->avg_avl); i++) in hts221_sysfs_temp_oversampling_avail()
237 avg->avg_avl[i]); in hts221_sysfs_temp_oversampling_avail()
447 const struct hts221_avg *avg; in hts221_read_raw() local
451 avg = &hts221_avg_list[HTS221_SENSOR_H]; in hts221_read_raw()
453 *val = avg->avg_avl[idx]; in hts221_read_raw()
457 avg = &hts221_avg_list[HTS221_SENSOR_T]; in hts221_read_raw()
459 *val = avg->avg_avl[idx]; in hts221_read_raw()