Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/staging/most/i2c/
Di2c.c64 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 …]
/kernel/linux/linux-5.10/drivers/staging/most/dim2/
Ddim2.c259 static void service_done_flag(struct dim2_hdm *dev, int ch_idx) in service_done_flag() argument
261 struct hdm_channel *hdm_ch = dev->hch + ch_idx; in service_done_flag()
334 int ch_idx; in get_active_channels() local
336 for (ch_idx = 0; ch_idx < DMA_CHANNELS; ch_idx++) { in get_active_channels()
337 if (dev->hch[ch_idx].is_initialized) in get_active_channels()
338 buffer[idx++] = &dev->hch[ch_idx].ch; in get_active_channels()
371 int ch_idx; in dim2_tasklet_fn() local
373 for (ch_idx = 0; ch_idx < DMA_CHANNELS; ch_idx++) { in dim2_tasklet_fn()
374 if (!dev->hch[ch_idx].is_initialized) in dim2_tasklet_fn()
378 dim_service_channel(&dev->hch[ch_idx].ch); in dim2_tasklet_fn()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/
Diwl-eeprom-parse.c389 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 …]
Diwl-nvm-parse.c347 static u32 iwl_get_channel_flags(u8 ch_num, int ch_idx, enum nl80211_band band, in iwl_get_channel_flags() argument
358 if ((ch_idx - NUM_2GHZ_CHANNELS) % 2 == 0) in iwl_get_channel_flags()
390 static enum nl80211_band iwl_nl80211_band_from_channel_idx(int ch_idx) in iwl_nl80211_band_from_channel_idx() argument
392 if (ch_idx >= NUM_2GHZ_CHANNELS) in iwl_nl80211_band_from_channel_idx()
402 int ch_idx; in iwl_init_channel_map() local
420 for (ch_idx = 0; ch_idx < num_of_ch; ch_idx++) { in iwl_init_channel_map()
422 iwl_nl80211_band_from_channel_idx(ch_idx); in iwl_init_channel_map()
426 __le32_to_cpup((__le32 *)nvm_ch_flags + ch_idx); in iwl_init_channel_map()
429 __le16_to_cpup((__le16 *)nvm_ch_flags + ch_idx); in iwl_init_channel_map()
454 nvm_chan[ch_idx], ch_flags); in iwl_init_channel_map()
[all …]
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/
Dbcm63xx_udc.c211 unsigned int ch_idx; member
659 ENETDMAC_CHANCFG_REG, iudma->ch_idx); in iudma_write()
709 int ch_idx = iudma->ch_idx; in iudma_reset_channel() local
715 usb_dmac_writel(udc, 0, ENETDMAC_CHANCFG_REG, ch_idx); in iudma_reset_channel()
717 while (usb_dmac_readl(udc, ENETDMAC_CHANCFG_REG, ch_idx) & in iudma_reset_channel()
727 ch_idx); in iudma_reset_channel()
732 ch_idx); in iudma_reset_channel()
734 ENETDMAC_CHANCFG_REG, ch_idx); in iudma_reset_channel()
737 usb_dmac_writel(udc, ~0, ENETDMAC_IR_REG, ch_idx); in iudma_reset_channel()
749 ENETDMAC_IRMASK_REG, ch_idx); in iudma_reset_channel()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtw88/
Dphy.c1301 int ch_idx; in rtw_channel_to_idx() local
1305 ch_idx = channel - 1; in rtw_channel_to_idx()
1309 for (ch_idx = 0; ch_idx < n_channel; ch_idx++) in rtw_channel_to_idx()
1310 if (rtw_channel_idx_5g[ch_idx] == channel) in rtw_channel_to_idx()
1316 if (ch_idx >= n_channel) in rtw_channel_to_idx()
1319 return ch_idx; in rtw_channel_to_idx()
1328 int ch_idx; in rtw_phy_set_tx_power_limit() local
1332 ch_idx = rtw_channel_to_idx(band, ch); in rtw_phy_set_tx_power_limit()
1335 rs >= RTW_RATE_SECTION_MAX || ch_idx < 0) { in rtw_phy_set_tx_power_limit()
1338 regd, band, bw, rs, ch_idx, pwr_limit); in rtw_phy_set_tx_power_limit()
[all …]
/kernel/linux/linux-5.10/drivers/staging/most/video/
Dvideo.c31 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()
/kernel/linux/linux-5.10/drivers/hwmon/
Dmr75203.c183 u8 vm_idx, ch_idx; in pvt_read_in() local
191 ch_idx = channel % pvt->c_num; in pvt_read_in()
202 ret = regmap_read(v_map, VM_SDIF_DATA(vm_idx, ch_idx), &n); in pvt_read_in()
/kernel/linux/linux-5.10/drivers/infiniband/ulp/srp/
Dib_srp.c2808 u16 ch_idx; in srp_abort() local
2817 ch_idx = blk_mq_unique_tag_to_hwq(tag); in srp_abort()
2818 if (WARN_ON_ONCE(ch_idx >= target->ch_count)) in srp_abort()
2820 ch = &target->ch[ch_idx]; in srp_abort()
3694 int ret, i, ch_idx; in srp_create_target() local
3832 for (ch_idx = 0; ch_idx < target->ch_count; ++ch_idx) { in srp_create_target()
3833 ch = &target->ch[ch_idx]; in srp_create_target()
3835 ch->comp_vector = ch_idx % ibdev->num_comp_vectors; in srp_create_target()
3862 ch_idx, in srp_create_target()
3864 if (ch_idx == 0) { in srp_create_target()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/mvm/
Dscan.c1570 int ch_idx, bitmap_idx; in iwl_mvm_scan_ch_add_n_aps_override() local
1572 ch_idx = iwl_mvm_scan_ch_and_band_to_idx(ch_id, band); in iwl_mvm_scan_ch_add_n_aps_override()
1573 if (ch_idx < 0) in iwl_mvm_scan_ch_add_n_aps_override()
1576 bitmap_idx = ch_idx / 8; in iwl_mvm_scan_ch_add_n_aps_override()
1580 ch_idx = ch_idx % 8; in iwl_mvm_scan_ch_add_n_aps_override()
1581 ch_bitmap[bitmap_idx] |= BIT(ch_idx); in iwl_mvm_scan_ch_add_n_aps_override()
/kernel/linux/linux-5.10/sound/soc/codecs/
Dmadera.c403 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()