Lines Matching refs:ext_phy
343 status->ext_phy = true; in mt7915_mac_fill_rx()
643 bool ext_phy; in mt7915_mac_fill_rx_vector() local
648 ext_phy = FIELD_GET(MT_RXV_HDR_BAND_IDX, le32_to_cpu(rxv_hdr[1])); in mt7915_mac_fill_rx_vector()
649 if (ext_phy) in mt7915_mac_fill_rx_vector()
919 bool ext_phy = info->hw_queue & MT_TX_HW_QUEUE_EXT_PHY; in mt7915_mac_write_txwi() local
932 if (ext_phy && dev->mt76.phy2) in mt7915_mac_write_txwi()
956 if (ext_phy && q_idx >= MT_LMAC_ALTX0 && q_idx <= MT_LMAC_BCN0) in mt7915_mac_write_txwi()
1372 bool ext_phy = phy != &dev->phy; in mt7915_mac_cca_stats_reset() local
1373 u32 reg = MT_WF_PHY_RX_CTRL1(ext_phy); in mt7915_mac_cca_stats_reset()
1382 bool ext_phy = phy != &dev->phy; in mt7915_mac_reset_counters() local
1386 mt76_rr(dev, MT_TX_AGG_CNT(ext_phy, i)); in mt7915_mac_reset_counters()
1387 mt76_rr(dev, MT_TX_AGG_CNT2(ext_phy, i)); in mt7915_mac_reset_counters()
1390 if (ext_phy) { in mt7915_mac_reset_counters()
1400 mt76_set(dev, MT_WF_RMAC_MIB_AIRTIME0(ext_phy), in mt7915_mac_reset_counters()
1410 bool ext_phy = phy != &dev->phy; in mt7915_mac_set_timing() local
1427 if (ext_phy) { in mt7915_mac_set_timing()
1437 mt76_set(dev, MT_ARB_SCR(ext_phy), in mt7915_mac_set_timing()
1445 mt76_wr(dev, MT_TMAC_CDTR(ext_phy), cck + reg_offset); in mt7915_mac_set_timing()
1446 mt76_wr(dev, MT_TMAC_ODTR(ext_phy), ofdm + reg_offset); in mt7915_mac_set_timing()
1447 mt76_wr(dev, MT_TMAC_ICR0(ext_phy), in mt7915_mac_set_timing()
1458 mt76_rmw_field(dev, MT_AGG_ACR0(ext_phy), MT_AGG_ACR_CFEND_RATE, val); in mt7915_mac_set_timing()
1459 mt76_clear(dev, MT_ARB_SCR(ext_phy), in mt7915_mac_set_timing()
1463 void mt7915_mac_enable_nf(struct mt7915_dev *dev, bool ext_phy) in mt7915_mac_enable_nf() argument
1465 mt76_set(dev, MT_WF_PHY_RXTD12(ext_phy), in mt7915_mac_enable_nf()
1469 mt76_set(dev, MT_WF_PHY_RX_CTRL1(ext_phy), in mt7915_mac_enable_nf()
1501 bool ext_phy = phy != &phy->dev->phy; in mt7915_update_channel() local
1506 nf = mt7915_phy_get_nf(phy, ext_phy); in mt7915_update_channel()
1634 struct mt76_phy *ext_phy; in mt7915_mac_reset_work() local
1638 ext_phy = dev->mt76.phy2; in mt7915_mac_reset_work()
1639 phy2 = ext_phy ? ext_phy->priv : NULL; in mt7915_mac_reset_work()
1645 if (ext_phy) in mt7915_mac_reset_work()
1646 ieee80211_stop_queues(ext_phy->hw); in mt7915_mac_reset_work()
1700 if (ext_phy) in mt7915_mac_reset_work()
1701 ieee80211_wake_queues(ext_phy->hw); in mt7915_mac_reset_work()
1710 ieee80211_queue_delayed_work(ext_phy->hw, in mt7915_mac_reset_work()
1720 bool ext_phy = phy != &dev->phy; in mt7915_mac_update_stats() local
1723 mib->fcs_err_cnt += mt76_get_field(dev, MT_MIB_SDR3(ext_phy), in mt7915_mac_update_stats()
1726 aggr0 = ext_phy ? ARRAY_SIZE(dev->mt76.aggr_stats) / 2 : 0; in mt7915_mac_update_stats()
1730 val = mt76_rr(dev, MT_MIB_MB_SDR1(ext_phy, i)); in mt7915_mac_update_stats()
1735 val = mt76_rr(dev, MT_MIB_MB_SDR0(ext_phy, i)); in mt7915_mac_update_stats()
1740 val = mt76_rr(dev, MT_TX_AGG_CNT(ext_phy, i)); in mt7915_mac_update_stats()
1744 val = mt76_rr(dev, MT_TX_AGG_CNT2(ext_phy, i)); in mt7915_mac_update_stats()
1868 bool ext_phy = phy != &dev->phy; in mt7915_dfs_start_radar_detector() local
1872 err = mt7915_mcu_rdd_cmd(dev, RDD_CAC_START, ext_phy, MT_RX_SEL0, 0); in mt7915_dfs_start_radar_detector()
1876 err = mt7915_dfs_start_rdd(dev, ext_phy); in mt7915_dfs_start_radar_detector()
1880 phy->rdd_state |= BIT(ext_phy); in mt7915_dfs_start_radar_detector()
1932 bool ext_phy = phy != &dev->phy; in mt7915_dfs_init_radar_detector() local
1961 return mt7915_mcu_rdd_cmd(dev, RDD_CAC_END, ext_phy, in mt7915_dfs_init_radar_detector()
1966 err = mt7915_mcu_rdd_cmd(dev, RDD_NORMAL_START, ext_phy, in mt7915_dfs_init_radar_detector()