Lines Matching refs:lux
312 u64 lux; in cm32181_get_lux() local
318 lux = cm32181->lux_per_bit; in cm32181_get_lux()
319 lux *= cm32181->lux_per_bit_base_it; in cm32181_get_lux()
320 lux = div_u64(lux, als_it); in cm32181_get_lux()
326 lux *= ret; in cm32181_get_lux()
327 lux *= cm32181->calibscale; in cm32181_get_lux()
328 lux = div_u64(lux, CM32181_CALIBSCALE_RESOLUTION); in cm32181_get_lux()
329 lux = div_u64(lux, CM32181_LUX_PER_BIT_RESOLUTION); in cm32181_get_lux()
331 if (lux > 0xFFFF) in cm32181_get_lux()
332 lux = 0xFFFF; in cm32181_get_lux()
334 return lux; in cm32181_get_lux()