Home
last modified time | relevance | path

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

/drivers/iio/light/
Dapds9300.c68 static unsigned long apds9300_calculate_lux(u16 ch0, u16 ch1) in apds9300_calculate_lux() argument
73 if (ch0 == 0) in apds9300_calculate_lux()
76 tmp = DIV_ROUND_UP(ch1 * 100, ch0); in apds9300_calculate_lux()
78 lux = 3150 * ch0 - (unsigned long)DIV_ROUND_UP_ULL(ch0 in apds9300_calculate_lux()
81 lux = 2290 * ch0 - 2910 * ch1; in apds9300_calculate_lux()
83 lux = 1570 * ch0 - 1800 * ch1; in apds9300_calculate_lux()
85 lux = 338 * ch0 - 260 * ch1; in apds9300_calculate_lux()
242 int ch0, ch1, ret = -EINVAL; in apds9300_read_raw() local
248 ch0 = apds9300_get_adc_val(data, 0); in apds9300_read_raw()
249 if (ch0 < 0) { in apds9300_read_raw()
[all …]
Dtsl2563.c432 unsigned long ratio, lux, ch0 = adc0, ch1 = adc1; in tsl2563_adc_to_lux() local
434 ratio = ch0 ? ((ch1 << ADC_FRAC_BITS) / ch0) : ULONG_MAX; in tsl2563_adc_to_lux()
439 lux = ch0 * lp->ch0_coeff - ch1 * lp->ch1_coeff; in tsl2563_adc_to_lux()
/drivers/staging/iio/light/
Dtsl2583.c110 unsigned int ch0; member
125 s16 ch0; member
196 u16 ch0, ch1; /* separated ch0/ch1 data from device */ in taos_get_lux() local
259 ch0 = le16_to_cpup((const __le16 *)&buf[0]); in taos_get_lux()
262 chip->als_cur_info.als_ch0 = ch0; in taos_get_lux()
265 if ((ch0 >= chip->als_saturation) || (ch1 >= chip->als_saturation)) in taos_get_lux()
268 if (!ch0) { in taos_get_lux()
275 ratio = (ch1 << 15) / ch0; in taos_get_lux()
284 ch0lux = ((ch0 * p->ch0) + in taos_get_lux()
285 (gainadj[chip->taos_settings.als_gain].ch0 >> 1)) in taos_get_lux()
[all …]
Dtsl2x7x.h34 unsigned int ch0; member
Dtsl2x7x_core.c337 u16 ch0, ch1; /* separated ch0/ch1 data from device */ in tsl2x7x_get_lux() local
397 ch0 = le16_to_cpup((const __le16 *)&buf[0]); in tsl2x7x_get_lux()
400 chip->als_cur_info.als_ch0 = ch0; in tsl2x7x_get_lux()
403 if ((ch0 >= chip->als_saturation) || (ch1 >= chip->als_saturation)) { in tsl2x7x_get_lux()
408 if (!ch0) { in tsl2x7x_get_lux()
414 ratio = (ch1 << 15) / ch0; in tsl2x7x_get_lux()
423 ch0lux = DIV_ROUND_UP(ch0 * p->ch0, in tsl2x7x_get_lux()
1172 chip->tsl2x7x_device_lux[i].ch0, in tsl2x7x_luxtable_show()
/drivers/misc/
Dtsl2550.c156 static int tsl2550_calculate_lux(u8 ch0, u8 ch1) in tsl2550_calculate_lux() argument
161 u16 c0 = count_lut[ch0]; in tsl2550_calculate_lux()
260 u8 ch0, ch1; in __tsl2550_show_lux() local
266 ch0 = ret; in __tsl2550_show_lux()
274 ret = tsl2550_calculate_lux(ch0, ch1); in __tsl2550_show_lux()
/drivers/iio/adc/
Dpalmas_gpadc.c657 int ch0 = 0, ch1 = 0; in palmas_adc_wakeup_configure() local
682 ch0 = adc->wakeup1_data.adc_channel_number; in palmas_adc_wakeup_configure()
742 PALMAS_GPADC_AUTO_SELECT, (ch1 << 4) | ch0); in palmas_adc_wakeup_configure()
/drivers/iio/dac/
DKconfig233 MAX521 - Octal channel, independent ref for ch0-3, shared ref for ch4-7