Lines Matching refs:ext_phy
142 bool ext_phy = phy != &dev->phy; in mt7615_mac_set_timing() local
159 if (ext_phy) { in mt7615_mac_set_timing()
181 mt76_wr(dev, MT_TMAC_ICR(ext_phy), in mt7615_mac_set_timing()
192 mt76_rmw_field(dev, MT_AGG_ACR(ext_phy), MT_AGG_ACR_CFEND_RATE, val); in mt7615_mac_set_timing()
193 if (ext_phy) in mt7615_mac_set_timing()
420 status->ext_phy = true; in mt7615_mac_fill_rx()
626 bool ext_phy = info->hw_queue & MT_TX_HW_QUEUE_EXT_PHY; in mt7615_mac_write_txwi() local
649 if (ext_phy && dev->mt76.phy2) in mt7615_mac_write_txwi()
657 q_idx = ext_phy ? MT_LMAC_BCN1 : MT_LMAC_BCN0; in mt7615_mac_write_txwi()
660 q_idx = ext_phy ? MT_LMAC_ALTX1 : MT_LMAC_ALTX0; in mt7615_mac_write_txwi()
1345 if (sta->wcid.ext_phy && dev->mt76.phy2) in mt7615_fill_txs()
1388 if (sta->wcid.ext_phy && dev->mt76.phy2) in mt7615_fill_txs()
1499 if (wcid->ext_phy && dev->mt76.phy2) in mt7615_mac_add_txs()
1627 bool ext_phy = phy != &dev->phy; in mt7615_mac_set_sensitivity() local
1631 mt76_rmw(dev, MT7663_WF_PHY_MIN_PRI_PWR(ext_phy), in mt7615_mac_set_sensitivity()
1635 mt76_rmw(dev, MT7663_WF_PHY_RXTD_CCK_PD(ext_phy), in mt7615_mac_set_sensitivity()
1636 MT_WF_PHY_PD_CCK_MASK(ext_phy), in mt7615_mac_set_sensitivity()
1637 MT_WF_PHY_PD_CCK(ext_phy, val)); in mt7615_mac_set_sensitivity()
1642 mt76_rmw(dev, MT_WF_PHY_MIN_PRI_PWR(ext_phy), in mt7615_mac_set_sensitivity()
1643 MT_WF_PHY_PD_OFDM_MASK(ext_phy), in mt7615_mac_set_sensitivity()
1644 MT_WF_PHY_PD_OFDM(ext_phy, val)); in mt7615_mac_set_sensitivity()
1646 mt76_rmw(dev, MT_WF_PHY_RXTD_CCK_PD(ext_phy), in mt7615_mac_set_sensitivity()
1647 MT_WF_PHY_PD_CCK_MASK(ext_phy), in mt7615_mac_set_sensitivity()
1648 MT_WF_PHY_PD_CCK(ext_phy, val)); in mt7615_mac_set_sensitivity()
1667 bool ext_phy = phy != &dev->phy; in mt7615_mac_set_scs() local
1676 reg = MT7663_WF_PHY_MIN_PRI_PWR(ext_phy); in mt7615_mac_set_scs()
1679 reg = MT_WF_PHY_MIN_PRI_PWR(ext_phy); in mt7615_mac_set_scs()
1680 mask = MT_WF_PHY_PD_BLK(ext_phy); in mt7615_mac_set_scs()
1700 void mt7615_mac_enable_nf(struct mt7615_dev *dev, bool ext_phy) in mt7615_mac_enable_nf() argument
1707 reg = MT_WF_PHY_R0_PHYMUX_5(ext_phy); in mt7615_mac_enable_nf()
1709 if (ext_phy) in mt7615_mac_enable_nf()
1721 bool ext_phy = phy != &dev->phy; in mt7615_mac_cca_stats_reset() local
1727 reg = MT_WF_PHY_R0_PHYMUX_5(ext_phy); in mt7615_mac_cca_stats_reset()
1740 bool ext_phy = phy != &dev->phy; in mt7615_mac_adjust_sensitivity() local
1747 signal = mt76_get_min_avg_rssi(&dev->mt76, ext_phy); in mt7615_mac_adjust_sensitivity()
1795 bool ext_phy = phy != &dev->phy; in mt7615_mac_scs_check() local
1801 val = mt76_rr(dev, MT7663_WF_PHY_R0_PHYCTRL_STS0(ext_phy)); in mt7615_mac_scs_check()
1803 val = mt76_rr(dev, MT_WF_PHY_R0_PHYCTRL_STS0(ext_phy)); in mt7615_mac_scs_check()
1808 val = mt76_rr(dev, MT7663_WF_PHY_R0_PHYCTRL_STS5(ext_phy)); in mt7615_mac_scs_check()
1810 val = mt76_rr(dev, MT_WF_PHY_R0_PHYCTRL_STS5(ext_phy)); in mt7615_mac_scs_check()
1927 bool ext_phy = phy != &dev->phy; in mt7615_mac_update_mib_stats() local
1931 mib->fcs_err_cnt += mt76_get_field(dev, MT_MIB_SDR3(ext_phy), in mt7615_mac_update_mib_stats()
1934 val = mt76_get_field(dev, MT_MIB_SDR14(ext_phy), in mt7615_mac_update_mib_stats()
1937 val2 = mt76_get_field(dev, MT_MIB_SDR15(ext_phy), in mt7615_mac_update_mib_stats()
1942 aggr = ext_phy ? ARRAY_SIZE(dev->mt76.aggr_stats) / 2 : 0; in mt7615_mac_update_mib_stats()
1944 val = mt76_rr(dev, MT_MIB_MB_SDR1(ext_phy, i)); in mt7615_mac_update_mib_stats()
1949 val = mt76_rr(dev, MT_MIB_MB_SDR0(ext_phy, i)); in mt7615_mac_update_mib_stats()
1954 val = mt76_rr(dev, MT_TX_AGG_CNT(ext_phy, i)); in mt7615_mac_update_mib_stats()
2095 bool ext_phy = phy != &dev->phy; in mt7615_dfs_start_radar_detector() local
2099 err = mt7615_mcu_rdd_cmd(dev, RDD_CAC_START, ext_phy, MT_RX_SEL0, 0); in mt7615_dfs_start_radar_detector()
2103 err = mt7615_dfs_start_rdd(dev, ext_phy); in mt7615_dfs_start_radar_detector()
2107 phy->rdd_state |= BIT(ext_phy); in mt7615_dfs_start_radar_detector()
2162 bool ext_phy = phy != &dev->phy; in mt7615_dfs_init_radar_detector() local
2194 return mt7615_mcu_rdd_cmd(dev, RDD_CAC_END, ext_phy, in mt7615_dfs_init_radar_detector()
2199 err = mt7615_mcu_rdd_cmd(dev, RDD_NORMAL_START, ext_phy, MT_RX_SEL0, 0); in mt7615_dfs_init_radar_detector()
2212 bool ext_phy = phy != &dev->phy; in mt7615_mac_set_beacon_filter() local
2239 mt76_clear(dev, MT_WF_RFCR(ext_phy), in mt7615_mac_set_beacon_filter()
2243 mt76_set(dev, MT_WF_RFCR(ext_phy), in mt7615_mac_set_beacon_filter()