Searched refs:als_count (Results 1 - 4 of 4) sorted by relevance
/kernel/linux/linux-5.10/drivers/iio/light/ |
H A D | tsl2583.c | 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() 373 if (!als_count) in tsl2583_set_als_time() 374 als_count = 1; /* ensure at least one cycle */ in tsl2583_set_als_time() 377 als_time = (als_count * 27 + 5) / 10; in tsl2583_set_als_time() 379 val = 256 - als_count; in tsl2583_set_als_time() 390 chip->als_saturation = als_count * 922; /* 90% of full scale */ in tsl2583_set_als_time()
|
H A D | tsl2772.c | 712 int ret, i, als_count, als_time_us; in tsl2772_chip_on() local 760 als_count = 256 - chip->settings.als_time; in tsl2772_chip_on() 761 als_time_us = als_count * tsl2772_int_time_avail[chip->id][3]; in tsl2772_chip_on() 762 chip->als_saturation = als_count * 768; /* 75% of full scale */ in tsl2772_chip_on()
|
/kernel/linux/linux-6.6/drivers/iio/light/ |
H A D | tsl2583.c | 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() 373 if (!als_count) in tsl2583_set_als_time() 374 als_count = 1; /* ensure at least one cycle */ in tsl2583_set_als_time() 377 als_time = DIV_ROUND_CLOSEST(als_count * 27, 10); in tsl2583_set_als_time() 379 val = 256 - als_count; in tsl2583_set_als_time() 390 chip->als_saturation = als_count * 922; /* 90% of full scale */ in tsl2583_set_als_time()
|
H A D | tsl2772.c | 707 int ret, i, als_count, als_time_us; in tsl2772_chip_on() local 755 als_count = 256 - chip->settings.als_time; in tsl2772_chip_on() 756 als_time_us = als_count * tsl2772_int_time_avail[chip->id][3]; in tsl2772_chip_on() 757 chip->als_saturation = als_count * 768; /* 75% of full scale */ in tsl2772_chip_on()
|
Completed in 7 milliseconds