Lines Matching refs:pdbg_init
425 static int cudbg_do_compression(struct cudbg_init *pdbg_init, in cudbg_do_compression() argument
446 rc = cudbg_compress_buff(pdbg_init, &temp_in_buff, dbg_buff); in cudbg_do_compression()
457 static int cudbg_write_and_release_buff(struct cudbg_init *pdbg_init, in cudbg_write_and_release_buff() argument
463 if (pdbg_init->compress_type == CUDBG_COMPRESSION_NONE) { in cudbg_write_and_release_buff()
466 rc = cudbg_do_compression(pdbg_init, pin_buff, dbg_buff); in cudbg_write_and_release_buff()
472 cudbg_put_buff(pdbg_init, pin_buff); in cudbg_write_and_release_buff()
476 static int is_fw_attached(struct cudbg_init *pdbg_init) in is_fw_attached() argument
478 struct adapter *padap = pdbg_init->adap; in is_fw_attached()
814 int cudbg_collect_reg_dump(struct cudbg_init *pdbg_init, in cudbg_collect_reg_dump() argument
818 struct adapter *padap = pdbg_init->adap; in cudbg_collect_reg_dump()
828 rc = cudbg_get_buff(pdbg_init, dbg_buff, buf_size, &temp_buff); in cudbg_collect_reg_dump()
832 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_reg_dump()
835 int cudbg_collect_fw_devlog(struct cudbg_init *pdbg_init, in cudbg_collect_fw_devlog() argument
839 struct adapter *padap = pdbg_init->adap; in cudbg_collect_fw_devlog()
851 rc = cudbg_get_buff(pdbg_init, dbg_buff, dparams->size, &temp_buff); in cudbg_collect_fw_devlog()
866 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_fw_devlog()
870 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_fw_devlog()
873 int cudbg_collect_cim_la(struct cudbg_init *pdbg_init, in cudbg_collect_cim_la() argument
877 struct adapter *padap = pdbg_init->adap; in cudbg_collect_cim_la()
891 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_cim_la()
898 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_cim_la()
908 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_cim_la()
911 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_cim_la()
914 int cudbg_collect_cim_ma_la(struct cudbg_init *pdbg_init, in cudbg_collect_cim_ma_la() argument
918 struct adapter *padap = pdbg_init->adap; in cudbg_collect_cim_ma_la()
923 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_cim_ma_la()
931 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_cim_ma_la()
934 int cudbg_collect_cim_qcfg(struct cudbg_init *pdbg_init, in cudbg_collect_cim_qcfg() argument
938 struct adapter *padap = pdbg_init->adap; in cudbg_collect_cim_qcfg()
943 rc = cudbg_get_buff(pdbg_init, dbg_buff, sizeof(struct cudbg_cim_qcfg), in cudbg_collect_cim_qcfg()
954 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_cim_qcfg()
963 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_cim_qcfg()
969 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_cim_qcfg()
972 static int cudbg_read_cim_ibq(struct cudbg_init *pdbg_init, in cudbg_read_cim_ibq() argument
976 struct adapter *padap = pdbg_init->adap; in cudbg_read_cim_ibq()
983 rc = cudbg_get_buff(pdbg_init, dbg_buff, qsize, &temp_buff); in cudbg_read_cim_ibq()
997 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_read_cim_ibq()
1000 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_read_cim_ibq()
1003 int cudbg_collect_cim_ibq_tp0(struct cudbg_init *pdbg_init, in cudbg_collect_cim_ibq_tp0() argument
1007 return cudbg_read_cim_ibq(pdbg_init, dbg_buff, cudbg_err, 0); in cudbg_collect_cim_ibq_tp0()
1010 int cudbg_collect_cim_ibq_tp1(struct cudbg_init *pdbg_init, in cudbg_collect_cim_ibq_tp1() argument
1014 return cudbg_read_cim_ibq(pdbg_init, dbg_buff, cudbg_err, 1); in cudbg_collect_cim_ibq_tp1()
1017 int cudbg_collect_cim_ibq_ulp(struct cudbg_init *pdbg_init, in cudbg_collect_cim_ibq_ulp() argument
1021 return cudbg_read_cim_ibq(pdbg_init, dbg_buff, cudbg_err, 2); in cudbg_collect_cim_ibq_ulp()
1024 int cudbg_collect_cim_ibq_sge0(struct cudbg_init *pdbg_init, in cudbg_collect_cim_ibq_sge0() argument
1028 return cudbg_read_cim_ibq(pdbg_init, dbg_buff, cudbg_err, 3); in cudbg_collect_cim_ibq_sge0()
1031 int cudbg_collect_cim_ibq_sge1(struct cudbg_init *pdbg_init, in cudbg_collect_cim_ibq_sge1() argument
1035 return cudbg_read_cim_ibq(pdbg_init, dbg_buff, cudbg_err, 4); in cudbg_collect_cim_ibq_sge1()
1038 int cudbg_collect_cim_ibq_ncsi(struct cudbg_init *pdbg_init, in cudbg_collect_cim_ibq_ncsi() argument
1042 return cudbg_read_cim_ibq(pdbg_init, dbg_buff, cudbg_err, 5); in cudbg_collect_cim_ibq_ncsi()
1056 static int cudbg_read_cim_obq(struct cudbg_init *pdbg_init, in cudbg_read_cim_obq() argument
1060 struct adapter *padap = pdbg_init->adap; in cudbg_read_cim_obq()
1067 rc = cudbg_get_buff(pdbg_init, dbg_buff, qsize, &temp_buff); in cudbg_read_cim_obq()
1081 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_read_cim_obq()
1084 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_read_cim_obq()
1087 int cudbg_collect_cim_obq_ulp0(struct cudbg_init *pdbg_init, in cudbg_collect_cim_obq_ulp0() argument
1091 return cudbg_read_cim_obq(pdbg_init, dbg_buff, cudbg_err, 0); in cudbg_collect_cim_obq_ulp0()
1094 int cudbg_collect_cim_obq_ulp1(struct cudbg_init *pdbg_init, in cudbg_collect_cim_obq_ulp1() argument
1098 return cudbg_read_cim_obq(pdbg_init, dbg_buff, cudbg_err, 1); in cudbg_collect_cim_obq_ulp1()
1101 int cudbg_collect_cim_obq_ulp2(struct cudbg_init *pdbg_init, in cudbg_collect_cim_obq_ulp2() argument
1105 return cudbg_read_cim_obq(pdbg_init, dbg_buff, cudbg_err, 2); in cudbg_collect_cim_obq_ulp2()
1108 int cudbg_collect_cim_obq_ulp3(struct cudbg_init *pdbg_init, in cudbg_collect_cim_obq_ulp3() argument
1112 return cudbg_read_cim_obq(pdbg_init, dbg_buff, cudbg_err, 3); in cudbg_collect_cim_obq_ulp3()
1115 int cudbg_collect_cim_obq_sge(struct cudbg_init *pdbg_init, in cudbg_collect_cim_obq_sge() argument
1119 return cudbg_read_cim_obq(pdbg_init, dbg_buff, cudbg_err, 4); in cudbg_collect_cim_obq_sge()
1122 int cudbg_collect_cim_obq_ncsi(struct cudbg_init *pdbg_init, in cudbg_collect_cim_obq_ncsi() argument
1126 return cudbg_read_cim_obq(pdbg_init, dbg_buff, cudbg_err, 5); in cudbg_collect_cim_obq_ncsi()
1129 int cudbg_collect_obq_sge_rx_q0(struct cudbg_init *pdbg_init, in cudbg_collect_obq_sge_rx_q0() argument
1133 return cudbg_read_cim_obq(pdbg_init, dbg_buff, cudbg_err, 6); in cudbg_collect_obq_sge_rx_q0()
1136 int cudbg_collect_obq_sge_rx_q1(struct cudbg_init *pdbg_init, in cudbg_collect_obq_sge_rx_q1() argument
1140 return cudbg_read_cim_obq(pdbg_init, dbg_buff, cudbg_err, 7); in cudbg_collect_obq_sge_rx_q1()
1284 static int cudbg_memory_read(struct cudbg_init *pdbg_init, int win, in cudbg_memory_read() argument
1288 struct adapter *adap = pdbg_init->adap; in cudbg_memory_read()
1366 static int cudbg_read_fw_mem(struct cudbg_init *pdbg_init, in cudbg_read_fw_mem() argument
1374 struct adapter *padap = pdbg_init->adap; in cudbg_read_fw_mem()
1411 rc = cudbg_get_buff(pdbg_init, dbg_buff, bytes, &temp_buff); in cudbg_read_fw_mem()
1423 rc = cudbg_memory_read(pdbg_init, MEMWIN_NIC, mem_type, in cudbg_read_fw_mem()
1428 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_read_fw_mem()
1435 rc = cudbg_write_and_release_buff(pdbg_init, &temp_buff, in cudbg_read_fw_mem()
1438 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_read_fw_mem()
1445 static void cudbg_t4_fwcache(struct cudbg_init *pdbg_init, in cudbg_t4_fwcache() argument
1448 struct adapter *padap = pdbg_init->adap; in cudbg_t4_fwcache()
1451 if (is_fw_attached(pdbg_init)) { in cudbg_t4_fwcache()
1459 static int cudbg_mem_region_size(struct cudbg_init *pdbg_init, in cudbg_mem_region_size() argument
1463 struct adapter *padap = pdbg_init->adap; in cudbg_mem_region_size()
1475 cudbg_t4_fwcache(pdbg_init, cudbg_err); in cudbg_mem_region_size()
1489 static int cudbg_collect_mem_region(struct cudbg_init *pdbg_init, in cudbg_collect_mem_region() argument
1497 rc = cudbg_mem_region_size(pdbg_init, cudbg_err, mem_type, &size); in cudbg_collect_mem_region()
1501 return cudbg_read_fw_mem(pdbg_init, dbg_buff, mem_type, size, in cudbg_collect_mem_region()
1505 int cudbg_collect_edc0_meminfo(struct cudbg_init *pdbg_init, in cudbg_collect_edc0_meminfo() argument
1509 return cudbg_collect_mem_region(pdbg_init, dbg_buff, cudbg_err, in cudbg_collect_edc0_meminfo()
1513 int cudbg_collect_edc1_meminfo(struct cudbg_init *pdbg_init, in cudbg_collect_edc1_meminfo() argument
1517 return cudbg_collect_mem_region(pdbg_init, dbg_buff, cudbg_err, in cudbg_collect_edc1_meminfo()
1521 int cudbg_collect_mc0_meminfo(struct cudbg_init *pdbg_init, in cudbg_collect_mc0_meminfo() argument
1525 return cudbg_collect_mem_region(pdbg_init, dbg_buff, cudbg_err, in cudbg_collect_mc0_meminfo()
1529 int cudbg_collect_mc1_meminfo(struct cudbg_init *pdbg_init, in cudbg_collect_mc1_meminfo() argument
1533 return cudbg_collect_mem_region(pdbg_init, dbg_buff, cudbg_err, in cudbg_collect_mc1_meminfo()
1537 int cudbg_collect_hma_meminfo(struct cudbg_init *pdbg_init, in cudbg_collect_hma_meminfo() argument
1541 return cudbg_collect_mem_region(pdbg_init, dbg_buff, cudbg_err, in cudbg_collect_hma_meminfo()
1545 int cudbg_collect_rss(struct cudbg_init *pdbg_init, in cudbg_collect_rss() argument
1549 struct adapter *padap = pdbg_init->adap; in cudbg_collect_rss()
1554 rc = cudbg_get_buff(pdbg_init, dbg_buff, nentries * sizeof(u16), in cudbg_collect_rss()
1562 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_rss()
1565 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_rss()
1568 int cudbg_collect_rss_vf_config(struct cudbg_init *pdbg_init, in cudbg_collect_rss_vf_config() argument
1572 struct adapter *padap = pdbg_init->adap; in cudbg_collect_rss_vf_config()
1578 rc = cudbg_get_buff(pdbg_init, dbg_buff, in cudbg_collect_rss_vf_config()
1588 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_rss_vf_config()
1591 int cudbg_collect_path_mtu(struct cudbg_init *pdbg_init, in cudbg_collect_path_mtu() argument
1595 struct adapter *padap = pdbg_init->adap; in cudbg_collect_path_mtu()
1599 rc = cudbg_get_buff(pdbg_init, dbg_buff, NMTUS * sizeof(u16), in cudbg_collect_path_mtu()
1605 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_path_mtu()
1608 int cudbg_collect_pm_stats(struct cudbg_init *pdbg_init, in cudbg_collect_pm_stats() argument
1612 struct adapter *padap = pdbg_init->adap; in cudbg_collect_pm_stats()
1617 rc = cudbg_get_buff(pdbg_init, dbg_buff, sizeof(struct cudbg_pm_stats), in cudbg_collect_pm_stats()
1625 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_pm_stats()
1628 int cudbg_collect_hw_sched(struct cudbg_init *pdbg_init, in cudbg_collect_hw_sched() argument
1632 struct adapter *padap = pdbg_init->adap; in cudbg_collect_hw_sched()
1640 rc = cudbg_get_buff(pdbg_init, dbg_buff, sizeof(struct cudbg_hw_sched), in cudbg_collect_hw_sched()
1653 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_hw_sched()
1656 int cudbg_collect_tp_indirect(struct cudbg_init *pdbg_init, in cudbg_collect_tp_indirect() argument
1660 struct adapter *padap = pdbg_init->adap; in cudbg_collect_tp_indirect()
1677 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_tp_indirect()
1766 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_tp_indirect()
1790 int cudbg_collect_sge_indirect(struct cudbg_init *pdbg_init, in cudbg_collect_sge_indirect() argument
1794 struct adapter *padap = pdbg_init->adap; in cudbg_collect_sge_indirect()
1816 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_sge_indirect()
1860 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_sge_indirect()
1863 int cudbg_collect_ulprx_la(struct cudbg_init *pdbg_init, in cudbg_collect_ulprx_la() argument
1867 struct adapter *padap = pdbg_init->adap; in cudbg_collect_ulprx_la()
1872 rc = cudbg_get_buff(pdbg_init, dbg_buff, sizeof(struct cudbg_ulprx_la), in cudbg_collect_ulprx_la()
1880 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_ulprx_la()
1883 int cudbg_collect_tp_la(struct cudbg_init *pdbg_init, in cudbg_collect_tp_la() argument
1887 struct adapter *padap = pdbg_init->adap; in cudbg_collect_tp_la()
1893 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_tp_la()
1900 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_tp_la()
1903 int cudbg_collect_meminfo(struct cudbg_init *pdbg_init, in cudbg_collect_meminfo() argument
1907 struct adapter *padap = pdbg_init->adap; in cudbg_collect_meminfo()
1913 rc = cudbg_get_buff(pdbg_init, dbg_buff, in cudbg_collect_meminfo()
1930 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_meminfo()
1934 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_meminfo()
1937 int cudbg_collect_cim_pif_la(struct cudbg_init *pdbg_init, in cudbg_collect_cim_pif_la() argument
1942 struct adapter *padap = pdbg_init->adap; in cudbg_collect_cim_pif_la()
1948 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_cim_pif_la()
1957 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_cim_pif_la()
1960 int cudbg_collect_clk_info(struct cudbg_init *pdbg_init, in cudbg_collect_clk_info() argument
1964 struct adapter *padap = pdbg_init->adap; in cudbg_collect_clk_info()
1973 rc = cudbg_get_buff(pdbg_init, dbg_buff, sizeof(struct cudbg_clk_info), in cudbg_collect_clk_info()
2005 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_clk_info()
2008 int cudbg_collect_pcie_indirect(struct cudbg_init *pdbg_init, in cudbg_collect_pcie_indirect() argument
2012 struct adapter *padap = pdbg_init->adap; in cudbg_collect_pcie_indirect()
2020 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_pcie_indirect()
2061 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_pcie_indirect()
2064 int cudbg_collect_pm_indirect(struct cudbg_init *pdbg_init, in cudbg_collect_pm_indirect() argument
2068 struct adapter *padap = pdbg_init->adap; in cudbg_collect_pm_indirect()
2076 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_pm_indirect()
2117 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_pm_indirect()
2120 int cudbg_collect_tid(struct cudbg_init *pdbg_init, in cudbg_collect_tid() argument
2124 struct adapter *padap = pdbg_init->adap; in cudbg_collect_tid()
2131 rc = cudbg_get_buff(pdbg_init, dbg_buff, in cudbg_collect_tid()
2147 if (!is_fw_attached(pdbg_init)) in cudbg_collect_tid()
2161 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_tid()
2180 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_tid()
2209 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_tid()
2212 int cudbg_collect_pcie_config(struct cudbg_init *pdbg_init, in cudbg_collect_pcie_config() argument
2216 struct adapter *padap = pdbg_init->adap; in cudbg_collect_pcie_config()
2223 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_pcie_config()
2235 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_pcie_config()
2343 static void cudbg_read_sge_ctxt(struct cudbg_init *pdbg_init, u32 cid, in cudbg_read_sge_ctxt() argument
2346 struct adapter *padap = pdbg_init->adap; in cudbg_read_sge_ctxt()
2356 if (is_fw_attached(pdbg_init)) in cudbg_read_sge_ctxt()
2362 static void cudbg_get_sge_ctxt_fw(struct cudbg_init *pdbg_init, u32 max_qid, in cudbg_get_sge_ctxt_fw() argument
2371 cudbg_read_sge_ctxt(pdbg_init, j, ctxt_type, buff->data); in cudbg_get_sge_ctxt_fw()
2380 cudbg_read_sge_ctxt(pdbg_init, j, CTXT_CNM, buff->data); in cudbg_get_sge_ctxt_fw()
2390 int cudbg_collect_dump_context(struct cudbg_init *pdbg_init, in cudbg_collect_dump_context() argument
2395 struct adapter *padap = pdbg_init->adap; in cudbg_collect_dump_context()
2414 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_dump_context()
2428 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_dump_context()
2441 cudbg_get_sge_ctxt_fw(pdbg_init, max_ctx_qid, i, in cudbg_collect_dump_context()
2452 if (is_fw_attached(pdbg_init)) { in cudbg_collect_dump_context()
2460 if (rc || !is_fw_attached(pdbg_init)) { in cudbg_collect_dump_context()
2462 cudbg_get_sge_ctxt_fw(pdbg_init, max_ctx_qid, i, in cudbg_collect_dump_context()
2499 cudbg_get_sge_ctxt_fw(pdbg_init, max_ctx_qid, CTXT_FLM, &buff); in cudbg_collect_dump_context()
2501 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_dump_context()
2539 static int cudbg_collect_tcam_index(struct cudbg_init *pdbg_init, in cudbg_collect_tcam_index() argument
2542 struct adapter *padap = pdbg_init->adap; in cudbg_collect_tcam_index()
2630 if (is_fw_attached(pdbg_init)) in cudbg_collect_tcam_index()
2634 if (rc || !is_fw_attached(pdbg_init)) { in cudbg_collect_tcam_index()
2661 int cudbg_collect_mps_tcam(struct cudbg_init *pdbg_init, in cudbg_collect_mps_tcam() argument
2665 struct adapter *padap = pdbg_init->adap; in cudbg_collect_mps_tcam()
2673 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_mps_tcam()
2679 rc = cudbg_collect_tcam_index(pdbg_init, tcam, i); in cudbg_collect_mps_tcam()
2682 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_mps_tcam()
2692 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_mps_tcam()
2695 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_mps_tcam()
2698 int cudbg_collect_vpd_data(struct cudbg_init *pdbg_init, in cudbg_collect_vpd_data() argument
2702 struct adapter *padap = pdbg_init->adap; in cudbg_collect_vpd_data()
2728 rc = cudbg_get_buff(pdbg_init, dbg_buff, sizeof(struct cudbg_vpd_data), in cudbg_collect_vpd_data()
2744 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_vpd_data()
2747 static int cudbg_read_tid(struct cudbg_init *pdbg_init, u32 tid, in cudbg_read_tid() argument
2750 struct adapter *padap = pdbg_init->adap; in cudbg_read_tid()
2890 int cudbg_collect_le_tcam(struct cudbg_init *pdbg_init, in cudbg_collect_le_tcam() argument
2894 struct adapter *padap = pdbg_init->adap; in cudbg_collect_le_tcam()
2906 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_le_tcam()
2915 rc = cudbg_read_tid(pdbg_init, i, tid_data); in cudbg_collect_le_tcam()
2942 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_le_tcam()
2945 int cudbg_collect_cctrl(struct cudbg_init *pdbg_init, in cudbg_collect_cctrl() argument
2949 struct adapter *padap = pdbg_init->adap; in cudbg_collect_cctrl()
2955 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_cctrl()
2960 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_cctrl()
2963 int cudbg_collect_ma_indirect(struct cudbg_init *pdbg_init, in cudbg_collect_ma_indirect() argument
2967 struct adapter *padap = pdbg_init->adap; in cudbg_collect_ma_indirect()
2978 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_ma_indirect()
3014 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_ma_indirect()
3017 int cudbg_collect_ulptx_la(struct cudbg_init *pdbg_init, in cudbg_collect_ulptx_la() argument
3021 struct adapter *padap = pdbg_init->adap; in cudbg_collect_ulptx_la()
3028 rc = cudbg_get_buff(pdbg_init, dbg_buff, in cudbg_collect_ulptx_la()
3076 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_ulptx_la()
3079 int cudbg_collect_up_cim_indirect(struct cudbg_init *pdbg_init, in cudbg_collect_up_cim_indirect() argument
3083 struct adapter *padap = pdbg_init->adap; in cudbg_collect_up_cim_indirect()
3101 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_up_cim_indirect()
3151 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_up_cim_indirect()
3157 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_up_cim_indirect()
3160 int cudbg_collect_pbt_tables(struct cudbg_init *pdbg_init, in cudbg_collect_pbt_tables() argument
3164 struct adapter *padap = pdbg_init->adap; in cudbg_collect_pbt_tables()
3170 rc = cudbg_get_buff(pdbg_init, dbg_buff, in cudbg_collect_pbt_tables()
3184 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_pbt_tables()
3197 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_pbt_tables()
3209 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_pbt_tables()
3221 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_pbt_tables()
3225 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_pbt_tables()
3228 int cudbg_collect_mbox_log(struct cudbg_init *pdbg_init, in cudbg_collect_mbox_log() argument
3232 struct adapter *padap = pdbg_init->adap; in cudbg_collect_mbox_log()
3246 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_mbox_log()
3269 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_mbox_log()
3272 int cudbg_collect_hma_indirect(struct cudbg_init *pdbg_init, in cudbg_collect_hma_indirect() argument
3276 struct adapter *padap = pdbg_init->adap; in cudbg_collect_hma_indirect()
3287 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_hma_indirect()
3305 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_hma_indirect()
3362 int cudbg_collect_qdesc(struct cudbg_init *pdbg_init, in cudbg_collect_qdesc() argument
3367 struct adapter *padap = pdbg_init->adap; in cudbg_collect_qdesc()
3540 rc = cudbg_get_buff(pdbg_init, dbg_buff, chunk_size, in cudbg_collect_qdesc()
3550 rc = cudbg_write_and_release_buff(pdbg_init, &temp_buff, in cudbg_collect_qdesc()
3553 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_qdesc()
3574 int cudbg_collect_flash(struct cudbg_init *pdbg_init, in cudbg_collect_flash() argument
3578 struct adapter *padap = pdbg_init->adap; in cudbg_collect_flash()
3589 rc = cudbg_get_buff(pdbg_init, dbg_buff, n, &temp_buff); in cudbg_collect_flash()
3599 rc = cudbg_write_and_release_buff(pdbg_init, &temp_buff, in cudbg_collect_flash()