Searched refs:ch_idx (Results 1 – 7 of 7) sorted by relevance
/linux-4.4.14/drivers/staging/most/hdm-i2c/ |
D | hdm_i2c.c | 77 int ch_idx, in configure_channel() argument 82 BUG_ON(ch_idx < 0 || ch_idx >= NUM_CHANNELS); in configure_channel() 83 BUG_ON(dev->is_open[ch_idx]); in configure_channel() 86 pr_err("bad data type for channel %d\n", ch_idx); in configure_channel() 90 if (channel_config->direction != dev->capabilities[ch_idx].direction) { in configure_channel() 91 pr_err("bad direction for channel %d\n", ch_idx); in configure_channel() 99 dev->is_open[ch_idx] = true; in configure_channel() 116 int ch_idx, struct mbo *mbo) in enqueue() argument 121 BUG_ON(ch_idx < 0 || ch_idx >= NUM_CHANNELS); in enqueue() 122 BUG_ON(!dev->is_open[ch_idx]); in enqueue() [all …]
|
/linux-4.4.14/drivers/staging/most/hdm-dim2/ |
D | dim2_hdm.c | 328 static void service_done_flag(struct dim2_hdm *dev, int ch_idx) in service_done_flag() argument 330 struct hdm_channel *hdm_ch = dev->hch + ch_idx; in service_done_flag() 405 int ch_idx; in get_active_channels() local 407 for (ch_idx = 0; ch_idx < DMA_CHANNELS; ch_idx++) { in get_active_channels() 408 if (dev->hch[ch_idx].is_initialized) in get_active_channels() 409 buffer[idx++] = &dev->hch[ch_idx].ch; in get_active_channels() 426 int ch_idx; in dim2_tasklet_fn() local 428 for (ch_idx = 0; ch_idx < DMA_CHANNELS; ch_idx++) { in dim2_tasklet_fn() 429 if (!dev->hch[ch_idx].is_initialized) in dim2_tasklet_fn() 433 DIM_ServiceChannel(&dev->hch[ch_idx].ch); in dim2_tasklet_fn() [all …]
|
/linux-4.4.14/drivers/net/wireless/iwlwifi/ |
D | iwl-nvm-parse.c | 210 static u32 iwl_get_channel_flags(u8 ch_num, int ch_idx, bool is_5ghz, in iwl_get_channel_flags() argument 225 if ((ch_idx - NUM_2GHZ_CHANNELS) % 2 == 0) in iwl_get_channel_flags() 262 int ch_idx; in iwl_init_channel_map() local 280 for (ch_idx = 0; ch_idx < num_of_ch; ch_idx++) { in iwl_init_channel_map() 281 ch_flags = __le16_to_cpup(nvm_ch_flags + ch_idx); in iwl_init_channel_map() 283 if (ch_idx >= num_2ghz_channels && in iwl_init_channel_map() 295 nvm_chan[ch_idx], in iwl_init_channel_map() 297 (ch_idx >= num_2ghz_channels) ? in iwl_init_channel_map() 305 channel->hw_value = nvm_chan[ch_idx]; in iwl_init_channel_map() 306 channel->band = (ch_idx < num_2ghz_channels) ? in iwl_init_channel_map() [all …]
|
D | iwl-eeprom-parse.c | 392 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 …]
|
/linux-4.4.14/drivers/usb/gadget/udc/ |
D | bcm63xx_udc.c | 215 unsigned int ch_idx; member 667 ENETDMAC_CHANCFG_REG, iudma->ch_idx); in iudma_write() 717 int ch_idx = iudma->ch_idx; in iudma_reset_channel() local 723 usb_dmac_writel(udc, 0, ENETDMAC_CHANCFG_REG, ch_idx); in iudma_reset_channel() 725 while (usb_dmac_readl(udc, ENETDMAC_CHANCFG_REG, ch_idx) & in iudma_reset_channel() 735 ch_idx); in iudma_reset_channel() 740 ch_idx); in iudma_reset_channel() 742 ENETDMAC_CHANCFG_REG, ch_idx); in iudma_reset_channel() 745 usb_dmac_writel(udc, ~0, ENETDMAC_IR_REG, ch_idx); in iudma_reset_channel() 757 ENETDMAC_IRMASK_REG, ch_idx); in iudma_reset_channel() [all …]
|
/linux-4.4.14/drivers/staging/most/aim-v4l2/ |
D | video.c | 38 int ch_idx; member 107 ret = most_start_channel(mdev->iface, mdev->ch_idx, &aim_info); in aim_vdev_open() 151 most_stop_channel(mdev->iface, mdev->ch_idx, &aim_info); in aim_vdev_close() 400 if (mdev->iface == iface && mdev->ch_idx == channel_idx) { in get_aim_dev() 515 mdev->ch_idx = channel_idx; in aim_probe_channel()
|
/linux-4.4.14/drivers/infiniband/ulp/srp/ |
D | ib_srp.c | 2533 u16 ch_idx; in srp_abort() local 2542 ch_idx = blk_mq_unique_tag_to_hwq(tag); in srp_abort() 2543 if (WARN_ON_ONCE(ch_idx >= target->ch_count)) in srp_abort() 2545 ch = &target->ch[ch_idx]; in srp_abort()
|