Lines Matching refs:lux
65 u16 lux; member
166 u32 lux; /* raw lux calculated from device data */ in tsl2583_get_lux() local
185 ret = chip->als_cur_info.lux; /* return LAST VALUE */ in tsl2583_get_lux()
232 chip->als_cur_info.lux = 0; in tsl2583_get_lux()
245 lux = 0; in tsl2583_get_lux()
261 chip->als_cur_info.lux = 0; in tsl2583_get_lux()
265 lux = ch0lux - ch1lux; in tsl2583_get_lux()
270 lux = 0; in tsl2583_get_lux()
272 lux = (lux + (chip->als_time_scale >> 1)) / in tsl2583_get_lux()
284 lux64 = lux; in tsl2583_get_lux()
287 lux = lux64; in tsl2583_get_lux()
288 lux = DIV_ROUND_CLOSEST(lux, 1000); in tsl2583_get_lux()
290 if (lux > TSL2583_LUX_CALC_OVER_FLOW) { /* check for overflow */ in tsl2583_get_lux()
292 lux = TSL2583_LUX_CALC_OVER_FLOW; in tsl2583_get_lux()
296 chip->als_cur_info.lux = lux; in tsl2583_get_lux()
297 ret = lux; in tsl2583_get_lux()