Home
last modified time | relevance | path

Searched refs:als_gain (Results 1 – 7 of 7) sorted by relevance

/linux-6.12.1/drivers/iio/light/
Dtsl2583.c86 int als_gain; member
137 chip->als_settings.als_gain = 0; in tsl2583_defaults()
250 (gainadj[chip->als_settings.als_gain].ch0 >> 1)) in tsl2583_get_lux()
251 / gainadj[chip->als_settings.als_gain].ch0; in tsl2583_get_lux()
253 (gainadj[chip->als_settings.als_gain].ch1 >> 1)) in tsl2583_get_lux()
254 / gainadj[chip->als_settings.als_gain].ch1; in tsl2583_get_lux()
403 chip->als_settings.als_gain); in tsl2583_set_als_gain()
407 chip->als_settings.als_gain); in tsl2583_set_als_gain()
712 *val = gainadj[chip->als_settings.als_gain].mean; in tsl2583_read_raw()
774 chip->als_settings.als_gain = i; in tsl2583_write_raw()
Dtsl2591.c159 u8 als_gain; member
200 static int tsl2591_gain_to_multiplier(const u8 als_gain) in tsl2591_gain_to_multiplier() argument
202 switch (als_gain) { in tsl2591_gain_to_multiplier()
336 static int tsl2591_compatible_gain(struct tsl2591_chip *chip, const u8 als_gain) in tsl2591_compatible_gain() argument
338 switch (als_gain) { in tsl2591_compatible_gain()
470 gain_multi = tsl2591_gain_to_multiplier(settings->als_gain); in tsl2591_read_channel_data()
510 als_settings.als_int_time | als_settings.als_gain); in tsl2591_set_als_gain_int_time()
764 *val = tsl2591_gain_to_multiplier(chip->als_settings.als_gain); in tsl2591_read_raw()
815 chip->als_settings.als_gain = gain; in tsl2591_write_raw()
1081 chip->als_settings.als_gain = TSL2591_DEFAULT_ALS_GAIN; in tsl2591_load_defaults()
Dltr501.c142 const struct ltr501_gain *als_gain; member
716 *val = data->chip_info->als_gain[i].scale; in ltr501_read_raw()
717 *val2 = data->chip_info->als_gain[i].uscale; in ltr501_read_raw()
776 i = ltr501_get_gain_index(info->als_gain, in ltr501_write_raw()
1140 if (info->als_gain[i].scale == LTR501_RESERVED_GAIN) in ltr501_show_intensity_scale_avail()
1143 info->als_gain[i].scale, in ltr501_show_intensity_scale_avail()
1144 info->als_gain[i].uscale); in ltr501_show_intensity_scale_avail()
1218 .als_gain = ltr501_als_gain_tbl,
1232 .als_gain = ltr559_als_gain_tbl,
1246 .als_gain = ltr501_als_gain_tbl,
[all …]
Dtsl2772.c246 .als_gain = 0,
749 (chip->settings.als_gain & 0xFF) | in tsl2772_chip_on()
759 tsl2772_als_gain[chip->settings.als_gain]; in tsl2772_chip_on()
1267 *val = tsl2772_als_gain[chip->settings.als_gain]; in tsl2772_read_raw()
1297 chip->settings.als_gain = 0; in tsl2772_write_raw()
1300 chip->settings.als_gain = 1; in tsl2772_write_raw()
1303 chip->settings.als_gain = 2; in tsl2772_write_raw()
1306 chip->settings.als_gain = 3; in tsl2772_write_raw()
Dapds9960.c141 int als_gain; member
471 data->als_gain = idx; in apds9960_set_als_gain()
569 *val = apds9960_als_gain_map[data->als_gain]; in apds9960_read_raw()
Dstk3310.c555 STK3310_REGFIELD(als_gain); in stk3310_regmap_init()
/linux-6.12.1/include/linux/platform_data/
Dtsl2772.h70 int als_gain; member