Lines Matching refs:als_persist
158 u8 als_persist; member
232 static int tsl2591_persist_cycle_to_lit(const u8 als_persist) in tsl2591_persist_cycle_to_lit() argument
234 switch (als_persist) { in tsl2591_persist_cycle_to_lit()
270 static int tsl2591_persist_lit_to_cycle(const u8 als_persist) in tsl2591_persist_lit_to_cycle() argument
272 switch (als_persist) { in tsl2591_persist_lit_to_cycle()
350 const u32 als_persist) in tsl2591_compatible_als_persist_cycle() argument
352 switch (als_persist) { in tsl2591_compatible_als_persist_cycle()
609 u8 als_persist) in tsl2591_set_als_persist_cycle() argument
616 als_persist); in tsl2591_set_als_persist_cycle()
620 chip->als_settings.als_persist = als_persist; in tsl2591_set_als_persist_cycle()
860 int als_persist, int_time, period; in tsl2591_read_event_value() local
886 als_persist = tsl2591_persist_cycle_to_lit(ret); in tsl2591_read_event_value()
888 period = als_persist * (int_time * MSEC_PER_SEC); in tsl2591_read_event_value()
913 int period, int_time, als_persist; in tsl2591_write_event_value() local
950 als_persist = tsl2591_persist_lit_to_cycle(period); in tsl2591_write_event_value()
951 if (als_persist < 0) { in tsl2591_write_event_value()
956 ret = tsl2591_compatible_als_persist_cycle(chip, als_persist); in tsl2591_write_event_value()
960 ret = tsl2591_set_als_persist_cycle(chip, als_persist); in tsl2591_write_event_value()