Home
last modified time | relevance | path

Searched refs:mt76_clear (Results 1 – 19 of 19) sorted by relevance

/Linux-v4.19/drivers/net/wireless/mediatek/mt76/
Dmt76x2u_mac.c68 mt76_clear(dev, MT_FCE_L2_STUFF, MT_FCE_L2_STUFF_WR_MPDU_LEN_EN); in mt76x2u_mac_fixup_xtal()
102 mt76_clear(dev, MT_MAC_SYS_CTRL, in mt76x2u_mac_reset()
107 mt76_clear(dev, MT_COEXCFG0, MT_COEXCFG0_COEX_EN); in mt76x2u_mac_reset()
110 mt76_clear(dev, MT_TX_ALC_CFG_4, BIT(31)); in mt76x2u_mac_reset()
146 mt76_clear(dev, MT_TXOP_CTRL_CFG, BIT(20)); in mt76x2u_mac_stop()
147 mt76_clear(dev, MT_TXOP_HLDR_ET, BIT(1)); in mt76x2u_mac_stop()
167 mt76_clear(dev, MT_MAC_SYS_CTRL, in mt76x2u_mac_stop()
183 mt76_clear(dev, MT_BBP(CORE, 4), BIT(1)); in mt76x2u_mac_stop()
186 mt76_clear(dev, MT_BBP(CORE, 4), BIT(0)); in mt76x2u_mac_stop()
Dmt76x2u_init.c42 mt76_clear(dev, MT_VEND_ADDR(CFG, 0x1c), 0xff); in mt76x2u_power_on_rf_patch()
51 mt76_clear(dev, MT_VEND_ADDR(CFG, 0x130), BIT(16)); in mt76x2u_power_on_rf_patch()
71 mt76_clear(dev, MT_VEND_ADDR(CFG, 0x130), BIT(2) << shift); in mt76x2u_power_on_rf()
93 mt76_clear(dev, MT_VEND_ADDR(CFG, 0x148), 0x7f << 16); in mt76x2u_power_on()
96 mt76_clear(dev, MT_VEND_ADDR(CFG, 0x148), 0xf << 24); in mt76x2u_power_on()
100 mt76_clear(dev, MT_VEND_ADDR(CFG, 0x148), 0xfff); in mt76x2u_power_on()
103 mt76_clear(dev, MT_VEND_ADDR(CFG, 0x1204), BIT(3)); in mt76x2u_power_on()
109 mt76_clear(dev, MT_VEND_ADDR(CFG, 0x64), BIT(18)); in mt76x2u_power_on()
235 mt76_clear(dev, MT_BEACON_TIME_CFG, in mt76x2u_init_hardware()
Dmt76x2_init.c34 mt76_clear(dev, MT_PBF_SYS_CTRL, val); in mt76x2_mac_pbf_init()
122 mt76_clear(dev, MT_MAC_SYS_CTRL, in mt76x2_mac_reset()
127 mt76_clear(dev, MT_COEXCFG0, MT_COEXCFG0_COEX_EN); in mt76x2_mac_reset()
130 mt76_clear(dev, MT_TX_ALC_CFG_4, BIT(31)); in mt76x2_mac_reset()
138 mt76_clear(dev, MT_FCE_L2_STUFF, MT_FCE_L2_STUFF_WR_MPDU_LEN_EN); in mt76x2_mac_reset()
215 mt76_clear(dev, MT_WPDMA_GLO_CFG, MT_WPDMA_GLO_CFG_TX_WRITEBACK_DONE); in mt76x2_mac_start()
242 mt76_clear(dev, 0x1001c, 0xff); in mt76x2_power_on_rf_patch()
251 mt76_clear(dev, 0x10130, BIT(16)); in mt76x2_power_on_rf_patch()
271 mt76_clear(dev, 0x10130, BIT(2) << shift); in mt76x2_power_on_rf()
293 mt76_clear(dev, MT_WLAN_MTC_CTRL, 0x7f << 16); in mt76x2_power_on()
[all …]
Dmt76x2_phy.c89 mt76_clear(dev, MT_BBP(IBI, 9), BIT(11)); in mt76x2_phy_set_antenna()
90 mt76_clear(dev, MT_BBP(TXBE, 5), 3); in mt76x2_phy_set_antenna()
100 mt76_clear(dev, MT_BBP(IBI, 9), BIT(11)); in mt76x2_phy_set_antenna()
116 mt76_clear(dev, MT_BBP(CORE, 32), GENMASK(21, 20)); in mt76x2_phy_set_antenna()
117 mt76_clear(dev, MT_BBP(CORE, 33), GENMASK(12, 9)); in mt76x2_phy_set_antenna()
Dmt76x2u_main.c76 mt76_clear(dev, MT_TXOP_CTRL_CFG, BIT(20)); in mt76x2u_set_channel()
77 mt76_clear(dev, MT_TXOP_HLDR_ET, BIT(1)); in mt76x2u_set_channel()
Dmt76x2_phy_common.c291 mt76_clear(dev, MT_TX_BAND_CFG, MT_TX_BAND_CFG_5G); in mt76x2_phy_set_band()
294 mt76_clear(dev, MT_TX_BAND_CFG, MT_TX_BAND_CFG_2G); in mt76x2_phy_set_band()
Dmt76x2u_phy.c48 mt76_clear(dev, MT_BBP(TXBE, 5), 0x3); in mt76x2u_phy_set_txdac()
Dmt76x2_mac_common.c46 mt76_clear(dev, MT_BBP(CORE, 4), BIT(1)); in mt76x2_mac_stop()
49 mt76_clear(dev, MT_BBP(CORE, 4), BIT(0)); in mt76x2_mac_stop()
Dmt76x2_mcu.c349 mt76_clear(dev, MT_MCU_COM_REG0, BIT(31)); in mt76x2_mcu_calibrate()
Dmt76x2_common.c68 mt76_clear(dev, MT_WCID_ADDR(msta->wcid.idx) + 4, in mt76x2_ampdu_action()
Dmt76.h408 #define mt76_clear(dev, offset, val) mt76_rmw(dev, offset, val, 0) macro
/Linux-v4.19/drivers/net/wireless/mediatek/mt76/mt76x0/
Dinit.c207 mt76_clear(dev, MT_FCE_L2_STUFF, MT_FCE_L2_STUFF_WR_MPDU_LEN_EN); in mt76x0_init_mac_registers()
319 mt76_clear(dev, MT_BEACON_TIME_CFG, MT_BEACON_TIME_CFG_TIMER_EN | in mt76x0_mac_stop_hw()
336 mt76_clear(dev, MT_MAC_SYS_CTRL, MT_MAC_SYS_CTRL_ENABLE_RX | in mt76x0_mac_stop_hw()
441 mt76_clear(dev, MT_BEACON_TIME_CFG, (MT_BEACON_TIME_CFG_TIMER_EN | in mt76x0_init_hardware()
Dphy.c320 mt76_clear(dev, MT_TX_BAND_CFG, MT_TX_BAND_CFG_5G); in mt76x0_phy_set_band()
331 mt76_clear(dev, MT_TX_BAND_CFG, MT_TX_BAND_CFG_2G); in mt76x0_phy_set_band()
933 mt76_clear(dev, MT_BBP(TXBE, 5), 3); in mt76x0_set_tx_dac()
993 mt76_clear(dev, MT_CMB_CTRL, BIT(14) | BIT(12)); in mt76x0_ant_select()
994 mt76_clear(dev, MT_COEXCFG0, BIT(2)); in mt76x0_ant_select()
Dmain.c218 mt76_clear(dev, MT_WCID_DROP(idx), MT_WCID_DROP_MASK(idx)); in mt76x0_sta_add()
340 mt76_clear(dev, MT_WCID_ADDR(msta->wcid.idx) + 4, BIT(16 + tid)); in mt76_ampdu_action()
Dmac.c313 mt76_clear(dev, MT_AUTO_RSP_CFG, MT_AUTO_RSP_PREAMB_SHORT); in mt76x0_mac_set_short_preamble()
347 mt76_clear(dev, MT_MAC_SYS_CTRL, MT_MAC_SYS_CTRL_RESET_CSR); in mt76x0_check_mac_err()
/Linux-v4.19/drivers/net/wireless/mediatek/mt7601u/
Dinit.c272 mt76_clear(dev, MT_BEACON_TIME_CFG, MT_BEACON_TIME_CFG_TIMER_EN | in mt7601u_mac_stop_hw()
289 mt76_clear(dev, MT_MAC_SYS_CTRL, MT_MAC_SYS_CTRL_ENABLE_RX | in mt7601u_mac_stop_hw()
391 mt76_clear(dev, MT_BEACON_TIME_CFG, (MT_BEACON_TIME_CFG_TIMER_EN | in mt7601u_init_hardware()
Dmain.c237 mt76_clear(dev, MT_WCID_DROP(idx), MT_WCID_DROP_MASK(idx)); in mt7601u_sta_add()
372 mt76_clear(dev, MT_WCID_ADDR(msta->wcid.idx) + 4, in mt76_ampdu_action()
Dmac.c272 mt76_clear(dev, MT_AUTO_RSP_CFG, MT_AUTO_RSP_PREAMB_SHORT); in mt7601u_mac_set_short_preamble()
306 mt76_clear(dev, MT_MAC_SYS_CTRL, MT_MAC_SYS_CTRL_RESET_CSR); in mt7601u_check_mac_err()
Dmt7601u.h329 static inline u32 mt76_clear(struct mt7601u_dev *dev, u32 offset, u32 val) in mt76_clear() function