Home
last modified time | relevance | path

Searched refs:band_idx (Results 1 – 25 of 32) sorted by relevance

12

/linux-6.1.9/drivers/net/wireless/mediatek/mt76/mt7915/
Dmac.c245 if ((rxd1 & MT_RXD1_NORMAL_BAND_IDX) && !phy->band_idx) { in mt7915_mac_fill_rx()
510 u8 band_idx; in mt7915_mac_fill_rx_vector() local
515 band_idx = le32_get_bits(rxv_hdr[1], MT_RXV_HDR_BAND_IDX); in mt7915_mac_fill_rx_vector()
516 if (band_idx && !phy->band_idx) { in mt7915_mac_fill_rx_vector()
1114 u32 reg = MT_WF_PHY_RX_CTRL1(phy->band_idx); in mt7915_mac_cca_stats_reset()
1126 mt76_rr(dev, MT_TX_AGG_CNT(phy->band_idx, i)); in mt7915_mac_reset_counters()
1127 mt76_rr(dev, MT_TX_AGG_CNT2(phy->band_idx, i)); in mt7915_mac_reset_counters()
1132 if (phy->band_idx) in mt7915_mac_reset_counters()
1138 mt76_set(dev, MT_WF_RMAC_MIB_AIRTIME0(phy->band_idx), in mt7915_mac_reset_counters()
1164 mt76_set(dev, MT_ARB_SCR(phy->band_idx), in mt7915_mac_set_timing()
[all …]
Dtestmode.c235 txv_time = mt76_get_field(dev, MT_TMAC_ATCR(phy->band_idx), in mt7915_tm_set_ipg_params()
242 mt76_set(dev, MT_TMAC_TRCR0(phy->band_idx), in mt7915_tm_set_ipg_params()
361 mt76_wr(dev, reg_backup_list[i].band[phy->band_idx], b[i]); in mt7915_tm_reg_backup_restore()
372 b[i] = mt76_rr(dev, reg_backup_list[i].band[phy->band_idx]); in mt7915_tm_reg_backup_restore()
375 mt76_clear(dev, MT_AGG_PCR0(phy->band_idx, 0), MT_AGG_PCR0_MM_PROT | in mt7915_tm_reg_backup_restore()
379 mt76_set(dev, MT_AGG_PCR0(phy->band_idx, 0), MT_AGG_PCR0_PTA_WIN_DIS); in mt7915_tm_reg_backup_restore()
381 mt76_wr(dev, MT_AGG_PCR0(phy->band_idx, 1), MT_AGG_PCR1_RTS0_NUM_THRES | in mt7915_tm_reg_backup_restore()
384 mt76_clear(dev, MT_AGG_MRCR(phy->band_idx), MT_AGG_MRCR_BAR_CNT_LIMIT | in mt7915_tm_reg_backup_restore()
388 mt76_rmw(dev, MT_AGG_MRCR(phy->band_idx), MT_AGG_MRCR_RTS_FAIL_LIMIT | in mt7915_tm_reg_backup_restore()
393 mt76_wr(dev, MT_TMAC_TFCR0(phy->band_idx), 0); in mt7915_tm_reg_backup_restore()
[all …]
Deeprom.c136 val = eeprom[MT_EE_WIFI_CONF + phy->band_idx]; in mt7915_eeprom_parse_band_config()
156 val = phy->band_idx ? MT_EE_BAND_SEL_5GHZ : MT_EE_BAND_SEL_2GHZ; in mt7915_eeprom_parse_band_config()
187 eeprom[MT_EE_WIFI_CONF + phy->band_idx]); in mt7915_eeprom_parse_hw_cap()
200 if (phy->band_idx) in mt7915_eeprom_parse_hw_cap()
205 eeprom[MT_EE_WIFI_CONF + 2 + phy->band_idx]); in mt7915_eeprom_parse_hw_cap()
217 if (phy->band_idx) in mt7915_eeprom_parse_hw_cap()
Dmcu.h18 u8 band_idx; member
44 u8 band_idx; member
51 u8 band_idx; member
60 u8 band_idx; member
126 u8 band_idx; /* DBDC */ member
Ddma.c316 if (!dev->phy.band_idx) in mt7915_dma_enable()
319 if (dev->dbdc_support || dev->phy.band_idx) in mt7915_dma_enable()
364 MT_TXQ_ID(dev->phy.band_idx), in mt7915_dma_init()
372 MT_TXQ_ID(phy2->band_idx), in mt7915_dma_init()
428 if (!dev->phy.band_idx) { in mt7915_dma_init()
449 if (dev->dbdc_support || dev->phy.band_idx) { in mt7915_dma_init()
Dpci.c124 mt76_set(dev, MT_AGG_ACR4(phy->band_idx), MT_AGG_ACR_PPDU_TXS2H); in mt7915_wed_offload_enable()
128 mt76_set(dev, MT_AGG_ACR4(phy->band_idx), in mt7915_wed_offload_enable()
149 mt76_clear(dev, MT_AGG_ACR4(phy->band_idx), MT_AGG_ACR_PPDU_TXS2H); in mt7915_wed_offload_disable()
153 mt76_clear(dev, MT_AGG_ACR4(phy->band_idx), in mt7915_wed_offload_disable()
Dmcu.c231 if ((c->band_idx && !dev->phy.band_idx) && dev->mt76.phys[MT_BAND1]) in mt7915_mcu_rx_csa_notify()
250 if ((t->ctrl.band_idx && !dev->phy.band_idx) && dev->mt76.phys[MT_BAND1]) in mt7915_mcu_rx_thermal_notify()
265 if ((r->band_idx && !dev->phy.band_idx) && dev->mt76.phys[MT_BAND1]) in mt7915_mcu_rx_radar_detected()
268 if (r->band_idx == MT_RX_SEL2) in mt7915_mcu_rx_radar_detected()
322 if ((b->band_idx && !dev->phy.band_idx) && dev->mt76.phys[MT_BAND1]) in mt7915_mcu_rx_bcc_notify()
1692 .dbdc_idx = mvif->mt76.band_idx, in mt7915_mcu_add_dev_info()
1700 .dbdc_idx = mvif->mt76.band_idx, in mt7915_mcu_add_dev_info()
2151 u8 band_idx; in mt7915_mcu_muru_debug_get() member
2154 .band_idx = phy->band_idx, in mt7915_mcu_muru_debug_get()
2541 req.band_idx = phy != &dev->phy; in mt7915_mcu_background_chain_ctrl()
[all …]
Ddebugfs.c646 range[i] = mt76_rr(dev, MT_MIB_ARNG(phy->band_idx, i)); in mt7915_ampdu_stat_read_phy()
651 seq_printf(file, "\nPhy %d, Phy band %d\n", ext_phy, phy->band_idx); in mt7915_ampdu_stat_read_phy()
659 n = phy->band_idx ? ARRAY_SIZE(dev->mt76.aggr_stats) / 2 : 0; in mt7915_ampdu_stat_read_phy()
1029 if (!dev->dbdc_support || phy->band_idx) { in mt7915_init_debugfs()
Dinit.c516 phy->band_idx = 1; in mt7915_alloc_ext_phy()
636 dev->phy.band_idx = 0; in mt7915_band_config()
647 dev->phy.band_idx = 1; in mt7915_band_config()
Dmain.c48 if (phy != &dev->phy || phy->band_idx) { in mt7915_start()
212 mvif->mt76.band_idx = phy->band_idx; in mt7915_add_interface()
1277 n = phy->band_idx ? ARRAY_SIZE(dev->mt76.aggr_stats) / 2 : 0; in mt7915_get_et_stats()
/linux-6.1.9/sound/soc/codecs/
Dmsm8916-wcd-digital.c216 .band_idx = bidx, \
223 unsigned int band_idx; member
379 int iir_idx, int band_idx, in get_iir_band_coeff() argument
387 ((band_idx * BAND_MAX + coeff_idx) in get_iir_band_coeff()
395 ((band_idx * BAND_MAX + coeff_idx) in get_iir_band_coeff()
403 ((band_idx * BAND_MAX + coeff_idx) in get_iir_band_coeff()
411 ((band_idx * BAND_MAX + coeff_idx) in get_iir_band_coeff()
432 int band_idx = ctl->band_idx; in msm8x16_wcd_get_iir_band_audio_mixer() local
435 coeff[0] = get_iir_band_coeff(component, iir_idx, band_idx, 0); in msm8x16_wcd_get_iir_band_audio_mixer()
436 coeff[1] = get_iir_band_coeff(component, iir_idx, band_idx, 1); in msm8x16_wcd_get_iir_band_audio_mixer()
[all …]
Dlpass-rx-macro.c558 .band_idx = bidx, \
624 unsigned int band_idx; member
2695 int iir_idx, int band_idx, int coeff_idx) in get_iir_band_coeff() argument
2705 ((band_idx * BAND_MAX + coeff_idx) * in get_iir_band_coeff()
2710 ((band_idx * BAND_MAX + coeff_idx) in get_iir_band_coeff()
2715 ((band_idx * BAND_MAX + coeff_idx) in get_iir_band_coeff()
2720 ((band_idx * BAND_MAX + coeff_idx) in get_iir_band_coeff()
2729 int iir_idx, int band_idx, uint32_t value) in set_iir_band_coeff() argument
2750 int band_idx = ctl->band_idx; in rx_macro_put_iir_band_audio_mixer() local
2758 snd_soc_component_write(component, reg, (band_idx * BAND_MAX * in rx_macro_put_iir_band_audio_mixer()
[all …]
Dwcd934x.c130 .band_idx = bidx, \
585 unsigned int band_idx; member
3103 int iir_idx, int band_idx, int coeff_idx) in get_iir_band_coeff() argument
3113 ((band_idx * BAND_MAX + coeff_idx) * in get_iir_band_coeff()
3118 ((band_idx * BAND_MAX + coeff_idx) in get_iir_band_coeff()
3123 ((band_idx * BAND_MAX + coeff_idx) in get_iir_band_coeff()
3128 ((band_idx * BAND_MAX + coeff_idx) in get_iir_band_coeff()
3137 int iir_idx, int band_idx, uint32_t value) in set_iir_band_coeff() argument
3158 int band_idx = ctl->band_idx; in wcd934x_put_iir_band_audio_mixer() local
3166 snd_soc_component_write(component, reg, (band_idx * BAND_MAX * in wcd934x_put_iir_band_audio_mixer()
[all …]
/linux-6.1.9/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Dchannel.c745 int band_idx, i; in brcms_c_regd_init() local
748 for (band_idx = 0; band_idx < wlc->pub->_nbands; band_idx++) { in brcms_c_regd_init()
749 band = wlc->bandstate[band_idx]; in brcms_c_regd_init()
754 if (band_idx == BAND_2G_INDEX) in brcms_c_regd_init()
/linux-6.1.9/drivers/net/wireless/mediatek/mt76/mt7615/
Dmcu.c391 if (r->band_idx && dev->mt76.phys[MT_BAND1]) in mt7615_mcu_rx_radar_detected()
498 u8 band_idx = 0; /* DBDC support */ in mt7615_mcu_beacon_loss_event() local
502 if (band_idx && dev->mt76.phys[MT_BAND1]) in mt7615_mcu_beacon_loss_event()
518 u8 band_idx = 0; /* DBDC support */ in mt7615_mcu_bss_event() local
523 if (band_idx && dev->mt76.phys[MT_BAND1]) in mt7615_mcu_bss_event()
631 u8 band_idx; in mt7615_mcu_add_dev() member
640 u8 band_idx; in mt7615_mcu_add_dev() member
646 .band_idx = mvif->mt76.band_idx, in mt7615_mcu_add_dev()
654 .band_idx = mvif->mt76.band_idx, in mt7615_mcu_add_dev()
679 u8 band_idx; in mt7615_mcu_add_beacon_offload() member
[all …]
Dmcu.h161 u8 band_idx; member
Dmain.c210 mvif->mt76.band_idx = ext_phy; in mt7615_add_interface()
227 mvif->sta.wcid.phy_idx = mvif->mt76.band_idx; in mt7615_add_interface()
633 msta->wcid.phy_idx = mvif->mt76.band_idx; in mt7615_mac_sta_add()
635 phy = mvif->mt76.band_idx ? mt7615_ext_phy(dev) : &dev->phy; in mt7615_mac_sta_add()
668 phy = mvif->mt76.band_idx ? mt7615_ext_phy(dev) : &dev->phy; in mt7615_mac_sta_remove()
/linux-6.1.9/drivers/net/wireless/mediatek/mt76/
Dmac80211.c457 const struct ieee80211_ops *ops, u8 band_idx) in mt76_alloc_phy() argument
472 phy->band_idx = band_idx; in mt76_alloc_phy()
525 phy->dev->phys[phy->band_idx] = phy; in mt76_register_phy()
537 dev->phys[phy->band_idx] = NULL; in mt76_unregister_phy()
564 phy->band_idx = MT_BAND0; in mt76_alloc_device()
565 dev->phys[phy->band_idx] = phy; in mt76_alloc_device()
1325 if (phy->band_idx == MT_BAND1) in mt76_sta_add()
1327 wcid->phy_idx = phy->band_idx; in mt76_sta_add()
Dmt76_connac_mcu.c360 omac->band_idx = mvif->band_idx; in mt76_connac_mcu_bss_omac_tlv()
1084 u8 band_idx; in mt76_connac_mcu_uni_add_dev() member
1097 .band_idx = mvif->band_idx, in mt76_connac_mcu_uni_add_dev()
1119 .band_idx = mvif->band_idx, in mt76_connac_mcu_uni_add_dev()
1343 .band_idx = mvif->band_idx, in mt76_connac_mcu_uni_add_bss()
1537 req->seq_num = mvif->scan_seq_num | mvif->band_idx << 7; in mt76_connac_mcu_hw_scan()
1658 req->seq_num = mvif->scan_seq_num | mvif->band_idx << 7; in mt76_connac_mcu_sched_scan_req()
2763 u8 band_idx; in mt76_connac_mcu_set_pm() member
2774 .band_idx = band, in mt76_connac_mcu_set_pm()
Dmt76_connac_mac.c461 u8 p_fmt, q_idx, omac_idx = 0, wmm_idx = 0, band_idx = 0; in mt76_connac2_mac_write_txwi() local
474 band_idx = mvif->band_idx; in mt76_connac2_mac_write_txwi()
509 if (phy_idx || band_idx) in mt76_connac2_mac_write_txwi()
Dtx.c341 info->hw_queue |= FIELD_PREP(MT_TX_HW_QUEUE_PHY, phy->band_idx); in mt76_tx()
363 info->hw_queue |= FIELD_PREP(MT_TX_HW_QUEUE_PHY, phy->band_idx); in mt76_txq_dequeue()
Dmt76_connac_mcu.h198 u8 band_idx; member
678 u8 band_idx; member
1271 u8 band_idx; member
/linux-6.1.9/drivers/net/wireless/mediatek/mt76/mt7921/
Dmcu.c651 u8 band_idx; in mt7921_mcu_set_chan_info() member
667 .band_idx = phy != &dev->phy, in mt7921_mcu_set_chan_info()
947 u8 band_idx; in mt7921_mcu_set_sniffer() member
958 .band_idx = mvif->band_idx, in mt7921_mcu_set_sniffer()
/linux-6.1.9/drivers/net/wireless/ath/wcn36xx/
Dmain.c1298 int band_idx; in wcn36xx_get_survey() local
1302 band_idx = idx; in wcn36xx_get_survey()
1303 if (band_idx >= sband->n_channels) { in wcn36xx_get_survey()
1304 band_idx -= sband->n_channels; in wcn36xx_get_survey()
1308 if (!sband || band_idx >= sband->n_channels) in wcn36xx_get_survey()
1314 survey->channel = &sband->channels[band_idx]; in wcn36xx_get_survey()
/linux-6.1.9/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/
Dphy_lcn.c2570 u8 band_idx; in wlc_lcnphy_tx_iqlo_cal() local
2665 band_idx = (CHSPEC_IS5G(pi->radio_chanspec) ? 1 : 0); in wlc_lcnphy_tx_iqlo_cal()
2669 for (j = 0; j < iqcal_gainparams_numgains_lcnphy[band_idx]; j++) { in wlc_lcnphy_tx_iqlo_cal()
2670 if (hash == tbl_iqcal_gainparams_lcnphy[band_idx][j][0]) { in wlc_lcnphy_tx_iqlo_cal()
2672 tbl_iqcal_gainparams_lcnphy[band_idx][j][1]; in wlc_lcnphy_tx_iqlo_cal()
2674 tbl_iqcal_gainparams_lcnphy[band_idx][j][2]; in wlc_lcnphy_tx_iqlo_cal()
2676 tbl_iqcal_gainparams_lcnphy[band_idx][j][3]; in wlc_lcnphy_tx_iqlo_cal()
2678 &tbl_iqcal_gainparams_lcnphy[band_idx][j][3], in wlc_lcnphy_tx_iqlo_cal()

12