Lines Matching refs:als_settings

111 	struct tsl2583_settings als_settings;  member
140 chip->als_settings.als_time = 100; in tsl2583_defaults()
146 chip->als_settings.als_gain = 0; in tsl2583_defaults()
149 chip->als_settings.als_gain_trim = 1000; in tsl2583_defaults()
152 chip->als_settings.als_cal_target = 130; in tsl2583_defaults()
155 memcpy(chip->als_settings.als_device_lux, tsl2583_default_lux, in tsl2583_defaults()
249 for (p = (struct tsl2583_lux *)chip->als_settings.als_device_lux; in tsl2583_get_lux()
259 (gainadj[chip->als_settings.als_gain].ch0 >> 1)) in tsl2583_get_lux()
260 / gainadj[chip->als_settings.als_gain].ch0; in tsl2583_get_lux()
262 (gainadj[chip->als_settings.als_gain].ch1 >> 1)) in tsl2583_get_lux()
263 / gainadj[chip->als_settings.als_gain].ch1; in tsl2583_get_lux()
294 lux64 = lux64 * chip->als_settings.als_gain_trim; in tsl2583_get_lux()
361 gain_trim_val = (unsigned int)(((chip->als_settings.als_cal_target) in tsl2583_als_calibrate()
362 * chip->als_settings.als_gain_trim) / lux_val); in tsl2583_als_calibrate()
370 chip->als_settings.als_gain_trim = (int)gain_trim_val; in tsl2583_als_calibrate()
381 als_count = (chip->als_settings.als_time * 100 + 135) / 270; in tsl2583_set_als_time()
412 chip->als_settings.als_gain); in tsl2583_set_als_gain()
416 chip->als_settings.als_gain); in tsl2583_set_als_gain()
487 ret = sprintf(buf, "%d\n", chip->als_settings.als_cal_target); in in_illuminance_input_target_show()
505 chip->als_settings.als_cal_target = value; in in_illuminance_input_target_store()
544 for (i = 0; i < ARRAY_SIZE(chip->als_settings.als_device_lux); i++) { in in_illuminance_lux_table_show()
546 chip->als_settings.als_device_lux[i].ratio, in in_illuminance_lux_table_show()
547 chip->als_settings.als_device_lux[i].ch0, in in_illuminance_lux_table_show()
548 chip->als_settings.als_device_lux[i].ch1); in in_illuminance_lux_table_show()
549 if (chip->als_settings.als_device_lux[i].ratio == 0) { in in_illuminance_lux_table_show()
598 memcpy(chip->als_settings.als_device_lux, &value[1], in in_illuminance_lux_table_store()
717 *val = chip->als_settings.als_gain_trim; in tsl2583_read_raw()
723 *val = gainadj[chip->als_settings.als_gain].mean; in tsl2583_read_raw()
730 *val2 = chip->als_settings.als_time; in tsl2583_read_raw()
773 chip->als_settings.als_gain_trim = val; in tsl2583_write_raw()
783 chip->als_settings.als_gain = i; in tsl2583_write_raw()
793 chip->als_settings.als_time = val2; in tsl2583_write_raw()