Lines Matching refs:lux
208 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()
234 return (int)lux; in cm3232_get_lux()