Home
last modified time | relevance | path

Searched refs:als_time (Results 1 - 6 of 6) sorted by relevance

/kernel/linux/linux-5.10/drivers/iio/light/
H A Dtsl2583.c85 int als_time; member
131 chip->als_settings.als_time = 100; in tsl2583_defaults()
368 int als_count, als_time, ret; in tsl2583_set_als_time() local
372 als_count = (chip->als_settings.als_time * 100 + 135) / 270; in tsl2583_set_als_time()
377 als_time = (als_count * 27 + 5) / 10; in tsl2583_set_als_time()
391 chip->als_time_scale = (als_time + 25) / 50; in tsl2583_set_als_time()
721 *val2 = chip->als_settings.als_time; in tsl2583_read_raw()
784 chip->als_settings.als_time = val2; in tsl2583_write_raw()
H A Dtsl2772.c243 .als_time = 255, /* 2.72 / 2.73 ms */
716 chip->tsl2772_config[TSL2772_ALS_TIME] = chip->settings.als_time; in tsl2772_chip_on()
760 als_count = 256 - chip->settings.als_time; in tsl2772_chip_on()
1144 time = chip->settings.als_time; in tsl2772_write_event_value()
1213 time = chip->settings.als_time; in tsl2772_read_event_value()
1281 *val2 = (256 - chip->settings.als_time) * in tsl2772_read_raw()
1347 chip->settings.als_time = 256 - in tsl2772_write_raw()
/kernel/linux/linux-6.6/drivers/iio/light/
H A Dtsl2583.c85 int als_time; member
131 chip->als_settings.als_time = 100; in tsl2583_defaults()
368 int als_count, als_time, ret; in tsl2583_set_als_time() local
372 als_count = DIV_ROUND_CLOSEST(chip->als_settings.als_time * 100, 270); in tsl2583_set_als_time()
377 als_time = DIV_ROUND_CLOSEST(als_count * 27, 10); in tsl2583_set_als_time()
391 chip->als_time_scale = DIV_ROUND_CLOSEST(als_time, 50); in tsl2583_set_als_time()
719 *val2 = chip->als_settings.als_time; in tsl2583_read_raw()
784 chip->als_settings.als_time = val2; in tsl2583_write_raw()
H A Dtsl2772.c245 .als_time = 255, /* 2.72 / 2.73 ms */
711 chip->tsl2772_config[TSL2772_ALS_TIME] = chip->settings.als_time; in tsl2772_chip_on()
755 als_count = 256 - chip->settings.als_time; in tsl2772_chip_on()
1139 time = chip->settings.als_time; in tsl2772_write_event_value()
1208 time = chip->settings.als_time; in tsl2772_read_event_value()
1276 *val2 = (256 - chip->settings.als_time) * in tsl2772_read_raw()
1342 chip->settings.als_time = 256 - in tsl2772_write_raw()
/kernel/linux/linux-5.10/include/linux/platform_data/
H A Dtsl2772.h38 * @als_time: Integration time of the ALS channel ADCs in 2.73 ms
40 * (256 - als_time) * 2.73.
69 int als_time; member
/kernel/linux/linux-6.6/include/linux/platform_data/
H A Dtsl2772.h38 * @als_time: Integration time of the ALS channel ADCs in 2.73 ms
40 * (256 - als_time) * 2.73.
69 int als_time; member

Completed in 13 milliseconds