Lines Matching +full:0 +full:x80040000
89 return 0; in rtw89_rate_info_bw_to_mhz()
125 return 0; in rtw89_debugfs_close()
169 buf[buf_size] = '\0'; in rtw89_debug_priv_read_reg_select()
179 rtw89_info(rtwdev, "select read %d bytes from 0x%08x\n", len, addr); in rtw89_debug_priv_read_reg_select()
212 seq_printf(m, "get %d bytes at 0x%08x=0x%08x\n", len, addr, data); in rtw89_debug_priv_read_reg_get()
214 return 0; in rtw89_debug_priv_read_reg_get()
220 seq_printf(m, "%08xh : ", 0x18600000 + addr); in rtw89_debug_priv_read_reg_get()
221 for (k = 0; k < 16; k += 4) { in rtw89_debug_priv_read_reg_get()
228 return 0; in rtw89_debug_priv_read_reg_get()
246 buf[buf_size] = '\0'; in rtw89_debug_priv_write_reg_set()
255 rtw89_info(rtwdev, "reg write8 0x%08x: 0x%02x\n", addr, val); in rtw89_debug_priv_write_reg_set()
259 rtw89_info(rtwdev, "reg write16 0x%08x: 0x%04x\n", addr, val); in rtw89_debug_priv_write_reg_set()
263 rtw89_info(rtwdev, "reg write32 0x%08x: 0x%08x\n", addr, val); in rtw89_debug_priv_write_reg_set()
292 buf[buf_size] = '\0'; in rtw89_debug_priv_read_rf_select()
307 rtw89_info(rtwdev, "select read rf path %d from 0x%08x\n", path, addr); in rtw89_debug_priv_read_rf_select()
325 seq_printf(m, "path %d, rf register 0x%08x=0x%08x\n", path, addr, data); in rtw89_debug_priv_read_rf_get()
327 return 0; in rtw89_debug_priv_read_rf_get()
346 buf[buf_size] = '\0'; in rtw89_debug_priv_write_rf_set()
358 rtw89_info(rtwdev, "path %d, rf register write 0x%08x=0x%08x (mask = 0x%08x)\n", in rtw89_debug_priv_write_rf_set()
373 for (path = 0; path < chip->rf_path_num; path++) { in rtw89_debug_priv_rf_reg_dump_get()
375 for (addr = 0; addr < 0x100; addr += 4) { in rtw89_debug_priv_rf_reg_dump_get()
376 seq_printf(m, "0x%08x: ", addr); in rtw89_debug_priv_rf_reg_dump_get()
377 for (offset = 0; offset < 4; offset++) { in rtw89_debug_priv_rf_reg_dump_get()
380 seq_printf(m, "0x%05x ", data); in rtw89_debug_priv_rf_reg_dump_get()
387 return 0; in rtw89_debug_priv_rf_reg_dump_get()
411 #define __GEN_TXPWR_ENT0(_t) { .len = 0, .txt = _t }
603 .addr_to_1ss = 0, /* not support */
663 .addr_to_1ss = 0, /* not support */
702 .addr_to_1ss = 0, /* not support */
713 for (cnt = 0, i = 0; i < ent->len; i++) in __print_txpwr_ent()
720 case 0: in __print_txpwr_ent()
722 return 0; in __print_txpwr_ent()
739 return 0; in __print_txpwr_ent()
763 if (max_valid_addr == 0) in __print_txpwr_map()
772 for (i = 0; i < 4; i++, val >>= 8) { in __print_txpwr_map()
779 for (cur = 0, i = 0; i < map->size; i++) in __print_txpwr_map()
783 return 0; in __print_txpwr_map()
871 int ret = 0; in rtw89_debug_priv_txpwr_table_get()
929 buf[buf_size] = '\0'; in rtw89_debug_priv_mac_reg_dump_select()
930 ret = kstrtoint(buf, 0, &sel); in rtw89_debug_priv_mac_reg_dump_select()
951 #define RTW89_MAC_PAGE_SIZE 0x100
964 seq_puts(m, "Debug selected MAC page 0x00\n"); in rtw89_debug_priv_mac_reg_dump_get()
965 start = 0x000; in rtw89_debug_priv_mac_reg_dump_get()
966 end = 0x014; in rtw89_debug_priv_mac_reg_dump_get()
969 seq_puts(m, "Debug selected MAC page 0x30\n"); in rtw89_debug_priv_mac_reg_dump_get()
970 start = 0x030; in rtw89_debug_priv_mac_reg_dump_get()
971 end = 0x033; in rtw89_debug_priv_mac_reg_dump_get()
974 seq_puts(m, "Debug selected MAC page 0x40\n"); in rtw89_debug_priv_mac_reg_dump_get()
975 start = 0x040; in rtw89_debug_priv_mac_reg_dump_get()
976 end = 0x07f; in rtw89_debug_priv_mac_reg_dump_get()
979 seq_puts(m, "Debug selected MAC page 0x80\n"); in rtw89_debug_priv_mac_reg_dump_get()
980 start = 0x080; in rtw89_debug_priv_mac_reg_dump_get()
981 end = 0x09f; in rtw89_debug_priv_mac_reg_dump_get()
984 seq_puts(m, "Debug selected MAC page 0xc0\n"); in rtw89_debug_priv_mac_reg_dump_get()
985 start = 0x0c0; in rtw89_debug_priv_mac_reg_dump_get()
986 end = 0x0df; in rtw89_debug_priv_mac_reg_dump_get()
989 seq_puts(m, "Debug selected MAC page 0xe0\n"); in rtw89_debug_priv_mac_reg_dump_get()
990 start = 0x0e0; in rtw89_debug_priv_mac_reg_dump_get()
991 end = 0x0ff; in rtw89_debug_priv_mac_reg_dump_get()
995 start = 0x100; in rtw89_debug_priv_mac_reg_dump_get()
996 end = 0x17f; in rtw89_debug_priv_mac_reg_dump_get()
1000 start = 0x180; in rtw89_debug_priv_mac_reg_dump_get()
1001 end = 0x1bf; in rtw89_debug_priv_mac_reg_dump_get()
1005 start = 0x1c0; in rtw89_debug_priv_mac_reg_dump_get()
1006 end = 0x1ff; in rtw89_debug_priv_mac_reg_dump_get()
1016 seq_printf(m, "%08xh : ", 0x18600000 + j); in rtw89_debug_priv_mac_reg_dump_get()
1017 for (k = 0; k < 4; k++) { in rtw89_debug_priv_mac_reg_dump_get()
1025 return 0; in rtw89_debug_priv_mac_reg_dump_get()
1045 buf[buf_size] = '\0'; in rtw89_debug_priv_mac_mem_dump_select()
1081 for (p = 0; p < pages; p++) { in rtw89_debug_dump_mac_mem()
1087 for (j = 0; in rtw89_debug_dump_mac_mem()
1135 return 0; in rtw89_debug_priv_mac_mem_dump_get()
1156 buf[buf_size] = '\0'; in rtw89_debug_priv_mac_dbg_port_dump_select()
1163 enable = set != 0; in rtw89_debug_priv_mac_dbg_port_dump_select()
1165 case 0: in rtw89_debug_priv_mac_dbg_port_dump_select()
1194 return 0; in rtw89_debug_mac_dump_ss_dbg()
1232 __freepg = DLE_DFI_DUMP(__type, FREEPG, 0); \ in rtw89_debug_mac_dump_dle_dbg()
1260 ret = rtw89_mac_check_mac_en(rtwdev, 0, RTW89_DMAC_SEL); in rtw89_debug_mac_dump_dle_dbg()
1268 for (quota_id = 0; quota_id <= WDE_QTAID_CPUIO; quota_id++) { in rtw89_debug_mac_dump_dle_dbg()
1277 for (quota_id = 0; quota_id <= PLE_QTAID_CPUIO; quota_id++) { in rtw89_debug_mac_dump_dle_dbg()
1293 return 0; in rtw89_debug_mac_dump_dle_dbg()
1307 ret = rtw89_mac_check_mac_en(rtwdev, 0, RTW89_DMAC_SEL); in rtw89_debug_mac_dump_dmac_dbg()
1314 seq_printf(m, "R_AX_DMAC_ERR_ISR=0x%08x\n", dmac_err); in rtw89_debug_mac_dump_dmac_dbg()
1315 seq_printf(m, "R_AX_DMAC_ERR_IMR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1319 seq_printf(m, "R_AX_WDE_ERR_FLAG_CFG=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1321 seq_printf(m, "R_AX_PLE_ERR_FLAG_CFG=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1324 seq_printf(m, "R_AX_PLE_ERRFLAG_MSG=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1326 seq_printf(m, "R_AX_WDE_ERRFLAG_MSG=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1328 seq_printf(m, "R_AX_PLE_DBGERR_LOCKEN=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1330 seq_printf(m, "R_AX_PLE_DBGERR_STS=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1336 seq_printf(m, "R_AX_WDRLS_ERR_IMR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1338 seq_printf(m, "R_AX_WDRLS_ERR_ISR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1341 seq_printf(m, "R_AX_RPQ_RXBD_IDX=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1344 seq_printf(m, "R_AX_RPQ_RXBD_IDX=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1350 seq_printf(m, "R_AX_SEC_ERR_IMR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1352 seq_printf(m, "R_AX_SEC_ERR_ISR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1354 seq_printf(m, "R_AX_SEC_ENG_CTRL=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1356 seq_printf(m, "R_AX_SEC_MPDU_PROC=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1358 seq_printf(m, "R_AX_SEC_CAM_ACCESS=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1360 seq_printf(m, "R_AX_SEC_CAM_RDATA=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1362 seq_printf(m, "R_AX_SEC_DEBUG1=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1364 seq_printf(m, "R_AX_SEC_TX_DEBUG=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1366 seq_printf(m, "R_AX_SEC_RX_DEBUG=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1370 B_AX_DBG_SEL0, 0x8B); in rtw89_debug_mac_dump_dmac_dbg()
1372 B_AX_DBG_SEL1, 0x8B); in rtw89_debug_mac_dump_dmac_dbg()
1375 for (i = 0; i < 0x10; i++) { in rtw89_debug_mac_dump_dmac_dbg()
1378 seq_printf(m, "sel=%x,R_AX_SEC_DEBUG2=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1382 seq_printf(m, "R_AX_SEC_ERR_IMR_ISR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1384 seq_printf(m, "R_AX_SEC_ENG_CTRL=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1386 seq_printf(m, "R_AX_SEC_MPDU_PROC=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1388 seq_printf(m, "R_AX_SEC_CAM_ACCESS=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1390 seq_printf(m, "R_AX_SEC_CAM_RDATA=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1392 seq_printf(m, "R_AX_SEC_CAM_WDATA=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1394 seq_printf(m, "R_AX_SEC_TX_DEBUG=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1396 seq_printf(m, "R_AX_SEC_RX_DEBUG=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1398 seq_printf(m, "R_AX_SEC_TRX_PKT_CNT=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1400 seq_printf(m, "R_AX_SEC_TRX_BLK_CNT=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1406 seq_printf(m, "R_AX_MPDU_TX_ERR_IMR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1408 seq_printf(m, "R_AX_MPDU_TX_ERR_ISR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1410 seq_printf(m, "R_AX_MPDU_RX_ERR_IMR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1412 seq_printf(m, "R_AX_MPDU_RX_ERR_ISR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1417 seq_printf(m, "R_AX_STA_SCHEDULER_ERR_IMR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1419 seq_printf(m, "R_AX_STA_SCHEDULER_ERR_ISR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1424 seq_printf(m, "R_AX_WDE_ERR_IMR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1426 seq_printf(m, "R_AX_WDE_ERR_ISR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1428 seq_printf(m, "R_AX_PLE_ERR_IMR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1430 seq_printf(m, "R_AX_PLE_ERR_FLAG_ISR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1436 seq_printf(m, "R_AX_TXPKTCTL_B0_ERRFLAG_IMR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1438 seq_printf(m, "R_AX_TXPKTCTL_B0_ERRFLAG_ISR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1440 seq_printf(m, "R_AX_TXPKTCTL_B1_ERRFLAG_IMR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1442 seq_printf(m, "R_AX_TXPKTCTL_B1_ERRFLAG_ISR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1445 seq_printf(m, "R_AX_TXPKTCTL_ERR_IMR_ISR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1447 seq_printf(m, "R_AX_TXPKTCTL_ERR_IMR_ISR_B1=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1453 seq_printf(m, "R_AX_WDE_ERR_IMR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1455 seq_printf(m, "R_AX_WDE_ERR_ISR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1457 seq_printf(m, "R_AX_PLE_ERR_IMR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1459 seq_printf(m, "R_AX_PLE_ERR_FLAG_ISR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1461 seq_printf(m, "R_AX_WD_CPUQ_OP_0=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1463 seq_printf(m, "R_AX_WD_CPUQ_OP_1=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1465 seq_printf(m, "R_AX_WD_CPUQ_OP_2=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1467 seq_printf(m, "R_AX_WD_CPUQ_OP_STATUS=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1469 seq_printf(m, "R_AX_PL_CPUQ_OP_0=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1471 seq_printf(m, "R_AX_PL_CPUQ_OP_1=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1473 seq_printf(m, "R_AX_PL_CPUQ_OP_2=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1475 seq_printf(m, "R_AX_PL_CPUQ_OP_STATUS=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1478 seq_printf(m, "R_AX_RX_CTRL0=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1480 seq_printf(m, "R_AX_RX_CTRL1=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1482 seq_printf(m, "R_AX_RX_CTRL2=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1485 seq_printf(m, "R_AX_RXDMA_PKT_INFO_0=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1487 seq_printf(m, "R_AX_RXDMA_PKT_INFO_1=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1489 seq_printf(m, "R_AX_RXDMA_PKT_INFO_2=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1495 seq_printf(m, "R_AX_PKTIN_ERR_IMR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1497 seq_printf(m, "R_AX_PKTIN_ERR_ISR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1502 seq_printf(m, "R_AX_HOST_DISPATCHER_ERR_IMR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1504 seq_printf(m, "R_AX_HOST_DISPATCHER_ERR_ISR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1506 seq_printf(m, "R_AX_CPU_DISPATCHER_ERR_IMR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1508 seq_printf(m, "R_AX_CPU_DISPATCHER_ERR_ISR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1510 seq_printf(m, "R_AX_OTHER_DISPATCHER_ERR_IMR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1512 seq_printf(m, "R_AX_OTHER_DISPATCHER_ERR_ISR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1518 seq_printf(m, "R_AX_BBRPT_COM_ERR_IMR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1520 seq_printf(m, "R_AX_BBRPT_COM_ERR_ISR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1522 seq_printf(m, "R_AX_BBRPT_CHINFO_ERR_ISR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1524 seq_printf(m, "R_AX_BBRPT_CHINFO_ERR_IMR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1526 seq_printf(m, "R_AX_BBRPT_DFS_ERR_IMR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1528 seq_printf(m, "R_AX_BBRPT_DFS_ERR_ISR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1531 seq_printf(m, "R_AX_BBRPT_COM_ERR_IMR_ISR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1533 seq_printf(m, "R_AX_BBRPT_CHINFO_ERR_ISR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1535 seq_printf(m, "R_AX_BBRPT_CHINFO_ERR_IMR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1537 seq_printf(m, "R_AX_BBRPT_DFS_ERR_IMR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1539 seq_printf(m, "R_AX_BBRPT_DFS_ERR_ISR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1545 seq_printf(m, "R_AX_HAXIDMA_ERR_IMR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1547 seq_printf(m, "R_AX_HAXIDMA_ERR_ISR=0x%08x\n", in rtw89_debug_mac_dump_dmac_dbg()
1551 return 0; in rtw89_debug_mac_dump_dmac_dbg()
1559 u32 offset = 0; in rtw89_debug_mac_dump_cmac_err()
1576 seq_printf(m, "R_AX_CMAC_ERR_ISR [%d]=0x%08x\n", band, in rtw89_debug_mac_dump_cmac_err()
1578 seq_printf(m, "R_AX_CMAC_FUNC_EN [%d]=0x%08x\n", band, in rtw89_debug_mac_dump_cmac_err()
1580 seq_printf(m, "R_AX_CK_EN [%d]=0x%08x\n", band, in rtw89_debug_mac_dump_cmac_err()
1584 seq_printf(m, "R_AX_SCHEDULE_ERR_IMR [%d]=0x%08x\n", band, in rtw89_debug_mac_dump_cmac_err()
1586 seq_printf(m, "R_AX_SCHEDULE_ERR_ISR [%d]=0x%08x\n", band, in rtw89_debug_mac_dump_cmac_err()
1591 seq_printf(m, "R_AX_PTCL_IMR0 [%d]=0x%08x\n", band, in rtw89_debug_mac_dump_cmac_err()
1593 seq_printf(m, "R_AX_PTCL_ISR0 [%d]=0x%08x\n", band, in rtw89_debug_mac_dump_cmac_err()
1599 seq_printf(m, "R_AX_RX_ERR_FLAG [%d]=0x%08x\n", band, in rtw89_debug_mac_dump_cmac_err()
1601 seq_printf(m, "R_AX_RX_ERR_FLAG_IMR [%d]=0x%08x\n", band, in rtw89_debug_mac_dump_cmac_err()
1604 seq_printf(m, "R_AX_DLE_CTRL [%d]=0x%08x\n", band, in rtw89_debug_mac_dump_cmac_err()
1611 seq_printf(m, "R_AX_PHYINFO_ERR_ISR [%d]=0x%08x\n", band, in rtw89_debug_mac_dump_cmac_err()
1613 seq_printf(m, "R_AX_PHYINFO_ERR_IMR [%d]=0x%08x\n", band, in rtw89_debug_mac_dump_cmac_err()
1616 seq_printf(m, "R_AX_PHYINFO_ERR_IMR [%d]=0x%08x\n", band, in rtw89_debug_mac_dump_cmac_err()
1622 seq_printf(m, "R_AX_TXPWR_IMR [%d]=0x%08x\n", band, in rtw89_debug_mac_dump_cmac_err()
1624 seq_printf(m, "R_AX_TXPWR_ISR [%d]=0x%08x\n", band, in rtw89_debug_mac_dump_cmac_err()
1630 seq_printf(m, "R_AX_TRXPTCL_ERROR_INDICA [%d]=0x%08x\n", band, in rtw89_debug_mac_dump_cmac_err()
1632 seq_printf(m, "R_AX_TRXPTCL_ERROR_INDICA_MASK [%d]=0x%08x\n", band, in rtw89_debug_mac_dump_cmac_err()
1635 seq_printf(m, "R_AX_TMAC_ERR_IMR_ISR [%d]=0x%08x\n", band, in rtw89_debug_mac_dump_cmac_err()
1638 seq_printf(m, "R_AX_DBGSEL_TRXPTCL [%d]=0x%08x\n", band, in rtw89_debug_mac_dump_cmac_err()
1642 seq_printf(m, "R_AX_CMAC_ERR_IMR [%d]=0x%08x\n", band, in rtw89_debug_mac_dump_cmac_err()
1645 return 0; in rtw89_debug_mac_dump_cmac_err()
1655 return 0; in rtw89_debug_mac_dump_cmac_dbg()
1662 .srt = 0x00,
1663 .end = 0x3F,
1673 .srt = 0x00,
1674 .end = 0x3F,
1684 .srt = 0x0,
1685 .end = 0xD,
1695 .srt = 0x0,
1696 .end = 0x5,
1706 .srt = 0x0,
1707 .end = 0x9,
1717 .srt = 0x0,
1718 .end = 0x3,
1728 .srt = 0x0,
1729 .end = 0x1,
1739 .srt = 0x0,
1740 .end = 0x0,
1750 .srt = 0x0,
1751 .end = 0xB,
1761 .srt = 0x0,
1762 .end = 0x4,
1772 .srt = 0x0,
1773 .end = 0x8,
1783 .srt = 0x0,
1784 .end = 0x7,
1794 .srt = 0x0,
1795 .end = 0x1,
1805 .srt = 0x0,
1806 .end = 0x3,
1816 .srt = 0x0,
1817 .end = 0x0,
1827 .srt = 0x0,
1828 .end = 0x8,
1838 .srt = 0x0,
1839 .end = 0x0,
1849 .srt = 0x0,
1850 .end = 0x6,
1860 .srt = 0x0,
1861 .end = 0x0,
1871 .srt = 0x0,
1872 .end = 0x0,
1882 .srt = 0x0,
1883 .end = 0x3,
1893 .srt = 0x0,
1894 .end = 0x6,
1904 .srt = 0x0,
1905 .end = 0x0,
1915 .srt = 0x8,
1916 .end = 0xE,
1926 .srt = 0x0,
1927 .end = 0x5,
1937 .srt = 0x0,
1938 .end = 0x6,
1948 .srt = 0x0,
1949 .end = 0xF,
1959 .srt = 0x0,
1960 .end = 0x9,
1970 .srt = 0x0,
1971 .end = 0x3,
1981 .srt = 0x00,
1982 .end = 0x2F,
1992 .srt = 0x00,
1993 .end = 0x2F,
2003 .srt = 0x00,
2004 .end = 0x19,
2014 .srt = 0x00,
2015 .end = 0x19,
2025 .srt = 0x00,
2026 .end = 0x58,
2036 .srt = 0x00,
2037 .end = 0x58,
2047 .srt = 0x00,
2048 .end = 0x17,
2058 .srt = 0x00,
2059 .end = 0x17,
2069 .srt = 0x0,
2070 .end = 0xF,
2080 .srt = 0x0,
2081 .end = 0xF,
2091 .srt = 0x08,
2092 .end = 0x10,
2102 .srt = 0x08,
2103 .end = 0x10,
2113 .srt = 0x00,
2114 .end = 0x07,
2124 .srt = 0x00,
2125 .end = 0x07,
2135 .srt = 0x00,
2136 .end = 0x07,
2146 .srt = 0x00,
2147 .end = 0x07,
2157 .srt = 0x00,
2158 .end = 0x04,
2168 .srt = 0x00,
2169 .end = 0x04,
2179 .srt = 0x00,
2180 .end = 0x04,
2190 .srt = 0x00,
2191 .end = 0x04,
2201 .srt = 0x80000000,
2202 .end = 0x80000001,
2212 .srt = 0x80010000,
2213 .end = 0x80010004,
2223 .srt = 0x80020000,
2224 .end = 0x80020FFF,
2234 .srt = 0x80030000,
2235 .end = 0x80030FFF,
2245 .srt = 0x80040000,
2246 .end = 0x80040FFF,
2256 .srt = 0x80050000,
2257 .end = 0x80050FFF,
2267 .srt = 0x80060000,
2268 .end = 0x80060453,
2278 .srt = 0x80070000,
2279 .end = 0x80070011,
2289 .srt = 0x80000000,
2290 .end = 0x80000001,
2300 .srt = 0x80010000,
2301 .end = 0x8001000A,
2311 .srt = 0x80020000,
2312 .end = 0x80020DBF,
2322 .srt = 0x80030000,
2323 .end = 0x80030DBF,
2333 .srt = 0x80040000,
2334 .end = 0x80040DBF,
2344 .srt = 0x80050000,
2345 .end = 0x80050DBF,
2355 .srt = 0x80060000,
2356 .end = 0x80060041,
2366 .srt = 0x80070000,
2367 .end = 0x80070001,
2377 .srt = 0x80000000,
2378 .end = 0x8000017f,
2388 .srt = 0x00,
2389 .end = 0x03,
2399 .srt = 0x00,
2400 .end = 0x04,
2410 .srt = 0x00,
2411 .end = 0x01,
2421 .srt = 0x00,
2422 .end = 0x05,
2432 .srt = 0x00,
2433 .end = 0x05,
2443 .srt = 0x00,
2444 .end = 0x06,
2454 .srt = 0x34,
2455 .end = 0x3C,
2744 B_AX_DBG_SEL0, 0x80); in rtw89_debug_mac_dbg_port_sel()
2756 B_AX_DISPATCHER_INTN_SEL_MASK, 0); in rtw89_debug_mac_dbg_port_sel()
2764 B_AX_DISPATCHER_INTN_SEL_MASK, 0); in rtw89_debug_mac_dbg_port_sel()
2772 B_AX_DISPATCHER_INTN_SEL_MASK, 0); in rtw89_debug_mac_dbg_port_sel()
2780 B_AX_DISPATCHER_INTN_SEL_MASK, 0); in rtw89_debug_mac_dbg_port_sel()
2792 B_AX_DISPATCHER_INTN_SEL_MASK, 0); in rtw89_debug_mac_dbg_port_sel()
2800 B_AX_DISPATCHER_INTN_SEL_MASK, 0); in rtw89_debug_mac_dbg_port_sel()
2802 B_AX_DISPATCHER_CH_SEL_MASK, 0xD); in rtw89_debug_mac_dbg_port_sel()
2810 B_AX_DISPATCHER_CH_SEL_MASK, 0); in rtw89_debug_mac_dbg_port_sel()
2861 index = sel + 0xA - RTW89_DBG_PORT_SEL_DSPT_CDT_TXA; in rtw89_debug_mac_dbg_port_sel()
2873 B_AX_DISPATCHER_CH_SEL_MASK, 0); in rtw89_debug_mac_dbg_port_sel()
2915 B_AX_DISPATCHER_CH_SEL_MASK, 0); in rtw89_debug_mac_dbg_port_sel()
2916 seq_puts(m, "Enable Dispatcher cdt rx part0 0 dump.\n"); in rtw89_debug_mac_dbg_port_sel()
3045 if (rtw89_mac_check_mac_en(rtwdev, 0, RTW89_DMAC_SEL) && in is_dbg_port_valid()
3049 if (rtw89_mac_check_mac_en(rtwdev, 0, RTW89_DMAC_SEL) && in is_dbg_port_valid()
3053 if (rtw89_mac_check_mac_en(rtwdev, 0, RTW89_CMAC_SEL) && in is_dbg_port_valid()
3178 seq_printf(m, "Sel addr = 0x%X\n", info->sel_addr); in rtw89_debug_mac_dbg_port_dump()
3179 seq_printf(m, "Read addr = 0x%X\n", info->rd_addr); in rtw89_debug_mac_dbg_port_dump()
3187 seq_printf(m, "0x%02X: ", i); in rtw89_debug_mac_dbg_port_dump()
3192 seq_printf(m, "0x%04X: ", i); in rtw89_debug_mac_dbg_port_dump()
3197 seq_printf(m, "0x%04X: ", i); in rtw89_debug_mac_dbg_port_dump()
3208 seq_printf(m, "0x%02X\n", val8); in rtw89_debug_mac_dbg_port_dump()
3213 seq_printf(m, "0x%04X\n", val16); in rtw89_debug_mac_dbg_port_dump()
3218 seq_printf(m, "0x%08X\n", val32); in rtw89_debug_mac_dbg_port_dump()
3223 return 0; in rtw89_debug_mac_dbg_port_dump()
3230 int ret = 0; in rtw89_debug_mac_dump_dbg_port()
3264 return 0; in rtw89_debug_priv_mac_dbg_port_dump_get()
3273 int err = 0; in rtw89_hex2bin_user()
3325 int seq = 0; in rtw89_debug_priv_early_h2c_get()
3332 return 0; in rtw89_debug_priv_early_h2c_get()
3350 if (h2c_len >= 2 && h2c[0] == 0x00 && h2c[1] == 0x00) { in rtw89_debug_priv_early_h2c_set()
3376 struct rtw89_cpuio_ctrl ctrl_para = {0}; in rtw89_dbg_trigger_ctrl_error()
3382 ret = mac->dle_buf_req(rtwdev, 0x20, true, &pkt_id); in rtw89_dbg_trigger_ctrl_error()
3390 ctrl_para.pkt_num = 1; /* start from 0 */ in rtw89_dbg_trigger_ctrl_error()
3397 return 0; in rtw89_dbg_trigger_ctrl_error()
3408 return 0; in rtw89_debug_priv_fw_crash_get()
3427 ret = kstrtou8_from_user(user_buf, count, 0, &crash_type); in rtw89_debug_priv_fw_crash_set()
3462 return 0; in rtw89_debug_priv_btc_info_get()
3554 seq_printf(m, "\t(hw_rate=0x%x)", rtwsta->ra_report.hw_rate); in rtw89_sta_info_get_iter()
3563 (status->band != NL80211_BAND_2GHZ ? 4 : 0)); in rtw89_sta_info_get_iter()
3585 seq_printf(m, "\t(hw_rate=0x%x)\n", rtwsta->rx_hw_rate); in rtw89_sta_info_get_iter()
3590 for (i = 0; i < ant_num; i++) { in rtw89_sta_info_get_iter()
3599 seq_printf(m, "EVM: [%2u.%02u, ", evm_1ss >> 2, (evm_1ss & 0x3) * 25); in rtw89_sta_info_get_iter()
3600 for (i = 0; i < (hal->ant_diversity ? 2 : 1); i++) { in rtw89_sta_info_get_iter()
3604 seq_printf(m, "%s(%2u.%02u, %2u.%02u)", i == 0 ? "" : " ", in rtw89_sta_info_get_iter()
3605 evm_min >> 2, (evm_min & 0x3) * 25, in rtw89_sta_info_get_iter()
3606 evm_max >> 2, (evm_max & 0x3) * 25); in rtw89_sta_info_get_iter()
3620 for (i = 0; i < len; i++) in rtw89_debug_append_rx_rate()
3621 seq_printf(m, "%s%u", i == 0 ? "" : ", ", in rtw89_debug_append_rx_rate()
3635 {FIRST_RATE_SAME(CCK1), 4, 0, "Legacy:"},
3636 {FIRST_RATE_SAME(OFDM6), 8, 0, "OFDM:"},
3637 {FIRST_RATE_ENUM(MCS0), 8, 0, "HT 0:"},
3638 {FIRST_RATE_ENUM(MCS8), 8, 0, "HT 1:"},
3641 {FIRST_RATE_ENUM(HE_NSS1_MCS0), 12, 0, "HE 1SS:"},
3642 {FIRST_RATE_ENUM(HE_NSS2_MCS0), 12, 0, "HE 2SS:"},
3644 {FIRST_RATE_GEV1(EHT_NSS2_MCS0), 14, 0, "EHT 2SS:"},
3668 for (i = 0; i < ARRAY_SIZE(rtw89_rx_rate_cnt_infos); i++) { in rtw89_debug_priv_phy_info_get()
3687 return 0; in rtw89_debug_priv_phy_info_get()
3823 return 0; in rtw89_debug_priv_stations_get()
3845 seq_printf(m, "Disabled DM: 0x%x\n", hal->disabled_dm_bitmap); in rtw89_debug_priv_disable_dm_get()
3847 for (i = 0; i < ARRAY_SIZE(rtw89_disabled_dm_infos); i++) { in rtw89_debug_priv_disable_dm_get()
3855 return 0; in rtw89_debug_priv_disable_dm_get()
3869 ret = kstrtou32_from_user(user_buf, count, 0, &conf); in rtw89_debug_priv_disable_dm_set()
3928 } while (0)