Home
last modified time | relevance | path

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

/linux/drivers/staging/most/i2c/
A 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 …]
/linux/drivers/staging/most/dim2/
A Ddim2.c337 int ch_idx; in get_active_channels() local
339 for (ch_idx = 0; ch_idx < DMA_CHANNELS; ch_idx++) { in get_active_channels()
374 int ch_idx; in dim2_tasklet_fn() local
376 for (ch_idx = 0; ch_idx < DMA_CHANNELS; ch_idx++) { in dim2_tasklet_fn()
384 service_done_flag(dev, ch_idx); in dim2_tasklet_fn()
461 int const ch_addr = ch_idx * 2 + 2; in configure_channel()
464 BUG_ON(ch_idx < 0 || ch_idx >= DMA_CHANNELS); in configure_channel()
552 dev->atx_idx = ch_idx; in configure_channel()
576 BUG_ON(ch_idx < 0 || ch_idx >= DMA_CHANNELS); in enqueue()
652 BUG_ON(ch_idx < 0 || ch_idx >= DMA_CHANNELS); in poison_channel()
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/
A Diwl-eeprom-parse.c334 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()
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()
541 eeprom_ch_array[ch_idx], in iwl_init_channel_map()
542 eeprom_ch_info[ch_idx].flags, in iwl_init_channel_map()
582 eeprom_ch_info[ch_idx].flags, in iwl_init_channel_map()
633 for (ch_idx = 0; ch_idx < eeprom_ch_count; ch_idx++) { in iwl_init_channel_map()
636 eeprom_ch_array[ch_idx], in iwl_init_channel_map()
637 &eeprom_ch_info[ch_idx], in iwl_init_channel_map()
[all …]
A Diwl-nvm-parse.c343 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()
405 nvm_chan[ch_idx], ch_flags); in iwl_init_channel_map()
429 ch_idx, band, in iwl_init_channel_map()
1219 int ch_idx, u16 nvm_flags, in iwl_nvm_get_regdom_bw_flags() argument
1225 if (ch_idx < NUM_2GHZ_CHANNELS && in iwl_nvm_get_regdom_bw_flags()
1262 if (ch_idx >= NUM_2GHZ_CHANNELS) { in iwl_nvm_get_regdom_bw_flags()
1301 int ch_idx; in iwl_parse_nvm_mcc_info() local
1346 for (ch_idx = 0; ch_idx < num_of_ch; ch_idx++) { in iwl_parse_nvm_mcc_info()
[all …]
/linux/drivers/iio/adc/
A Dti-tsc2046.c253 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()
385 unsigned int ch_idx, group = 0; in tsc2046_adc_update_scan_mode() local
392 size += tsc2046_adc_group_set_layout(priv, group, ch_idx); in tsc2046_adc_update_scan_mode()
393 tsc2046_adc_group_set_cmd(priv, group, ch_idx); in tsc2046_adc_update_scan_mode()
510 unsigned int ch_idx; in tsc2046_adc_setup_spi_msg() local
551 for (ch_idx = 0; ch_idx < priv->dcfg->num_channels; ch_idx++) in tsc2046_adc_setup_spi_msg()
[all …]
/linux/drivers/usb/gadget/udc/
A Dbcm63xx_udc.c211 unsigned int ch_idx; member
706 int ch_idx = iudma->ch_idx; in iudma_reset_channel() local
724 ch_idx); in iudma_reset_channel()
729 ch_idx); in iudma_reset_channel()
731 ENETDMAC_CHANCFG_REG, ch_idx); in iudma_reset_channel()
746 ENETDMAC_IRMASK_REG, ch_idx); in iudma_reset_channel()
766 iudma->ch_idx = ch_idx; in iudma_init_channel()
767 iudma->is_tx = !!(ch_idx & 0x01); in iudma_init_channel()
2052 ENETDMAC_IR_REG, iudma->ch_idx); in bcm63xx_udc_data_isr()
2167 int ch_idx, i; in bcm63xx_iudma_dbg_show() local
[all …]
/linux/drivers/net/wireless/realtek/rtw88/
A Dphy.c1512 int ch_idx; in rtw_channel_to_idx() local
1516 ch_idx = channel - 1; in rtw_channel_to_idx()
1520 for (ch_idx = 0; ch_idx < n_channel; ch_idx++) in rtw_channel_to_idx()
1527 if (ch_idx >= n_channel) in rtw_channel_to_idx()
1530 return ch_idx; in rtw_channel_to_idx()
1539 int ch_idx; in rtw_phy_set_tx_power_limit() local
1543 ch_idx = rtw_channel_to_idx(band, ch); in rtw_phy_set_tx_power_limit()
1606 u8 ch_idx; in rtw_xref_5g_txpwr_lmt_by_ch() local
1608 for (ch_idx = 0; ch_idx < RTW_MAX_CHANNEL_NUM_5G; ch_idx++) in rtw_xref_5g_txpwr_lmt_by_ch()
2015 int ch_idx; in rtw_phy_get_tx_power_limit() local
[all …]
/linux/drivers/staging/most/video/
A 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()
/linux/drivers/net/can/usb/etas_es58x/
A Des58x_core.c2248 int ch_idx, ret; in es58x_probe() local
2258 for (ch_idx = 0; ch_idx < es58x_dev->num_can_ch; ch_idx++) { in es58x_probe()
2259 ret = es58x_init_netdev(es58x_dev, ch_idx); in es58x_probe()
/linux/drivers/infiniband/ulp/srp/
A Dib_srp.c2794 u16 ch_idx; in srp_abort() local
2803 ch_idx = blk_mq_unique_tag_to_hwq(tag); in srp_abort()
2804 if (WARN_ON_ONCE(ch_idx >= target->ch_count)) in srp_abort()
2806 ch = &target->ch[ch_idx]; in srp_abort()
3636 int ret, i, ch_idx; in add_target_store() local
3772 for (ch_idx = 0; ch_idx < target->ch_count; ++ch_idx) { in add_target_store()
3773 ch = &target->ch[ch_idx]; in add_target_store()
3775 ch->comp_vector = ch_idx % ibdev->num_comp_vectors; in add_target_store()
3798 ch_idx, in add_target_store()
3800 if (ch_idx == 0) { in add_target_store()
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
A Dscan.c1536 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/drivers/net/wireless/realtek/rtw89/
A Dphy.c1094 u8 ch_idx = rtw89_channel_to_idx(rtwdev, ch); in rtw89_phy_read_txpwr_limit() local
1101 lmt = (*chip->txpwr_lmt_2g)[bw][ntx][rs][bf][regd][ch_idx]; in rtw89_phy_read_txpwr_limit()
1104 lmt = (*chip->txpwr_lmt_5g)[bw][ntx][rs][bf][regd][ch_idx]; in rtw89_phy_read_txpwr_limit()
1219 u8 ch_idx = rtw89_channel_to_idx(rtwdev, ch); in rtw89_phy_read_txpwr_limit_ru() local
1226 lmt_ru = (*chip->txpwr_lmt_ru_2g)[ru][ntx][regd][ch_idx]; in rtw89_phy_read_txpwr_limit_ru()
1229 lmt_ru = (*chip->txpwr_lmt_ru_5g)[ru][ntx][regd][ch_idx]; in rtw89_phy_read_txpwr_limit_ru()
/linux/sound/soc/codecs/
A 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()

Completed in 62 milliseconds