Lines Matching refs:als_settings

163 	struct tsl2591_als_settings als_settings;  member
389 struct tsl2591_als_settings settings = chip->als_settings; in tsl2591_wait_adc_complete()
436 struct tsl2591_als_settings *settings = &chip->als_settings; in tsl2591_read_channel_data()
504 struct tsl2591_als_settings als_settings = chip->als_settings; in tsl2591_set_als_gain_int_time() local
510 als_settings.als_int_time | als_settings.als_gain); in tsl2591_set_als_gain_int_time()
520 struct tsl2591_als_settings als_settings = chip->als_settings; in tsl2591_set_als_lower_threshold() local
527 chip->als_settings.als_lower_thresh = als_lower_threshold; in tsl2591_set_als_lower_threshold()
534 if (als_lower_threshold >= als_settings.als_upper_thresh) { in tsl2591_set_als_lower_threshold()
564 struct tsl2591_als_settings als_settings = chip->als_settings; in tsl2591_set_als_upper_threshold() local
574 chip->als_settings.als_upper_thresh = als_upper_threshold; in tsl2591_set_als_upper_threshold()
581 if (als_upper_threshold < als_settings.als_lower_thresh) { in tsl2591_set_als_upper_threshold()
620 chip->als_settings.als_persist = als_persist; in tsl2591_set_als_persist_cycle()
648 tsl2591_als_period_list[chip->als_settings.als_int_time]); in tsl2591_in_illuminance_period_available_show()
755 *val = TSL2591_FVAL_TO_SEC(chip->als_settings.als_int_time); in tsl2591_read_raw()
764 *val = tsl2591_gain_to_multiplier(chip->als_settings.als_gain); in tsl2591_read_raw()
803 chip->als_settings.als_int_time = int_time; in tsl2591_write_raw()
815 chip->als_settings.als_gain = gain; in tsl2591_write_raw()
869 *val = chip->als_settings.als_upper_thresh; in tsl2591_read_event_value()
872 *val = chip->als_settings.als_lower_thresh; in tsl2591_read_event_value()
887 int_time = TSL2591_FVAL_TO_MSEC(chip->als_settings.als_int_time); in tsl2591_read_event_value()
945 int_time = TSL2591_FVAL_TO_MSEC(chip->als_settings.als_int_time); in tsl2591_write_event_value()
1080 chip->als_settings.als_int_time = TSL2591_DEFAULT_ALS_INT_TIME; in tsl2591_load_defaults()
1081 chip->als_settings.als_gain = TSL2591_DEFAULT_ALS_GAIN; in tsl2591_load_defaults()
1082 chip->als_settings.als_lower_thresh = TSL2591_DEFAULT_ALS_LOWER_THRESH; in tsl2591_load_defaults()
1083 chip->als_settings.als_upper_thresh = TSL2591_DEFAULT_ALS_UPPER_THRESH; in tsl2591_load_defaults()