/linux/drivers/net/wireless/mediatek/mt76/mt76x2/ |
A D | phy.c | 99 mt76_wr(dev, MT_TX0_RF_GAIN_CORR, val); in mt76x2_phy_set_txpower_regs() 100 mt76_wr(dev, MT_TX1_RF_GAIN_CORR, val); in mt76x2_phy_set_txpower_regs() 106 mt76_wr(dev, MT_TX0_RF_GAIN_CORR, val); in mt76x2_phy_set_txpower_regs() 112 mt76_wr(dev, MT_TX_ALC_CFG_4, 0); in mt76x2_phy_set_txpower_regs() 196 mt76_wr(dev, MT_TX_SW_CFG0, cfg0); in mt76x2_configure_tx_delay() 197 mt76_wr(dev, MT_TX_SW_CFG1, cfg1); in mt76x2_configure_tx_delay() 265 mt76_wr(dev, MT_BBP(AGC, 8), in mt76x2_phy_set_gain_val() 267 mt76_wr(dev, MT_BBP(AGC, 9), in mt76x2_phy_set_gain_val() 307 mt76_wr(dev, MT_BBP(AGC, 26), val); in mt76x2_phy_update_channel_gain() 339 mt76_wr(dev, MT_BBP(AGC, 35), agc_35); in mt76x2_phy_update_channel_gain() [all …]
|
A D | usb_mac.c | 36 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() 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() 74 mt76_wr(dev, MT_MAX_LEN_CFG, 0x2f00); in mt76x2u_mac_reset() 76 mt76_wr(dev, MT_WMM_AIFSN, 0x2273); in mt76x2u_mac_reset() 77 mt76_wr(dev, MT_WMM_CWMIN, 0x2344); in mt76x2u_mac_reset() [all …]
|
A D | usb_mcu.c | 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() 187 mt76_wr(dev, MT_FCE_PSE_CTRL, 0x1); in mt76x2u_mcu_load_firmware() 191 mt76_wr(dev, MT_TX_CPU_FROM_FCE_MAX_COUNT, 0x1); in mt76x2u_mcu_load_firmware() 193 mt76_wr(dev, MT_FCE_PDMA_GLOBAL_CONF, 0x44); in mt76x2u_mcu_load_firmware() 195 mt76_wr(dev, MT_FCE_SKIP_FS, 0x3); in mt76x2u_mcu_load_firmware() [all …]
|
A D | pci_init.c | 26 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() 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() 122 mt76_wr(dev, MT_WCID_TX_RATE(i), 0); in mt76x2_mac_reset() 123 mt76_wr(dev, MT_WCID_TX_RATE(i) + 4, 0); in mt76x2_mac_reset() [all …]
|
A D | pci_mcu.c | 56 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()
|
A D | mac.c | 18 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()
|
A D | usb_phy.c | 161 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()
|
/linux/drivers/net/wireless/mediatek/mt76/mt7915/ |
A D | dma.c | 47 mt76_wr(dev, MT_WFDMA0_RX_RING0_EXT_CTRL + ofs, PREFETCH(0x0, 0x4)); in __mt7915_dma_prefetch() 48 mt76_wr(dev, MT_WFDMA0_RX_RING1_EXT_CTRL + ofs, PREFETCH(0x40, 0x4)); in __mt7915_dma_prefetch() 49 mt76_wr(dev, MT_WFDMA0_RX_RING2_EXT_CTRL + ofs, PREFETCH(0x80, 0x0)); in __mt7915_dma_prefetch() 96 mt76_wr(dev, MT_WFDMA0_RST_DTX_PTR, ~0); in mt7915_dma_init() 97 mt76_wr(dev, MT_WFDMA1_RST_DTX_PTR, ~0); in mt7915_dma_init() 100 mt76_wr(dev, MT_WFDMA0_PRI_DLY_INT_CFG0, 0); in mt7915_dma_init() 101 mt76_wr(dev, MT_WFDMA1_PRI_DLY_INT_CFG0, 0); in mt7915_dma_init() 108 mt76_wr(dev, MT_WFDMA0_RST_DTX_PTR + hif1_ofs, ~0); in mt7915_dma_init() 109 mt76_wr(dev, MT_WFDMA1_RST_DTX_PTR + hif1_ofs, ~0); in mt7915_dma_init() 111 mt76_wr(dev, MT_WFDMA0_PRI_DLY_INT_CFG0 + hif1_ofs, 0); in mt7915_dma_init() [all …]
|
A D | pci.c | 102 mt76_wr(dev, MT_INT_MASK_CSR, 0); in mt7915_irq_tasklet() 104 mt76_wr(dev, MT_INT1_MASK_CSR, 0); in mt7915_irq_tasklet() 108 mt76_wr(dev, MT_INT_SOURCE_CSR, intr); in mt7915_irq_tasklet() 113 mt76_wr(dev, MT_INT1_SOURCE_CSR, intr1); in mt7915_irq_tasklet() 147 mt76_wr(dev, MT_MCU_CMD, val); in mt7915_irq_tasklet() 160 mt76_wr(dev, MT_INT_MASK_CSR, 0); in mt7915_irq_handler() 162 mt76_wr(dev, MT_INT1_MASK_CSR, 0); in mt7915_irq_handler() 188 mt76_wr(dev, MT_INT1_MASK_CSR, 0); in mt7915_pci_init_hif2() 197 mt76_wr(dev, MT_PCIE1_MAC_INT_ENABLE, 0xff); in mt7915_pci_init_hif2() 279 mt76_wr(dev, MT_INT_MASK_CSR, 0); in mt7915_pci_probe() [all …]
|
/linux/drivers/net/wireless/mediatek/mt76/mt7615/ |
A D | dma.c | 155 mt76_wr(dev, reg + MT_DMASHDL_GROUP_QUOTA(i), 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() 230 mt76_wr(dev, MT_WPDMA_GLO_CFG, in mt7615_dma_init() 251 mt76_wr(dev, MT_WPDMA_GLO_CFG1, 0x1); in mt7615_dma_init() 252 mt76_wr(dev, MT_WPDMA_TX_PRE_CFG, 0xf0000); in mt7615_dma_init() 253 mt76_wr(dev, MT_WPDMA_RX_PRE_CFG, 0xf7f0000); in mt7615_dma_init() 254 mt76_wr(dev, MT_WPDMA_ABT_CFG, 0x4000026); in mt7615_dma_init() 255 mt76_wr(dev, MT_WPDMA_ABT_CFG1, 0x18811881); in mt7615_dma_init() 260 mt76_wr(dev, MT_WPDMA_RST_IDX, ~0); in mt7615_dma_init() [all …]
|
A D | usb_sdio.c | 87 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() 249 mt76_wr(dev, MT_DMA_SHDL(MT_DMASHDL_Q_MAP(2)), 0x4444); in mt7663u_dma_sched_init() [all …]
|
A D | mmio.c | 77 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() 240 mt76_wr(dev, MT_INT_MASK_CSR, 0); in mt7615_mmio_probe() 248 mt76_wr(dev, MT_PCIE_IRQ_ENABLE, 1); in mt7615_mmio_probe()
|
/linux/drivers/net/wireless/mediatek/mt76/mt7603/ |
A D | init.c | 59 mt76_wr(dev, MT_PSE_FRP, in mt7603_dma_sched_init() 105 mt76_wr(dev, MT_SCH_4, 0); in mt7603_dma_sched_init() 151 mt76_wr(dev, MT_AGG_LIMIT, in mt7603_mac_init() 202 mt76_wr(dev, MT_RXREQ, 4); in mt7603_mac_init() 208 mt76_wr(dev, MT_DMA_TCFR0, in mt7603_mac_init() 213 mt76_wr(dev, MT_DMA_TCFR1, in mt7603_mac_init() 232 mt76_wr(dev, MT_AGG_ARUCR, in mt7603_mac_init() 252 mt76_wr(dev, MT_AGG_ARCR, in mt7603_mac_init() 345 mt76_wr(dev, addr, val); in mt7603_led_set_config() 347 mt76_wr(dev, addr, val); in mt7603_led_set_config() [all …]
|
A D | beacon.c | 31 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()
|
A D | main.c | 53 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() 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() 176 mt76_wr(dev, MT_WF_RMAC_CH_FREQ, idx); in mt7603_set_channel() 291 mt76_wr(dev, MT_BSSID0(mvif->idx), in mt7603_bss_info_changed() 293 mt76_wr(dev, MT_BSSID1(mvif->idx), in mt7603_bss_info_changed() 538 mt76_wr(dev, MT_WMM_AIFSN, val); in mt7603_conf_tx() [all …]
|
A D | mac.c | 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() 209 mt76_wr(dev, MT_TX_ABORT, 0); in mt7603_filter_tx() 237 mt76_wr(dev, MT_PSE_RTA, in mt7603_wtbl_set_ps() 281 mt76_wr(dev, addr + 0 * 4, in mt7603_wtbl_clear() 290 mt76_wr(dev, addr + 3 * 4, in mt7603_wtbl_clear() 295 mt76_wr(dev, addr + 4 * 4, in mt7603_wtbl_clear() 359 mt76_wr(dev, MT_BA_CONTROL_1, in mt7603_mac_rx_ba_reset() [all …]
|
/linux/drivers/net/wireless/mediatek/mt76/mt7921/ |
A D | dma.c | 64 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() 225 mt76_wr(dev, MT_WFDMA0_RST_DTX_PTR, ~0); in mt7921_dma_enable() 228 mt76_wr(dev, MT_WFDMA0_PRI_DLY_INT_CFG0, 0); in mt7921_dma_enable() 325 mt76_wr(dev, MT_WFDMA0_HOST_INT_ENA, 0); in mt7921_wpdma_reinit_cond() 326 mt76_wr(dev, MT_PCIE_MAC_INT_ENABLE, 0x0); in mt7921_wpdma_reinit_cond() 335 mt76_wr(dev, MT_PCIE_MAC_INT_ENABLE, 0xff); in mt7921_wpdma_reinit_cond() [all …]
|
A D | pci.c | 42 mt76_wr(dev, MT_WFDMA0_HOST_INT_ENA, 0); in mt7921_irq_handler() 57 mt76_wr(dev, MT_WFDMA0_HOST_INT_ENA, 0); in mt7921_irq_tasklet() 61 mt76_wr(dev, MT_WFDMA0_HOST_INT_STA, intr); in mt7921_irq_tasklet() 74 mt76_wr(dev, MT_MCU_CMD, intr_sw); in mt7921_irq_tasklet() 193 mt76_wr(dev, MT_WFDMA0_HOST_INT_ENA, 0); in mt7921_pci_probe() 195 mt76_wr(dev, MT_PCIE_MAC_INT_ENABLE, 0xff); in mt7921_pci_probe() 280 mt76_wr(dev, MT_WFDMA0_HOST_INT_ENA, 0); in mt7921_pci_suspend() 281 mt76_wr(dev, MT_PCIE_MAC_INT_ENABLE, 0x0); in mt7921_pci_suspend() 335 mt76_wr(dev, MT_PCIE_MAC_INT_ENABLE, 0xff); in mt7921_pci_resume()
|
/linux/drivers/net/wireless/mediatek/mt76/mt76x0/ |
A D | usb_mcu.c | 92 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()
|
A D | phy.c | 42 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() 419 mt76_wr(dev, pair->reg, val); in mt76x0_phy_set_chan_bbp_params() 469 mt76_wr(dev, MT_COEXCFG3, coex3); in mt76x0_phy_ant_select() 521 mt76_wr(dev, MT_BBP(CORE, 34), val); in mt76x0_phy_tssi_dc_calibrate() 530 mt76_wr(dev, MT_RF_BYPASS_0, 0); in mt76x0_phy_tssi_dc_calibrate() 532 mt76_wr(dev, MT_BBP(TXBE, 6), 0); in mt76x0_phy_tssi_dc_calibrate() 874 mt76_wr(dev, MT_MAC_SYS_CTRL, in mt76x0_phy_calibrate() 877 mt76_wr(dev, MT_MAC_SYS_CTRL, in mt76x0_phy_calibrate() 884 mt76_wr(dev, MT_TX_ALC_CFG_0, 0); in mt76x0_phy_calibrate() [all …]
|
A D | pci_mcu.c | 68 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()
|
A D | init.c | 33 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/drivers/net/wireless/mediatek/mt76/ |
A D | mt76x02_dfs.c | 148 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() 787 mt76_wr(dev, MT_BBP(DFS, 1), 0xf); in mt76x02_dfs_set_bbp_params() 788 mt76_wr(dev, MT_BBP(DFS, 36), 0x3); in mt76x02_dfs_set_bbp_params() 817 mt76_wr(dev, MT_BBP(DFS, 0), 0); in mt76x02_phy_dfs_adjust_agc() [all …]
|
A D | mt76x02_phy.c | 28 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()
|
A D | mt76x02_mmio.c | 36 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() 455 mt76_wr(dev, MT_MAC_SYS_CTRL, 0); in mt76x02_watchdog_reset() 459 mt76_wr(dev, MT_INT_SOURCE_CSR, 0xffffffff); in mt76x02_watchdog_reset()
|