Home
last modified time | relevance | path

Searched refs:mt76_set (Results 1 – 20 of 20) sorted by relevance

/Linux-v4.19/drivers/net/wireless/mediatek/mt76/
Dmt76x2u_init.c39 mt76_set(dev, MT_VEND_ADDR(CFG, 0x130), BIT(0) | BIT(16)); in mt76x2u_power_on_rf_patch()
43 mt76_set(dev, MT_VEND_ADDR(CFG, 0x1c), 0x30); in mt76x2u_power_on_rf_patch()
48 mt76_set(dev, MT_VEND_ADDR(CFG, 0x130), BIT(17)); in mt76x2u_power_on_rf_patch()
54 mt76_set(dev, MT_VEND_ADDR(CFG, 0x14c), BIT(19) | BIT(20)); in mt76x2u_power_on_rf_patch()
63 mt76_set(dev, MT_VEND_ADDR(CFG, 0x130), BIT(0) << shift); in mt76x2u_power_on_rf()
67 mt76_set(dev, MT_VEND_ADDR(CFG, 0x130), val); in mt76x2u_power_on_rf()
76 mt76_set(dev, 0x530, 0xf); in mt76x2u_power_on_rf()
84 mt76_set(dev, MT_VEND_ADDR(CFG, 0x148), in mt76x2u_power_on()
99 mt76_set(dev, MT_VEND_ADDR(CFG, 0x148), 0xf << 24); in mt76x2u_power_on()
106 mt76_set(dev, MT_VEND_ADDR(CFG, 0x80), BIT(0)); in mt76x2u_power_on()
Dmt76x2_init.c33 mt76_set(dev, MT_PBF_SYS_CTRL, val); in mt76x2_mac_pbf_init()
65 mt76_set(dev, MT_XO_CTRL6, MT_XO_CTRL6_C2_CTRL); in mt76x2_fixup_xtal()
129 mt76_set(dev, MT_EXT_CCA_CFG, 0x0000f000); in mt76x2_mac_reset()
211 mt76_set(dev, MT_WPDMA_GLO_CFG, in mt76x2_mac_start()
239 mt76_set(dev, 0x10130, BIT(0) | BIT(16)); in mt76x2_power_on_rf_patch()
243 mt76_set(dev, 0x1001c, 0x30); in mt76x2_power_on_rf_patch()
248 mt76_set(dev, 0x10130, BIT(17)); in mt76x2_power_on_rf_patch()
254 mt76_set(dev, 0x1014c, BIT(19) | BIT(20)); in mt76x2_power_on_rf_patch()
263 mt76_set(dev, 0x10130, BIT(0) << shift); in mt76x2_power_on_rf()
267 mt76_set(dev, 0x10130, (BIT(1) | BIT(3) | BIT(4) | BIT(5)) << shift); in mt76x2_power_on_rf()
[all …]
Dmt76x2u_mac.c55 mt76_set(dev, MT_VEND_ADDR(CFG, MT_XO_CTRL6), MT_XO_CTRL6_C2_CTRL); in mt76x2u_mac_fixup_xtal()
109 mt76_set(dev, MT_EXT_CCA_CFG, 0xf000); in mt76x2u_mac_reset()
182 mt76_set(dev, MT_BBP(CORE, 4), BIT(1)); in mt76x2u_mac_stop()
185 mt76_set(dev, MT_BBP(CORE, 4), BIT(0)); in mt76x2u_mac_stop()
220 mt76_set(dev, MT_TXOP_CTRL_CFG, BIT(20)); in mt76x2u_mac_resume()
221 mt76_set(dev, MT_TXOP_HLDR_ET, BIT(1)); in mt76x2u_mac_resume()
Dmt76x2u_phy.c45 mt76_set(dev, MT_BBP(TXBE, 5), 0x3); in mt76x2u_phy_set_txdac()
250 mt76_set(dev, MT_BBP(RXO, 13), BIT(10)); in mt76x2u_phy_set_channel()
272 mt76_set(dev, MT_BBP(TXO, 4), BIT(25)); in mt76x2u_phy_set_channel()
273 mt76_set(dev, MT_BBP(RXO, 13), BIT(8)); in mt76x2u_phy_set_channel()
Dmt76x2_phy.c113 mt76_set(dev, MT_BBP(IBI, 9), BIT(11)); in mt76x2_phy_set_antenna()
114 mt76_set(dev, MT_BBP(TXBE, 5), 3); in mt76x2_phy_set_antenna()
360 mt76_set(dev, MT_BBP(RXO, 13), BIT(10)); in mt76x2_phy_set_channel()
Dmt76x2_phy_common.c290 mt76_set(dev, MT_TX_BAND_CFG, MT_TX_BAND_CFG_2G); in mt76x2_phy_set_band()
295 mt76_set(dev, MT_TX_BAND_CFG, MT_TX_BAND_CFG_5G); in mt76x2_phy_set_band()
Dmt76x2_mac.c126 mt76_set(dev, MT_BCN_BYPASS_MASK, BIT(bcn_idx)); in __mt76x2_mac_set_beacon()
Dmt76x2_mac_common.c45 mt76_set(dev, MT_BBP(CORE, 4), BIT(1)); in mt76x2_mac_stop()
48 mt76_set(dev, MT_BBP(CORE, 4), BIT(0)); in mt76x2_mac_stop()
Dmt76x2_mcu.c222 mt76_set(dev, MT_MCU_COM_REG0, BIT(30)); in mt76pci_load_firmware()
Dmt76x2_common.c64 mt76_set(dev, MT_WCID_ADDR(msta->wcid.idx) + 4, BIT(16 + tid)); in mt76x2_ampdu_action()
Dmt76x2u_mcu.c425 mt76_set(dev, MT_MCU_COM_REG0, BIT(1)); in mt76x2u_mcu_load_firmware()
Dmt76.h407 #define mt76_set(dev, offset, val) mt76_rmw(dev, offset, 0, val) macro
/Linux-v4.19/drivers/net/wireless/mediatek/mt76/mt76x0/
Dmain.c238 mt76_set(dev, MT_WCID_DROP(idx), MT_WCID_DROP_MASK(idx)); in mt76x0_sta_remove()
337 mt76_set(dev, MT_WCID_ADDR(msta->wcid.idx) + 4, BIT(16 + tid)); in mt76_ampdu_action()
Dphy.c319 mt76_set(dev, MT_TX_BAND_CFG, MT_TX_BAND_CFG_2G); in mt76x0_phy_set_band()
332 mt76_set(dev, MT_TX_BAND_CFG, MT_TX_BAND_CFG_5G); in mt76x0_phy_set_band()
931 mt76_set(dev, MT_BBP(TXBE, 5), 3); in mt76x0_set_tx_dac()
Dmac.c311 mt76_set(dev, MT_AUTO_RSP_CFG, MT_AUTO_RSP_PREAMB_SHORT); in mt76x0_mac_set_short_preamble()
345 mt76_set(dev, MT_MAC_SYS_CTRL, MT_MAC_SYS_CTRL_RESET_CSR); in mt76x0_check_mac_err()
Dmcu.c570 mt76_set(dev, MT_USB_DMA_CFG, (MT_USB_DMA_CFG_RX_BULK_EN | in mt76x0_load_firmware()
/Linux-v4.19/drivers/net/wireless/mediatek/mt7601u/
Dmain.c257 mt76_set(dev, MT_WCID_DROP(idx), MT_WCID_DROP_MASK(idx)); in mt7601u_sta_remove()
369 mt76_set(dev, MT_WCID_ADDR(msta->wcid.idx) + 4, BIT(16 + tid)); in mt76_ampdu_action()
Dmac.c270 mt76_set(dev, MT_AUTO_RSP_CFG, MT_AUTO_RSP_PREAMB_SHORT); in mt7601u_mac_set_short_preamble()
304 mt76_set(dev, MT_MAC_SYS_CTRL, MT_MAC_SYS_CTRL_RESET_CSR); in mt7601u_check_mac_err()
Dmt7601u.h324 static inline u32 mt76_set(struct mt7601u_dev *dev, u32 offset, u32 val) in mt76_set() function
Dmcu.c472 val = mt76_set(dev, MT_USB_DMA_CFG, MT_USB_DMA_CFG_TX_CLR); in mt7601u_load_firmware()