Home
last modified time | relevance | path

Searched full:ch_idx (Results 1 – 13 of 13) sorted by relevance

/linux/drivers/iio/adc/
H A Dti-tsc2046.c241 static u8 tsc2046_adc_get_cmd(struct tsc2046_adc_priv *priv, int ch_idx, in tsc2046_adc_get_cmd() argument
255 switch (ch_idx) { in tsc2046_adc_get_cmd()
265 return TI_TSC2046_START | FIELD_PREP(TI_TSC2046_ADDR, ch_idx) | pd; in tsc2046_adc_get_cmd()
273 static int tsc2046_adc_read_one(struct tsc2046_adc_priv *priv, int ch_idx, in tsc2046_adc_read_one() argument
276 struct tsc2046_adc_ch_cfg *ch = &priv->ch_cfg[ch_idx]; in tsc2046_adc_read_one()
307 cmd = tsc2046_adc_get_cmd(priv, ch_idx, true); in tsc2046_adc_read_one()
313 tx_buf[i].cmd = tsc2046_adc_get_cmd(priv, ch_idx, false); in tsc2046_adc_read_one()
344 unsigned int ch_idx) in tsc2046_adc_group_set_layout() argument
346 struct tsc2046_adc_ch_cfg *ch = &priv->ch_cfg[ch_idx]; in tsc2046_adc_group_set_layout()
366 unsigned int group, int ch_idx) in tsc2046_adc_group_set_cmd() argument
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/dvm/
H A Deeprom.c334 int ch_idx; in iwl_eeprom_enh_txp_read_element() local
340 for (ch_idx = 0; ch_idx < n_channels; ch_idx++) { in iwl_eeprom_enh_txp_read_element()
341 struct ieee80211_channel *chan = &data->channels[ch_idx]; in iwl_eeprom_enh_txp_read_element()
508 ((eeprom_ch_info[ch_idx].flags & EEPROM_CHANNEL_##x) ? # x " " : "")
514 int band, ch_idx; in iwl_init_channel_map() local
531 for (ch_idx = 0; ch_idx < eeprom_ch_count; ch_idx++) { in iwl_init_channel_map()
534 eeprom_ch = &eeprom_ch_info[ch_idx]; in iwl_init_channel_map()
539 eeprom_ch_array[ch_idx], in iwl_init_channel_map()
540 eeprom_ch_info[ch_idx].flags, in iwl_init_channel_map()
548 channel->hw_value = eeprom_ch_array[ch_idx]; in iwl_init_channel_map()
[all …]
/linux/drivers/usb/gadget/udc/
H A Dbcm63xx_udc.c188 * @ch_idx: IUDMA channel index (0 to BCM63XX_NUM_IUDMA-1).
211 unsigned int ch_idx; member
656 ENETDMAC_CHANCFG_REG, iudma->ch_idx); in iudma_write()
706 int ch_idx = iudma->ch_idx; in iudma_reset_channel() local
712 usb_dmac_writel(udc, 0, ENETDMAC_CHANCFG_REG, ch_idx); in iudma_reset_channel()
714 while (usb_dmac_readl(udc, ENETDMAC_CHANCFG_REG, ch_idx) & in iudma_reset_channel()
724 ch_idx); in iudma_reset_channel()
729 ch_idx); in iudma_reset_channel()
731 ENETDMAC_CHANCFG_REG, ch_idx); in iudma_reset_channel()
734 usb_dmac_writel(udc, ~0, ENETDMAC_IR_REG, ch_idx); in iudma_reset_channel()
[all …]
/linux/drivers/gpu/drm/amd/amdgpu/
H A Dumc_v8_10.h55 #define SWIZZLE_MODE_TMP_ADDR(na, ch_num, ch_idx) \ argument
56 ((((na) >> 10) * (ch_num) + (ch_idx)) << 10)
/linux/drivers/staging/most/video/
H A Dvideo.c31 int ch_idx; member
101 ret = most_start_channel(mdev->iface, mdev->ch_idx, &comp); in comp_vdev_open()
145 most_stop_channel(mdev->iface, mdev->ch_idx, &comp); in comp_vdev_close()
380 if (mdev->iface == iface && mdev->ch_idx == channel_idx) { in get_comp_dev()
486 mdev->ch_idx = channel_idx; in comp_probe_channel()
/linux/sound/soc/codecs/
H A Dpm4125.c921 int ch_idx = mixer->reg; in pm4125_get_swr_port() local
925 portidx = sdw_priv->ch_info[ch_idx].port_num; in pm4125_get_swr_port()
939 int ch_idx = mixer->reg; in pm4125_set_swr_port() local
945 portidx = sdw_priv->ch_info[ch_idx].port_num; in pm4125_set_swr_port()
950 pm4125_connect_port(sdw_priv, portidx, ch_idx, enable); in pm4125_set_swr_port()
955 pm4125_connect_port(sdw_priv, portidx, ch_idx, enable); in pm4125_set_swr_port()
H A Dwcd937x.c1310 int ch_idx = mixer->reg; in wcd937x_get_swr_port() local
1314 portidx = wcd->ch_info[ch_idx].port_num; in wcd937x_get_swr_port()
1329 int ch_idx = mixer->reg; in wcd937x_set_swr_port() local
1335 portidx = wcd->ch_info[ch_idx].port_num; in wcd937x_set_swr_port()
1340 wcd937x_connect_port(wcd, portidx, ch_idx, enable); in wcd937x_set_swr_port()
1345 wcd937x_connect_port(wcd, portidx, ch_idx, enable); in wcd937x_set_swr_port()
H A Dwcd938x.c1851 int portidx, ch_idx = mixer->reg; in wcd938x_get_swr_port() local
1855 portidx = wcd->ch_info[ch_idx].port_num; in wcd938x_get_swr_port()
1870 int ch_idx = mixer->reg; in wcd938x_set_swr_port() local
1877 portidx = wcd->ch_info[ch_idx].port_num; in wcd938x_set_swr_port()
1885 wcd938x_connect_port(wcd, portidx, ch_idx, enable); in wcd938x_set_swr_port()
H A Dmadera.c404 int n, i, in_idx, ch_idx; in madera_prop_get_inmode() local
416 ch_idx = 0; in madera_prop_get_inmode()
418 pdata->inmode[in_idx][ch_idx] = tmp[i]; in madera_prop_get_inmode()
420 if (++ch_idx == MADERA_MAX_MUXED_CHANNELS) { in madera_prop_get_inmode()
421 ch_idx = 0; in madera_prop_get_inmode()
/linux/drivers/infiniband/ulp/srp/
H A Dib_srp.c2786 u16 ch_idx; in srp_abort() local
2792 ch_idx = blk_mq_unique_tag_to_hwq(tag); in srp_abort()
2793 if (WARN_ON_ONCE(ch_idx >= target->ch_count)) in srp_abort()
2795 ch = &target->ch[ch_idx]; in srp_abort()
3694 int ret, i, ch_idx; in add_target_store() local
3830 for (ch_idx = 0; ch_idx < target->ch_count; ++ch_idx) { in add_target_store()
3831 ch = &target->ch[ch_idx]; in add_target_store()
3833 ch->comp_vector = ch_idx % ibdev->num_comp_vectors; in add_target_store()
3856 ch_idx, in add_target_store()
3858 if (ch_idx == 0) { in add_target_store()
/linux/drivers/bus/mhi/ep/
H A Dmain.c903 u32 ch_idx) in mhi_ep_queue_channel_db() argument
914 u32 ch_id = ch_idx + i; in mhi_ep_queue_channel_db()
942 u32 ch_int, ch_idx, i; in mhi_ep_check_channel_interrupt() local
949 ch_idx = i * MHI_MASK_CH_LEN; in mhi_ep_check_channel_interrupt()
954 mhi_ep_queue_channel_db(mhi_cntrl, ch_int, ch_idx); in mhi_ep_check_channel_interrupt()
/linux/drivers/net/can/usb/etas_es58x/
H A Des58x_core.c2229 int ch_idx; in es58x_probe() local
2238 for (ch_idx = 0; ch_idx < es58x_dev->num_can_ch; ch_idx++) { in es58x_probe()
2239 int ret = es58x_init_netdev(es58x_dev, ch_idx); in es58x_probe()
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dscan.c1539 int ch_idx, bitmap_idx; in iwl_mvm_scan_ch_add_n_aps_override() local
1541 ch_idx = iwl_mvm_scan_ch_and_band_to_idx(ch_id, band); in iwl_mvm_scan_ch_add_n_aps_override()
1542 if (ch_idx < 0) in iwl_mvm_scan_ch_add_n_aps_override()
1545 bitmap_idx = ch_idx / 8; in iwl_mvm_scan_ch_add_n_aps_override()
1549 ch_idx = ch_idx % 8; in iwl_mvm_scan_ch_add_n_aps_override()
1550 ch_bitmap[bitmap_idx] |= BIT(ch_idx); in iwl_mvm_scan_ch_add_n_aps_override()