Home
last modified time | relevance | path

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

123

/linux/drivers/net/wireless/mediatek/mt76/mt76x2/
A Dusb_mac.c104 rts_cfg = mt76_rr(dev, MT_TX_RTS_CFG); in mt76x2u_mac_stop()
112 val = mt76_rr(dev, MT_VEND_ADDR(CFG, MT_USB_U3DMA_CFG)); in mt76x2u_mac_stop()
120 if (!(mt76_rr(dev, 0x0438) & 0xffffffff) && in mt76x2u_mac_stop()
121 !(mt76_rr(dev, 0x0a30) & 0x000000ff) && in mt76x2u_mac_stop()
122 !(mt76_rr(dev, 0x0a34) & 0xff00ff00)) in mt76x2u_mac_stop()
134 if (!(mt76_rr(dev, MT_MAC_STATUS) & MT_MAC_STATUS_TX) && in mt76x2u_mac_stop()
135 !mt76_rr(dev, MT_BBP(IBI, 12))) { in mt76x2u_mac_stop()
152 if (!(mt76_rr(dev, 0x0430) & 0x00ff0000) && in mt76x2u_mac_stop()
153 !(mt76_rr(dev, 0x0a30) & 0xffffffff) && in mt76x2u_mac_stop()
154 !(mt76_rr(dev, 0x0a34) & 0xffffffff) && in mt76x2u_mac_stop()
[all …]
A Dmac.c20 rts_cfg = mt76_rr(dev, MT_TX_RTS_CFG); in mt76x2_mac_stop()
25 if ((mt76_rr(dev, MT_MAC_STATUS) & in mt76x2_mac_stop()
27 mt76_rr(dev, MT_BBP(IBI, 12))) { in mt76x2_mac_stop()
A Dphy.c18 mt76_rr(dev, MT_BBP(AGC, reg))); in mt76x2_adjust_high_lna_gain()
28 gain = FIELD_GET(MT_BBP_AGC_GAIN, mt76_rr(dev, MT_BBP(AGC, reg))); in mt76x2_adjust_agc_gain()
218 if (mt76_rr(dev, MT_BBP(CORE, 34)) & BIT(4)) in mt76x2_phy_tssi_compensate()
302 val = mt76_rr(dev, MT_BBP(AGC, 26)) & ~0xf; in mt76x2_phy_update_channel_gain()
347 mt76_rr(dev, MT_RX_STAT_1); in mt76x2_phy_update_channel_gain()
/linux/drivers/net/wireless/mediatek/mt76/mt76x0/
A Dinit.c48 val = mt76_rr(dev, MT_WLAN_FUN_CTRL); in mt76x0_chip_onoff()
143 while (i-- && ((mt76_rr(dev, 0x0438) & 0xffffffff) || in mt76x0_mac_stop()
144 (mt76_rr(dev, 0x0a30) & 0x000000ff) || in mt76x0_mac_stop()
145 (mt76_rr(dev, 0x0a34) & 0x00ff00ff))) in mt76x0_mac_stop()
156 if (!(mt76_rr(dev, MT_RXQ_STA) & 0x00ff0000) && in mt76x0_mac_stop()
157 !mt76_rr(dev, 0x0a30) && in mt76x0_mac_stop()
158 !mt76_rr(dev, 0x0a34)) { in mt76x0_mac_stop()
196 dev->mt76.rxfilter = mt76_rr(dev, MT_RX_FILTR_CFG); in mt76x0_init_hardware()
A Dphy.c87 val = mt76_rr(dev, MT_RF_CSR_CFG); in mt76x0_rf_csr_rr()
191 val = mt76_rr(dev, MT_BBP(CORE, 0)); in mt76x0_phy_wait_bbp_ready()
434 wlan = mt76_rr(dev, MT_WLAN_FUN_CTRL); in mt76x0_phy_ant_select()
435 coex3 = mt76_rr(dev, MT_COEXCFG3); in mt76x0_phy_ant_select()
582 val = mt76_rr(dev, reg); in mt76x0_phy_get_rf_pa_mode()
746 data = mt76_rr(dev, MT_BBP(CORE, 1)); in mt76x0_phy_get_delta_power()
759 data = mt76_rr(dev, MT_BBP(TXBE, 4)); in mt76x0_phy_get_delta_power()
883 tx_alc = mt76_rr(dev, MT_TX_ALC_CFG_0); in mt76x0_phy_calibrate()
887 reg_val = mt76_rr(dev, MT_BBP(IBI, 9)); in mt76x0_phy_calibrate()
1035 val = mt76_rr(dev, MT_BBP(CORE, 35)); in mt76x0_phy_temp_sensor()
[all …]
A Dusb.c50 val = mt76_rr(dev, MT_USB_DMA_CFG); in mt76x0_init_usb_dma()
61 val = mt76_rr(dev, MT_COM_REG0); in mt76x0_init_usb_dma()
65 val = mt76_rr(dev, MT_USB_DMA_CFG); in mt76x0_init_usb_dma()
259 mdev->rev = mt76_rr(dev, MT_ASIC_VERSION); in mt76x0u_probe()
260 mac_rev = mt76_rr(dev, MT_MAC_CSR0); in mt76x0u_probe()
269 if (!(mt76_rr(dev, MT_EFUSE_CTRL) & MT_EFUSE_CTRL_SEL)) in mt76x0u_probe()
/linux/drivers/net/wireless/mediatek/mt76/
A Dmt76x02_mac.c15 mt76_rr(dev, MT_RX_STAT_0); in mt76x02_mac_reset_counters()
16 mt76_rr(dev, MT_RX_STAT_1); in mt76x02_mac_reset_counters()
17 mt76_rr(dev, MT_RX_STAT_2); in mt76x02_mac_reset_counters()
18 mt76_rr(dev, MT_TX_STA_0); in mt76x02_mac_reset_counters()
19 mt76_rr(dev, MT_TX_STA_1); in mt76x02_mac_reset_counters()
20 mt76_rr(dev, MT_TX_STA_2); in mt76x02_mac_reset_counters()
23 mt76_rr(dev, MT_TX_AGG_CNT(i)); in mt76x02_mac_reset_counters()
26 mt76_rr(dev, MT_TX_STAT_FIFO); in mt76x02_mac_reset_counters()
1112 mt76_rr(dev, MT_ED_CCA_TIMER); in mt76x02_edcca_init()
1209 mt76_rr(dev, MT_CH_BUSY); in mt76x02_mac_cc_reset()
[all …]
A Dmt76x02_dfs.c232 current_ts = mt76_rr(dev, MT_PBF_LIFE_TIMER); in mt76x02_dfs_check_chirp()
257 pulse->period = mt76_rr(dev, MT_BBP(DFS, 19)); in mt76x02_dfs_get_hw_pulse()
260 pulse->w1 = mt76_rr(dev, MT_BBP(DFS, 20)); in mt76x02_dfs_get_hw_pulse()
261 pulse->w2 = mt76_rr(dev, MT_BBP(DFS, 23)); in mt76x02_dfs_get_hw_pulse()
264 pulse->burst = mt76_rr(dev, MT_BBP(DFS, 22)); in mt76x02_dfs_get_hw_pulse()
376 data = mt76_rr(dev, MT_BBP(DFS, 37)); in mt76x02_dfs_fetch_event()
381 data = mt76_rr(dev, MT_BBP(DFS, 37)); in mt76x02_dfs_fetch_event()
383 data = mt76_rr(dev, MT_BBP(DFS, 37)); in mt76x02_dfs_fetch_event()
641 engine_mask = mt76_rr(dev, MT_BBP(DFS, 1)); in mt76x02_dfs_tasklet()
799 agc_r8 = mt76_rr(dev, MT_BBP(AGC, 8)); in mt76x02_phy_dfs_adjust_agc()
[all …]
A Dmt76x02_eeprom.c18 val = mt76_rr(dev, MT_EFUSE_CTRL); in mt76x02_efuse_read()
31 val = mt76_rr(dev, MT_EFUSE_CTRL); in mt76x02_efuse_read()
38 val = mt76_rr(dev, MT_EFUSE_DATA(i)); in mt76x02_efuse_read()
A Dmt76x02_phy.c16 val = mt76_rr(dev, MT_BBP(AGC, 0)); in mt76x02_phy_set_rxpath()
30 val = mt76_rr(dev, MT_BBP(AGC, 0)); in mt76x02_phy_set_rxpath()
176 mt76_rr(dev, MT_RX_STAT_1)); in mt76x02_phy_adjust_vga_gain()
/linux/drivers/net/wireless/mediatek/mt76/mt7603/
A Deeprom.c13 val = mt76_rr(dev, base + MT_EFUSE_CTRL); in mt7603_efuse_read()
25 val = mt76_rr(dev, base + MT_EFUSE_CTRL); in mt7603_efuse_read()
33 val = mt76_rr(dev, base + MT_EFUSE_RDATA(i)); in mt7603_efuse_read()
48 if (mt76_rr(dev, base + MT_EFUSE_BASE_CTRL) & MT_EFUSE_BASE_CTRL_EMPTY) in mt7603_efuse_init()
153 return mt76_rr(dev, MT_EFUSE_BASE + 0x64) & BIT(4); in is_mt7688()
A Dsoc.c34 mdev->rev = (mt76_rr(dev, MT_HW_CHIPID) << 16) | in mt76_wmac_probe()
35 (mt76_rr(dev, MT_HW_REV) & 0xff); in mt76_wmac_probe()
A Dmac.c40 mt76_rr(dev, MT_TX_AGG_CNT(i)); in mt7603_mac_reset_counters()
173 u32 val = mt76_rr(dev, addr + 3 * 4); in mt7603_wtbl_set_skip_tx()
332 val = mt76_rr(dev, addr + 2 * 4); in mt7603_wtbl_update_cap()
346 val = mt76_rr(dev, addr + 9 * 4); in mt7603_wtbl_update_cap()
729 u32 w9 = mt76_rr(dev, addr + 9 * 4); in mt7603_wtbl_set_rates()
1501 val = mt76_rr(dev, MT_WPDMA_DEBUG); in mt7603_dma_debug()
1568 val = mt76_rr(dev, addr) >> 16; in mt7603_rx_pse_busy()
1642 u32 val = mt76_rr(dev, MT_AGC(41)); in mt7603_edcca_check()
1765 val = mt76_rr(dev, MT_PHYCTRL_STAT_PD); in mt7603_false_cca_check()
1769 val = mt76_rr(dev, MT_PHYCTRL_STAT_MDRDY); in mt7603_false_cca_check()
[all …]
A Dcore.c18 intr = mt76_rr(dev, MT_INT_SOURCE_CSR); in mt7603_irq_handler()
29 u32 hwintr = mt76_rr(dev, MT_HW_INT_STATUS(3)); in mt7603_irq_handler()
A Dpci.c43 mdev->rev = (mt76_rr(dev, MT_HW_CHIPID) << 16) | in mt76pci_probe()
44 (mt76_rr(dev, MT_HW_REV) & 0xff); in mt76pci_probe()
/linux/drivers/net/wireless/mediatek/mt76/mt7915/
A Dmac.c144 msta->airtime_ac[i] = mt76_rr(dev, addr); in mt7915_mac_sta_poll()
188 val = mt76_rr(dev, addr); in mt7915_mac_sta_poll()
1590 mt76_rr(dev, MT_TX_AGG_CNT(ext_phy, i)); in mt7915_mac_reset_counters()
1687 val = mt76_rr(dev, reg); in mt7915_phy_get_nf()
1930 cnt = mt76_rr(dev, MT_MIB_SDR4(ext_phy)); in mt7915_mac_update_stats()
1933 cnt = mt76_rr(dev, MT_MIB_SDR5(ext_phy)); in mt7915_mac_update_stats()
1936 cnt = mt76_rr(dev, MT_MIB_SDR6(ext_phy)); in mt7915_mac_update_stats()
1939 cnt = mt76_rr(dev, MT_MIB_SDR7(ext_phy)); in mt7915_mac_update_stats()
1942 cnt = mt76_rr(dev, MT_MIB_SDR8(ext_phy)); in mt7915_mac_update_stats()
1997 cnt = mt76_rr(dev, MT_MIB_DR8(ext_phy)); in mt7915_mac_update_stats()
[all …]
A Dmmio.c13 mt76_rr(dev, MT_HIF_REMAP_L1); in mt7915_reg_map_l1()
25 mt76_rr(dev, MT_HIF_REMAP_L2); in mt7915_reg_map_l2()
147 mdev->rev = (mt76_rr(dev, MT_HW_CHIPID) << 16) | in mt7915_mmio_init()
148 (mt76_rr(dev, MT_HW_REV) & 0xff); in mt7915_mmio_init()
A Ddebugfs.c167 mt76_rr(dev, MT_CPU_UTIL_BUSY_PCT), in mt7915_fw_util_wm_show()
168 mt76_rr(dev, MT_CPU_UTIL_PEAK_BUSY_PCT)); in mt7915_fw_util_wm_show()
170 mt76_rr(dev, MT_CPU_UTIL_IDLE_CNT), in mt7915_fw_util_wm_show()
171 mt76_rr(dev, MT_CPU_UTIL_PEAK_IDLE_CNT)); in mt7915_fw_util_wm_show()
203 range[i] = mt76_rr(dev, MT_MIB_ARNG(ext_phy, i)); in mt7915_ampdu_stat_read_phy()
312 val = mt76_rr(dev, base + MT_FL_Q_EMPTY); in mt7915_hw_queue_read()
349 val = mt76_rr(dev, MT_PLE_AC_QEMPTY(ac, idx)); in mt7915_sta_hw_queue_read()
402 val = mt76_rr(dev, MT_PLE_FREEPG_CNT); in mt7915_hw_queues_show()
410 val = mt76_rr(dev, MT_PLE_PG_HIF_GROUP); in mt7915_hw_queues_show()
/linux/drivers/net/wireless/mediatek/mt76/mt7615/
A Dmmio.c112 intr = mt76_rr(dev, MT_INT_SOURCE_CSR); in mt7615_irq_tasklet()
136 mcu_int = mt76_rr(dev, MT_MCU2HOST_INT_STATUS); in mt7615_irq_tasklet()
139 mcu_int = mt76_rr(dev, MT_MCU_CMD); in mt7615_irq_tasklet()
223 mdev->rev = (mt76_rr(dev, MT_HW_CHIPID) << 16) | in mt7615_mmio_probe()
224 (mt76_rr(dev, MT_HW_REV) & 0xff); in mt7615_mmio_probe()
A Deeprom.c18 val = mt76_rr(dev, base + MT_EFUSE_CTRL); in mt7615_efuse_read()
29 val = mt76_rr(dev, base + MT_EFUSE_CTRL); in mt7615_efuse_read()
37 val = mt76_rr(dev, base + MT_EFUSE_RDATA(i)); in mt7615_efuse_read()
50 val = mt76_rr(dev, base + MT_EFUSE_BASE_CTRL); in mt7615_efuse_init()
154 val = mt76_rr(dev, MT_TOP_STRAP_STA); in mt7615_eeprom_parse_hw_cap()
A Dmac.c125 mt76_rr(dev, MT_MIB_SDR9(0)); in mt7615_mac_reset_counters()
126 mt76_rr(dev, MT_MIB_SDR9(1)); in mt7615_mac_reset_counters()
128 mt76_rr(dev, MT_MIB_SDR36(0)); in mt7615_mac_reset_counters()
129 mt76_rr(dev, MT_MIB_SDR36(1)); in mt7615_mac_reset_counters()
131 mt76_rr(dev, MT_MIB_SDR37(0)); in mt7615_mac_reset_counters()
132 mt76_rr(dev, MT_MIB_SDR37(1)); in mt7615_mac_reset_counters()
1033 val = mt76_rr(dev, addr); in mt7615_mac_get_sta_tid_sn()
1038 val2 = mt76_rr(dev, addr); in mt7615_mac_get_sta_tid_sn()
1172 w0 = mt76_rr(dev, addr); in mt7615_mac_wtbl_update_pk()
1173 w1 = mt76_rr(dev, addr + 4); in mt7615_mac_wtbl_update_pk()
[all …]
A Ddebugfs.c23 *val = mt76_rr(dev, dev->mt76.debugfs_reg); in mt7615_reg_get()
280 range = mt76_rr(dev, reg); in mt7615_ampdu_stat_read_phy()
284 range = mt76_rr(dev, reg + 4); in mt7615_ampdu_stat_read_phy()
362 val = mt76_rr(dev, MT_PLE_AC_QEMPTY(acs, wmm_idx)); in mt7615_queues_acq()
448 put_unaligned_le32(mt76_rr(dev, MT_WF_RMAC_MAR0), addr); in mt7615_ext_mac_addr_read()
449 put_unaligned_le16((mt76_rr(dev, MT_WF_RMAC_MAR1) & in mt7615_ext_mac_addr_read()
/linux/drivers/net/wireless/mediatek/mt76/mt7921/
A Dmac.c95 msta->airtime_ac[i] = mt76_rr(dev, addr); in mt7921_mac_sta_poll()
139 val = mt76_rr(dev, addr); in mt7921_mac_sta_poll()
1158 mt76_rr(dev, MT_TX_AGG_CNT(0, i)); in mt7921_mac_reset_counters()
1159 mt76_rr(dev, MT_TX_AGG_CNT2(0, i)); in mt7921_mac_reset_counters()
1166 mt76_rr(dev, MT_MIB_SDR9(0)); in mt7921_mac_reset_counters()
1167 mt76_rr(dev, MT_MIB_SDR36(0)); in mt7921_mac_reset_counters()
1168 mt76_rr(dev, MT_MIB_SDR37(0)); in mt7921_mac_reset_counters()
1359 val = mt76_rr(dev, MT_MIB_SDR32(0)); in mt7921_mac_update_mib_stats()
1363 val = mt76_rr(dev, MT_ETBF_TX_APP_CNT(0)); in mt7921_mac_update_mib_stats()
1367 val = mt76_rr(dev, MT_ETBF_RX_FB_CNT(0)); in mt7921_mac_update_mib_stats()
[all …]
/linux/drivers/net/wireless/mediatek/mt7601u/
A Dinit.c273 while (i-- && ((mt76_rr(dev, 0x0438) & 0xffffffff) || in mt7601u_mac_stop_hw()
274 (mt76_rr(dev, 0x0a30) & 0x000000ff) || in mt7601u_mac_stop_hw()
275 (mt76_rr(dev, 0x0a34) & 0x00ff00ff))) in mt7601u_mac_stop_hw()
288 if (!(mt76_rr(dev, MT_RXQ_STA) & 0x00ff0000) && in mt7601u_mac_stop_hw()
289 !mt76_rr(dev, 0x0a30) && in mt7601u_mac_stop_hw()
290 !mt76_rr(dev, 0x0a34)) { in mt7601u_mac_stop_hw()
A Dtx.c294 val = mt76_rr(dev, MT_WMM_TXOP(hw_q)); in mt7601u_conf_tx()
299 val = mt76_rr(dev, MT_WMM_AIFSN); in mt7601u_conf_tx()
304 val = mt76_rr(dev, MT_WMM_CWMIN); in mt7601u_conf_tx()
309 val = mt76_rr(dev, MT_WMM_CWMAX); in mt7601u_conf_tx()

Completed in 40 milliseconds

123