Lines Matching refs:persistence
1104 int ret = -EINVAL, count, persistence; in tsl2772_write_event_value() local
1144 persistence = ((val * 1000000) + val2) / in tsl2772_write_event_value()
1149 if (persistence > 3) in tsl2772_write_event_value()
1150 persistence = (persistence / 5) + 3; in tsl2772_write_event_value()
1152 chip->settings.als_persistence = persistence; in tsl2772_write_event_value()
1154 chip->settings.prox_persistence = persistence; in tsl2772_write_event_value()
1177 int filter_delay, persistence; in tsl2772_read_event_value() local
1209 persistence = chip->settings.als_persistence; in tsl2772_read_event_value()
1212 if (persistence > 3) in tsl2772_read_event_value()
1213 persistence = (persistence - 3) * 5; in tsl2772_read_event_value()
1216 persistence = chip->settings.prox_persistence; in tsl2772_read_event_value()
1219 filter_delay = persistence * (256 - time) * in tsl2772_read_event_value()