Home
last modified time | relevance | path

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

12

/Linux-v4.19/drivers/net/wireless/mediatek/mt76/
Dmt76x2u_mac.c22 mt76_rr(dev, MT_RX_STAT_0); in mt76x2u_mac_reset_counters()
23 mt76_rr(dev, MT_RX_STAT_1); in mt76x2u_mac_reset_counters()
24 mt76_rr(dev, MT_RX_STAT_2); in mt76x2u_mac_reset_counters()
25 mt76_rr(dev, MT_TX_STA_0); in mt76x2u_mac_reset_counters()
26 mt76_rr(dev, MT_TX_STA_1); in mt76x2u_mac_reset_counters()
27 mt76_rr(dev, MT_TX_STA_2); in mt76x2u_mac_reset_counters()
143 rts_cfg = mt76_rr(dev, MT_TX_RTS_CFG); in mt76x2u_mac_stop()
151 val = mt76_rr(dev, MT_VEND_ADDR(CFG, MT_USB_U3DMA_CFG)); in mt76x2u_mac_stop()
159 if (!(mt76_rr(dev, 0x0438) & 0xffffffff) && in mt76x2u_mac_stop()
160 !(mt76_rr(dev, 0x0a30) & 0x000000ff) && in mt76x2u_mac_stop()
[all …]
Dmt76x2_dfs.c243 current_ts = mt76_rr(dev, MT_PBF_LIFE_TIMER); in mt76x2_dfs_check_chirp()
268 pulse->period = mt76_rr(dev, MT_BBP(DFS, 19)); in mt76x2_dfs_get_hw_pulse()
271 pulse->w1 = mt76_rr(dev, MT_BBP(DFS, 20)); in mt76x2_dfs_get_hw_pulse()
272 pulse->w2 = mt76_rr(dev, MT_BBP(DFS, 23)); in mt76x2_dfs_get_hw_pulse()
275 pulse->burst = mt76_rr(dev, MT_BBP(DFS, 22)); in mt76x2_dfs_get_hw_pulse()
387 data = mt76_rr(dev, MT_BBP(DFS, 37)); in mt76x2_dfs_fetch_event()
392 data = mt76_rr(dev, MT_BBP(DFS, 37)); in mt76x2_dfs_fetch_event()
394 data = mt76_rr(dev, MT_BBP(DFS, 37)); in mt76x2_dfs_fetch_event()
651 engine_mask = mt76_rr(dev, MT_BBP(DFS, 1)); in mt76x2_dfs_tasklet()
809 agc_r8 = mt76_rr(dev, MT_BBP(AGC, 8)); in mt76x2_dfs_adjust_agc()
[all …]
Dmt76x2_init.c107 val = mt76_rr(dev, MT_WPDMA_GLO_CFG); in mt76x2_mac_reset()
178 mt76_rr(dev, MT_TX_STAT_FIFO); in mt76x2_mac_reset()
200 mt76_rr(dev, MT_TX_AGG_CNT(i)); in mt76x2_mac_start()
203 mt76_rr(dev, MT_TX_STAT_FIFO); in mt76x2_mac_start()
362 val = mt76_rr(dev, MT_WPDMA_GLO_CFG); in mt76x2_init_hardware()
380 dev->rxfilter = mt76_rr(dev, MT_RX_FILTR_CFG); in mt76x2_init_hardware()
Dmt76x2_phy.c84 val = mt76_rr(dev, MT_BBP(AGC, 0)); in mt76x2_phy_set_antenna()
190 false_cca = FIELD_GET(MT_RX_STAT_1_CCA_ERRORS, mt76_rr(dev, MT_RX_STAT_1)); in mt76x2_phy_adjust_vga_gain()
227 val = mt76_rr(dev, MT_BBP(AGC, 26)) & ~0xf; in mt76x2_phy_update_channel_gain()
264 mt76_rr(dev, MT_RX_STAT_1); in mt76x2_phy_update_channel_gain()
422 if (mt76_rr(dev, MT_BBP(CORE, 34)) & BIT(4)) in mt76x2_phy_tssi_compensate()
Dmt76x2_mac_common.c28 rts_cfg = mt76_rr(dev, MT_TX_RTS_CFG); in mt76x2_mac_stop()
33 if ((mt76_rr(dev, MT_MAC_STATUS) & in mt76x2_mac_stop()
35 mt76_rr(dev, MT_BBP(IBI, 12))) { in mt76x2_mac_stop()
61 stat2 = mt76_rr(dev, MT_TX_STAT_FIFO_EXT); in mt76x2_mac_load_tx_status()
62 stat1 = mt76_rr(dev, MT_TX_STAT_FIFO); in mt76x2_mac_load_tx_status()
269 val = mt76_rr(dev, MT_SKEY_MODE(vif_idx)); in mt76x2_mac_shared_key_setup()
466 u32 val = mt76_rr(dev, MT_WCID_DROP(idx)); in mt76x2_mac_wcid_set_drop()
Dmt76x2u_init.c24 u32 val = mt76_rr(dev, MT_VEND_ADDR(CFG, MT_USB_U3DMA_CFG)); in mt76x2u_init_dma()
127 val = mt76_rr(dev, MT_VEND_ADDR(EEPROM, i)); in mt76x2u_init_eeprom()
217 dev->rxfilter = mt76_rr(dev, MT_RX_FILTR_CFG); in mt76x2u_init_hardware()
Dmt76x2_common.c253 val = mt76_rr(dev, MT_WMM_TXOP(qid)); in mt76x2_conf_tx()
258 val = mt76_rr(dev, MT_WMM_AIFSN); in mt76x2_conf_tx()
263 val = mt76_rr(dev, MT_WMM_CWMIN); in mt76x2_conf_tx()
268 val = mt76_rr(dev, MT_WMM_CWMAX); in mt76x2_conf_tx()
Dmt76x2_mac.c217 busy = mt76_rr(dev, MT_CH_BUSY); in mt76x2_update_channel()
218 active = busy + mt76_rr(dev, MT_CH_IDLE); in mt76x2_update_channel()
234 u32 val = mt76_rr(dev, MT_TX_AGG_CNT(i)); in mt76x2_mac_work()
Dmt76x2u_phy.c24 val = mt76_rr(dev, MT_BBP(AGC, 0)); in mt76x2u_phy_set_rxpath()
90 if (mt76_rr(dev, MT_BBP(CORE, 34)) & BIT(4)) in mt76x2u_phy_tssi_compensate()
147 mt76_rr(dev, MT_RX_STAT_1)); in mt76x2u_phy_update_channel_gain()
Dmt76x2_init_common.c58 u32 val = mt76_rr(dev, MT_WLAN_FUN_CTRL); in mt76x2_set_wlan_state()
75 val = mt76_rr(dev, MT_WLAN_FUN_CTRL); in mt76x2_reset_wlan()
Dmt76x2_pci.c57 dev->mt76.rev = mt76_rr(dev, MT_ASIC_VERSION); in mt76pci_probe()
Dmt76x2_core.c44 intr = mt76_rr(dev, MT_INT_SOURCE_CSR); in mt76x2_irq_handler()
Dmt76x2_main.c108 mt76_rr(dev, MT_CH_IDLE); in mt76x2_set_channel()
109 mt76_rr(dev, MT_CH_BUSY); in mt76x2_set_channel()
Dmt76x2_usb.c52 dev->mt76.rev = mt76_rr(dev, MT_ASIC_VERSION); in mt76x2u_probe()
Dmt76x2_eeprom.c68 val = mt76_rr(dev, MT_EFUSE_CTRL); in mt76x2_efuse_read()
80 val = mt76_rr(dev, MT_EFUSE_CTRL); in mt76x2_efuse_read()
87 val = mt76_rr(dev, MT_EFUSE_DATA(i)); in mt76x2_efuse_read()
/Linux-v4.19/drivers/net/wireless/mediatek/mt76/mt76x0/
Dinit.c49 val = mt76_rr(dev, MT_CMB_CTRL); in mt76x0_set_wlan_state()
71 val = mt76_rr(dev, MT_WLAN_FUN_CTRL); in mt76x0_chip_onoff()
100 val = mt76_rr(dev, MT_PBF_SYS_CTRL); in mt76x0_reset_csr_bbp()
114 val = mt76_rr(dev, MT_USB_DMA_CFG); in mt76x0_init_usb_dma()
124 val = mt76_rr(dev, MT_COM_REG0); in mt76x0_init_usb_dma()
128 val = mt76_rr(dev, MT_USB_DMA_CFG); in mt76x0_init_usb_dma()
191 reg = mt76_rr(dev, MT_MAC_SYS_CTRL); in mt76x0_init_mac_registers()
197 reg = mt76_rr(dev, MT_COEXCFG0); in mt76x0_init_mac_registers()
203 reg = mt76_rr(dev, MT_EXT_CCA_CFG); in mt76x0_init_mac_registers()
215 reg = mt76_rr(dev, MT_WMM_CTRL); in mt76x0_init_mac_registers()
[all …]
Dphy.c95 val = mt76_rr(dev, MT_RF_CSR_CFG); in mt76x0_rf_csr_rr()
187 val = mt76_rr(dev, MT_BBP(CORE, 0)); in mt76x0_wait_bbp_ready()
494 mac_reg = mt76_rr(dev, MT_RF_MISC); in mt76x0_phy_set_chan_rf_params()
509 mac_reg = mt76_rr(dev, MT_RF_MISC); in mt76x0_phy_set_chan_rf_params()
513 mac_reg = mt76_rr(dev, MT_RF_MISC); in mt76x0_phy_set_chan_rf_params()
528 mac_reg = mt76_rr(dev, MT_TX_ALC_CFG_1); in mt76x0_phy_set_chan_rf_params()
534 mac_reg = mt76_rr(dev, MT_TX_ALC_CFG_1); in mt76x0_phy_set_chan_rf_params()
583 val = ((mt76_rr(dev, MT_TX_PWR_CFG_1) & 0x00003f00) >> 8);
584 val |= ((mt76_rr(dev, MT_TX_PWR_CFG_2) & 0x00003f00) << 8);
588 val = ((mt76_rr(dev, MT_TX_PWR_CFG_3) & 0x0000ff00) >> 8);
[all …]
Dtx.c249 val = mt76_rr(dev, MT_WMM_TXOP(hw_q)); in mt76x0_conf_tx()
254 val = mt76_rr(dev, MT_WMM_AIFSN); in mt76x0_conf_tx()
259 val = mt76_rr(dev, MT_WMM_CWMIN); in mt76x0_conf_tx()
264 val = mt76_rr(dev, MT_WMM_CWMAX); in mt76x0_conf_tx()
Dmac.c185 stat2 = mt76_rr(dev, MT_TX_STAT_FIFO_EXT); in mt76x0_mac_fetch_tx_status()
186 stat1 = mt76_rr(dev, MT_TX_STAT_FIFO); in mt76x0_mac_fetch_tx_status()
318 u32 val = mt76_rr(dev, MT_BEACON_TIME_CFG); in mt76x0_mac_config_tsf()
338 u32 val = mt76_rr(dev, 0x10f4); in mt76x0_check_mac_err()
379 u32 val = mt76_rr(dev, spans[i].addr_base + j * 4); in mt76x0_mac_work()
624 val = mt76_rr(dev, MT_WCID_ATTR(idx)); in mt76x0_mac_wcid_set_key()
652 val = mt76_rr(dev, MT_SKEY_MODE(vif_idx)); in mt76x0_mac_shared_key_setup()
Dcore.c26 val = mt76_rr(dev, MT_MAC_CSR0); in mt76x0_wait_asic_ready()
Dusb.c294 asic_rev = mt76_rr(dev, MT_ASIC_VERSION); in mt76x0_probe()
295 mac_rev = mt76_rr(dev, MT_MAC_CSR0); in mt76x0_probe()
300 if (!(mt76_rr(dev, MT_EFUSE_CTRL) & MT_EFUSE_CTRL_SEL)) in mt76x0_probe()
Deeprom.c56 val = mt76_rr(dev, MT_EFUSE_CTRL); in mt76x0_efuse_read()
67 val = mt76_rr(dev, MT_EFUSE_CTRL); in mt76x0_efuse_read()
77 val = mt76_rr(dev, MT_EFUSE_DATA(i)); in mt76x0_efuse_read()
/Linux-v4.19/drivers/net/wireless/mediatek/mt7601u/
Dtx.c302 val = mt76_rr(dev, MT_WMM_TXOP(hw_q)); in mt7601u_conf_tx()
307 val = mt76_rr(dev, MT_WMM_AIFSN); in mt7601u_conf_tx()
312 val = mt76_rr(dev, MT_WMM_CWMIN); in mt7601u_conf_tx()
317 val = mt76_rr(dev, MT_WMM_CWMAX); in mt7601u_conf_tx()
Dinit.c281 while (i-- && ((mt76_rr(dev, 0x0438) & 0xffffffff) || in mt7601u_mac_stop_hw()
282 (mt76_rr(dev, 0x0a30) & 0x000000ff) || in mt7601u_mac_stop_hw()
283 (mt76_rr(dev, 0x0a34) & 0x00ff00ff))) in mt7601u_mac_stop_hw()
296 if (!(mt76_rr(dev, MT_RXQ_STA) & 0x00ff0000) && in mt7601u_mac_stop_hw()
297 !mt76_rr(dev, 0x0a30) && in mt7601u_mac_stop_hw()
298 !mt76_rr(dev, 0x0a34)) { in mt7601u_mac_stop_hw()
Deeprom.c46 val = mt76_rr(dev, MT_EFUSE_CTRL); in mt7601u_efuse_read()
57 val = mt76_rr(dev, MT_EFUSE_CTRL); in mt7601u_efuse_read()
67 val = mt76_rr(dev, MT_EFUSE_DATA(i)); in mt7601u_efuse_read()

12