/Linux-v6.1/drivers/net/wireless/realtek/rtw89/ |
D | mac.c | 51 return rtw89_read32(rtwdev, R_AX_INDIR_ACCESS_ENTRY); in rtw89_mac_mem_read() 60 r_val = rtw89_read32(rtwdev, R_AX_DMAC_FUNC_EN); in rtw89_mac_check_mac_en() 63 r_val = rtw89_read32(rtwdev, R_AX_CMAC_FUNC_EN); in rtw89_mac_check_mac_en() 66 r_val = rtw89_read32(rtwdev, R_AX_SYS_ISO_CTRL_EXTEND); in rtw89_mac_check_mac_en() 105 *val = rtw89_read32(rtwdev, R_AX_LTE_RDATA); in rtw89_mac_read_lte() 139 ret = read_poll_timeout_atomic(rtw89_read32, val, !(val & B_AX_WDE_DFI_ACTIVE), in dle_dfi_ctrl() 147 ctrl->out_data = rtw89_read32(rtwdev, data_reg); in dle_dfi_ctrl() 193 rtw89_read32(rtwdev, R_AX_HOST_DISPATCHER_ERR_IMR)); in dump_err_status_dispatcher() 195 rtw89_read32(rtwdev, R_AX_HOST_DISPATCHER_ERR_ISR)); in dump_err_status_dispatcher() 197 rtw89_read32(rtwdev, R_AX_CPU_DISPATCHER_ERR_IMR)); in dump_err_status_dispatcher() [all …]
|
D | debug.c | 164 data = rtw89_read32(rtwdev, addr); in rtw89_debug_priv_read_reg_get() 689 val = rtw89_read32(rtwdev, j + (k << 2)); in rtw89_debug_priv_mac_reg_dump_get() 758 val = rtw89_read32(rtwdev, i); in rtw89_debug_dump_mac_mem() 860 __ret = read_poll_timeout(rtw89_read32, __val32, \ in rtw89_debug_mac_dump_dle_dbg() 870 __data = rtw89_read32(rtwdev, __reg_data); \ in rtw89_debug_mac_dump_dle_dbg() 959 rtw89_read32(rtwdev, R_AX_DMAC_ERR_ISR)); in rtw89_debug_mac_dump_dmac_dbg() 961 rtw89_read32(rtwdev, R_AX_WDRLS_ERR_ISR)); in rtw89_debug_mac_dump_dmac_dbg() 963 rtw89_read32(rtwdev, R_AX_SEC_ERR_IMR_ISR)); in rtw89_debug_mac_dump_dmac_dbg() 965 rtw89_read32(rtwdev, R_AX_MPDU_TX_ERR_ISR)); in rtw89_debug_mac_dump_dmac_dbg() 967 rtw89_read32(rtwdev, R_AX_MPDU_RX_ERR_ISR)); in rtw89_debug_mac_dump_dmac_dbg() [all …]
|
D | pci.c | 28 rtw89_read32(rtwdev, R_AX_PCIE_INIT_CFG1) | B_AX_RST_BDRAM); in rtw89_pci_rst_bdram_pcie() 30 ret = read_poll_timeout_atomic(rtw89_read32, val, !(val & B_AX_RST_BDRAM), in rtw89_pci_rst_bdram_pcie() 68 idx = rtw89_read32(rtwdev, addr_idx); in rtw89_pci_txbd_recalc() 127 idx = rtw89_read32(rtwdev, addr_idx); in rtw89_pci_rxbd_recalc() 620 reg_idx = rtw89_read32(rtwdev, bd_ring->addr.idx); in rtw89_pci_isr_rxd_unavail() 638 isrs->halt_c2h_isrs = rtw89_read32(rtwdev, R_AX_HISR0) & rtwpci->halt_c2h_intrs; in rtw89_pci_recognize_intrs() 639 isrs->isrs[0] = rtw89_read32(rtwdev, R_AX_PCIE_HISR00) & rtwpci->intrs[0]; in rtw89_pci_recognize_intrs() 640 isrs->isrs[1] = rtw89_read32(rtwdev, R_AX_PCIE_HISR10) & rtwpci->intrs[1]; in rtw89_pci_recognize_intrs() 652 isrs->ind_isrs = rtw89_read32(rtwdev, R_AX_PCIE_HISR00_V1) & rtwpci->ind_intrs; in rtw89_pci_recognize_intrs_v1() 654 rtw89_read32(rtwdev, R_AX_HISR0) & rtwpci->halt_c2h_intrs : 0; in rtw89_pci_recognize_intrs_v1() [all …]
|
D | ser.c | 503 *ptr = rtw89_read32(rtwdev, i); in ser_mac_mem_dump() 574 .ra = rtw89_read32(rtwdev, i), in rtw89_ser_fw_backtrace_dump() 575 .sp = rtw89_read32(rtwdev, i + 4), in rtw89_ser_fw_backtrace_dump()
|
D | fw.c | 488 val32 = rtw89_read32(rtwdev, R_AX_DBG_PORT_SEL); in rtw89_fw_prog_cnt_dump() 499 val32 = rtw89_read32(rtwdev, R_AX_WCPU_FW_CTRL); in rtw89_fw_dl_fail_dump() 2416 info->c2hreg[i] = rtw89_read32(rtwdev, c2h_reg[i]); in rtw89_fw_read_c2h_reg() 2464 rtw89_info(rtwdev, "FW status = 0x%x\n", rtw89_read32(rtwdev, R_AX_UDM0)); in rtw89_fw_st_dbg_dump() 2465 rtw89_info(rtwdev, "FW BADADDR = 0x%x\n", rtw89_read32(rtwdev, R_AX_UDM1)); in rtw89_fw_st_dbg_dump() 2466 rtw89_info(rtwdev, "FW EPC/RA = 0x%x\n", rtw89_read32(rtwdev, R_AX_UDM2)); in rtw89_fw_st_dbg_dump() 2467 rtw89_info(rtwdev, "FW MISC = 0x%x\n", rtw89_read32(rtwdev, R_AX_UDM3)); in rtw89_fw_st_dbg_dump() 2469 rtw89_read32(rtwdev, R_AX_HALT_C2H)); in rtw89_fw_st_dbg_dump() 2471 rtw89_read32(rtwdev, R_AX_SER_DBG_INFO)); in rtw89_fw_st_dbg_dump()
|
D | efuse.c | 99 ret = read_poll_timeout_atomic(rtw89_read32, efuse_ctl, in rtw89_dump_physical_efuse_map_ddv()
|
D | phy.h | 371 return rtw89_read32(rtwdev, addr | RTW89_PHY_ADDR_OFFSET); in rtw89_phy_read32()
|
D | core.h | 3608 static inline u32 rtw89_read32(struct rtw89_dev *rtwdev, u32 addr) in rtw89_read32() function 3651 val = rtw89_read32(rtwdev, addr); in rtw89_write32_set() 3678 val = rtw89_read32(rtwdev, addr); in rtw89_write32_clr() 3689 orig = rtw89_read32(rtwdev, addr); in rtw89_read32_mask() 3730 orig = rtw89_read32(rtwdev, addr); in rtw89_write32_mask()
|
D | mac.h | 896 *val = rtw89_read32(rtwdev, cr); in rtw89_mac_txpwr_read32()
|
D | rtw8852c.c | 180 ret = read_poll_timeout(rtw89_read32, val32, val32 & B_AX_RDY_SYSPWR, in rtw8852c_pwr_on_func() 188 ret = read_poll_timeout(rtw89_read32, val32, !(val32 & B_AX_APFN_ONMAC), in rtw8852c_pwr_on_func() 329 ret = read_poll_timeout(rtw89_read32, val32, !(val32 & B_AX_APFM_OFFMAC), in rtw8852c_pwr_off_func()
|
D | rtw8852a.c | 2030 val = rtw89_read32(rtwdev, R_AX_BT_STAST_HIGH); in rtw8852a_btc_update_bt_cnt() 2034 val = rtw89_read32(rtwdev, R_AX_BT_STAST_LOW); in rtw8852a_btc_update_bt_cnt()
|
D | core.c | 3139 if (rtw89_read32(rtwdev, R_AX_GPIO0_7_FUNC_SEL) == RTW89_R32_DEAD) in rtw89_read_chip_ver()
|
D | coex.c | 6630 val = rtw89_read32(rtwdev, R_AX_GNT_SW_CTRL); in _get_gnt() 6631 status = rtw89_read32(rtwdev, R_AX_GNT_VAL_V1); in _get_gnt()
|