Lines Matching refs:persistence
1108 int ret = -EINVAL, count, persistence; in tsl2772_write_event_value() local
1148 persistence = ((val * 1000000) + val2) / in tsl2772_write_event_value()
1153 if (persistence > 3) in tsl2772_write_event_value()
1154 persistence = (persistence / 5) + 3; in tsl2772_write_event_value()
1156 chip->settings.als_persistence = persistence; in tsl2772_write_event_value()
1158 chip->settings.prox_persistence = persistence; in tsl2772_write_event_value()
1181 int filter_delay, persistence; in tsl2772_read_event_value() local
1213 persistence = chip->settings.als_persistence; in tsl2772_read_event_value()
1216 if (persistence > 3) in tsl2772_read_event_value()
1217 persistence = (persistence - 3) * 5; in tsl2772_read_event_value()
1220 persistence = chip->settings.prox_persistence; in tsl2772_read_event_value()
1223 filter_delay = persistence * (256 - time) * in tsl2772_read_event_value()