/linux/drivers/net/wireless/mediatek/mt76/mt76x2/ |
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() 275 mt76_rmw_field(dev, MT_TX_ALC_CFG_1, MT_TX_ALC_CFG_1_TEMP_COMP, in mt76x2_phy_temp_compensate() [all …]
|
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()
|
A D | pci.c | 80 mt76_rmw_field(dev, 0x15a10, 0x1f << 16, 0x9); in mt76x2e_probe() 83 mt76_rmw_field(dev, 0x15a0c, 0xf << 28, 0xf); in mt76x2e_probe() 86 mt76_rmw_field(dev, 0x15c58, 0x3 << 6, 0x3); in mt76x2e_probe()
|
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()
|
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()
|
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/ |
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()
|
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()
|
A D | mt76x02_mmio.c | 77 mt76_rmw_field(dev, MT_INT_TIMER_EN, MT_INT_TIMER_EN_PRE_TBTT_EN, en); in mt76x02e_beacon_enable() 96 mt76_rmw_field(dev, MT_INT_TIMER_CFG, MT_INT_TIMER_CFG_PRE_TBTT, in mt76x02e_init_beacon_config() 98 mt76_rmw_field(dev, MT_INT_TIMER_CFG, MT_INT_TIMER_CFG_GP_TIMER, in mt76x02e_init_beacon_config()
|
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() 752 mt76_rmw_field(dev, MT_MAC_BSSID_DW1, MT_MAC_BSSID_DW1_MBEACON_N, 7); in mt76x02_mac_setaddr() 935 mt76_rmw_field(dev, MT_TX_RTS_CFG, MT_TX_RTS_CFG_THRESH, val); in mt76x02_mac_set_rts_thresh() 1218 mt76_rmw_field(dev, MT_MAC_APC_BSSID_H(idx), MT_MAC_APC_BSSID_H_ADDR, in mt76x02_mac_set_bssid()
|
A D | mt76x02_util.c | 535 mt76_rmw_field(dev, MT_BKOFF_SLOT_CFG, in mt76x02_set_tx_ackto() 542 mt76_rmw_field(dev, MT_TX_TIMEOUT_CFG, in mt76x02_set_tx_ackto() 650 mt76_rmw_field(dev, MT_BEACON_TIME_CFG, in mt76x02_bss_info_changed()
|
A D | mt76x02_beacon.c | 124 mt76_rmw_field(dev, MT_BEACON_TIME_CFG, in mt76x02_resync_beacon_timer()
|
A D | mt76x02_dfs.c | 836 mt76_rmw_field(dev, MT_INT_TIMER_EN, in mt76x02_dfs_init_params() 850 mt76_rmw_field(dev, MT_INT_TIMER_EN, in mt76x02_dfs_init_params()
|
/linux/drivers/net/wireless/mediatek/mt76/mt7615/ |
A D | testmode.c | 186 mt76_rmw_field(dev, MT_WF_PHY_RFINTF3_0(i), in mt7615_tm_set_tx_antenna() 193 mt76_rmw_field(dev, MT_ANT_SWITCH_CON(3), MT_ANT_SWITCH_CON_MODE(0), in mt7615_tm_set_tx_antenna() 195 mt76_rmw_field(dev, MT_ANT_SWITCH_CON(4), MT_ANT_SWITCH_CON_MODE(2), in mt7615_tm_set_tx_antenna() 197 mt76_rmw_field(dev, MT_ANT_SWITCH_CON(6), MT_ANT_SWITCH_CON_MODE1(0), in mt7615_tm_set_tx_antenna() 199 mt76_rmw_field(dev, MT_ANT_SWITCH_CON(7), MT_ANT_SWITCH_CON_MODE1(2), in mt7615_tm_set_tx_antenna() 203 mt76_rmw_field(dev, MT_ANT_SWITCH_CON(4), MT_ANT_SWITCH_CON_MODE(1), in mt7615_tm_set_tx_antenna() 205 mt76_rmw_field(dev, MT_ANT_SWITCH_CON(2), MT_ANT_SWITCH_CON_MODE(3), in mt7615_tm_set_tx_antenna() 207 mt76_rmw_field(dev, MT_ANT_SWITCH_CON(7), MT_ANT_SWITCH_CON_MODE1(1), in mt7615_tm_set_tx_antenna() 209 mt76_rmw_field(dev, MT_ANT_SWITCH_CON(8), MT_ANT_SWITCH_CON_MODE1(3), in mt7615_tm_set_tx_antenna()
|
A D | dma.c | 235 mt76_rmw_field(dev, MT_WPDMA_GLO_CFG, in mt7615_dma_init() 238 mt76_rmw_field(dev, MT_WPDMA_GLO_CFG, in mt7615_dma_init() 241 mt76_rmw_field(dev, MT_WPDMA_GLO_CFG, in mt7615_dma_init() 244 mt76_rmw_field(dev, MT_WPDMA_GLO_CFG, in mt7615_dma_init()
|
A D | debugfs.c | 497 mt76_rmw_field(dev, MT_WF_RMAC_MORE(0), MT_WF_RMAC_MORE_MUAR_MODE, 1); in mt7615_ext_mac_addr_write() 505 mt76_rmw_field(dev, MT_WF_RMAC_MORE(0), MT_WF_RMAC_MORE_MUAR_MODE, !!dev->muar_mask); in mt7615_ext_mac_addr_write()
|
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/mt7603/ |
A D | init.c | 125 mt76_rmw_field(dev, MT_TMAC_TCR, MT_TMAC_TCR_TX_STREAMS, in mt7603_phy_init() 196 mt76_rmw_field(dev, MT_AGG_PCR_RTS, MT_AGG_PCR_RTS_PKT_THR, 3); in mt7603_mac_init() 200 mt76_rmw_field(dev, MT_TXREQ, MT_TXREQ_CCA_SRC_SEL, 2); in mt7603_mac_init() 229 mt76_rmw_field(dev, MT_LPON_BTEIR, MT_LPON_BTEIR_MBSS_MODE, 2); in mt7603_mac_init() 230 mt76_rmw_field(dev, MT_WF_RMACDR, MT_WF_RMACDR_MBSSID_MASK, 2); in mt7603_mac_init() 265 mt76_rmw_field(dev, MT_LPON_SBTOR(i), MT_LPON_SBTOR_TIME_OFFSET, in mt7603_mac_init()
|
A D | mac.c | 80 mt76_rmw_field(dev, MT_AGG_CONTROL, MT_AGG_CONTROL_CFEND_RATE, val); in mt7603_mac_set_timing() 222 mt76_rmw_field(dev, addr + 2 * 4, MT_WTBL1_W2_SMPS, enabled); in mt7603_wtbl_set_smps() 896 mt76_rmw_field(dev, addr + 2 * 4, MT_WTBL1_W2_KEY_TYPE, cipher); in mt7603_wtbl_set_key() 898 mt76_rmw_field(dev, addr, MT_WTBL1_W0_KEY_IDX, key->keyidx); in mt7603_wtbl_set_key() 899 mt76_rmw_field(dev, addr, MT_WTBL1_W0_RX_KEY_VALID, !!key); in mt7603_wtbl_set_key() 1635 mt76_rmw_field(dev, MT_RXTD(13), MT_RXTD_13_ACI_TH_EN, in mt7603_edcca_set_strict()
|
A D | beacon.c | 170 mt76_rmw_field(dev, MT_ARB_SCR, MT_ARB_SCR_BCNQ_OPMODE_MASK, in mt7603_beacon_set_timer()
|
/linux/drivers/net/wireless/mediatek/mt76/mt7915/ |
A D | mmio.c | 11 mt76_rmw_field(dev, MT_HIF_REMAP_L1, MT_HIF_REMAP_L1_MASK, base); in mt7915_reg_map_l1() 23 mt76_rmw_field(dev, MT_HIF_REMAP_L2, MT_HIF_REMAP_L2_MASK, base); in mt7915_reg_map_l2()
|
A D | init.c | 203 mt76_rmw_field(dev, MT_TMAC_TCR0(0), MT_TMAC_TCR0_TX_BLINK, 2); in mt7915_led_set_config() 367 mt76_rmw_field(dev, MT_TMAC_CTCR0(band), in mt7915_mac_init_band() 389 mt76_rmw_field(dev, MT_DMA_DCR0(band), MT_DMA_DCR0_MAX_RX_LEN, 0x680); in mt7915_mac_init_band() 398 mt76_rmw_field(dev, MT_MDP_DCR1, MT_MDP_DCR1_MAX_RX_LEN, 0x400); in mt7915_mac_init() 410 mt76_rmw_field(dev, i, MT_LED_GPIO_SEL_MASK, 4); in mt7915_mac_init()
|
/linux/drivers/net/wireless/mediatek/mt76/mt7921/ |
A D | init.c | 111 mt76_rmw_field(dev, MT_TMAC_CTCR0(band), in mt7921_mac_init_band() 124 mt76_rmw_field(dev, MT_DMA_DCR0(band), MT_DMA_DCR0_MAX_RX_LEN, 1536); in mt7921_mac_init_band() 133 mt76_rmw_field(dev, MT_MDP_DCR1, MT_MDP_DCR1_MAX_RX_LEN, 1536); in mt7921_mac_init()
|
/linux/drivers/net/wireless/mediatek/mt7601u/ |
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()
|
A D | mt7601u.h | 297 #define mt76_rmw_field(_dev, _reg, _field, _val) \ macro
|