Home
last modified time | relevance | path

Searched refs:lux (Results 1 – 23 of 23) sorted by relevance

/linux-4.1.27/Documentation/misc-devices/
Disl2900317 ADC, I2C user programmable lux range select for optimized counts/lux, and
22 The driver allows to set the lux range, the bit resolution, the operational
23 mode (see below) and the power state of device and can read the current lux
40 0: 0 lux to 1000 lux (default)
41 1: 0 lux to 4000 lux
42 2: 0 lux to 16,000 lux
43 3: 0 lux to 64,000 lux
60 lux (read only):
Dapds990x.txt26 only lux values. Lux value is calculated using information from the both
27 channels. HW threshold level is calculated from the given lux value to match
56 RO - measured lux value
Dbh1770glc.txt21 ALS produces 16 bit lux values. The chip contains interrupt logic to produce
42 so that measurement produces about the expected lux value.
56 RO - measured lux value
/linux-4.1.27/drivers/iio/light/
Dcm3232.c208 u64 lux; in cm3232_get_lux() local
215 lux = (__force u64)als_info->mlux_per_bit; in cm3232_get_lux()
216 lux *= als_info->mlux_per_bit_base_it; in cm3232_get_lux()
217 lux = div_u64(lux, als_it); in cm3232_get_lux()
226 lux *= chip->regs_als; in cm3232_get_lux()
227 lux *= als_info->calibscale; in cm3232_get_lux()
228 lux = div_u64(lux, CM3232_CALIBSCALE_RESOLUTION); in cm3232_get_lux()
229 lux = div_u64(lux, CM3232_MLUX_PER_LUX); in cm3232_get_lux()
231 if (lux > 0xFFFF) in cm3232_get_lux()
232 lux = 0xFFFF; in cm3232_get_lux()
[all …]
Dcm32181.c181 unsigned long lux; in cm32181_get_lux() local
187 lux = CM32181_MLUX_PER_BIT; in cm32181_get_lux()
188 lux *= CM32181_MLUX_PER_BIT_BASE_IT; in cm32181_get_lux()
189 lux /= als_it; in cm32181_get_lux()
195 lux *= ret; in cm32181_get_lux()
196 lux *= cm32181->calibscale; in cm32181_get_lux()
197 lux /= CM32181_CALIBSCALE_RESOLUTION; in cm32181_get_lux()
198 lux /= MLUX_PER_LUX; in cm32181_get_lux()
200 if (lux > 0xFFFF) in cm32181_get_lux()
201 lux = 0xFFFF; in cm32181_get_lux()
[all …]
Dapds9300.c70 unsigned long lux, tmp; in apds9300_calculate_lux() local
78 lux = 3150 * ch0 - (unsigned long)DIV_ROUND_UP_ULL(ch0 in apds9300_calculate_lux()
81 lux = 2290 * ch0 - 2910 * ch1; in apds9300_calculate_lux()
83 lux = 1570 * ch0 - 1800 * ch1; in apds9300_calculate_lux()
85 lux = 338 * ch0 - 260 * ch1; in apds9300_calculate_lux()
87 lux = 0; in apds9300_calculate_lux()
90 return lux / 100000; in apds9300_calculate_lux()
Dtsl2563.c432 unsigned long ratio, lux, ch0 = adc0, ch1 = adc1; in adc_to_lux() local
439 lux = ch0 * lp->ch0_coeff - ch1 * lp->ch1_coeff; in adc_to_lux()
441 return (unsigned int) (lux >> ADC_FRAC_BITS); in adc_to_lux()
DKconfig216 of ambient light sensors with direct lux output.
/linux-4.1.27/drivers/staging/iio/light/
Dtsl2583.c78 u16 lux; member
197 u32 lux; /* raw lux calculated from device data */ in taos_get_lux() local
209 return chip->als_cur_info.lux; /* busy, so return LAST VALUE */ in taos_get_lux()
227 ret = chip->als_cur_info.lux; /* return LAST VALUE */ in taos_get_lux()
268 ret = chip->als_cur_info.lux = 0; in taos_get_lux()
279 lux = 0; in taos_get_lux()
287 lux = ch0lux - ch1lux; in taos_get_lux()
293 ret = chip->als_cur_info.lux = 0; in taos_get_lux()
299 lux = 0; in taos_get_lux()
301 lux = (lux + (chip->als_time_scale >> 1)) / in taos_get_lux()
[all …]
Dtsl2x7x_core.c158 u16 lux; member
336 u32 lux; /* raw lux calculated from device data */ in tsl2x7x_get_lux() local
347 return chip->als_cur_info.lux; /* busy, so return LAST VALUE */ in tsl2x7x_get_lux()
368 ret = chip->als_cur_info.lux; /* return LAST VALUE */ in tsl2x7x_get_lux()
402 lux = TSL2X7X_LUX_CALC_OVER_FLOW; in tsl2x7x_get_lux()
408 ret = chip->als_cur_info.lux; in tsl2x7x_get_lux()
419 lux = 0; in tsl2x7x_get_lux()
425 lux = ch0lux - ch1lux; in tsl2x7x_get_lux()
431 ret = chip->als_cur_info.lux; in tsl2x7x_get_lux()
437 lux = 0; in tsl2x7x_get_lux()
[all …]
DKconfig15 in lux, proximity infrared sensing and normal infrared sensing.
Disl29018.c156 static int isl29018_read_lux(struct isl29018_chip *chip, int *lux) in isl29018_read_lux() argument
174 *lux = lux_unshifted >> chip->adc_bit; in isl29018_read_lux()
/linux-4.1.27/drivers/staging/iio/Documentation/
Dsysfs-bus-iio-light-tsl25836 used in calculating illuminance in lux.
13 value which is later used in calculating illuminance in lux.
19 This property is the known externally illuminance (in lux).
Dsysfs-bus-iio-light7 light sensors in calculating lux.
20 used in calculating the lux.
33 This should return the calculated lux from the light sensor. If
71 lux measurement used in/for calibration.
84 used in calculating illuminance in lux.
/linux-4.1.27/drivers/misc/
Dtsl2550.c158 unsigned int lux; in tsl2550_calculate_lux() local
176 lux = ((c0 - c1) * ratio_lut[r]) / 256; in tsl2550_calculate_lux()
178 lux = 0; in tsl2550_calculate_lux()
183 return lux > TSL2550_MAX_LUX ? TSL2550_MAX_LUX : lux; in tsl2550_calculate_lux()
Disl29020.c54 unsigned long int lux; in als_lux_input_data_show() local
81 lux = ((((1 << (2 * (val & 3))))*1000) * ret_val) / 65536; in als_lux_input_data_show()
82 return sprintf(buf, "%ld\n", lux); in als_lux_input_data_show()
Dapds990x.c152 u32 lux; member
263 static u16 apds990x_lux_to_threshold(struct apds990x_chip *chip, u32 lux) in apds990x_lux_to_threshold() argument
269 if (lux == 0) in apds990x_lux_to_threshold()
271 else if (lux == APDS_RANGE) in apds990x_lux_to_threshold()
289 lux = lux * (APDS_CALIB_SCALER / 4) / (chip->lux_calib / 4); in apds990x_lux_to_threshold()
295 thres = lux * cpl / 64; in apds990x_lux_to_threshold()
513 chip->lux = chip->lux_raw; in apds990x_irq()
655 result = (chip->lux * chip->lux_calib) / APDS_CALIB_SCALER; in apds990x_lux_show()
Dbh1770glc.c197 int lux) in bh1770_lux_interrupt_control() argument
199 chip->int_mode_lux = lux; in bh1770_lux_interrupt_control()
203 (lux << 1) | chip->int_mode_prox); in bh1770_lux_interrupt_control()
305 u32 lux; in bh1770_lux_raw_to_adjusted() local
306 lux = ((u32)raw * chip->lux_corr) / BH1770_LUX_CORR_SCALE; in bh1770_lux_raw_to_adjusted()
307 return min(lux, (u32)BH1770_LUX_RANGE); in bh1770_lux_raw_to_adjusted()
Dbh1780gli.c133 static DEVICE_ATTR(lux, S_IRUGO, bh1780_show_lux, NULL);
Disl29003.c340 static DEVICE_ATTR(lux, S_IRUGO, isl29003_show_lux, NULL);
/linux-4.1.27/drivers/staging/iio/Documentation/light/
Dsysfs-bus-iio-light-tsl25836 value which is later used in calculating illuminance in lux.
Dsysfs-bus-iio-light-tsl2x7x6 value which is later used in calculating illuminance in lux.
/linux-4.1.27/Documentation/ABI/testing/
Dsysfs-bus-iio1182 and offset are lux.