/Linux-v5.4/drivers/staging/most/i2c/ |
D | i2c.c | 65 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-v5.4/drivers/staging/most/dim2/ |
D | dim2.c | 250 static void service_done_flag(struct dim2_hdm *dev, int ch_idx) in service_done_flag() argument 252 struct hdm_channel *hdm_ch = dev->hch + ch_idx; in service_done_flag() 325 int ch_idx; in get_active_channels() local 327 for (ch_idx = 0; ch_idx < DMA_CHANNELS; ch_idx++) { in get_active_channels() 328 if (dev->hch[ch_idx].is_initialized) in get_active_channels() 329 buffer[idx++] = &dev->hch[ch_idx].ch; in get_active_channels() 362 int ch_idx; in dim2_tasklet_fn() local 364 for (ch_idx = 0; ch_idx < DMA_CHANNELS; ch_idx++) { in dim2_tasklet_fn() 365 if (!dev->hch[ch_idx].is_initialized) in dim2_tasklet_fn() 369 dim_service_channel(&dev->hch[ch_idx].ch); in dim2_tasklet_fn() [all …]
|
/Linux-v5.4/drivers/net/wireless/intel/iwlwifi/ |
D | iwl-eeprom-parse.c | 389 int ch_idx; in iwl_eeprom_enh_txp_read_element() local 395 for (ch_idx = 0; ch_idx < n_channels; ch_idx++) { in iwl_eeprom_enh_txp_read_element() 396 struct ieee80211_channel *chan = &data->channels[ch_idx]; in iwl_eeprom_enh_txp_read_element() 565 ((eeprom_ch_info[ch_idx].flags & EEPROM_CHANNEL_##x) ? # x " " : "") 571 int band, ch_idx; in iwl_init_channel_map() local 588 for (ch_idx = 0; ch_idx < eeprom_ch_count; ch_idx++) { in iwl_init_channel_map() 591 eeprom_ch = &eeprom_ch_info[ch_idx]; in iwl_init_channel_map() 596 eeprom_ch_array[ch_idx], in iwl_init_channel_map() 597 eeprom_ch_info[ch_idx].flags, in iwl_init_channel_map() 605 channel->hw_value = eeprom_ch_array[ch_idx]; in iwl_init_channel_map() [all …]
|
D | iwl-nvm-parse.c | 259 static u32 iwl_get_channel_flags(u8 ch_num, int ch_idx, bool is_5ghz, in iwl_get_channel_flags() argument 270 if ((ch_idx - NUM_2GHZ_CHANNELS) % 2 == 0) in iwl_get_channel_flags() 307 int ch_idx; in iwl_init_channel_map() local 325 for (ch_idx = 0; ch_idx < num_of_ch; ch_idx++) { in iwl_init_channel_map() 326 bool is_5ghz = (ch_idx >= num_2ghz_channels); in iwl_init_channel_map() 330 __le32_to_cpup((__le32 *)nvm_ch_flags + ch_idx); in iwl_init_channel_map() 333 __le16_to_cpup((__le16 *)nvm_ch_flags + ch_idx); in iwl_init_channel_map() 357 nvm_chan[ch_idx], ch_flags); in iwl_init_channel_map() 364 channel->hw_value = nvm_chan[ch_idx]; in iwl_init_channel_map() 381 channel->flags = iwl_get_channel_flags(nvm_chan[ch_idx], in iwl_init_channel_map() [all …]
|
/Linux-v5.4/drivers/usb/gadget/udc/ |
D | bcm63xx_udc.c | 210 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-v5.4/drivers/net/wireless/realtek/rtw88/ |
D | phy.c | 1241 int ch_idx; in rtw_channel_to_idx() local 1245 ch_idx = channel - 1; in rtw_channel_to_idx() 1249 for (ch_idx = 0; ch_idx < n_channel; ch_idx++) in rtw_channel_to_idx() 1250 if (rtw_channel_idx_5g[ch_idx] == channel) in rtw_channel_to_idx() 1256 if (ch_idx >= n_channel) in rtw_channel_to_idx() 1259 return ch_idx; in rtw_channel_to_idx() 1268 int ch_idx; in rtw_phy_set_tx_power_limit() local 1272 ch_idx = rtw_channel_to_idx(band, ch); in rtw_phy_set_tx_power_limit() 1275 rs >= RTW_RATE_SECTION_MAX || ch_idx < 0) { in rtw_phy_set_tx_power_limit() 1278 regd, band, bw, rs, ch_idx, pwr_limit); in rtw_phy_set_tx_power_limit() [all …]
|
/Linux-v5.4/drivers/staging/most/video/ |
D | video.c | 32 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() 377 if (mdev->iface == iface && mdev->ch_idx == channel_idx) { in get_comp_dev() 483 mdev->ch_idx = channel_idx; in comp_probe_channel()
|
/Linux-v5.4/sound/soc/codecs/ |
D | madera.c | 354 int n, i, in_idx, ch_idx; in madera_prop_get_inmode() local 366 ch_idx = 0; in madera_prop_get_inmode() 368 pdata->inmode[in_idx][ch_idx] = tmp[i]; in madera_prop_get_inmode() 370 if (++ch_idx == MADERA_MAX_MUXED_CHANNELS) { in madera_prop_get_inmode() 371 ch_idx = 0; in madera_prop_get_inmode()
|
/Linux-v5.4/drivers/infiniband/ulp/srp/ |
D | ib_srp.c | 2979 u16 ch_idx; in srp_abort() local 2988 ch_idx = blk_mq_unique_tag_to_hwq(tag); in srp_abort() 2989 if (WARN_ON_ONCE(ch_idx >= target->ch_count)) in srp_abort() 2991 ch = &target->ch[ch_idx]; in srp_abort()
|