Home
last modified time | relevance | path

Searched refs:ch1 (Results 1 – 10 of 10) sorted by relevance

/drivers/staging/speakup/
Dkeyhelp.c64 u_char *kp, counters[MAXFUNCS], ch, ch1; in build_key_data() local
96 ch1 = *kp++; in build_key_data()
97 if (!ch1) in build_key_data()
99 if ((state_tbl[i]&16) != 0 && ch1 == SPK_KEY) in build_key_data()
102 counters[ch1]--; in build_key_data()
103 offset = key_offsets[ch1]; in build_key_data()
106 p_key = key_data + offset + counters[ch1]; in build_key_data()
/drivers/media/usb/pvrusb2/
Dpvrusb2-context.c114 struct pvr2_channel *ch1, *ch2; in pvr2_context_check() local
143 for (ch1 = mp->mc_first; ch1; ch1 = ch2) { in pvr2_context_check()
144 ch2 = ch1->mc_next; in pvr2_context_check()
145 if (ch1->check_func) ch1->check_func(ch1); in pvr2_context_check()
/drivers/staging/iio/light/
Dtsl2583.c111 unsigned int ch1; member
126 s16 ch1; member
195 u16 ch0, ch1; /* separated ch0/ch1 data from device */ in taos_get_lux() local
255 ch1 = le16_to_cpup((const __le16 *)&buf[2]); in taos_get_lux()
258 chip->als_cur_info.als_ch1 = ch1; in taos_get_lux()
260 if ((ch0 >= chip->als_saturation) || (ch1 >= chip->als_saturation)) in taos_get_lux()
269 ratio = (ch1 << 15) / ch0; in taos_get_lux()
281 ch1lux = ((ch1 * p->ch1) + in taos_get_lux()
282 (gainadj[chip->taos_settings.als_gain].ch1 >> 1)) in taos_get_lux()
283 / gainadj[chip->taos_settings.als_gain].ch1; in taos_get_lux()
[all …]
Dtsl2x7x.h35 unsigned int ch1; member
Dtsl2x7x_core.c342 u16 ch0, ch1; /* separated ch0/ch1 data from device */ in tsl2x7x_get_lux() local
404 ch1 = le16_to_cpup((const __le16 *)&buf[2]); in tsl2x7x_get_lux()
407 chip->als_cur_info.als_ch1 = ch1; in tsl2x7x_get_lux()
409 if ((ch0 >= chip->als_saturation) || (ch1 >= chip->als_saturation)) { in tsl2x7x_get_lux()
420 ratio = (ch1 << 15) / ch0; in tsl2x7x_get_lux()
431 ch1lux = DIV_ROUND_UP((ch1 * p->ch1), in tsl2x7x_get_lux()
1155 chip->tsl2x7x_device_lux[i].ch1); in tsl2x7x_luxtable_show()
/drivers/misc/
Dtsl2550.c157 static int tsl2550_calculate_lux(u8 ch0, u8 ch1) in tsl2550_calculate_lux() argument
163 u16 c1 = count_lut[ch1]; in tsl2550_calculate_lux()
261 u8 ch0, ch1; in __tsl2550_show_lux() local
272 ch1 = ret; in __tsl2550_show_lux()
275 ret = tsl2550_calculate_lux(ch0, ch1); in __tsl2550_show_lux()
/drivers/gpu/drm/i915/
Ddvo_tfp410.c158 uint8_t ch1, ch2; in tfp410_getid() local
160 if (tfp410_readb(dvo, addr+0, &ch1) && in tfp410_getid()
162 return ((ch2 << 8) & 0xFF00) | (ch1 & 0x00FF); in tfp410_getid()
/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()
/drivers/net/wireless/iwlegacy/
D4965.c701 ch_i1 = il->calib_info->band_info[s].ch1.ch_num; in il4965_interpolate_chan()
710 m1 = &(il->calib_info->band_info[s].ch1. in il4965_interpolate_chan()
Dcommon.h304 struct il_eeprom_calib_ch_info ch1; member