Lines Matching defs:ch_idx
240 static u8 tsc2046_adc_get_cmd(struct tsc2046_adc_priv *priv, int ch_idx,
254 switch (ch_idx) {
264 return TI_TSC2046_START | FIELD_PREP(TI_TSC2046_ADDR, ch_idx) | pd;
272 static int tsc2046_adc_read_one(struct tsc2046_adc_priv *priv, int ch_idx,
275 struct tsc2046_adc_ch_cfg *ch = &priv->ch_cfg[ch_idx];
307 cmd = tsc2046_adc_get_cmd(priv, ch_idx, true);
313 tx_buf[i].cmd = tsc2046_adc_get_cmd(priv, ch_idx, false);
352 unsigned int ch_idx)
354 struct tsc2046_adc_ch_cfg *ch = &priv->ch_cfg[ch_idx];
374 unsigned int group, int ch_idx)
384 cmd = tsc2046_adc_get_cmd(priv, ch_idx, true);
390 priv->tx[l->offset + i].cmd = tsc2046_adc_get_cmd(priv, ch_idx, false);
489 unsigned int ch_idx, group = 0;
495 for_each_set_bit(ch_idx, active_scan_mask, ARRAY_SIZE(priv->l)) {
496 size += tsc2046_adc_group_set_layout(priv, group, ch_idx);
497 tsc2046_adc_group_set_cmd(priv, group, ch_idx);
654 unsigned int ch_idx;
685 for (ch_idx = 0; ch_idx < ARRAY_SIZE(priv->l); ch_idx++)
686 size += tsc2046_adc_group_set_layout(priv, ch_idx, ch_idx);