/linux/drivers/net/wireless/mediatek/mt76/mt76x2/ |
H A D | pci_phy.c | 82 mt76_rmw_field(dev, MT_TX_PIN_CFG, MT_TX_PIN_CFG_TXANT, 0x3); in mt76x2_phy_set_antenna() 83 mt76_rmw_field(dev, MT_BBP(CORE, 32), GENMASK(21, 20), 2); in mt76x2_phy_set_antenna() 85 mt76_rmw_field(dev, MT_BBP(CORE, 33), GENMASK(12, 9), 4); in mt76x2_phy_set_antenna() 92 mt76_rmw_field(dev, MT_BBP(TXBE, 5), 3, 1); in mt76x2_phy_set_antenna() 93 mt76_rmw_field(dev, MT_TX_PIN_CFG, MT_TX_PIN_CFG_TXANT, 0xc); in mt76x2_phy_set_antenna() 94 mt76_rmw_field(dev, MT_BBP(CORE, 32), GENMASK(21, 20), 1); in mt76x2_phy_set_antenna() 96 mt76_rmw_field(dev, MT_BBP(CORE, 33), GENMASK(12, 9), 1); in mt76x2_phy_set_antenna() 106 mt76_rmw_field(dev, MT_TX_PIN_CFG, MT_TX_PIN_CFG_TXANT, 0xf); in mt76x2_phy_set_antenna() 241 mt76_rmw_field(dev, MT_TX_ALC_CFG_1, MT_TX_ALC_CFG_1_TEMP_COMP, in mt76x2_phy_set_channel() 243 mt76_rmw_field(dev, MT_TX_ALC_CFG_2, MT_TX_ALC_CFG_2_TEMP_COMP, in mt76x2_phy_set_channel() [all …]
|
H A D | usb_mac.c | 32 mt76_rmw_field(dev, MT_VEND_ADDR(CFG, MT_XO_CTRL5), in mt76x2u_mac_fixup_xtal() 42 mt76_rmw_field(dev, MT_XIFS_TIME_CFG, in mt76x2u_mac_fixup_xtal() 44 mt76_rmw_field(dev, MT_BKOFF_SLOT_CFG, MT_BKOFF_SLOT_CFG_CC_DELAY, 1); in mt76x2u_mac_fixup_xtal()
|
H A D | pci.c | 81 mt76_rmw_field(dev, 0x15a10, 0x1f << 16, 0x9); in mt76x2e_probe() 84 mt76_rmw_field(dev, 0x15a0c, 0xfU << 28, 0xf); in mt76x2e_probe() 87 mt76_rmw_field(dev, 0x15c58, 0x3 << 6, 0x3); in mt76x2e_probe()
|
H A D | usb_phy.c | 178 mt76_rmw_field(dev, MT_TX_ALC_CFG_1, MT_TX_ALC_CFG_1_TEMP_COMP, in mt76x2u_phy_set_channel() 180 mt76_rmw_field(dev, MT_TX_ALC_CFG_2, MT_TX_ALC_CFG_2_TEMP_COMP, in mt76x2u_phy_set_channel()
|
H A D | phy.c | 20 mt76_rmw_field(dev, MT_BBP(AGC, reg), MT_BBP_AGC_LNA_HIGH_GAIN, gain); in mt76x2_adjust_high_lna_gain() 30 mt76_rmw_field(dev, MT_BBP(AGC, reg), MT_BBP_AGC_GAIN, gain); in mt76x2_adjust_agc_gain() 199 mt76_rmw_field(dev, MT_XIFS_TIME_CFG, MT_XIFS_TIME_CFG_OFDM_SIFS, 15); in mt76x2_configure_tx_delay()
|
H A D | pci_init.c | 54 mt76_rmw_field(dev, MT_XO_CTRL5, MT_XO_CTRL5_C2_VAL, eep_val + offset); in mt76x2_fixup_xtal()
|
/linux/drivers/net/wireless/mediatek/mt76/ |
H A D | mt76x02_phy.c | 97 mt76_rmw_field(dev, MT_TX_ALC_CFG_0, MT_TX_ALC_CFG_0_CH_INIT_0, txp_0); in mt76x02_phy_set_txpower() 98 mt76_rmw_field(dev, MT_TX_ALC_CFG_0, MT_TX_ALC_CFG_0_CH_INIT_1, txp_1); in mt76x02_phy_set_txpower() 143 mt76_rmw_field(dev, MT_BBP(CORE, 1), MT_BBP_CORE_R1_BW, core_val); in mt76x02_phy_set_bw() 144 mt76_rmw_field(dev, MT_BBP(AGC, 0), MT_BBP_AGC_R0_BW, agc_val); in mt76x02_phy_set_bw() 145 mt76_rmw_field(dev, MT_BBP(AGC, 0), MT_BBP_AGC_R0_CTRL_CHAN, ctrl); in mt76x02_phy_set_bw() 146 mt76_rmw_field(dev, MT_BBP(TXBE, 0), MT_BBP_TXBE_R0_CTRL_CHAN, ctrl); in mt76x02_phy_set_bw() 164 mt76_rmw_field(dev, MT_TX_BAND_CFG, MT_TX_BAND_CFG_UPPER_40M, in mt76x02_phy_set_band()
|
H A D | mt76x02_txrx.c | 116 mt76_rmw_field(dev, MT_PROT_AUTO_TX_CFG, in mt76x02_tx_set_txpwr_auto() 118 mt76_rmw_field(dev, MT_PROT_AUTO_TX_CFG, in mt76x02_tx_set_txpwr_auto()
|
H A D | mt792x_mac.c | 71 mt76_rmw_field(dev, MT_AGG_ACR0(0), MT_AGG_ACR_CFEND_RATE, val); in mt792x_mac_set_timeing() 292 mt76_rmw_field(dev, MT_TMAC_CTCR0(band), in mt792x_mac_init_band() 305 mt76_rmw_field(dev, MT_DMA_DCR0(band), MT_DMA_DCR0_MAX_RX_LEN, 1536); in mt792x_mac_init_band()
|
H A D | mt76x02_mmio.c | 85 mt76_rmw_field(dev, MT_INT_TIMER_EN, MT_INT_TIMER_EN_PRE_TBTT_EN, en); in mt76x02e_beacon_enable() 104 mt76_rmw_field(dev, MT_INT_TIMER_CFG, MT_INT_TIMER_CFG_PRE_TBTT, in mt76x02e_init_beacon_config() 106 mt76_rmw_field(dev, MT_INT_TIMER_CFG, MT_INT_TIMER_CFG_GP_TIMER, in mt76x02e_init_beacon_config()
|
H A D | mt76x02_mac.c | 119 mt76_rmw_field(dev, MT_WCID_ATTR(idx), MT_WCID_ATTR_PKEY_MODE, cipher); in mt76x02_mac_wcid_set_key() 123 mt76_rmw_field(dev, MT_WCID_ATTR(idx), MT_WCID_ATTR_PAIRWISE, in mt76x02_mac_wcid_set_key() 755 mt76_rmw_field(dev, MT_MAC_BSSID_DW1, MT_MAC_BSSID_DW1_MBEACON_N, 7); in mt76x02_mac_setaddr() 937 mt76_rmw_field(dev, MT_TX_RTS_CFG, MT_TX_RTS_CFG_THRESH, val); in mt76x02_mac_set_rts_thresh() 1238 mt76_rmw_field(dev, MT_MAC_APC_BSSID_H(idx), MT_MAC_APC_BSSID_H_ADDR, in mt76x02_mac_set_bssid()
|
H A D | mt76x02_util.c | 539 mt76_rmw_field(dev, MT_BKOFF_SLOT_CFG, in mt76x02_set_tx_ackto() 546 mt76_rmw_field(dev, MT_TX_TIMEOUT_CFG, in mt76x02_set_tx_ackto() 654 mt76_rmw_field(dev, MT_BEACON_TIME_CFG, in mt76x02_bss_info_changed()
|
H A D | mt76x02_beacon.c | 128 mt76_rmw_field(dev, MT_BEACON_TIME_CFG, in mt76x02_resync_beacon_timer()
|
/linux/drivers/net/wireless/mediatek/mt76/mt7615/ |
H A D | testmode.c | 186 mt76_rmw_field(dev, MT_WF_PHY_RFINTF3_0(i), in mt7615_tm_set_tx_antenna() 192 mt76_rmw_field(dev, MT_ANT_SWITCH_CON(3), MT_ANT_SWITCH_CON_MODE(0), in mt7615_tm_set_tx_antenna() 194 mt76_rmw_field(dev, MT_ANT_SWITCH_CON(4), MT_ANT_SWITCH_CON_MODE(2), in mt7615_tm_set_tx_antenna() 196 mt76_rmw_field(dev, MT_ANT_SWITCH_CON(6), MT_ANT_SWITCH_CON_MODE1(0), in mt7615_tm_set_tx_antenna() 198 mt76_rmw_field(dev, MT_ANT_SWITCH_CON(7), MT_ANT_SWITCH_CON_MODE1(2), in mt7615_tm_set_tx_antenna() 202 mt76_rmw_field(dev, MT_ANT_SWITCH_CON(4), MT_ANT_SWITCH_CON_MODE(1), in mt7615_tm_set_tx_antenna() 204 mt76_rmw_field(dev, MT_ANT_SWITCH_CON(2), MT_ANT_SWITCH_CON_MODE(3), in mt7615_tm_set_tx_antenna() 206 mt76_rmw_field(dev, MT_ANT_SWITCH_CON(7), MT_ANT_SWITCH_CON_MODE1(1), in mt7615_tm_set_tx_antenna() 208 mt76_rmw_field(dev, MT_ANT_SWITCH_CON(8), MT_ANT_SWITCH_CON_MODE1(3), in mt7615_tm_set_tx_antenna()
|
H A D | dma.c | 233 mt76_rmw_field(dev, MT_WPDMA_GLO_CFG, in mt7615_dma_init() 236 mt76_rmw_field(dev, MT_WPDMA_GLO_CFG, in mt7615_dma_init() 239 mt76_rmw_field(dev, MT_WPDMA_GLO_CFG, in mt7615_dma_init() 242 mt76_rmw_field(dev, MT_WPDMA_GLO_CFG, in mt7615_dma_init()
|
H A D | debugfs.c | 513 mt76_rmw_field(dev, MT_WF_RMAC_MORE(0), MT_WF_RMAC_MORE_MUAR_MODE, 1); in mt7615_ext_mac_addr_write() 521 mt76_rmw_field(dev, MT_WF_RMAC_MORE(0), MT_WF_RMAC_MORE_MUAR_MODE, !!dev->muar_mask); in mt7615_ext_mac_addr_write()
|
H A D | init.c | 142 mt76_rmw_field(dev, MT_TMAC_CTCR0, in mt7615_mac_init() 144 mt76_rmw_field(dev, MT_TMAC_CTCR0, in mt7615_mac_init()
|
/linux/drivers/net/wireless/mediatek/mt76/mt7915/ |
H A D | init.c | 477 mt76_rmw_field(dev, MT_TMAC_CTCR0(band), in mt7915_mac_init_band() 499 mt76_rmw_field(dev, MT_DMA_DCR0(band), MT_DMA_DCR0_MAX_RX_LEN, 0x680); in mt7915_mac_init_band() 543 mt76_rmw_field(dev, MT_LED_GPIO_MUX2, in mt7915_init_led_mux() 545 mt76_rmw_field(dev, MT_LED_GPIO_MUX3, in mt7915_init_led_mux() 549 mt76_rmw_field(dev, MT_LED_GPIO_MUX0, in mt7915_init_led_mux() 551 mt76_rmw_field(dev, MT_LED_GPIO_MUX0, in mt7915_init_led_mux() 555 mt76_rmw_field(dev, MT_LED_GPIO_MUX1, in mt7915_init_led_mux() 557 mt76_rmw_field(dev, MT_LED_GPIO_MUX1, in mt7915_init_led_mux() 566 mt76_rmw_field(dev, MT_LED_GPIO_MUX3, in mt7915_init_led_mux() 570 mt76_rmw_field(dev, MT_LED_GPIO_MUX0, in mt7915_init_led_mux() [all …]
|
/linux/drivers/net/wireless/mediatek/mt76/mt7603/ |
H A D | init.c | 126 mt76_rmw_field(dev, MT_TMAC_TCR, MT_TMAC_TCR_TX_STREAMS, in mt7603_phy_init() 204 mt76_rmw_field(dev, MT_AGG_PCR_RTS, MT_AGG_PCR_RTS_PKT_THR, 3); in mt7603_mac_init() 208 mt76_rmw_field(dev, MT_TXREQ, MT_TXREQ_CCA_SRC_SEL, 2); in mt7603_mac_init() 237 mt76_rmw_field(dev, MT_LPON_BTEIR, MT_LPON_BTEIR_MBSS_MODE, 2); in mt7603_mac_init() 238 mt76_rmw_field(dev, MT_WF_RMACDR, MT_WF_RMACDR_MBSSID_MASK, 2); in mt7603_mac_init() 273 mt76_rmw_field(dev, MT_LPON_SBTOR(i), MT_LPON_SBTOR_TIME_OFFSET, in mt7603_mac_init()
|
H A D | mac.c | 80 mt76_rmw_field(dev, MT_AGG_CONTROL, MT_AGG_CONTROL_CFEND_RATE, val); in mt7603_mac_set_timing() 234 mt76_rmw_field(dev, addr + 2 * 4, MT_WTBL1_W2_SMPS, enabled); in mt7603_wtbl_set_smps() 909 mt76_rmw_field(dev, addr + 2 * 4, MT_WTBL1_W2_KEY_TYPE, cipher); in mt7603_wtbl_set_key() 911 mt76_rmw_field(dev, addr, MT_WTBL1_W0_KEY_IDX, key->keyidx); in mt7603_wtbl_set_key() 912 mt76_rmw_field(dev, addr, MT_WTBL1_W0_RX_KEY_VALID, !!key); in mt7603_wtbl_set_key() 1653 mt76_rmw_field(dev, MT_RXTD(13), MT_RXTD_13_ACI_TH_EN, in mt7603_edcca_set_strict()
|
H A D | beacon.c | 205 mt76_rmw_field(dev, MT_ARB_SCR, MT_ARB_SCR_BCNQ_OPMODE_MASK, in mt7603_beacon_set_timer()
|
/linux/drivers/net/wireless/mediatek/mt76/mt7925/ |
H A D | pci_mcu.c | 46 mt76_rmw_field(dev, MT_PCIE_MAC_PM, MT_PCIE_MAC_PM_L0S_DIS, 1); in mt7925e_mcu_init()
|
/linux/drivers/net/wireless/mediatek/mt76/mt7921/ |
H A D | pci_mcu.c | 56 mt76_rmw_field(dev, MT_PCIE_MAC_PM, MT_PCIE_MAC_PM_L0S_DIS, 1); in mt7921e_mcu_init()
|
/linux/drivers/net/wireless/mediatek/mt7601u/ |
H A D | main.c | 176 mt76_rmw_field(dev, MT_BKOFF_SLOT_CFG, in mt7601u_bss_info_changed() 341 mt76_rmw_field(dev, MT_TX_RTS_CFG, MT_TX_RTS_CFG_THRESH, value); in mt7601u_set_rts_threshold()
|
H A D | mt7601u.h | 297 #define mt76_rmw_field(_dev, _reg, _field, _val) \ macro
|