Home
last modified time | relevance | path

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

/linux/Documentation/misc-devices/
H A Disl29003.rst22 ADC, I2C user programmable lux range select for optimized counts/lux, and
27 The driver allows to set the lux range, the bit resolution, the operational
28 mode (see below) and the power state of device and can read the current lux
46 0: 0 lux to 1000 lux (default)
47 1: 0 lux to 4000 lux
48 2: 0 lux to 16,000 lux
49 3: 0 lux to 64,000 lux
73 lux (read only):
H A Dbh1770glc.rst25 ALS produces 16 bit lux values. The chip contains interrupt logic to produce
46 so that measurement produces about the expected lux value.
63 RO - measured lux value
/linux/drivers/iio/light/
H A Dcm3232.c204 u64 lux; in cm3232_get_lux() local
211 lux = (__force u64)als_info->mlux_per_bit; in cm3232_get_lux()
212 lux *= als_info->mlux_per_bit_base_it; in cm3232_get_lux()
213 lux = div_u64(lux, als_it); in cm3232_get_lux()
222 lux *= chip->regs_als; in cm3232_get_lux()
223 lux *= chip->calibscale; in cm3232_get_lux()
224 lux = div_u64(lux, CM3232_CALIBSCALE_RESOLUTION); in cm3232_get_lux()
225 lux = div_u64(lux, CM3232_MLUX_PER_LUX); in cm3232_get_lux()
227 if (lux > 0xFFFF) in cm3232_get_lux()
228 lux = 0xFFFF; in cm3232_get_lux()
[all …]
H A Dcm32181.c310 u64 lux; in cm32181_get_lux() local
316 lux = cm32181->lux_per_bit; in cm32181_get_lux()
317 lux *= cm32181->lux_per_bit_base_it; in cm32181_get_lux()
318 lux = div_u64(lux, als_it); in cm32181_get_lux()
324 lux *= ret; in cm32181_get_lux()
325 lux *= cm32181->calibscale; in cm32181_get_lux()
326 lux = div_u64(lux, CM32181_CALIBSCALE_RESOLUTION); in cm32181_get_lux()
327 lux = div_u64(lux, CM32181_LUX_PER_BIT_RESOLUTION); in cm32181_get_lux()
329 if (lux > 0xFFFF) in cm32181_get_lux()
330 lux = 0xFFFF; in cm32181_get_lux()
[all …]
H A Dcm3605.c76 s64 lux; in cm3605_get_lux() local
96 lux = res - 30; in cm3605_get_lux()
99 lux *= cm3605->als_max; in cm3605_get_lux()
100 lux = div64_s64(lux, CM3605_AOUT_TYP_MAX_MV); in cm3605_get_lux()
102 return lux; in cm3605_get_lux()
H A Dltrf216a.c243 u64 lux; in ltrf216a_get_lux() local
254 lux = greendata * data->info->lux_multiplier * LTRF216A_WIN_FAC; in ltrf216a_get_lux()
256 return lux; in ltrf216a_get_lux()
H A Dtsl2591.c376 int counts_per_lux, int_time_fval, gain_multi, lux; in tsl2591_read_channel_data() local
420 lux = ((als_ch0 - als_ch1) * in tsl2591_read_channel_data()
423 dev_dbg(&client->dev, "Raw lux calculation: %d\n", lux); in tsl2591_read_channel_data()
426 *val = lux / 1000; in tsl2591_read_channel_data()
429 *val2 = (lux - (*val * 1000)) * 1000; in tsl2591_read_channel_data()
H A Dsi1133.c722 int lux; in si1133_get_lux() local
745 lux = si1133_calc_polynomial(high_vis, ir, in si1133_get_lux()
750 lux = si1133_calc_polynomial(low_vis, ir, in si1133_get_lux()
755 *val = lux >> SI1133_LUX_OUTPUT_FRACTION; in si1133_get_lux()
H A Dtsl2563.c424 unsigned long ratio, lux, ch0 = adc0, ch1 = adc1; in tsl2563_adc_to_lux() local
431 lux = ch0 * lp->ch0_coeff - ch1 * lp->ch1_coeff; in tsl2563_adc_to_lux()
433 return (unsigned int) (lux >> ADC_FRAC_BITS); in tsl2563_adc_to_lux()
H A Dltr501.c305 unsigned long ratio, lux; in ltr501_calculate_lux() local
314 lux = LTR501_LUX_CONV(1774, vis_data, -1105, ir_data); in ltr501_calculate_lux()
316 lux = LTR501_LUX_CONV(3772, vis_data, 1336, ir_data); in ltr501_calculate_lux()
318 lux = LTR501_LUX_CONV(1690, vis_data, 169, ir_data); in ltr501_calculate_lux()
320 lux = 0; in ltr501_calculate_lux()
322 return lux / 1000; in ltr501_calculate_lux()
H A Disl29018.c192 static int isl29018_read_lux(struct isl29018_chip *chip, int *lux) in isl29018_read_lux() argument
204 *lux = data_x_range * chip->calibscale + in isl29018_read_lux()
H A DKconfig293 in lux, proximity infrared sensing and normal infrared sensing.
328 lux, other options are 4000/16000/64000 lux.
646 featuring channels for combined visible + IR intensity and lux illuminance.
665 of ambient light sensors with direct lux output.
/linux/Documentation/ABI/testing/
H A Dsysfs-bus-iio-light-tsl25836 value which is later used in calculating illuminance in lux.
13 used in calculating illuminance in lux.
19 This property is the known externally illuminance (in lux).
H A Dsysfs-bus-iio-light-tsl27726 value which is later used in calculating illuminance in lux.
/linux/drivers/hid/amd-sfh-hid/sfh1_1/
H A Damd_sfh_interface.c192 *ambient_light = amd_sfh_float_to_int(als_data.lux); in amd_sfh_als_info()
H A Damd_sfh_desc.c238 als_input.illuminance_value = amd_sfh_float_to_int(als_data.lux); in get_input_rep()
/linux/arch/arm/boot/dts/allwinner/
H A Dsun5i-a13-pocketbook-touch-lux-3.dts16 compatible = "pocketbook,touch-lux-3", "allwinner,sun5i-a13";