Lines Matching defs:ch0
70 unsigned int ch0;
108 s16 ch0;
152 * The raw ch0 and ch1 values of the ambient light sensed in the last
157 * of ch1 value, to the ch0 value, is calculated. The array als_device_lux[]
159 * above the ratio we just calculated. The ch0 and ch1 multiplier constants in
165 u16 ch0, ch1; /* separated ch0/ch1 data from device */
216 ch0 = le16_to_cpup((const __le16 *)&buf[0]);
219 chip->als_cur_info.als_ch0 = ch0;
222 if ((ch0 >= chip->als_saturation) || (ch1 >= chip->als_saturation))
225 if (!ch0) {
237 ratio = (ch1 << 15) / ch0;
249 ch0lux = ((ch0 * p->ch0) +
250 (gainadj[chip->als_settings.als_gain].ch0 >> 1))
251 / gainadj[chip->als_settings.als_gain].ch0;
538 chip->als_settings.als_device_lux[i].ch0,