lux 1421 drivers/hid/hid-logitech-hidpp.c int capacity, lux, status; lux 1437 drivers/hid/hid-logitech-hidpp.c lux = (report->fap.params[1] << 8) | report->fap.params[2]; lux 1438 drivers/hid/hid-logitech-hidpp.c if (lux > 200) lux 67 drivers/iio/light/apds9300.c unsigned long lux, tmp; lux 75 drivers/iio/light/apds9300.c lux = 3150 * ch0 - (unsigned long)DIV_ROUND_UP_ULL(ch0 lux 78 drivers/iio/light/apds9300.c lux = 2290 * ch0 - 2910 * ch1; lux 80 drivers/iio/light/apds9300.c lux = 1570 * ch0 - 1800 * ch1; lux 82 drivers/iio/light/apds9300.c lux = 338 * ch0 - 260 * ch1; lux 84 drivers/iio/light/apds9300.c lux = 0; lux 87 drivers/iio/light/apds9300.c return lux / 100000; lux 178 drivers/iio/light/cm32181.c unsigned long lux; lux 184 drivers/iio/light/cm32181.c lux = CM32181_MLUX_PER_BIT; lux 185 drivers/iio/light/cm32181.c lux *= CM32181_MLUX_PER_BIT_BASE_IT; lux 186 drivers/iio/light/cm32181.c lux /= als_it; lux 192 drivers/iio/light/cm32181.c lux *= ret; lux 193 drivers/iio/light/cm32181.c lux *= cm32181->calibscale; lux 194 drivers/iio/light/cm32181.c lux /= CM32181_CALIBSCALE_RESOLUTION; lux 195 drivers/iio/light/cm32181.c lux /= MLUX_PER_LUX; lux 197 drivers/iio/light/cm32181.c if (lux > 0xFFFF) lux 198 drivers/iio/light/cm32181.c lux = 0xFFFF; lux 200 drivers/iio/light/cm32181.c return lux; lux 205 drivers/iio/light/cm3232.c u64 lux; lux 212 drivers/iio/light/cm3232.c lux = (__force u64)als_info->mlux_per_bit; lux 213 drivers/iio/light/cm3232.c lux *= als_info->mlux_per_bit_base_it; lux 214 drivers/iio/light/cm3232.c lux = div_u64(lux, als_it); lux 223 drivers/iio/light/cm3232.c lux *= chip->regs_als; lux 224 drivers/iio/light/cm3232.c lux *= als_info->calibscale; lux 225 drivers/iio/light/cm3232.c lux = div_u64(lux, CM3232_CALIBSCALE_RESOLUTION); lux 226 drivers/iio/light/cm3232.c lux = div_u64(lux, CM3232_MLUX_PER_LUX); lux 228 drivers/iio/light/cm3232.c if (lux > 0xFFFF) lux 229 drivers/iio/light/cm3232.c lux = 0xFFFF; lux 231 drivers/iio/light/cm3232.c return (int)lux; lux 76 drivers/iio/light/cm3605.c s64 lux; lux 96 drivers/iio/light/cm3605.c lux = res - 30; lux 99 drivers/iio/light/cm3605.c lux *= cm3605->als_max; lux 100 drivers/iio/light/cm3605.c lux = div64_s64(lux, CM3605_AOUT_TYP_MAX_MV); lux 102 drivers/iio/light/cm3605.c return lux; lux 192 drivers/iio/light/isl29018.c static int isl29018_read_lux(struct isl29018_chip *chip, int *lux) lux 204 drivers/iio/light/isl29018.c *lux = data_x_range * chip->calibscale + lux 304 drivers/iio/light/ltr501.c unsigned long ratio, lux; lux 313 drivers/iio/light/ltr501.c lux = LTR501_LUX_CONV(1774, vis_data, -1105, ir_data); lux 315 drivers/iio/light/ltr501.c lux = LTR501_LUX_CONV(3772, vis_data, 1336, ir_data); lux 317 drivers/iio/light/ltr501.c lux = LTR501_LUX_CONV(1690, vis_data, 169, ir_data); lux 319 drivers/iio/light/ltr501.c lux = 0; lux 321 drivers/iio/light/ltr501.c return lux / 1000; lux 172 drivers/iio/light/opt3001.c int lux; lux 174 drivers/iio/light/opt3001.c lux = 10 * (mantissa << exponent); lux 175 drivers/iio/light/opt3001.c *val = lux / 1000; lux 176 drivers/iio/light/opt3001.c *val2 = (lux - (*val * 1000)) * 1000; lux 710 drivers/iio/light/si1133.c int lux; lux 738 drivers/iio/light/si1133.c lux = si1133_calc_polynomial(high_vis, ir, lux 743 drivers/iio/light/si1133.c lux = si1133_calc_polynomial(low_vis, ir, lux 748 drivers/iio/light/si1133.c *val = lux >> SI1133_LUX_OUTPUT_FRACTION; lux 419 drivers/iio/light/tsl2563.c unsigned long ratio, lux, ch0 = adc0, ch1 = adc1; lux 426 drivers/iio/light/tsl2563.c lux = ch0 * lp->ch0_coeff - ch1 * lp->ch1_coeff; lux 428 drivers/iio/light/tsl2563.c return (unsigned int) (lux >> ADC_FRAC_BITS); lux 65 drivers/iio/light/tsl2583.c u16 lux; lux 166 drivers/iio/light/tsl2583.c u32 lux; /* raw lux calculated from device data */ lux 185 drivers/iio/light/tsl2583.c ret = chip->als_cur_info.lux; /* return LAST VALUE */ lux 232 drivers/iio/light/tsl2583.c chip->als_cur_info.lux = 0; lux 245 drivers/iio/light/tsl2583.c lux = 0; lux 261 drivers/iio/light/tsl2583.c chip->als_cur_info.lux = 0; lux 265 drivers/iio/light/tsl2583.c lux = ch0lux - ch1lux; lux 270 drivers/iio/light/tsl2583.c lux = 0; lux 272 drivers/iio/light/tsl2583.c lux = (lux + (chip->als_time_scale >> 1)) / lux 284 drivers/iio/light/tsl2583.c lux64 = lux; lux 287 drivers/iio/light/tsl2583.c lux = lux64; lux 288 drivers/iio/light/tsl2583.c lux = (lux + 500) / 1000; lux 290 drivers/iio/light/tsl2583.c if (lux > TSL2583_LUX_CALC_OVER_FLOW) { /* check for overflow */ lux 292 drivers/iio/light/tsl2583.c lux = TSL2583_LUX_CALC_OVER_FLOW; lux 296 drivers/iio/light/tsl2583.c chip->als_cur_info.lux = lux; lux 297 drivers/iio/light/tsl2583.c ret = lux; lux 147 drivers/iio/light/tsl2772.c u16 lux; lux 432 drivers/iio/light/tsl2772.c ret = chip->als_cur_info.lux; /* return LAST VALUE */ lux 455 drivers/iio/light/tsl2772.c ret = chip->als_cur_info.lux; lux 463 drivers/iio/light/tsl2772.c int lux; lux 465 drivers/iio/light/tsl2772.c lux = ((chip->als_cur_info.als_ch0 * p->ch0) - lux 475 drivers/iio/light/tsl2772.c lux = (lux * chip->settings.als_gain_trim) / 1000; lux 477 drivers/iio/light/tsl2772.c if (lux > TSL2772_LUX_CALC_OVER_FLOW) { lux 482 drivers/iio/light/tsl2772.c max_lux = max(max_lux, lux); lux 489 drivers/iio/light/tsl2772.c chip->als_cur_info.lux = max_lux; lux 1247 drivers/iio/light/tsl2772.c *val = chip->als_cur_info.lux; lux 138 drivers/misc/apds990x.c u32 lux; lux 248 drivers/misc/apds990x.c static u16 apds990x_lux_to_threshold(struct apds990x_chip *chip, u32 lux) lux 254 drivers/misc/apds990x.c if (lux == 0) lux 256 drivers/misc/apds990x.c else if (lux == APDS_RANGE) lux 274 drivers/misc/apds990x.c lux = lux * (APDS_CALIB_SCALER / 4) / (chip->lux_calib / 4); lux 280 drivers/misc/apds990x.c thres = lux * cpl / 64; lux 498 drivers/misc/apds990x.c chip->lux = chip->lux_raw; lux 640 drivers/misc/apds990x.c result = (chip->lux * chip->lux_calib) / APDS_CALIB_SCALER; lux 180 drivers/misc/bh1770glc.c int lux) lux 182 drivers/misc/bh1770glc.c chip->int_mode_lux = lux; lux 186 drivers/misc/bh1770glc.c (lux << 1) | chip->int_mode_prox); lux 288 drivers/misc/bh1770glc.c u32 lux; lux 289 drivers/misc/bh1770glc.c lux = ((u32)raw * chip->lux_corr) / BH1770_LUX_CORR_SCALE; lux 290 drivers/misc/bh1770glc.c return min(lux, (u32)BH1770_LUX_RANGE); lux 333 drivers/misc/isl29003.c static DEVICE_ATTR(lux, S_IRUGO, isl29003_show_lux, NULL); lux 43 drivers/misc/isl29020.c unsigned long int lux; lux 70 drivers/misc/isl29020.c lux = ((((1 << (2 * (val & 3))))*1000) * ret_val) / 65536; lux 71 drivers/misc/isl29020.c return sprintf(buf, "%ld\n", lux); lux 145 drivers/misc/tsl2550.c unsigned int lux; lux 163 drivers/misc/tsl2550.c lux = ((c0 - c1) * ratio_lut[r]) / 256; lux 165 drivers/misc/tsl2550.c lux = 0; lux 170 drivers/misc/tsl2550.c return lux > TSL2550_MAX_LUX ? TSL2550_MAX_LUX : lux;