Home
last modified time | relevance | path

Searched refs:ch_idx (Results 1 – 7 of 7) sorted by relevance

/Linux-v4.19/drivers/staging/most/i2c/
Di2c.c65 int ch_idx, in configure_channel() argument
72 BUG_ON(ch_idx < 0 || ch_idx >= NUM_CHANNELS); in configure_channel()
75 pr_err("bad data type for channel %d\n", ch_idx); in configure_channel()
79 if (channel_config->direction != dev->capabilities[ch_idx].direction) { in configure_channel()
80 pr_err("bad direction for channel %d\n", ch_idx); in configure_channel()
121 int ch_idx, struct mbo *mbo) in enqueue() argument
126 BUG_ON(ch_idx < 0 || ch_idx >= NUM_CHANNELS); in enqueue()
128 if (ch_idx == CH_RX) { in enqueue()
166 int ch_idx) in poison_channel() argument
171 BUG_ON(ch_idx < 0 || ch_idx >= NUM_CHANNELS); in poison_channel()
[all …]
/Linux-v4.19/drivers/staging/most/dim2/
Ddim2.c269 static void service_done_flag(struct dim2_hdm *dev, int ch_idx) in service_done_flag() argument
271 struct hdm_channel *hdm_ch = dev->hch + ch_idx; in service_done_flag()
344 int ch_idx; in get_active_channels() local
346 for (ch_idx = 0; ch_idx < DMA_CHANNELS; ch_idx++) { in get_active_channels()
347 if (dev->hch[ch_idx].is_initialized) in get_active_channels()
348 buffer[idx++] = &dev->hch[ch_idx].ch; in get_active_channels()
381 int ch_idx; in dim2_tasklet_fn() local
383 for (ch_idx = 0; ch_idx < DMA_CHANNELS; ch_idx++) { in dim2_tasklet_fn()
384 if (!dev->hch[ch_idx].is_initialized) in dim2_tasklet_fn()
388 dim_service_channel(&dev->hch[ch_idx].ch); in dim2_tasklet_fn()
[all …]
/Linux-v4.19/drivers/net/wireless/intel/iwlwifi/
Diwl-eeprom-parse.c392 int ch_idx; in iwl_eeprom_enh_txp_read_element() local
398 for (ch_idx = 0; ch_idx < n_channels; ch_idx++) { in iwl_eeprom_enh_txp_read_element()
399 struct ieee80211_channel *chan = &data->channels[ch_idx]; in iwl_eeprom_enh_txp_read_element()
568 ((eeprom_ch_info[ch_idx].flags & EEPROM_CHANNEL_##x) ? # x " " : "")
574 int band, ch_idx; in iwl_init_channel_map() local
591 for (ch_idx = 0; ch_idx < eeprom_ch_count; ch_idx++) { in iwl_init_channel_map()
594 eeprom_ch = &eeprom_ch_info[ch_idx]; in iwl_init_channel_map()
599 eeprom_ch_array[ch_idx], in iwl_init_channel_map()
600 eeprom_ch_info[ch_idx].flags, in iwl_init_channel_map()
608 channel->hw_value = eeprom_ch_array[ch_idx]; in iwl_init_channel_map()
[all …]
Diwl-nvm-parse.c251 static u32 iwl_get_channel_flags(u8 ch_num, int ch_idx, bool is_5ghz, in iwl_get_channel_flags() argument
266 if ((ch_idx - NUM_2GHZ_CHANNELS) % 2 == 0) in iwl_get_channel_flags()
303 int ch_idx; in iwl_init_channel_map() local
320 for (ch_idx = 0; ch_idx < num_of_ch; ch_idx++) { in iwl_init_channel_map()
321 bool is_5ghz = (ch_idx >= num_2ghz_channels); in iwl_init_channel_map()
323 ch_flags = __le16_to_cpup(nvm_ch_flags + ch_idx); in iwl_init_channel_map()
347 nvm_chan[ch_idx], ch_flags); in iwl_init_channel_map()
354 channel->hw_value = nvm_chan[ch_idx]; in iwl_init_channel_map()
371 channel->flags = iwl_get_channel_flags(nvm_chan[ch_idx], in iwl_init_channel_map()
372 ch_idx, is_5ghz, in iwl_init_channel_map()
[all …]
/Linux-v4.19/drivers/usb/gadget/udc/
Dbcm63xx_udc.c210 unsigned int ch_idx; member
658 ENETDMAC_CHANCFG_REG, iudma->ch_idx); in iudma_write()
708 int ch_idx = iudma->ch_idx; in iudma_reset_channel() local
714 usb_dmac_writel(udc, 0, ENETDMAC_CHANCFG_REG, ch_idx); in iudma_reset_channel()
716 while (usb_dmac_readl(udc, ENETDMAC_CHANCFG_REG, ch_idx) & in iudma_reset_channel()
726 ch_idx); in iudma_reset_channel()
731 ch_idx); in iudma_reset_channel()
733 ENETDMAC_CHANCFG_REG, ch_idx); in iudma_reset_channel()
736 usb_dmac_writel(udc, ~0, ENETDMAC_IR_REG, ch_idx); in iudma_reset_channel()
748 ENETDMAC_IRMASK_REG, ch_idx); in iudma_reset_channel()
[all …]
/Linux-v4.19/drivers/staging/most/video/
Dvideo.c32 int ch_idx; member
99 ret = most_start_channel(mdev->iface, mdev->ch_idx, &comp); in comp_vdev_open()
141 most_stop_channel(mdev->iface, mdev->ch_idx, &comp); in comp_vdev_close()
381 if (mdev->iface == iface && mdev->ch_idx == channel_idx) { in get_comp_dev()
486 mdev->ch_idx = channel_idx; in comp_probe_channel()
/Linux-v4.19/drivers/infiniband/ulp/srp/
Dib_srp.c2917 u16 ch_idx; in srp_abort() local
2926 ch_idx = blk_mq_unique_tag_to_hwq(tag); in srp_abort()
2927 if (WARN_ON_ONCE(ch_idx >= target->ch_count)) in srp_abort()
2929 ch = &target->ch[ch_idx]; in srp_abort()