/Linux-v5.15/drivers/staging/most/i2c/ |
D | i2c.c | 64 int ch_idx, in configure_channel() argument 71 BUG_ON(ch_idx < 0 || ch_idx >= NUM_CHANNELS); in configure_channel() 74 pr_err("bad data type for channel %d\n", ch_idx); in configure_channel() 78 if (channel_config->direction != dev->capabilities[ch_idx].direction) { in configure_channel() 79 pr_err("bad direction for channel %d\n", ch_idx); in configure_channel() 120 int ch_idx, struct mbo *mbo) in enqueue() argument 125 BUG_ON(ch_idx < 0 || ch_idx >= NUM_CHANNELS); in enqueue() 127 if (ch_idx == CH_RX) { in enqueue() 165 int ch_idx) in poison_channel() argument 170 BUG_ON(ch_idx < 0 || ch_idx >= NUM_CHANNELS); in poison_channel() [all …]
|
/Linux-v5.15/drivers/staging/most/dim2/ |
D | dim2.c | 251 static void service_done_flag(struct dim2_hdm *dev, int ch_idx) in service_done_flag() argument 253 struct hdm_channel *hdm_ch = dev->hch + ch_idx; in service_done_flag() 326 int ch_idx; in get_active_channels() local 328 for (ch_idx = 0; ch_idx < DMA_CHANNELS; ch_idx++) { in get_active_channels() 329 if (dev->hch[ch_idx].is_initialized) in get_active_channels() 330 buffer[idx++] = &dev->hch[ch_idx].ch; in get_active_channels() 363 int ch_idx; in dim2_tasklet_fn() local 365 for (ch_idx = 0; ch_idx < DMA_CHANNELS; ch_idx++) { in dim2_tasklet_fn() 366 if (!dev->hch[ch_idx].is_initialized) in dim2_tasklet_fn() 370 dim_service_channel(&dev->hch[ch_idx].ch); in dim2_tasklet_fn() [all …]
|
/Linux-v5.15/drivers/net/wireless/intel/iwlwifi/ |
D | iwl-eeprom-parse.c | 334 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() 510 ((eeprom_ch_info[ch_idx].flags & EEPROM_CHANNEL_##x) ? # x " " : "") 516 int band, ch_idx; in iwl_init_channel_map() local 533 for (ch_idx = 0; ch_idx < eeprom_ch_count; ch_idx++) { in iwl_init_channel_map() 536 eeprom_ch = &eeprom_ch_info[ch_idx]; in iwl_init_channel_map() 541 eeprom_ch_array[ch_idx], in iwl_init_channel_map() 542 eeprom_ch_info[ch_idx].flags, in iwl_init_channel_map() 550 channel->hw_value = eeprom_ch_array[ch_idx]; in iwl_init_channel_map() [all …]
|
D | iwl-nvm-parse.c | 294 static u32 iwl_get_channel_flags(u8 ch_num, int ch_idx, enum nl80211_band band, in iwl_get_channel_flags() argument 305 if ((ch_idx - NUM_2GHZ_CHANNELS) % 2 == 0) in iwl_get_channel_flags() 337 static enum nl80211_band iwl_nl80211_band_from_channel_idx(int ch_idx) in iwl_nl80211_band_from_channel_idx() argument 339 if (ch_idx >= NUM_2GHZ_CHANNELS + NUM_5GHZ_CHANNELS) { in iwl_nl80211_band_from_channel_idx() 343 if (ch_idx >= NUM_2GHZ_CHANNELS) in iwl_nl80211_band_from_channel_idx() 353 int ch_idx; in iwl_init_channel_map() local 371 for (ch_idx = 0; ch_idx < num_of_ch; ch_idx++) { in iwl_init_channel_map() 373 iwl_nl80211_band_from_channel_idx(ch_idx); in iwl_init_channel_map() 377 __le32_to_cpup((__le32 *)nvm_ch_flags + ch_idx); in iwl_init_channel_map() 380 __le16_to_cpup((__le16 *)nvm_ch_flags + ch_idx); in iwl_init_channel_map() [all …]
|
/Linux-v5.15/drivers/iio/adc/ |
D | ti-tsc2046.c | 223 static u8 tsc2046_adc_get_cmd(struct tsc2046_adc_priv *priv, int ch_idx, in tsc2046_adc_get_cmd() argument 237 return TI_TSC2046_START | FIELD_PREP(TI_TSC2046_ADDR, ch_idx) | pd; in tsc2046_adc_get_cmd() 245 static int tsc2046_adc_read_one(struct tsc2046_adc_priv *priv, int ch_idx, in tsc2046_adc_read_one() argument 253 priv->tx_one->cmd = tsc2046_adc_get_cmd(priv, ch_idx, false); in tsc2046_adc_read_one() 279 unsigned int ch_idx) in tsc2046_adc_group_set_layout() argument 281 struct tsc2046_adc_ch_cfg *ch = &priv->ch_cfg[ch_idx]; in tsc2046_adc_group_set_layout() 301 unsigned int group, int ch_idx) in tsc2046_adc_group_set_cmd() argument 311 cmd = tsc2046_adc_get_cmd(priv, ch_idx, true); in tsc2046_adc_group_set_cmd() 317 priv->tx[l->offset + i].cmd = tsc2046_adc_get_cmd(priv, ch_idx, false); in tsc2046_adc_group_set_cmd() 385 unsigned int ch_idx, group = 0; in tsc2046_adc_update_scan_mode() local [all …]
|
/Linux-v5.15/drivers/usb/gadget/udc/ |
D | bcm63xx_udc.c | 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() 746 ENETDMAC_IRMASK_REG, ch_idx); in iudma_reset_channel() [all …]
|
/Linux-v5.15/drivers/net/wireless/realtek/rtw88/ |
D | phy.c | 1448 int ch_idx; in rtw_channel_to_idx() local 1452 ch_idx = channel - 1; in rtw_channel_to_idx() 1456 for (ch_idx = 0; ch_idx < n_channel; ch_idx++) in rtw_channel_to_idx() 1457 if (rtw_channel_idx_5g[ch_idx] == channel) in rtw_channel_to_idx() 1463 if (ch_idx >= n_channel) in rtw_channel_to_idx() 1466 return ch_idx; in rtw_channel_to_idx() 1475 int ch_idx; in rtw_phy_set_tx_power_limit() local 1479 ch_idx = rtw_channel_to_idx(band, ch); in rtw_phy_set_tx_power_limit() 1482 rs >= RTW_RATE_SECTION_MAX || ch_idx < 0) { in rtw_phy_set_tx_power_limit() 1485 regd, band, bw, rs, ch_idx, pwr_limit); in rtw_phy_set_tx_power_limit() [all …]
|
/Linux-v5.15/drivers/staging/most/video/ |
D | video.c | 31 int ch_idx; member 98 ret = most_start_channel(mdev->iface, mdev->ch_idx, &comp); in comp_vdev_open() 140 most_stop_channel(mdev->iface, mdev->ch_idx, &comp); in comp_vdev_close() 376 if (mdev->iface == iface && mdev->ch_idx == channel_idx) { in get_comp_dev() 482 mdev->ch_idx = channel_idx; in comp_probe_channel()
|
/Linux-v5.15/drivers/net/can/usb/etas_es58x/ |
D | es58x_core.c | 2250 int ch_idx, ret; in es58x_probe() local 2260 for (ch_idx = 0; ch_idx < es58x_dev->num_can_ch; ch_idx++) { in es58x_probe() 2261 ret = es58x_init_netdev(es58x_dev, ch_idx); in es58x_probe()
|
/Linux-v5.15/drivers/infiniband/ulp/srp/ |
D | ib_srp.c | 2787 u16 ch_idx; in srp_abort() local 2796 ch_idx = blk_mq_unique_tag_to_hwq(tag); in srp_abort() 2797 if (WARN_ON_ONCE(ch_idx >= target->ch_count)) in srp_abort() 2799 ch = &target->ch[ch_idx]; in srp_abort() 3627 int ret, i, ch_idx; in add_target_store() local 3763 for (ch_idx = 0; ch_idx < target->ch_count; ++ch_idx) { in add_target_store() 3764 ch = &target->ch[ch_idx]; in add_target_store() 3766 ch->comp_vector = ch_idx % ibdev->num_comp_vectors; in add_target_store() 3789 ch_idx, in add_target_store() 3791 if (ch_idx == 0) { in add_target_store()
|
/Linux-v5.15/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | scan.c | 1536 int ch_idx, bitmap_idx; in iwl_mvm_scan_ch_add_n_aps_override() local 1538 ch_idx = iwl_mvm_scan_ch_and_band_to_idx(ch_id, band); in iwl_mvm_scan_ch_add_n_aps_override() 1539 if (ch_idx < 0) in iwl_mvm_scan_ch_add_n_aps_override() 1542 bitmap_idx = ch_idx / 8; in iwl_mvm_scan_ch_add_n_aps_override() 1546 ch_idx = ch_idx % 8; in iwl_mvm_scan_ch_add_n_aps_override() 1547 ch_bitmap[bitmap_idx] |= BIT(ch_idx); in iwl_mvm_scan_ch_add_n_aps_override()
|
/Linux-v5.15/sound/soc/codecs/ |
D | madera.c | 403 int n, i, in_idx, ch_idx; in madera_prop_get_inmode() local 415 ch_idx = 0; in madera_prop_get_inmode() 417 pdata->inmode[in_idx][ch_idx] = tmp[i]; in madera_prop_get_inmode() 419 if (++ch_idx == MADERA_MAX_MUXED_CHANNELS) { in madera_prop_get_inmode() 420 ch_idx = 0; in madera_prop_get_inmode()
|