Home
last modified time | relevance | path

Searched refs:mt76_wr (Results 1 – 25 of 83) sorted by relevance

1234

/linux-5.19.10/drivers/net/wireless/mediatek/mt76/mt76x2/
Dphy.c55 mt76_wr(dev, MT_TX_ALC_CFG_2, 0x35160a00); in mt76x2_phy_set_txpower_regs()
56 mt76_wr(dev, MT_TX_ALC_CFG_3, 0x35160a06); in mt76x2_phy_set_txpower_regs()
59 mt76_wr(dev, MT_RF_PA_MODE_ADJ0, 0x0000ec00); in mt76x2_phy_set_txpower_regs()
60 mt76_wr(dev, MT_RF_PA_MODE_ADJ1, 0x0000ec00); in mt76x2_phy_set_txpower_regs()
62 mt76_wr(dev, MT_RF_PA_MODE_ADJ0, 0xf4000200); in mt76x2_phy_set_txpower_regs()
63 mt76_wr(dev, MT_RF_PA_MODE_ADJ1, 0xfa000200); in mt76x2_phy_set_txpower_regs()
70 mt76_wr(dev, MT_TX_ALC_CFG_2, 0x2f0f0400); in mt76x2_phy_set_txpower_regs()
71 mt76_wr(dev, MT_TX_ALC_CFG_3, 0x2f0f0476); in mt76x2_phy_set_txpower_regs()
73 mt76_wr(dev, MT_TX_ALC_CFG_2, 0x1b0f0400); in mt76x2_phy_set_txpower_regs()
74 mt76_wr(dev, MT_TX_ALC_CFG_3, 0x1b0f0476); in mt76x2_phy_set_txpower_regs()
[all …]
Dusb_mac.c36 mt76_wr(dev, 0x504, 0x06000000); in mt76x2u_mac_fixup_xtal()
37 mt76_wr(dev, 0x50c, 0x08800000); in mt76x2u_mac_fixup_xtal()
39 mt76_wr(dev, 0x504, 0x0); in mt76x2u_mac_fixup_xtal()
52 mt76_wr(dev, MT_XO_CTRL7, 0x5c1fee80); in mt76x2u_mac_fixup_xtal()
55 mt76_wr(dev, MT_XO_CTRL7, 0x5c1feed0); in mt76x2u_mac_fixup_xtal()
64 mt76_wr(dev, MT_WPDMA_GLO_CFG, BIT(4) | BIT(5)); in mt76x2u_mac_reset()
67 mt76_wr(dev, MT_PBF_TX_MAX_PCNT, 0xefef3f1f); in mt76x2u_mac_reset()
68 mt76_wr(dev, MT_PBF_RX_MAX_PCNT, 0xfebf); in mt76x2u_mac_reset()
72 mt76_wr(dev, MT_TX_LINK_CFG, 0x1020); in mt76x2u_mac_reset()
73 mt76_wr(dev, MT_AUTO_RSP_CFG, 0x13); in mt76x2u_mac_reset()
[all …]
Dusb_mcu.c102 mt76_wr(dev, MT_VEND_ADDR(CFG, MT_USB_U3DMA_CFG), val); in mt76x2u_mcu_load_rom_patch()
109 mt76_wr(dev, MT_FCE_PSE_CTRL, 0x1); in mt76x2u_mcu_load_rom_patch()
111 mt76_wr(dev, MT_TX_CPU_FROM_FCE_BASE_PTR, 0x400230); in mt76x2u_mcu_load_rom_patch()
113 mt76_wr(dev, MT_TX_CPU_FROM_FCE_MAX_COUNT, 0x1); in mt76x2u_mcu_load_rom_patch()
115 mt76_wr(dev, MT_FCE_PDMA_GLOBAL_CONF, 0x44); in mt76x2u_mcu_load_rom_patch()
117 mt76_wr(dev, MT_FCE_SKIP_FS, 0x3); in mt76x2u_mcu_load_rom_patch()
139 mt76_wr(dev, MT_MCU_SEMAPHORE_03, 1); in mt76x2u_mcu_load_rom_patch()
185 mt76_wr(dev, MT_VEND_ADDR(CFG, MT_USB_U3DMA_CFG), val); in mt76x2u_mcu_load_firmware()
187 mt76_wr(dev, MT_FCE_PSE_CTRL, 0x1); in mt76x2u_mcu_load_firmware()
189 mt76_wr(dev, MT_TX_CPU_FROM_FCE_BASE_PTR, 0x400230); in mt76x2u_mcu_load_firmware()
[all …]
Dpci_init.c26 mt76_wr(dev, MT_PBF_TX_MAX_PCNT, 0xefef3f1f); in mt76x2_mac_pbf_init()
27 mt76_wr(dev, MT_PBF_RX_MAX_PCNT, 0xfebf); in mt76x2_mac_pbf_init()
60 mt76_wr(dev, MT_XO_CTRL7, 0x5c1fee80); in mt76x2_fixup_xtal()
63 mt76_wr(dev, MT_XO_CTRL7, 0x5c1feed0); in mt76x2_fixup_xtal()
88 mt76_wr(dev, MT_WPDMA_GLO_CFG, val); in mt76x2_mac_reset()
104 mt76_wr(dev, MT_RF_BYPASS_0, 0x06000000); in mt76x2_mac_reset()
105 mt76_wr(dev, MT_RF_SETTING_0, 0x08800000); in mt76x2_mac_reset()
107 mt76_wr(dev, MT_RF_BYPASS_0, 0x00000000); in mt76x2_mac_reset()
109 mt76_wr(dev, MT_MCU_CLOCK_CTL, 0x1401); in mt76x2_mac_reset()
118 mt76_wr(dev, MT_WCID_DROP_BASE + i * 4, 0); in mt76x2_mac_reset()
[all …]
Dpci_mcu.c56 mt76_wr(dev, MT_MCU_PCIE_REMAP_BASE4, MT_MCU_ROM_PATCH_OFFSET); in mt76pci_load_rom_patch()
62 mt76_wr(dev, MT_MCU_PCIE_REMAP_BASE4, 0); in mt76pci_load_rom_patch()
65 mt76_wr(dev, MT_MCU_INT_LEVEL, 4); in mt76pci_load_rom_patch()
75 mt76_wr(dev, MT_MCU_SEMAPHORE_03, 1); in mt76pci_load_rom_patch()
116 mt76_wr(dev, MT_MCU_PCIE_REMAP_BASE4, MT_MCU_ILM_OFFSET); in mt76pci_load_firmware()
127 mt76_wr(dev, MT_MCU_PCIE_REMAP_BASE4, MT_MCU_DLM_OFFSET); in mt76pci_load_firmware()
130 mt76_wr(dev, MT_MCU_PCIE_REMAP_BASE4, 0); in mt76pci_load_firmware()
137 mt76_wr(dev, MT_MCU_INT_LEVEL, 2); in mt76pci_load_firmware()
172 mt76_wr(dev, MT_WPDMA_RST_IDX, ~0); in mt76pci_mcu_restart()
Dmac.c18 mt76_wr(dev, MT_MAC_SYS_CTRL, 0); in mt76x2_mac_stop()
21 mt76_wr(dev, MT_TX_RTS_CFG, rts_cfg & ~MT_TX_RTS_CFG_RETRY_LIMIT); in mt76x2_mac_stop()
44 mt76_wr(dev, MT_TX_RTS_CFG, rts_cfg); in mt76x2_mac_stop()
Dusb_phy.c161 mt76_wr(dev, MT_BBP(AGC, 61), 0xff64a4e2); in mt76x2u_phy_set_channel()
162 mt76_wr(dev, MT_BBP(AGC, 7), 0x08081010); in mt76x2u_phy_set_channel()
163 mt76_wr(dev, MT_BBP(AGC, 11), 0x00000404); in mt76x2u_phy_set_channel()
164 mt76_wr(dev, MT_BBP(AGC, 2), 0x00007070); in mt76x2u_phy_set_channel()
165 mt76_wr(dev, MT_TXOP_CTRL_CFG, 0X04101b3f); in mt76x2u_phy_set_channel()
Dpci_phy.c114 mt76_wr(dev, MT_BBP(AGC, 0), val); in mt76x2_phy_set_antenna()
227 mt76_wr(dev, MT_BBP(AGC, 61), 0xFF64A4E2); in mt76x2_phy_set_channel()
228 mt76_wr(dev, MT_BBP(AGC, 7), 0x08081010); in mt76x2_phy_set_channel()
229 mt76_wr(dev, MT_BBP(AGC, 11), 0x00000404); in mt76x2_phy_set_channel()
230 mt76_wr(dev, MT_BBP(AGC, 2), 0x00007070); in mt76x2_phy_set_channel()
231 mt76_wr(dev, MT_TXOP_CTRL_CFG, 0x04101B3F); in mt76x2_phy_set_channel()
/linux-5.19.10/drivers/net/wireless/mediatek/mt76/mt7615/
Ddma.c155 mt76_wr(dev, reg + MT_DMASHDL_GROUP_QUOTA(i), in mt7622_dma_sched_init()
159 mt76_wr(dev, reg + MT_DMASHDL_Q_MAP(0), 0x42104210); in mt7622_dma_sched_init()
160 mt76_wr(dev, reg + MT_DMASHDL_Q_MAP(1), 0x42104210); in mt7622_dma_sched_init()
161 mt76_wr(dev, reg + MT_DMASHDL_Q_MAP(2), 0x5); in mt7622_dma_sched_init()
162 mt76_wr(dev, reg + MT_DMASHDL_Q_MAP(3), 0); in mt7622_dma_sched_init()
164 mt76_wr(dev, reg + MT_DMASHDL_SCHED_SET0, 0x6012345f); in mt7622_dma_sched_init()
165 mt76_wr(dev, reg + MT_DMASHDL_SCHED_SET1, 0xedcba987); in mt7622_dma_sched_init()
178 mt76_wr(dev, MT_DMA_SHDL(MT_DMASHDL_REFILL), 0xffc80000); in mt7663_dma_sched_init()
180 mt76_wr(dev, MT_DMA_SHDL(MT_DMASHDL_OPTIONAL), 0x70068037); in mt7663_dma_sched_init()
184 mt76_wr(dev, MT_DMA_SHDL(MT_DMASHDL_GROUP_QUOTA(i)), in mt7663_dma_sched_init()
[all …]
Dusb_sdio.c87 mt76_wr(dev, MT_WTBL_RIUCR0, w5); in mt7663_usb_sdio_set_rates()
89 mt76_wr(dev, MT_WTBL_RIUCR1, in mt7663_usb_sdio_set_rates()
94 mt76_wr(dev, MT_WTBL_RIUCR2, in mt7663_usb_sdio_set_rates()
100 mt76_wr(dev, MT_WTBL_RIUCR3, in mt7663_usb_sdio_set_rates()
105 mt76_wr(dev, MT_WTBL_UPDATE, in mt7663_usb_sdio_set_rates()
110 mt76_wr(dev, addr + 27 * 4, w27); in mt7663_usb_sdio_set_rates()
238 mt76_wr(dev, MT_DMA_SHDL(MT_DMASHDL_REFILL), 0xffe00006); in mt7663u_dma_sched_init()
242 mt76_wr(dev, MT_DMA_SHDL(MT_DMASHDL_GROUP_QUOTA(i)), in mt7663u_dma_sched_init()
246 mt76_wr(dev, MT_DMA_SHDL(MT_DMASHDL_Q_MAP(0)), 0x42104210); in mt7663u_dma_sched_init()
247 mt76_wr(dev, MT_DMA_SHDL(MT_DMASHDL_Q_MAP(1)), 0x42104210); in mt7663u_dma_sched_init()
[all …]
Dmmio.c77 mt76_wr(dev, MT_MCU_PCIE_REMAP_2, base); in mt7615_reg_map()
94 mt76_wr(dev, MT_INT_MASK_CSR, 0); in mt7615_irq_handler()
110 mt76_wr(dev, MT_INT_MASK_CSR, 0); in mt7615_irq_tasklet()
114 mt76_wr(dev, MT_INT_SOURCE_CSR, intr); in mt7615_irq_tasklet()
138 mt76_wr(dev, MT_MCU2HOST_INT_STATUS, mcu_int); in mt7615_irq_tasklet()
242 mt76_wr(dev, MT_INT_MASK_CSR, 0); in mt7615_mmio_probe()
250 mt76_wr(dev, MT_PCIE_IRQ_ENABLE, 1); in mt7615_mmio_probe()
/linux-5.19.10/drivers/net/wireless/mediatek/mt76/mt7603/
Dinit.c36 mt76_wr(dev, addr + 4 * i, desc[i]); in mt7603_set_tmac_template()
59 mt76_wr(dev, MT_PSE_FRP, in mt7603_dma_sched_init()
64 mt76_wr(dev, MT_HIGH_PRIORITY_1, 0x55555553); in mt7603_dma_sched_init()
65 mt76_wr(dev, MT_HIGH_PRIORITY_2, 0x78555555); in mt7603_dma_sched_init()
67 mt76_wr(dev, MT_QUEUE_PRIORITY_1, 0x2b1a096e); in mt7603_dma_sched_init()
68 mt76_wr(dev, MT_QUEUE_PRIORITY_2, 0x785f4d3c); in mt7603_dma_sched_init()
70 mt76_wr(dev, MT_PRIORITY_MASK, 0xffffffff); in mt7603_dma_sched_init()
72 mt76_wr(dev, MT_SCH_1, page_count | (2 << 28)); in mt7603_dma_sched_init()
73 mt76_wr(dev, MT_SCH_2, max_amsdu_pages); in mt7603_dma_sched_init()
76 mt76_wr(dev, MT_PAGE_COUNT(i), max_amsdu_pages); in mt7603_dma_sched_init()
[all …]
Dbeacon.c31 mt76_wr(dev, MT_DMA_FQCR0, MT_DMA_FQCR0_BUSY | in mt7603_update_beacon_iter()
93 mt76_wr(dev, MT_WF_ARB_CAB_FLUSH, GENMASK(30, 16) | BIT(0)); in mt7603_pre_tbtt_tasklet()
132 mt76_wr(dev, MT_WF_ARB_CAB_COUNT_B0_REG(i), in mt7603_pre_tbtt_tasklet()
135 mt76_wr(dev, MT_WF_ARB_CAB_START, in mt7603_pre_tbtt_tasklet()
160 mt76_wr(dev, MT_HW_INT_MASK(3), 0); in mt7603_beacon_set_timer()
165 mt76_wr(dev, MT_TBTT, in mt7603_beacon_set_timer()
168 mt76_wr(dev, MT_TBTT_TIMER_CFG, 0x99); /* start timer */ in mt7603_beacon_set_timer()
175 mt76_wr(dev, MT_PRE_TBTT, pre_tbtt); in mt7603_beacon_set_timer()
Dmain.c53 mt76_wr(dev, MT_MAC_ADDR0(mvif->idx), in mt7603_add_interface()
55 mt76_wr(dev, MT_MAC_ADDR1(mvif->idx), in mt7603_add_interface()
60 mt76_wr(dev, MT_BSSID0(mvif->idx), in mt7603_add_interface()
62 mt76_wr(dev, MT_BSSID1(mvif->idx), in mt7603_add_interface()
95 mt76_wr(dev, MT_MAC_ADDR0(mvif->idx), 0); in mt7603_remove_interface()
96 mt76_wr(dev, MT_MAC_ADDR1(mvif->idx), 0); in mt7603_remove_interface()
97 mt76_wr(dev, MT_BSSID0(mvif->idx), 0); in mt7603_remove_interface()
98 mt76_wr(dev, MT_BSSID1(mvif->idx), 0); in mt7603_remove_interface()
178 mt76_wr(dev, MT_WF_RMAC_CH_FREQ, idx); in mt7603_set_channel()
250 mt76_wr(dev, MT_WF_RFCR, dev->rxfilter); in mt7603_config()
[all …]
Dmac.c67 mt76_wr(dev, MT_TIMEOUT_CCK, cck + reg_offset); in mt7603_mac_set_timing()
68 mt76_wr(dev, MT_TIMEOUT_OFDM, ofdm + reg_offset); in mt7603_mac_set_timing()
69 mt76_wr(dev, MT_IFS, in mt7603_mac_set_timing()
154 mt76_wr(dev, addr + i, 0); in mt7603_wtbl_init()
160 mt76_wr(dev, addr + i, 0); in mt7603_wtbl_init()
164 mt76_wr(dev, addr + i, 0); in mt7603_wtbl_init()
178 mt76_wr(dev, addr + 3 * 4, val); in mt7603_wtbl_set_skip_tx()
195 mt76_wr(dev, MT_TX_ABORT, MT_TX_ABORT_EN | in mt7603_filter_tx()
199 mt76_wr(dev, MT_DMA_FQCR0, MT_DMA_FQCR0_BUSY | in mt7603_filter_tx()
210 mt76_wr(dev, MT_TX_ABORT, 0); in mt7603_filter_tx()
[all …]
/linux-5.19.10/drivers/net/wireless/mediatek/mt76/mt7921/
Ddma.c64 mt76_wr(dev, MT_WFDMA0_RX_RING0_EXT_CTRL, PREFETCH(0x0, 0x4)); in mt7921_dma_prefetch()
65 mt76_wr(dev, MT_WFDMA0_RX_RING2_EXT_CTRL, PREFETCH(0x40, 0x4)); in mt7921_dma_prefetch()
66 mt76_wr(dev, MT_WFDMA0_RX_RING3_EXT_CTRL, PREFETCH(0x80, 0x4)); in mt7921_dma_prefetch()
67 mt76_wr(dev, MT_WFDMA0_RX_RING4_EXT_CTRL, PREFETCH(0xc0, 0x4)); in mt7921_dma_prefetch()
68 mt76_wr(dev, MT_WFDMA0_RX_RING5_EXT_CTRL, PREFETCH(0x100, 0x4)); in mt7921_dma_prefetch()
70 mt76_wr(dev, MT_WFDMA0_TX_RING0_EXT_CTRL, PREFETCH(0x140, 0x4)); in mt7921_dma_prefetch()
71 mt76_wr(dev, MT_WFDMA0_TX_RING1_EXT_CTRL, PREFETCH(0x180, 0x4)); in mt7921_dma_prefetch()
72 mt76_wr(dev, MT_WFDMA0_TX_RING2_EXT_CTRL, PREFETCH(0x1c0, 0x4)); in mt7921_dma_prefetch()
73 mt76_wr(dev, MT_WFDMA0_TX_RING3_EXT_CTRL, PREFETCH(0x200, 0x4)); in mt7921_dma_prefetch()
74 mt76_wr(dev, MT_WFDMA0_TX_RING4_EXT_CTRL, PREFETCH(0x240, 0x4)); in mt7921_dma_prefetch()
[all …]
Dpci.c44 mt76_wr(dev, MT_WFDMA0_HOST_INT_ENA, 0); in mt7921_irq_handler()
59 mt76_wr(dev, MT_WFDMA0_HOST_INT_ENA, 0); in mt7921_irq_tasklet()
63 mt76_wr(dev, MT_WFDMA0_HOST_INT_STA, intr); in mt7921_irq_tasklet()
76 mt76_wr(dev, MT_MCU_CMD, intr_sw); in mt7921_irq_tasklet()
322 mt76_wr(dev, MT_WFDMA0_HOST_INT_ENA, 0); in mt7921_pci_probe()
324 mt76_wr(dev, MT_PCIE_MAC_INT_ENABLE, 0xff); in mt7921_pci_probe()
406 mt76_wr(dev, MT_WFDMA0_HOST_INT_ENA, 0); in mt7921_pci_suspend()
407 mt76_wr(dev, MT_PCIE_MAC_INT_ENABLE, 0x0); in mt7921_pci_suspend()
459 mt76_wr(dev, MT_PCIE_MAC_INT_ENABLE, 0xff); in mt7921_pci_resume()
/linux-5.19.10/drivers/net/wireless/mediatek/mt76/mt7915/
Ddma.c97 mt76_wr(dev, MT_MCUQ_EXT_CTRL(MT_MCUQ_FWDL) + ofs, PREFETCH(0x0, 0x4)); in __mt7915_dma_prefetch()
98 mt76_wr(dev, MT_MCUQ_EXT_CTRL(MT_MCUQ_WM) + ofs, PREFETCH(0x40, 0x4)); in __mt7915_dma_prefetch()
99 mt76_wr(dev, MT_TXQ_EXT_CTRL(0) + ofs, PREFETCH(0x80, 0x4)); in __mt7915_dma_prefetch()
100 mt76_wr(dev, MT_TXQ_EXT_CTRL(1) + ofs, PREFETCH(0xc0, 0x4)); in __mt7915_dma_prefetch()
101 mt76_wr(dev, MT_MCUQ_EXT_CTRL(MT_MCUQ_WA) + ofs, PREFETCH(0x100, 0x4)); in __mt7915_dma_prefetch()
103 mt76_wr(dev, MT_RXQ_EXT_CTRL(MT_RXQ_MCU) + ofs, PREFETCH(0x140, 0x4)); in __mt7915_dma_prefetch()
104 mt76_wr(dev, MT_RXQ_EXT_CTRL(MT_RXQ_MCU_WA) + ofs, PREFETCH(0x180, 0x4)); in __mt7915_dma_prefetch()
106 mt76_wr(dev, MT_RXQ_EXT_CTRL(MT_RXQ_MAIN_WA) + ofs, PREFETCH(0x1c0, 0x4)); in __mt7915_dma_prefetch()
109 mt76_wr(dev, MT_RXQ_EXT_CTRL(MT_RXQ_EXT_WA) + ofs, PREFETCH(0x1c0 + base, 0x4)); in __mt7915_dma_prefetch()
110 mt76_wr(dev, MT_RXQ_EXT_CTRL(MT_RXQ_MAIN) + ofs, PREFETCH(0x200 + base, 0x4)); in __mt7915_dma_prefetch()
[all …]
/linux-5.19.10/drivers/net/wireless/mediatek/mt76/mt76x0/
Dusb_mcu.c92 mt76_wr(dev, MT_USB_DMA_CFG, (MT_USB_DMA_CFG_RX_BULK_EN | in mt76x0u_load_firmware()
125 mt76_wr(dev, 0x1004, 0x2c); in mt76x0u_load_firmware()
133 mt76_wr(dev, MT_FCE_PSE_CTRL, 1); in mt76x0u_load_firmware()
136 mt76_wr(dev, MT_TX_CPU_FROM_FCE_BASE_PTR, 0x400230); in mt76x0u_load_firmware()
138 mt76_wr(dev, MT_TX_CPU_FROM_FCE_MAX_COUNT, 1); in mt76x0u_load_firmware()
140 mt76_wr(dev, MT_FCE_PDMA_GLOBAL_CONF, 0x44); in mt76x0u_load_firmware()
142 mt76_wr(dev, MT_FCE_SKIP_FS, 3); in mt76x0u_load_firmware()
146 mt76_wr(dev, MT_USB_DMA_CFG, val); in mt76x0u_load_firmware()
148 mt76_wr(dev, MT_USB_DMA_CFG, val); in mt76x0u_load_firmware()
153 mt76_wr(dev, MT_FCE_PSE_CTRL, 1); in mt76x0u_load_firmware()
Dphy.c42 mt76_wr(dev, MT_RF_CSR_CFG, in mt76x0_rf_csr_wr()
79 mt76_wr(dev, MT_RF_CSR_CFG, in mt76x0_rf_csr_rr()
215 mt76_wr(dev, MT_TX_ALC_VGA3, 0x00050007); in mt76x0_phy_set_band()
216 mt76_wr(dev, MT_TX0_RF_GAIN_CORR, 0x003E0002); in mt76x0_phy_set_band()
224 mt76_wr(dev, MT_TX_ALC_VGA3, 0x00000005); in mt76x0_phy_set_band()
225 mt76_wr(dev, MT_TX0_RF_GAIN_CORR, 0x01010102); in mt76x0_phy_set_band()
383 mt76_wr(dev, MT_TX0_RF_GAIN_ATTEN, 0x63707400); in mt76x0_phy_set_chan_rf_params()
387 mt76_wr(dev, MT_TX_ALC_CFG_1, mac_reg); in mt76x0_phy_set_chan_rf_params()
389 mt76_wr(dev, MT_TX0_RF_GAIN_ATTEN, 0x686A7800); in mt76x0_phy_set_chan_rf_params()
395 mt76_wr(dev, MT_TX_ALC_CFG_1, mac_reg); in mt76x0_phy_set_chan_rf_params()
[all …]
Dpci_mcu.c68 mt76_wr(dev, MT_MCU_PCIE_REMAP_BASE4, 0); in mt76x0e_load_firmware()
86 mt76_wr(dev, MT_MCU_PCIE_REMAP_BASE4, MT_MCU_DLM_OFFSET); in mt76x0e_load_firmware()
93 mt76_wr(dev, MT_MCU_PCIE_REMAP_BASE4, 0); in mt76x0e_load_firmware()
95 mt76_wr(dev, MT_MCU_INT_LEVEL, 0x3); in mt76x0e_load_firmware()
97 mt76_wr(dev, MT_MCU_RESET_CTL, 0x300); in mt76x0e_load_firmware()
110 mt76_wr(dev, MT_MCU_SEMAPHORE_00, 0x1); in mt76x0e_load_firmware()
Dinit.c33 mt76_wr(dev, MT_WLAN_FUN_CTRL, val); in mt76x0_set_wlan_state()
57 mt76_wr(dev, MT_WLAN_FUN_CTRL, val); in mt76x0_chip_onoff()
65 mt76_wr(dev, MT_WLAN_FUN_CTRL, val); in mt76x0_chip_onoff()
74 mt76_wr(dev, MT_MAC_SYS_CTRL, in mt76x0_reset_csr_bbp()
102 mt76_wr(dev, pair->reg, pair->value); in mt76x0_init_bbp()
/linux-5.19.10/drivers/net/wireless/mediatek/mt76/
Dmt76x02_dfs.c148 mt76_wr(dev, MT_BBP(DFS, 36), data); in mt76x02_dfs_set_capture_mode_ctrl()
212 mt76_wr(dev, MT_BBP(DFS, 1), 0xf); in mt76x02_dfs_detector_reset()
254 mt76_wr(dev, MT_BBP(DFS, 0), data); in mt76x02_dfs_get_hw_pulse()
668 mt76_wr(dev, MT_BBP(DFS, 1), 0xf); in mt76x02_dfs_tasklet()
742 mt76_wr(dev, MT_BBP(DFS, 2), data); in mt76x02_dfs_set_bbp_params()
745 mt76_wr(dev, MT_BBP(DFS, 3), data); in mt76x02_dfs_set_bbp_params()
749 mt76_wr(dev, MT_BBP(DFS, 0), i); in mt76x02_dfs_set_bbp_params()
754 mt76_wr(dev, MT_BBP(DFS, 4), data); in mt76x02_dfs_set_bbp_params()
759 mt76_wr(dev, MT_BBP(DFS, 5), data); in mt76x02_dfs_set_bbp_params()
762 mt76_wr(dev, MT_BBP(DFS, 7), radar_specs[i].t_low); in mt76x02_dfs_set_bbp_params()
[all …]
Dmt76x02_phy.c28 mt76_wr(dev, MT_BBP(AGC, 0), val); in mt76x02_phy_set_rxpath()
100 mt76_wr(dev, MT_TX_PWR_CFG_0, in mt76x02_phy_set_txpower()
103 mt76_wr(dev, MT_TX_PWR_CFG_1, in mt76x02_phy_set_txpower()
106 mt76_wr(dev, MT_TX_PWR_CFG_2, in mt76x02_phy_set_txpower()
109 mt76_wr(dev, MT_TX_PWR_CFG_3, in mt76x02_phy_set_txpower()
112 mt76_wr(dev, MT_TX_PWR_CFG_4, in mt76x02_phy_set_txpower()
114 mt76_wr(dev, MT_TX_PWR_CFG_7, in mt76x02_phy_set_txpower()
117 mt76_wr(dev, MT_TX_PWR_CFG_8, in mt76x02_phy_set_txpower()
119 mt76_wr(dev, MT_TX_PWR_CFG_9, in mt76x02_phy_set_txpower()
Dmt76x02_mmio.c36 mt76_wr(dev, MT_BCN_BYPASS_MASK, in mt76x02_pre_tbtt_tasklet()
100 mt76_wr(dev, MT_INT_TIMER_EN, 0); in mt76x02e_init_beacon_config()
189 mt76_wr(dev, MT_WPDMA_RST_IDX, ~0); in mt76x02_dma_init()
257 mt76_wr(dev, MT_INT_SOURCE_CSR, intr); in mt76x02_irq_handler()
304 mt76_wr(dev, MT_MAC_SYS_CTRL, MT_MAC_SYS_CTRL_ENABLE_TX); in mt76x02_dma_enable()
324 mt76_wr(dev, MT_WPDMA_GLO_CFG, val); in mt76x02_dma_disable()
332 mt76_wr(dev, MT_RX_FILTR_CFG, dev->mt76.rxfilter); in mt76x02_mac_start()
333 mt76_wr(dev, MT_MAC_SYS_CTRL, in mt76x02_mac_start()
457 mt76_wr(dev, MT_MAC_SYS_CTRL, 0); in mt76x02_watchdog_reset()
461 mt76_wr(dev, MT_INT_SOURCE_CSR, 0xffffffff); in mt76x02_watchdog_reset()

1234