Lines Matching refs:lux
74 u16 lux; member
175 u32 lux; /* raw lux calculated from device data */ in tsl2583_get_lux() local
194 ret = chip->als_cur_info.lux; /* return LAST VALUE */ in tsl2583_get_lux()
241 chip->als_cur_info.lux = 0; in tsl2583_get_lux()
254 lux = 0; in tsl2583_get_lux()
270 chip->als_cur_info.lux = 0; in tsl2583_get_lux()
274 lux = ch0lux - ch1lux; in tsl2583_get_lux()
279 lux = 0; in tsl2583_get_lux()
281 lux = (lux + (chip->als_time_scale >> 1)) / in tsl2583_get_lux()
293 lux64 = lux; in tsl2583_get_lux()
296 lux = lux64; in tsl2583_get_lux()
297 lux = (lux + 500) / 1000; in tsl2583_get_lux()
299 if (lux > TSL2583_LUX_CALC_OVER_FLOW) { /* check for overflow */ in tsl2583_get_lux()
301 lux = TSL2583_LUX_CALC_OVER_FLOW; in tsl2583_get_lux()
305 chip->als_cur_info.lux = lux; in tsl2583_get_lux()
306 ret = lux; in tsl2583_get_lux()