Home
last modified time | relevance | path

Searched refs:mt76_rmw_field (Results 1 – 25 of 35) sorted by relevance

12

/linux/drivers/net/wireless/mediatek/mt76/mt76x2/
A Dpci_phy.c82 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 Dusb_mac.c32 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 Dpci.c80 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 Dusb_phy.c178 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 Dphy.c20 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 Dpci_init.c54 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 Dmt76x02_phy.c97 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 Dmt76x02_txrx.c116 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 Dmt76x02_mmio.c77 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 Dmt76x02_mac.c119 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 Dmt76x02_util.c535 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 Dmt76x02_beacon.c124 mt76_rmw_field(dev, MT_BEACON_TIME_CFG, in mt76x02_resync_beacon_timer()
A Dmt76x02_dfs.c836 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 Dtestmode.c186 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 Ddma.c235 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 Ddebugfs.c497 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 Dinit.c142 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 Dinit.c125 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 Dmac.c80 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 Dbeacon.c170 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 Dmmio.c11 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 Dinit.c203 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 Dinit.c111 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 Dmain.c176 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 Dmt7601u.h297 #define mt76_rmw_field(_dev, _reg, _field, _val) \ macro

Completed in 32 milliseconds

12