Lines Matching refs:lux
138 u32 lux;
248 static u16 apds990x_lux_to_threshold(struct apds990x_chip *chip, u32 lux)
254 if (lux == 0)
256 else if (lux == APDS_RANGE)
268 * Math: threshold = lux * cpl where
270 * (count-per-lux)
274 lux = lux * (APDS_CALIB_SCALER / 4) / (chip->lux_calib / 4);
280 thres = lux * cpl / 64;
498 chip->lux = chip->lux_raw;
640 result = (chip->lux * chip->lux_calib) / APDS_CALIB_SCALER;