Home
last modified time | relevance | path

Searched refs:ch0 (Results 1 – 5 of 5) sorted by relevance

/drivers/staging/iio/light/
Dtsl2583.c110 unsigned int ch0; member
125 s16 ch0; member
195 u16 ch0, ch1; /* separated ch0/ch1 data from device */ in taos_get_lux() local
254 ch0 = le16_to_cpup((const __le16 *)&buf[0]); in taos_get_lux()
257 chip->als_cur_info.als_ch0 = ch0; in taos_get_lux()
260 if ((ch0 >= chip->als_saturation) || (ch1 >= chip->als_saturation)) in taos_get_lux()
263 if (ch0 == 0) { in taos_get_lux()
269 ratio = (ch1 << 15) / ch0; in taos_get_lux()
278 ch0lux = ((ch0 * p->ch0) + in taos_get_lux()
279 (gainadj[chip->taos_settings.als_gain].ch0 >> 1)) in taos_get_lux()
[all …]
Dtsl2x7x_core.c342 u16 ch0, ch1; /* separated ch0/ch1 data from device */ in tsl2x7x_get_lux() local
403 ch0 = le16_to_cpup((const __le16 *)&buf[0]); in tsl2x7x_get_lux()
406 chip->als_cur_info.als_ch0 = ch0; in tsl2x7x_get_lux()
409 if ((ch0 >= chip->als_saturation) || (ch1 >= chip->als_saturation)) { in tsl2x7x_get_lux()
414 if (ch0 == 0) { in tsl2x7x_get_lux()
420 ratio = (ch1 << 15) / ch0; in tsl2x7x_get_lux()
429 ch0lux = DIV_ROUND_UP((ch0 * p->ch0), in tsl2x7x_get_lux()
1154 chip->tsl2x7x_device_lux[i].ch0, in tsl2x7x_luxtable_show()
Dtsl2x7x.h34 unsigned int ch0; member
/drivers/misc/
Dtsl2550.c157 static int tsl2550_calculate_lux(u8 ch0, u8 ch1) in tsl2550_calculate_lux() argument
162 u16 c0 = count_lut[ch0]; in tsl2550_calculate_lux()
261 u8 ch0, ch1; in __tsl2550_show_lux() local
267 ch0 = ret; in __tsl2550_show_lux()
275 ret = tsl2550_calculate_lux(ch0, ch1); in __tsl2550_show_lux()
/drivers/iio/light/
Dtsl2563.c432 unsigned long ratio, lux, ch0 = adc0, ch1 = adc1; in adc_to_lux() local
434 ratio = ch0 ? ((ch1 << ADC_FRAC_BITS) / ch0) : ULONG_MAX; in adc_to_lux()
439 lux = ch0 * lp->ch0_coeff - ch1 * lp->ch1_coeff; in adc_to_lux()