Lines Matching refs:band_idx
443 u8 remove_pad, amsdu_info, band_idx; in mt7996_mac_fill_rx() local
456 band_idx = FIELD_GET(MT_RXD1_NORMAL_BAND_IDX, rxd1); in mt7996_mac_fill_rx()
457 mphy = dev->mt76.phys[band_idx]; in mt7996_mac_fill_rx()
459 status->phy_idx = mphy->band_idx; in mt7996_mac_fill_rx()
824 u8 band_idx = (info->hw_queue & MT_TX_HW_QUEUE_PHY) >> 2; in mt7996_mac_write_txwi() local
839 band_idx = mvif->band_idx; in mt7996_mac_write_txwi()
865 if (band_idx) in mt7996_mac_write_txwi()
866 val |= FIELD_PREP(MT_TXD1_TGID, band_idx); in mt7996_mac_write_txwi()
1467 u32 reg = MT_WF_PHYRX_BAND_RX_CTRL1(phy->mt76->band_idx); in mt7996_mac_cca_stats_reset()
1476 u8 band_idx = phy->mt76->band_idx; in mt7996_mac_reset_counters() local
1480 mt76_rr(dev, MT_TX_AGG_CNT(band_idx, i)); in mt7996_mac_reset_counters()
1487 mt76_set(dev, MT_WF_RMAC_MIB_AIRTIME0(band_idx), in mt7996_mac_reset_counters()
1504 u8 band_idx = phy->mt76->band_idx; in mt7996_mac_set_coverage_class() local
1522 mt76_wr(dev, MT_TMAC_CDTR(band_idx), cck + reg_offset); in mt7996_mac_set_coverage_class()
1523 mt76_wr(dev, MT_TMAC_ODTR(band_idx), ofdm + reg_offset); in mt7996_mac_set_coverage_class()
1537 mt7996_phy_get_nf(struct mt7996_phy *phy, u8 band_idx) in mt7996_phy_get_nf() argument
1545 u32 reg = MT_WF_PHYRX_CSD_IRPI(band_idx, ant); in mt7996_phy_get_nf()
1565 nf = mt7996_phy_get_nf(phy, mphy->band_idx); in mt7996_update_channel()
2101 u8 band_idx = phy->mt76->band_idx; in mt7996_mac_update_stats() local
2105 cnt = mt76_rr(dev, MT_MIB_RSCR1(band_idx)); in mt7996_mac_update_stats()
2108 cnt = mt76_rr(dev, MT_MIB_RSCR33(band_idx)); in mt7996_mac_update_stats()
2111 cnt = mt76_rr(dev, MT_MIB_RSCR31(band_idx)); in mt7996_mac_update_stats()
2114 cnt = mt76_rr(dev, MT_MIB_SDR6(band_idx)); in mt7996_mac_update_stats()
2117 cnt = mt76_rr(dev, MT_MIB_RVSR0(band_idx)); in mt7996_mac_update_stats()
2120 cnt = mt76_rr(dev, MT_MIB_RSCR35(band_idx)); in mt7996_mac_update_stats()
2123 cnt = mt76_rr(dev, MT_MIB_RSCR36(band_idx)); in mt7996_mac_update_stats()
2126 cnt = mt76_rr(dev, MT_MIB_TSCR0(band_idx)); in mt7996_mac_update_stats()
2129 cnt = mt76_rr(dev, MT_MIB_TSCR2(band_idx)); in mt7996_mac_update_stats()
2132 cnt = mt76_rr(dev, MT_MIB_TSCR3(band_idx)); in mt7996_mac_update_stats()
2135 cnt = mt76_rr(dev, MT_MIB_TSCR4(band_idx)); in mt7996_mac_update_stats()
2138 cnt = mt76_rr(dev, MT_MIB_RSCR27(band_idx)); in mt7996_mac_update_stats()
2141 cnt = mt76_rr(dev, MT_MIB_RSCR28(band_idx)); in mt7996_mac_update_stats()
2144 cnt = mt76_rr(dev, MT_MIB_RSCR29(band_idx)); in mt7996_mac_update_stats()
2147 cnt = mt76_rr(dev, MT_MIB_RSCR30(band_idx)); in mt7996_mac_update_stats()
2150 cnt = mt76_rr(dev, MT_MIB_SDR27(band_idx)); in mt7996_mac_update_stats()
2153 cnt = mt76_rr(dev, MT_MIB_SDR28(band_idx)); in mt7996_mac_update_stats()
2156 cnt = mt76_rr(dev, MT_UMIB_RPDCR(band_idx)); in mt7996_mac_update_stats()
2159 cnt = mt76_rr(dev, MT_MIB_RVSR1(band_idx)); in mt7996_mac_update_stats()
2162 cnt = mt76_rr(dev, MT_MIB_TSCR1(band_idx)); in mt7996_mac_update_stats()
2165 cnt = mt76_rr(dev, MT_MIB_BSCR0(band_idx)); in mt7996_mac_update_stats()
2168 cnt = mt76_rr(dev, MT_MIB_BSCR1(band_idx)); in mt7996_mac_update_stats()
2171 cnt = mt76_rr(dev, MT_MIB_BSCR2(band_idx)); in mt7996_mac_update_stats()
2174 cnt = mt76_rr(dev, MT_MIB_TSCR5(band_idx)); in mt7996_mac_update_stats()
2177 cnt = mt76_rr(dev, MT_MIB_TSCR6(band_idx)); in mt7996_mac_update_stats()
2180 cnt = mt76_rr(dev, MT_MIB_TSCR7(band_idx)); in mt7996_mac_update_stats()
2183 cnt = mt76_rr(dev, MT_MIB_BSCR3(band_idx)); in mt7996_mac_update_stats()
2187 cnt = mt76_rr(dev, MT_MIB_BSCR4(band_idx)); in mt7996_mac_update_stats()
2191 cnt = mt76_rr(dev, MT_MIB_BSCR5(band_idx)); in mt7996_mac_update_stats()
2195 cnt = mt76_rr(dev, MT_MIB_BSCR6(band_idx)); in mt7996_mac_update_stats()
2199 cnt = mt76_rr(dev, MT_ETBF_RX_FB_CONT(band_idx)); in mt7996_mac_update_stats()
2204 cnt = mt76_rr(dev, MT_MIB_BSCR7(band_idx)); in mt7996_mac_update_stats()
2207 cnt = mt76_rr(dev, MT_MIB_BSCR17(band_idx)); in mt7996_mac_update_stats()
2217 cnt = mt76_rr(dev, MT_MIB_BTSCR5(band_idx)); in mt7996_mac_update_stats()
2221 cnt = mt76_rr(dev, MT_MIB_BTSCR6(band_idx)); in mt7996_mac_update_stats()
2225 cnt = mt76_rr(dev, MT_MIB_BTSCR0(band_idx)); in mt7996_mac_update_stats()
2229 cnt = mt76_rr(dev, MT_MIB_BFTFCR(band_idx)); in mt7996_mac_update_stats()
2233 cnt = mt76_rr(dev, MT_TX_AGG_CNT(band_idx, i)); in mt7996_mac_update_stats()
2349 u8 band_idx = phy->mt76->band_idx; in mt7996_dfs_start_radar_detector() local
2353 err = mt7996_mcu_rdd_cmd(dev, RDD_CAC_START, band_idx, in mt7996_dfs_start_radar_detector()
2358 err = mt7996_dfs_start_rdd(dev, band_idx); in mt7996_dfs_start_radar_detector()
2362 phy->rdd_state |= BIT(band_idx); in mt7996_dfs_start_radar_detector()
2444 phy->mt76->band_idx, MT_RX_SEL0, 0); in mt7996_dfs_init_radar_detector()
2455 phy->mt76->band_idx, MT_RX_SEL0, 0); in mt7996_dfs_init_radar_detector()