Home
last modified time | relevance | path

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

12

/linux-6.15/drivers/staging/most/i2c/
H A Di2c.c67 int ch_idx, in configure_channel() argument
74 BUG_ON(ch_idx < 0 || ch_idx >= NUM_CHANNELS); in configure_channel()
77 pr_err("bad data type for channel %d\n", ch_idx); in configure_channel()
81 if (channel_config->direction != dev->capabilities[ch_idx].direction) { in configure_channel()
82 pr_err("bad direction for channel %d\n", ch_idx); in configure_channel()
123 int ch_idx, struct mbo *mbo) in enqueue() argument
128 BUG_ON(ch_idx < 0 || ch_idx >= NUM_CHANNELS); in enqueue()
130 if (ch_idx == CH_RX) { in enqueue()
168 int ch_idx) in poison_channel() argument
173 BUG_ON(ch_idx < 0 || ch_idx >= NUM_CHANNELS); in poison_channel()
[all …]
/linux-6.15/drivers/staging/most/dim2/
H 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()
368 int ch_idx; in dim2_task_irq() local
370 for (ch_idx = 0; ch_idx < DMA_CHANNELS; ch_idx++) { in dim2_task_irq()
378 service_done_flag(dev, ch_idx); in dim2_task_irq()
455 int const ch_addr = ch_idx * 2 + 2; in configure_channel()
458 BUG_ON(ch_idx < 0 || ch_idx >= DMA_CHANNELS); in configure_channel()
546 dev->atx_idx = ch_idx; in configure_channel()
570 BUG_ON(ch_idx < 0 || ch_idx >= DMA_CHANNELS); in enqueue()
646 BUG_ON(ch_idx < 0 || ch_idx >= DMA_CHANNELS); in poison_channel()
[all …]
/linux-6.15/drivers/iio/adc/
H A Dti-tsc2046.c255 switch (ch_idx) { in tsc2046_adc_get_cmd()
276 struct tsc2046_adc_ch_cfg *ch = &priv->ch_cfg[ch_idx]; in tsc2046_adc_read_one()
309 cmd = tsc2046_adc_get_cmd(priv, ch_idx, true); in tsc2046_adc_read_one()
347 unsigned int ch_idx) in tsc2046_adc_group_set_layout() argument
369 unsigned int group, int ch_idx) in tsc2046_adc_group_set_cmd() argument
379 cmd = tsc2046_adc_get_cmd(priv, ch_idx, true); in tsc2046_adc_group_set_cmd()
484 unsigned int ch_idx, group = 0; in tsc2046_adc_update_scan_mode() local
492 tsc2046_adc_group_set_cmd(priv, group, ch_idx); in tsc2046_adc_update_scan_mode()
649 unsigned int ch_idx; in tsc2046_adc_setup_spi_msg() local
680 for (ch_idx = 0; ch_idx < ARRAY_SIZE(priv->l); ch_idx++) in tsc2046_adc_setup_spi_msg()
[all …]
/linux-6.15/drivers/net/wireless/intel/iwlwifi/dvm/
H A Deeprom.c335 int ch_idx; in iwl_eeprom_enh_txp_read_element() local
341 for (ch_idx = 0; ch_idx < n_channels; ch_idx++) { in iwl_eeprom_enh_txp_read_element()
517 int band, ch_idx; in iwl_init_channel_map() local
534 for (ch_idx = 0; ch_idx < eeprom_ch_count; ch_idx++) { in iwl_init_channel_map()
542 eeprom_ch_array[ch_idx], in iwl_init_channel_map()
543 eeprom_ch_info[ch_idx].flags, in iwl_init_channel_map()
583 eeprom_ch_info[ch_idx].flags, in iwl_init_channel_map()
634 for (ch_idx = 0; ch_idx < eeprom_ch_count; ch_idx++) { in iwl_init_channel_map()
637 eeprom_ch_array[ch_idx], in iwl_init_channel_map()
638 &eeprom_ch_info[ch_idx], in iwl_init_channel_map()
[all …]
/linux-6.15/drivers/usb/gadget/udc/
H 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()
2051 ENETDMAC_IR_REG, iudma->ch_idx); in bcm63xx_udc_data_isr()
2166 int ch_idx, i; in bcm63xx_iudma_dbg_show() local
[all …]
/linux-6.15/drivers/net/wireless/intel/iwlwifi/
H A Diwl-nvm-parse.c391 if (ch_idx >= NUM_2GHZ_CHANNELS) in iwl_nl80211_band_from_channel_idx()
404 int ch_idx; in iwl_init_channel_map() local
422 for (ch_idx = 0; ch_idx < num_of_ch; ch_idx++) { in iwl_init_channel_map()
456 nvm_chan[ch_idx], ch_flags); in iwl_init_channel_map()
480 ch_idx, band, in iwl_init_channel_map()
1621 int ch_idx, u16 nvm_flags, in iwl_nvm_get_regdom_bw_flags() argument
1627 if (ch_idx < NUM_2GHZ_CHANNELS && in iwl_nvm_get_regdom_bw_flags()
1685 if (ch_idx >= NUM_2GHZ_CHANNELS) { in iwl_nvm_get_regdom_bw_flags()
1738 int ch_idx; in iwl_parse_nvm_mcc_info() local
1786 for (ch_idx = 0; ch_idx < num_of_ch; ch_idx++) { in iwl_parse_nvm_mcc_info()
[all …]
/linux-6.15/drivers/mailbox/
H A Darm_mhuv3.c289 u32 ch_idx; member
390 e->pending_db[priv->ch_idx] = 0; in mhuv3_doorbell_tx_shutdown()
418 writel_relaxed(BIT(priv->doorbell), &mhu->mbx->dbcw[priv->ch_idx].clr); in mhuv3_doorbell_rx_complete()
427 done = !(readl_relaxed(&mhu->pbx->dbcw[priv->ch_idx].st) & in mhuv3_doorbell_last_tx_done()
435 e->pending_db[priv->ch_idx] &= ~BIT(priv->doorbell); in mhuv3_doorbell_last_tx_done()
450 if (e->pending_db[priv->ch_idx] & BIT(priv->doorbell)) in mhuv3_doorbell_send_data()
453 e->pending_db[priv->ch_idx] |= BIT(priv->doorbell); in mhuv3_doorbell_send_data()
456 writel_relaxed(BIT(priv->doorbell), &mhu->pbx->dbcw[priv->ch_idx].set); in mhuv3_doorbell_send_data()
613 priv->ch_idx = i; in mhuv3_dbe_channels_init()
898 priv->ch_idx); in mhuv3_pbx_comb_interrupt()
[all …]
/linux-6.15/drivers/net/wireless/realtek/rtw88/
H A Dphy.c1592 int ch_idx; in rtw_channel_to_idx() local
1596 ch_idx = channel - 1; in rtw_channel_to_idx()
1600 for (ch_idx = 0; ch_idx < n_channel; ch_idx++) in rtw_channel_to_idx()
1607 if (ch_idx >= n_channel) in rtw_channel_to_idx()
1610 return ch_idx; in rtw_channel_to_idx()
1619 int ch_idx; in rtw_phy_set_tx_power_limit() local
1623 ch_idx = rtw_channel_to_idx(band, ch); in rtw_phy_set_tx_power_limit()
1690 u8 ch_idx; in rtw_xref_5g_txpwr_lmt_by_ch() local
1692 for (ch_idx = 0; ch_idx < RTW_MAX_CHANNEL_NUM_5G; ch_idx++) in rtw_xref_5g_txpwr_lmt_by_ch()
2157 int ch_idx; in rtw_phy_get_tx_power_limit() local
[all …]
/linux-6.15/drivers/gpu/drm/amd/amdgpu/
H A Dumc_v8_10.h55 #define SWIZZLE_MODE_TMP_ADDR(na, ch_num, ch_idx) \ argument
56 ((((na) >> 10) * (ch_num) + (ch_idx)) << 10)
/linux-6.15/drivers/staging/most/video/
H 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()
375 if (mdev->iface == iface && mdev->ch_idx == channel_idx) { in get_comp_dev()
481 mdev->ch_idx = channel_idx; in comp_probe_channel()
/linux-6.15/drivers/net/wireless/ralink/rt2x00/
H A Drt2800lib.c8770 u8 ch_idx; in rt2800_rxiq_calibration() local
8883 for (ch_idx = 0; ch_idx < 2; ch_idx = ch_idx + 1) { in rt2800_rxiq_calibration()
9350 if (ch_idx == 0) in rt2800_write_dc()
9631 for (ch_idx = 0; ch_idx < 2; ch_idx++) in rt2800_loft_iq_calibration()
9647 for (ch_idx = 0; ch_idx < 2; ch_idx++) { in rt2800_loft_iq_calibration()
9657 if (ch_idx == 0) in rt2800_loft_iq_calibration()
9694 vga_gain[ch_idx] = vga_gain[ch_idx] - 2) { in rt2800_loft_iq_calibration()
9849 for (ch_idx = 0; ch_idx < 2; ch_idx++) in rt2800_loft_iq_calibration()
9860 for (ch_idx = 0; ch_idx < 2; ch_idx++) { in rt2800_loft_iq_calibration()
9903 for (; vga_gain[ch_idx] < 19; vga_gain[ch_idx] = (vga_gain[ch_idx] + count_step)) { in rt2800_loft_iq_calibration()
[all …]
/linux-6.15/drivers/iio/light/
H A Dopt4060.c924 int ch_sel, ch_idx = chan->scan_index; in opt4060_read_event_config() local
939 return ch_sel == ch_idx; in opt4060_read_event_config()
949 int ch_sel, ch_idx = chan->scan_index; in opt4060_write_event_config() local
967 (ch_idx != ch_sel)) in opt4060_write_event_config()
973 ret = opt4060_set_channel_sel(chip, ch_idx); in opt4060_write_event_config()
977 if (ch_idx == ch_sel) { in opt4060_write_event_config()
/linux-6.15/sound/soc/codecs/
H A Dwcd937x.h492 #define WCD937X_SWRM_CH_MASK(ch_idx) BIT(ch_idx - 1) argument
H A Dwcd937x.c1322 int ch_idx = mixer->reg; in wcd937x_get_swr_port() local
1326 portidx = wcd->ch_info[ch_idx].port_num; in wcd937x_get_swr_port()
1341 int ch_idx = mixer->reg; in wcd937x_set_swr_port() local
1347 portidx = wcd->ch_info[ch_idx].port_num; in wcd937x_set_swr_port()
1352 wcd937x_connect_port(wcd, portidx, ch_idx, enable); in wcd937x_set_swr_port()
1357 wcd937x_connect_port(wcd, portidx, ch_idx, enable); in wcd937x_set_swr_port()
H A Dwcd938x.c1853 int portidx, ch_idx = mixer->reg; in wcd938x_get_swr_port() local
1857 portidx = wcd->ch_info[ch_idx].port_num; in wcd938x_get_swr_port()
1872 int ch_idx = mixer->reg; in wcd938x_set_swr_port() local
1879 portidx = wcd->ch_info[ch_idx].port_num; in wcd938x_set_swr_port()
1887 wcd938x_connect_port(wcd, portidx, ch_idx, enable); in wcd938x_set_swr_port()
H A Dmadera.c404 int n, i, in_idx, ch_idx; in madera_prop_get_inmode() local
416 ch_idx = 0; in madera_prop_get_inmode()
418 pdata->inmode[in_idx][ch_idx] = tmp[i]; in madera_prop_get_inmode()
420 if (++ch_idx == MADERA_MAX_MUXED_CHANNELS) { in madera_prop_get_inmode()
421 ch_idx = 0; in madera_prop_get_inmode()
/linux-6.15/drivers/hwmon/
H A Dmr75203.c316 u8 vm_idx, ch_idx; in pvt_read_in() local
323 ch_idx = pvt->vd[channel].ch_map; in pvt_read_in()
334 ret = regmap_read(v_map, VM_SDIF_DATA(vm_idx, ch_idx), &n); in pvt_read_in()
/linux-6.15/drivers/net/can/usb/etas_es58x/
H A Des58x_core.c2222 int ch_idx; in es58x_probe() local
2231 for (ch_idx = 0; ch_idx < es58x_dev->num_can_ch; ch_idx++) { in es58x_probe()
2232 int ret = es58x_init_netdev(es58x_dev, ch_idx); in es58x_probe()
/linux-6.15/drivers/bus/mhi/ep/
H A Dmain.c916 u32 ch_idx) in mhi_ep_queue_channel_db() argument
927 u32 ch_id = ch_idx + i; in mhi_ep_queue_channel_db()
955 u32 ch_int, ch_idx, i; in mhi_ep_check_channel_interrupt() local
962 ch_idx = i * MHI_MASK_CH_LEN; in mhi_ep_check_channel_interrupt()
967 mhi_ep_queue_channel_db(mhi_cntrl, ch_int, ch_idx); in mhi_ep_check_channel_interrupt()
/linux-6.15/drivers/infiniband/ulp/srp/
H A Dib_srp.c2785 u16 ch_idx; in srp_abort() local
2791 ch_idx = blk_mq_unique_tag_to_hwq(tag); in srp_abort()
2792 if (WARN_ON_ONCE(ch_idx >= target->ch_count)) in srp_abort()
2794 ch = &target->ch[ch_idx]; in srp_abort()
3693 int ret, i, ch_idx; in add_target_store() local
3829 for (ch_idx = 0; ch_idx < target->ch_count; ++ch_idx) { in add_target_store()
3830 ch = &target->ch[ch_idx]; in add_target_store()
3832 ch->comp_vector = ch_idx % ibdev->num_comp_vectors; in add_target_store()
3855 ch_idx, in add_target_store()
3857 if (ch_idx == 0) { in add_target_store()
/linux-6.15/drivers/net/wireless/realtek/rtw89/
H A Drtw8852b_rfk.c3585 u8 ch_idx = _tssi_ch_to_idx(rtwdev, channel); in _tssi_alimentk() local
3601 if (tssi_info->check_backup_aligmk[path][ch_idx]) { in _tssi_alimentk()
3603 tssi_info->alignment_backup_by_ch[path][ch_idx][0]); in _tssi_alimentk()
3605 tssi_info->alignment_backup_by_ch[path][ch_idx][1]); in _tssi_alimentk()
3607 tssi_info->alignment_backup_by_ch[path][ch_idx][2]); in _tssi_alimentk()
3609 tssi_info->alignment_backup_by_ch[path][ch_idx][3]); in _tssi_alimentk()
3710 tssi_info->check_backup_aligmk[path][ch_idx] = true; in _tssi_alimentk()
3711 tssi_info->alignment_backup_by_ch[path][ch_idx][0] = in _tssi_alimentk()
3713 tssi_info->alignment_backup_by_ch[path][ch_idx][1] = in _tssi_alimentk()
3715 tssi_info->alignment_backup_by_ch[path][ch_idx][2] = in _tssi_alimentk()
[all …]
H A Dphy.c2264 u8 ch_idx = rtw89_channel_to_idx(rtwdev, band, ch); in rtw89_phy_read_txpwr_limit() local
2272 lmt = (*rule_2ghz->lmt)[bw][ntx][rs][bf][regd][ch_idx]; in rtw89_phy_read_txpwr_limit()
2276 lmt = (*rule_2ghz->lmt)[bw][ntx][rs][bf][RTW89_WW][ch_idx]; in rtw89_phy_read_txpwr_limit()
2279 lmt = (*rule_5ghz->lmt)[bw][ntx][rs][bf][regd][ch_idx]; in rtw89_phy_read_txpwr_limit()
2292 [ch_idx]; in rtw89_phy_read_txpwr_limit()
2524 u8 ch_idx = rtw89_channel_to_idx(rtwdev, band, ch); in rtw89_phy_read_txpwr_limit_ru() local
2532 lmt_ru = (*rule_2ghz->lmt_ru)[ru][ntx][regd][ch_idx]; in rtw89_phy_read_txpwr_limit_ru()
2536 lmt_ru = (*rule_2ghz->lmt_ru)[ru][ntx][RTW89_WW][ch_idx]; in rtw89_phy_read_txpwr_limit_ru()
2539 lmt_ru = (*rule_5ghz->lmt_ru)[ru][ntx][regd][ch_idx]; in rtw89_phy_read_txpwr_limit_ru()
2543 lmt_ru = (*rule_5ghz->lmt_ru)[ru][ntx][RTW89_WW][ch_idx]; in rtw89_phy_read_txpwr_limit_ru()
[all …]
H A Dfw.c8833 if (e->ch_idx >= RTW89_2G_CH_NUM) in fw_txpwr_lmt_2ghz_entry_valid()
8851 [entry.ch_idx] = entry.v; in rtw89_fw_load_txpwr_lmt_2ghz()
8873 if (e->ch_idx >= RTW89_5G_CH_NUM) in fw_txpwr_lmt_5ghz_entry_valid()
8891 [entry.ch_idx] = entry.v; in rtw89_fw_load_txpwr_lmt_5ghz()
8915 if (e->ch_idx >= RTW89_6G_CH_NUM) in fw_txpwr_lmt_6ghz_entry_valid()
8933 [entry.reg_6ghz_power][entry.ch_idx] = entry.v; in rtw89_fw_load_txpwr_lmt_6ghz()
8951 if (e->ch_idx >= RTW89_2G_CH_NUM) in fw_txpwr_lmt_ru_2ghz_entry_valid()
8968 data->v[entry.ru][entry.nt][entry.regd][entry.ch_idx] = entry.v; in rtw89_fw_load_txpwr_lmt_ru_2ghz()
8986 if (e->ch_idx >= RTW89_5G_CH_NUM) in fw_txpwr_lmt_ru_5ghz_entry_valid()
9023 if (e->ch_idx >= RTW89_6G_CH_NUM) in fw_txpwr_lmt_ru_6ghz_entry_valid()
[all …]
H A Dfw.h4945 u8 ch_idx; member
4956 u8 ch_idx; member
4968 u8 ch_idx; member
4977 u8 ch_idx; member
4986 u8 ch_idx; member
4996 u8 ch_idx; member
/linux-6.15/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dscan.c1540 int ch_idx, bitmap_idx; in iwl_mvm_scan_ch_add_n_aps_override() local
1542 ch_idx = iwl_mvm_scan_ch_and_band_to_idx(ch_id, band); in iwl_mvm_scan_ch_add_n_aps_override()
1543 if (ch_idx < 0) in iwl_mvm_scan_ch_add_n_aps_override()
1546 bitmap_idx = ch_idx / 8; in iwl_mvm_scan_ch_add_n_aps_override()
1550 ch_idx = ch_idx % 8; in iwl_mvm_scan_ch_add_n_aps_override()
1551 ch_bitmap[bitmap_idx] |= BIT(ch_idx); in iwl_mvm_scan_ch_add_n_aps_override()

12