Lines Matching refs:avg
174 const struct hts221_avg *avg = &hts221_avg_list[type]; in hts221_update_avg() local
178 if (avg->avg_avl[i] == val) in hts221_update_avg()
184 data = ((i << __ffs(avg->mask)) & avg->mask); in hts221_update_avg()
185 err = regmap_update_bits(hw->regmap, avg->addr, in hts221_update_avg()
186 avg->mask, data); in hts221_update_avg()
215 const struct hts221_avg *avg = &hts221_avg_list[HTS221_SENSOR_H]; in hts221_sysfs_rh_oversampling_avail() local
219 for (i = 0; i < ARRAY_SIZE(avg->avg_avl); i++) in hts221_sysfs_rh_oversampling_avail()
221 avg->avg_avl[i]); in hts221_sysfs_rh_oversampling_avail()
232 const struct hts221_avg *avg = &hts221_avg_list[HTS221_SENSOR_T]; in hts221_sysfs_temp_oversampling_avail() local
236 for (i = 0; i < ARRAY_SIZE(avg->avg_avl); i++) in hts221_sysfs_temp_oversampling_avail()
238 avg->avg_avl[i]); in hts221_sysfs_temp_oversampling_avail()
448 const struct hts221_avg *avg; in hts221_read_raw() local
452 avg = &hts221_avg_list[HTS221_SENSOR_H]; in hts221_read_raw()
454 *val = avg->avg_avl[idx]; in hts221_read_raw()
458 avg = &hts221_avg_list[HTS221_SENSOR_T]; in hts221_read_raw()
460 *val = avg->avg_avl[idx]; in hts221_read_raw()