Home
last modified time | relevance | path

Searched refs:mt76_rmw (Results 1 – 25 of 31) sorted by relevance

12

/Linux-v6.6/drivers/net/wireless/mediatek/mt76/
Dmt792x_usb.c124 mt76_rmw(dev, MT_UWFDMA0_TX_RING_EXT_CTRL(0), in mt792xu_dma_prefetch()
126 mt76_rmw(dev, MT_UWFDMA0_TX_RING_EXT_CTRL(0), in mt792xu_dma_prefetch()
129 mt76_rmw(dev, MT_UWFDMA0_TX_RING_EXT_CTRL(1), in mt792xu_dma_prefetch()
131 mt76_rmw(dev, MT_UWFDMA0_TX_RING_EXT_CTRL(1), in mt792xu_dma_prefetch()
134 mt76_rmw(dev, MT_UWFDMA0_TX_RING_EXT_CTRL(2), in mt792xu_dma_prefetch()
136 mt76_rmw(dev, MT_UWFDMA0_TX_RING_EXT_CTRL(2), in mt792xu_dma_prefetch()
139 mt76_rmw(dev, MT_UWFDMA0_TX_RING_EXT_CTRL(3), in mt792xu_dma_prefetch()
141 mt76_rmw(dev, MT_UWFDMA0_TX_RING_EXT_CTRL(3), in mt792xu_dma_prefetch()
144 mt76_rmw(dev, MT_UWFDMA0_TX_RING_EXT_CTRL(4), in mt792xu_dma_prefetch()
146 mt76_rmw(dev, MT_UWFDMA0_TX_RING_EXT_CTRL(4), in mt792xu_dma_prefetch()
[all …]
Dmt76x02_mcu.c130 mt76_rmw(dev, MT_MCU_COM_REG0, BIT(31), 0); in mt76x02_mcu_calibrate()
Dmt76.h1006 #define mt76_rmw(dev, ...) (dev)->mt76.bus->rmw(&((dev)->mt76), __VA_ARGS__) macro
1015 #define mt76_set(dev, offset, val) mt76_rmw(dev, offset, 0, val)
1016 #define mt76_clear(dev, offset, val) mt76_rmw(dev, offset, val, 0)
1022 mt76_rmw(_dev, _reg, _field, FIELD_PREP(_field, _val))
Dmt76x02_mac.c939 mt76_rmw(dev, MT_CCK_PROT_CFG, in mt76x02_mac_set_rts_thresh()
941 mt76_rmw(dev, MT_OFDM_PROT_CFG, in mt76x02_mac_set_rts_thresh()
1113 mt76_rmw(dev, MT_BBP(AGC, 2), GENMASK(15, 0), in mt76x02_edcca_init()
Dmt792x_mac.c311 mt76_rmw(dev, MT_WTBLOFF_TOP_RSCR(band), mask, set); in mt792x_mac_init_band()
/Linux-v6.6/drivers/net/wireless/mediatek/mt76/mt7915/
Dsoc.c786 mt76_rmw(dev, MT_AFE_DIG_EN_01(idx), in mt7986_wmac_afe_cal()
809 mt76_rmw(dev, MT_AFE_DIG_EN_03(idx), in mt7986_wmac_afe_cal()
823 mt76_rmw(dev, MT_AFE_PLL_STB_TIME(band), in mt7986_wmac_subsys_pll_initial()
826 mt76_rmw(dev, MT_AFE_DIG_EN_02(band), in mt7986_wmac_subsys_pll_initial()
829 mt76_rmw(dev, MT_AFE_DIG_TOP_01(band), in mt7986_wmac_subsys_pll_initial()
840 mt76_rmw(dev, MT_CONN_INFRA_OSC_RC_EN, in mt7986_wmac_subsys_setting()
842 mt76_rmw(dev, MT_CONN_INFRA_OSC_CTRL, in mt7986_wmac_subsys_setting()
846 mt76_rmw(dev, MT_TOP_WFSYS_PWR, in mt7986_wmac_subsys_setting()
896 mt76_rmw(dev, MT_TOP_CONN_INFRA_WAKEUP, in mt7986_wmac_clock_enable()
920 mt76_rmw(dev, MT_TOP_CONN_INFRA_WAKEUP, in mt7986_wmac_clock_enable()
[all …]
Dinit.c465 mt76_rmw(dev, MT_MDP_BNRCFR0(band), mask, set); in mt7915_mac_init_band()
473 mt76_rmw(dev, MT_MDP_BNRCFR1(band), mask, set); in mt7915_mac_init_band()
495 mt76_rmw(dev, MT_WF_RMAC_MIB_AIRTIME0(band), mask, set); in mt7915_mac_init_band()
501 mt76_rmw(dev, MT_WTBLOFF_TOP_RSCR(band), mask, set); in mt7915_mac_init_band()
583 mt76_rmw(dev, MT_WF_PP_TOP_RXQ_WFDMA_CF_5, 0, in mt7915_mac_init()
Dmain.c933 mt76_rmw(dev, MT_LPON_TCR(band, n), MT_LPON_TCR_SW_MODE, in __mt7915_get_tsf()
936 mt76_rmw(dev, MT_LPON_TCR_MT7916(band, n), MT_LPON_TCR_SW_MODE, in __mt7915_get_tsf()
980 mt76_rmw(dev, MT_LPON_TCR(band, n), MT_LPON_TCR_SW_MODE, in mt7915_set_tsf()
983 mt76_rmw(dev, MT_LPON_TCR_MT7916(band, n), MT_LPON_TCR_SW_MODE, in mt7915_set_tsf()
1011 mt76_rmw(dev, MT_LPON_TCR(band, n), MT_LPON_TCR_SW_MODE, in mt7915_offset_tsf()
1014 mt76_rmw(dev, MT_LPON_TCR_MT7916(band, n), MT_LPON_TCR_SW_MODE, in mt7915_offset_tsf()
Ddma.c434 mt76_rmw(dev, MT_WFDMA0_EXT0_CFG, MT_WFDMA0_EXT0_RXWB_KEEP, in mt7915_dma_init()
658 mt76_rmw(dev, MT_WFDMA0_EXT0_CFG, MT_WFDMA0_EXT0_RXWB_KEEP, in mt7915_dma_reset()
/Linux-v6.6/drivers/net/wireless/mediatek/mt7601u/
Dmt7601u.h298 mt76_rmw(_dev, _reg, _field, FIELD_PREP(_field, _val))
311 mt76_rmw(struct mt7601u_dev *dev, u32 offset, u32 mask, u32 val) in mt76_rmw() function
318 return mt76_rmw(dev, offset, 0, val); in mt76_set()
323 return mt76_rmw(dev, offset, val, 0); in mt76_clear()
/Linux-v6.6/drivers/net/wireless/mediatek/mt76/mt7615/
Dusb_sdio.c118 mt76_rmw(dev, addr, MT_LPON_TCR_MODE, MT_LPON_TCR_READ); /* TSF read */ in mt7663_usb_sdio_set_rates()
230 mt76_rmw(dev, MT_DMA_SHDL(MT_DMASHDL_PKT_MAX_SIZE), in mt7663u_dma_sched_init()
271 mt76_rmw(dev, MT_UDMA_WLCFG_0, MT_WL_RX_AGG_LMT | MT_WL_RX_AGG_TO, in mt7663u_dma_sched_init()
Dinit.c89 mt76_rmw(dev, MT_TMAC_TRCR(chain), in mt7615_init_mac_chain()
131 mt76_rmw(dev, MT_DMA_RCFR0(chain), mask, set); in mt7615_init_mac_chain()
146 mt76_rmw(dev, MT_TMAC_CTCR0, in mt7615_mac_init()
155 mt76_rmw(dev, MT_AGG_SCR, MT_AGG_SCR_NLNAV_MID_PTEC_DIS, in mt7615_mac_init()
Ddma.c147 mt76_rmw(dev, reg + MT_DMASHDL_PKT_MAX_SIZE, in mt7622_dma_sched_init()
170 mt76_rmw(dev, MT_DMA_SHDL(MT_DMASHDL_PKT_MAX_SIZE), in mt7663_dma_sched_init()
Dmac.c881 mt76_rmw(dev, MT_WTBL_UPDATE, MT_WTBL_UPDATE_WLAN_IDX, in mt7615_mac_wtbl_update()
1164 mt76_rmw(dev, addr, MT_LPON_TCR_MODE, MT_LPON_TCR_READ); /* TSF read */ in mt7615_mac_set_rates()
1270 mt76_rmw(dev, addr + 2 * 4, MT_WTBL_W2_KEY_TYPE, in mt7615_mac_wtbl_update_cipher()
1691 mt76_rmw(dev, MT7663_WF_PHY_MIN_PRI_PWR(ext_phy), in mt7615_mac_set_sensitivity()
1695 mt76_rmw(dev, MT7663_WF_PHY_RXTD_CCK_PD(ext_phy), in mt7615_mac_set_sensitivity()
1702 mt76_rmw(dev, MT_WF_PHY_MIN_PRI_PWR(ext_phy), in mt7615_mac_set_sensitivity()
1706 mt76_rmw(dev, MT_WF_PHY_RXTD_CCK_PD(ext_phy), in mt7615_mac_set_sensitivity()
Dmain.c927 mt76_rmw(dev, reg, MT_LPON_TCR_MODE, MT_LPON_TCR_READ); in mt7615_get_tsf()
957 mt76_rmw(dev, reg, MT_LPON_TCR_MODE, MT_LPON_TCR_WRITE); in mt7615_set_tsf()
983 mt76_rmw(dev, reg, MT_LPON_TCR_MODE, MT_LPON_TCR_ADJUST); in mt7615_offset_tsf()
/Linux-v6.6/drivers/net/wireless/mediatek/mt76/mt7603/
Dinit.c119 mt76_rmw(dev, MT_WF_RMAC_RMCR, in mt7603_phy_init()
175 mt76_rmw(dev, MT_DMA_VCFR0, BIT(0), BIT(13)); in mt7603_mac_init()
176 mt76_rmw(dev, MT_DMA_TMCFR0, BIT(0) | BIT(1), BIT(13)); in mt7603_mac_init()
181 mt76_rmw(dev, MT_WF_RMAC_MAXMINLEN, 0xffffff, 0x19000); in mt7603_mac_init()
Dmcu.c159 mt76_rmw(dev, MT_SCH_4, MT_SCH_4_FORCE_QID, in mt7603_load_firmware()
/Linux-v6.6/drivers/net/wireless/mediatek/mt76/mt76x0/
Dinit.c133 mt76_rmw(dev, MT_WMM_CTRL, 0x3ff, 0x201); in mt76x0_init_mac_registers()
Dphy.c466 mt76_rmw(dev, MT_CMB_CTRL, GENMASK(15, 0), ee_ant); in mt76x0_phy_ant_select()
467 mt76_rmw(dev, MT_CSR_EE_CFG1, GENMASK(15, 0), ee_cfg1); in mt76x0_phy_ant_select()
985 mt76_rmw(dev, MT_EXT_CCA_CFG, in mt76x0_phy_set_channel()
Dusb.c167 mt76_rmw(dev, MT_US_CYC_CFG, MT_US_CYC_CNT, 0x1e); in mt76x0u_init_hardware()
/Linux-v6.6/drivers/net/wireless/mediatek/mt76/mt76x2/
Dusb_phy.c129 mt76_rmw(dev, MT_EXT_CCA_CFG, in mt76x2u_phy_set_channel()
Dusb_init.c177 mt76_rmw(dev, MT_US_CYC_CFG, MT_US_CYC_CNT, 0x1e); in mt76x2u_init_hardware()
Dpci_phy.c192 mt76_rmw(dev, MT_EXT_CCA_CFG, in mt76x2_phy_set_channel()
/Linux-v6.6/drivers/net/wireless/mediatek/mt76/mt7996/
Dinit.c254 mt76_rmw(dev, MT_WF_RMAC_MIB_AIRTIME0(band), mask, set); in mt7996_mac_init_band()
260 mt76_rmw(dev, MT_WTBLOFF_RSCR(band), mask, set); in mt7996_mac_init_band()
Dmain.c847 mt76_rmw(dev, MT_LPON_TCR(phy->mt76->band_idx, n), MT_LPON_TCR_SW_MODE, in __mt7996_get_tsf()
889 mt76_rmw(dev, MT_LPON_TCR(phy->mt76->band_idx, n), MT_LPON_TCR_SW_MODE, in mt7996_set_tsf()
915 mt76_rmw(dev, MT_LPON_TCR(phy->mt76->band_idx, n), MT_LPON_TCR_SW_MODE, in mt7996_offset_tsf()

12