/drivers/accessibility/speakup/ |
D | keyhelp.c | 51 u_char *kp, counters[MAXFUNCS], ch, ch1; in build_key_data() local 84 ch1 = *kp++; in build_key_data() 85 if (!ch1) in build_key_data() 87 if ((state_tbl[i] & 16) != 0 && ch1 == SPK_KEY) in build_key_data() 90 counters[ch1]--; in build_key_data() 91 offset = key_offsets[ch1]; in build_key_data() 94 p_key = key_data + offset + counters[ch1]; in build_key_data()
|
/drivers/iio/light/ |
D | apds9300.c | 65 static unsigned long apds9300_calculate_lux(u16 ch0, u16 ch1) in apds9300_calculate_lux() argument 73 tmp = DIV_ROUND_UP(ch1 * 100, ch0); in apds9300_calculate_lux() 78 lux = 2290 * ch0 - 2910 * ch1; in apds9300_calculate_lux() 80 lux = 1570 * ch0 - 1800 * ch1; in apds9300_calculate_lux() 82 lux = 338 * ch0 - 260 * ch1; in apds9300_calculate_lux() 239 int ch0, ch1, ret = -EINVAL; in apds9300_read_raw() local 250 ch1 = apds9300_get_adc_val(data, 1); in apds9300_read_raw() 251 if (ch1 < 0) { in apds9300_read_raw() 252 ret = ch1; in apds9300_read_raw() 255 *val = apds9300_calculate_lux(ch0, ch1); in apds9300_read_raw()
|
D | tsl2583.c | 71 unsigned int ch1; member 109 s16 ch1; member 165 u16 ch0, ch1; /* separated ch0/ch1 data from device */ in tsl2583_get_lux() local 217 ch1 = le16_to_cpup((const __le16 *)&buf[2]); in tsl2583_get_lux() 220 chip->als_cur_info.als_ch1 = ch1; in tsl2583_get_lux() 222 if ((ch0 >= chip->als_saturation) || (ch1 >= chip->als_saturation)) in tsl2583_get_lux() 237 ratio = (ch1 << 15) / ch0; in tsl2583_get_lux() 252 ch1lux = ((ch1 * p->ch1) + in tsl2583_get_lux() 253 (gainadj[chip->als_settings.als_gain].ch1 >> 1)) in tsl2583_get_lux() 254 / gainadj[chip->als_settings.als_gain].ch1; in tsl2583_get_lux() [all …]
|
D | tsl2563.c | 419 unsigned long ratio, lux, ch0 = adc0, ch1 = adc1; in tsl2563_adc_to_lux() local 421 ratio = ch0 ? ((ch1 << ADC_FRAC_BITS) / ch0) : ULONG_MAX; in tsl2563_adc_to_lux() 426 lux = ch0 * lp->ch0_coeff - ch1 * lp->ch1_coeff; in tsl2563_adc_to_lux()
|
D | tsl2772.c | 466 (chip->als_cur_info.als_ch1 * p->ch1)) / in tsl2772_get_lux() 992 chip->tsl2772_device_lux[i].ch1); in in_illuminance0_lux_table_show()
|
/drivers/media/usb/pvrusb2/ |
D | pvrusb2-context.c | 101 struct pvr2_channel *ch1, *ch2; in pvr2_context_check() local 130 for (ch1 = mp->mc_first; ch1; ch1 = ch2) { in pvr2_context_check() 131 ch2 = ch1->mc_next; in pvr2_context_check() 132 if (ch1->check_func) ch1->check_func(ch1); in pvr2_context_check()
|
/drivers/gpu/drm/i915/ |
D | intel_dram.c | 172 const struct dram_channel_info *ch1) in intel_is_dram_symmetric() argument 174 return !memcmp(ch0, ch1, sizeof(*ch0)) && in intel_is_dram_symmetric() 183 struct dram_channel_info ch0 = {}, ch1 = {}; in skl_dram_get_channels_info() local 195 ret = skl_dram_get_channel_info(i915, &ch1, 1, val); in skl_dram_get_channels_info() 209 if (ch0.ranks == 1 || ch1.ranks == 1) in skl_dram_get_channels_info() 212 dram_info->ranks = max(ch0.ranks, ch1.ranks); in skl_dram_get_channels_info() 219 dram_info->is_16gb_dimm = ch0.is_16gb_dimm || ch1.is_16gb_dimm; in skl_dram_get_channels_info() 221 dram_info->symmetric_memory = intel_is_dram_symmetric(&ch0, &ch1); in skl_dram_get_channels_info()
|
/drivers/misc/ |
D | tsl2550.c | 143 static int tsl2550_calculate_lux(u8 ch0, u8 ch1) in tsl2550_calculate_lux() argument 149 u16 c1 = count_lut[ch1]; in tsl2550_calculate_lux() 245 u8 ch0, ch1; in __tsl2550_show_lux() local 256 ch1 = ret; in __tsl2550_show_lux() 259 ret = tsl2550_calculate_lux(ch0, ch1); in __tsl2550_show_lux()
|
/drivers/input/touchscreen/ |
D | mxs-lradc-ts.c | 161 unsigned int ch1, unsigned int ch2) in mxs_lradc_setup_ts_pressure() argument 175 writel(reg, ts->base + LRADC_CH(ch1)); in mxs_lradc_setup_ts_pressure() 183 ts->base + LRADC_CH(ch1) + STMP_OFFSET_REG_CLR); in mxs_lradc_setup_ts_pressure() 188 writel(LRADC_DELAY_TRIGGER(1 << ch1) | LRADC_DELAY_TRIGGER(1 << ch2) | in mxs_lradc_setup_ts_pressure() 225 unsigned int ch1, unsigned int ch2) in mxs_lradc_read_ts_pressure() argument 230 mask = LRADC_CTRL1_LRADC_IRQ(ch1) | LRADC_CTRL1_LRADC_IRQ(ch2); in mxs_lradc_read_ts_pressure() 238 m1 = mxs_lradc_ts_read_raw_channel(ts, ch1); in mxs_lradc_read_ts_pressure()
|
/drivers/gpu/drm/i915/display/ |
D | dvo_tfp410.c | 159 u8 ch1, ch2; in tfp410_getid() local 161 if (tfp410_readb(dvo, addr+0, &ch1) && in tfp410_getid() 163 return ((ch2 << 8) & 0xFF00) | (ch1 & 0x00FF); in tfp410_getid()
|
/drivers/clk/sunxi/ |
D | Makefile | 19 obj-$(CONFIG_CLK_SUNXI_CLOCKS) += clk-sun4i-tcon-ch1.o
|
/drivers/iio/adc/ |
D | palmas_gpadc.c | 651 int ch0 = 0, ch1 = 0; in palmas_adc_wakeup_configure() local 707 ch1 = adc->wakeup2_data.adc_channel_number; in palmas_adc_wakeup_configure() 736 PALMAS_GPADC_AUTO_SELECT, (ch1 << 4) | ch0); in palmas_adc_wakeup_configure()
|
/drivers/net/wireless/intel/iwlegacy/ |
D | 4965.c | 684 ch_i1 = il->calib_info->band_info[s].ch1.ch_num; in il4965_interpolate_chan() 693 m1 = &(il->calib_info->band_info[s].ch1. in il4965_interpolate_chan()
|
D | common.h | 290 struct il_eeprom_calib_ch_info ch1; member
|