Lines Matching refs:pdbg_init

424 static int cudbg_do_compression(struct cudbg_init *pdbg_init,  in cudbg_do_compression()  argument
445 rc = cudbg_compress_buff(pdbg_init, &temp_in_buff, dbg_buff); in cudbg_do_compression()
456 static int cudbg_write_and_release_buff(struct cudbg_init *pdbg_init, in cudbg_write_and_release_buff() argument
462 if (pdbg_init->compress_type == CUDBG_COMPRESSION_NONE) { in cudbg_write_and_release_buff()
465 rc = cudbg_do_compression(pdbg_init, pin_buff, dbg_buff); in cudbg_write_and_release_buff()
471 cudbg_put_buff(pdbg_init, pin_buff); in cudbg_write_and_release_buff()
475 static int is_fw_attached(struct cudbg_init *pdbg_init) in is_fw_attached() argument
477 struct adapter *padap = pdbg_init->adap; in is_fw_attached()
813 int cudbg_collect_reg_dump(struct cudbg_init *pdbg_init, in cudbg_collect_reg_dump() argument
817 struct adapter *padap = pdbg_init->adap; in cudbg_collect_reg_dump()
827 rc = cudbg_get_buff(pdbg_init, dbg_buff, buf_size, &temp_buff); in cudbg_collect_reg_dump()
831 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_reg_dump()
834 int cudbg_collect_fw_devlog(struct cudbg_init *pdbg_init, in cudbg_collect_fw_devlog() argument
838 struct adapter *padap = pdbg_init->adap; in cudbg_collect_fw_devlog()
850 rc = cudbg_get_buff(pdbg_init, dbg_buff, dparams->size, &temp_buff); in cudbg_collect_fw_devlog()
865 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_fw_devlog()
869 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_fw_devlog()
872 int cudbg_collect_cim_la(struct cudbg_init *pdbg_init, in cudbg_collect_cim_la() argument
876 struct adapter *padap = pdbg_init->adap; in cudbg_collect_cim_la()
890 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_cim_la()
897 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_cim_la()
907 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_cim_la()
910 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_cim_la()
913 int cudbg_collect_cim_ma_la(struct cudbg_init *pdbg_init, in cudbg_collect_cim_ma_la() argument
917 struct adapter *padap = pdbg_init->adap; in cudbg_collect_cim_ma_la()
922 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_cim_ma_la()
930 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_cim_ma_la()
933 int cudbg_collect_cim_qcfg(struct cudbg_init *pdbg_init, in cudbg_collect_cim_qcfg() argument
937 struct adapter *padap = pdbg_init->adap; in cudbg_collect_cim_qcfg()
942 rc = cudbg_get_buff(pdbg_init, dbg_buff, sizeof(struct cudbg_cim_qcfg), in cudbg_collect_cim_qcfg()
953 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_cim_qcfg()
962 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_cim_qcfg()
968 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_cim_qcfg()
971 static int cudbg_read_cim_ibq(struct cudbg_init *pdbg_init, in cudbg_read_cim_ibq() argument
975 struct adapter *padap = pdbg_init->adap; in cudbg_read_cim_ibq()
982 rc = cudbg_get_buff(pdbg_init, dbg_buff, qsize, &temp_buff); in cudbg_read_cim_ibq()
996 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_read_cim_ibq()
999 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_read_cim_ibq()
1002 int cudbg_collect_cim_ibq_tp0(struct cudbg_init *pdbg_init, in cudbg_collect_cim_ibq_tp0() argument
1006 return cudbg_read_cim_ibq(pdbg_init, dbg_buff, cudbg_err, 0); in cudbg_collect_cim_ibq_tp0()
1009 int cudbg_collect_cim_ibq_tp1(struct cudbg_init *pdbg_init, in cudbg_collect_cim_ibq_tp1() argument
1013 return cudbg_read_cim_ibq(pdbg_init, dbg_buff, cudbg_err, 1); in cudbg_collect_cim_ibq_tp1()
1016 int cudbg_collect_cim_ibq_ulp(struct cudbg_init *pdbg_init, in cudbg_collect_cim_ibq_ulp() argument
1020 return cudbg_read_cim_ibq(pdbg_init, dbg_buff, cudbg_err, 2); in cudbg_collect_cim_ibq_ulp()
1023 int cudbg_collect_cim_ibq_sge0(struct cudbg_init *pdbg_init, in cudbg_collect_cim_ibq_sge0() argument
1027 return cudbg_read_cim_ibq(pdbg_init, dbg_buff, cudbg_err, 3); in cudbg_collect_cim_ibq_sge0()
1030 int cudbg_collect_cim_ibq_sge1(struct cudbg_init *pdbg_init, in cudbg_collect_cim_ibq_sge1() argument
1034 return cudbg_read_cim_ibq(pdbg_init, dbg_buff, cudbg_err, 4); in cudbg_collect_cim_ibq_sge1()
1037 int cudbg_collect_cim_ibq_ncsi(struct cudbg_init *pdbg_init, in cudbg_collect_cim_ibq_ncsi() argument
1041 return cudbg_read_cim_ibq(pdbg_init, dbg_buff, cudbg_err, 5); in cudbg_collect_cim_ibq_ncsi()
1055 static int cudbg_read_cim_obq(struct cudbg_init *pdbg_init, in cudbg_read_cim_obq() argument
1059 struct adapter *padap = pdbg_init->adap; in cudbg_read_cim_obq()
1066 rc = cudbg_get_buff(pdbg_init, dbg_buff, qsize, &temp_buff); in cudbg_read_cim_obq()
1080 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_read_cim_obq()
1083 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_read_cim_obq()
1086 int cudbg_collect_cim_obq_ulp0(struct cudbg_init *pdbg_init, in cudbg_collect_cim_obq_ulp0() argument
1090 return cudbg_read_cim_obq(pdbg_init, dbg_buff, cudbg_err, 0); in cudbg_collect_cim_obq_ulp0()
1093 int cudbg_collect_cim_obq_ulp1(struct cudbg_init *pdbg_init, in cudbg_collect_cim_obq_ulp1() argument
1097 return cudbg_read_cim_obq(pdbg_init, dbg_buff, cudbg_err, 1); in cudbg_collect_cim_obq_ulp1()
1100 int cudbg_collect_cim_obq_ulp2(struct cudbg_init *pdbg_init, in cudbg_collect_cim_obq_ulp2() argument
1104 return cudbg_read_cim_obq(pdbg_init, dbg_buff, cudbg_err, 2); in cudbg_collect_cim_obq_ulp2()
1107 int cudbg_collect_cim_obq_ulp3(struct cudbg_init *pdbg_init, in cudbg_collect_cim_obq_ulp3() argument
1111 return cudbg_read_cim_obq(pdbg_init, dbg_buff, cudbg_err, 3); in cudbg_collect_cim_obq_ulp3()
1114 int cudbg_collect_cim_obq_sge(struct cudbg_init *pdbg_init, in cudbg_collect_cim_obq_sge() argument
1118 return cudbg_read_cim_obq(pdbg_init, dbg_buff, cudbg_err, 4); in cudbg_collect_cim_obq_sge()
1121 int cudbg_collect_cim_obq_ncsi(struct cudbg_init *pdbg_init, in cudbg_collect_cim_obq_ncsi() argument
1125 return cudbg_read_cim_obq(pdbg_init, dbg_buff, cudbg_err, 5); in cudbg_collect_cim_obq_ncsi()
1128 int cudbg_collect_obq_sge_rx_q0(struct cudbg_init *pdbg_init, in cudbg_collect_obq_sge_rx_q0() argument
1132 return cudbg_read_cim_obq(pdbg_init, dbg_buff, cudbg_err, 6); in cudbg_collect_obq_sge_rx_q0()
1135 int cudbg_collect_obq_sge_rx_q1(struct cudbg_init *pdbg_init, in cudbg_collect_obq_sge_rx_q1() argument
1139 return cudbg_read_cim_obq(pdbg_init, dbg_buff, cudbg_err, 7); in cudbg_collect_obq_sge_rx_q1()
1283 static int cudbg_memory_read(struct cudbg_init *pdbg_init, int win, in cudbg_memory_read() argument
1287 struct adapter *adap = pdbg_init->adap; in cudbg_memory_read()
1365 static int cudbg_read_fw_mem(struct cudbg_init *pdbg_init, in cudbg_read_fw_mem() argument
1373 struct adapter *padap = pdbg_init->adap; in cudbg_read_fw_mem()
1410 rc = cudbg_get_buff(pdbg_init, dbg_buff, bytes, &temp_buff); in cudbg_read_fw_mem()
1422 rc = cudbg_memory_read(pdbg_init, MEMWIN_NIC, mem_type, in cudbg_read_fw_mem()
1427 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_read_fw_mem()
1434 rc = cudbg_write_and_release_buff(pdbg_init, &temp_buff, in cudbg_read_fw_mem()
1437 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_read_fw_mem()
1444 static void cudbg_t4_fwcache(struct cudbg_init *pdbg_init, in cudbg_t4_fwcache() argument
1447 struct adapter *padap = pdbg_init->adap; in cudbg_t4_fwcache()
1450 if (is_fw_attached(pdbg_init)) { in cudbg_t4_fwcache()
1458 static int cudbg_mem_region_size(struct cudbg_init *pdbg_init, in cudbg_mem_region_size() argument
1462 struct adapter *padap = pdbg_init->adap; in cudbg_mem_region_size()
1474 cudbg_t4_fwcache(pdbg_init, cudbg_err); in cudbg_mem_region_size()
1488 static int cudbg_collect_mem_region(struct cudbg_init *pdbg_init, in cudbg_collect_mem_region() argument
1496 rc = cudbg_mem_region_size(pdbg_init, cudbg_err, mem_type, &size); in cudbg_collect_mem_region()
1500 return cudbg_read_fw_mem(pdbg_init, dbg_buff, mem_type, size, in cudbg_collect_mem_region()
1504 int cudbg_collect_edc0_meminfo(struct cudbg_init *pdbg_init, in cudbg_collect_edc0_meminfo() argument
1508 return cudbg_collect_mem_region(pdbg_init, dbg_buff, cudbg_err, in cudbg_collect_edc0_meminfo()
1512 int cudbg_collect_edc1_meminfo(struct cudbg_init *pdbg_init, in cudbg_collect_edc1_meminfo() argument
1516 return cudbg_collect_mem_region(pdbg_init, dbg_buff, cudbg_err, in cudbg_collect_edc1_meminfo()
1520 int cudbg_collect_mc0_meminfo(struct cudbg_init *pdbg_init, in cudbg_collect_mc0_meminfo() argument
1524 return cudbg_collect_mem_region(pdbg_init, dbg_buff, cudbg_err, in cudbg_collect_mc0_meminfo()
1528 int cudbg_collect_mc1_meminfo(struct cudbg_init *pdbg_init, in cudbg_collect_mc1_meminfo() argument
1532 return cudbg_collect_mem_region(pdbg_init, dbg_buff, cudbg_err, in cudbg_collect_mc1_meminfo()
1536 int cudbg_collect_hma_meminfo(struct cudbg_init *pdbg_init, in cudbg_collect_hma_meminfo() argument
1540 return cudbg_collect_mem_region(pdbg_init, dbg_buff, cudbg_err, in cudbg_collect_hma_meminfo()
1544 int cudbg_collect_rss(struct cudbg_init *pdbg_init, in cudbg_collect_rss() argument
1548 struct adapter *padap = pdbg_init->adap; in cudbg_collect_rss()
1553 rc = cudbg_get_buff(pdbg_init, dbg_buff, nentries * sizeof(u16), in cudbg_collect_rss()
1561 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_rss()
1564 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_rss()
1567 int cudbg_collect_rss_vf_config(struct cudbg_init *pdbg_init, in cudbg_collect_rss_vf_config() argument
1571 struct adapter *padap = pdbg_init->adap; in cudbg_collect_rss_vf_config()
1577 rc = cudbg_get_buff(pdbg_init, dbg_buff, in cudbg_collect_rss_vf_config()
1587 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_rss_vf_config()
1590 int cudbg_collect_path_mtu(struct cudbg_init *pdbg_init, in cudbg_collect_path_mtu() argument
1594 struct adapter *padap = pdbg_init->adap; in cudbg_collect_path_mtu()
1598 rc = cudbg_get_buff(pdbg_init, dbg_buff, NMTUS * sizeof(u16), in cudbg_collect_path_mtu()
1604 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_path_mtu()
1607 int cudbg_collect_pm_stats(struct cudbg_init *pdbg_init, in cudbg_collect_pm_stats() argument
1611 struct adapter *padap = pdbg_init->adap; in cudbg_collect_pm_stats()
1616 rc = cudbg_get_buff(pdbg_init, dbg_buff, sizeof(struct cudbg_pm_stats), in cudbg_collect_pm_stats()
1624 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_pm_stats()
1627 int cudbg_collect_hw_sched(struct cudbg_init *pdbg_init, in cudbg_collect_hw_sched() argument
1631 struct adapter *padap = pdbg_init->adap; in cudbg_collect_hw_sched()
1639 rc = cudbg_get_buff(pdbg_init, dbg_buff, sizeof(struct cudbg_hw_sched), in cudbg_collect_hw_sched()
1652 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_hw_sched()
1655 int cudbg_collect_tp_indirect(struct cudbg_init *pdbg_init, in cudbg_collect_tp_indirect() argument
1659 struct adapter *padap = pdbg_init->adap; in cudbg_collect_tp_indirect()
1676 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_tp_indirect()
1765 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_tp_indirect()
1789 int cudbg_collect_sge_indirect(struct cudbg_init *pdbg_init, in cudbg_collect_sge_indirect() argument
1793 struct adapter *padap = pdbg_init->adap; in cudbg_collect_sge_indirect()
1815 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_sge_indirect()
1859 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_sge_indirect()
1862 int cudbg_collect_ulprx_la(struct cudbg_init *pdbg_init, in cudbg_collect_ulprx_la() argument
1866 struct adapter *padap = pdbg_init->adap; in cudbg_collect_ulprx_la()
1871 rc = cudbg_get_buff(pdbg_init, dbg_buff, sizeof(struct cudbg_ulprx_la), in cudbg_collect_ulprx_la()
1879 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_ulprx_la()
1882 int cudbg_collect_tp_la(struct cudbg_init *pdbg_init, in cudbg_collect_tp_la() argument
1886 struct adapter *padap = pdbg_init->adap; in cudbg_collect_tp_la()
1892 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_tp_la()
1899 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_tp_la()
1902 int cudbg_collect_meminfo(struct cudbg_init *pdbg_init, in cudbg_collect_meminfo() argument
1906 struct adapter *padap = pdbg_init->adap; in cudbg_collect_meminfo()
1912 rc = cudbg_get_buff(pdbg_init, dbg_buff, in cudbg_collect_meminfo()
1929 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_meminfo()
1933 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_meminfo()
1936 int cudbg_collect_cim_pif_la(struct cudbg_init *pdbg_init, in cudbg_collect_cim_pif_la() argument
1941 struct adapter *padap = pdbg_init->adap; in cudbg_collect_cim_pif_la()
1947 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_cim_pif_la()
1956 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_cim_pif_la()
1959 int cudbg_collect_clk_info(struct cudbg_init *pdbg_init, in cudbg_collect_clk_info() argument
1963 struct adapter *padap = pdbg_init->adap; in cudbg_collect_clk_info()
1972 rc = cudbg_get_buff(pdbg_init, dbg_buff, sizeof(struct cudbg_clk_info), in cudbg_collect_clk_info()
2004 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_clk_info()
2007 int cudbg_collect_pcie_indirect(struct cudbg_init *pdbg_init, in cudbg_collect_pcie_indirect() argument
2011 struct adapter *padap = pdbg_init->adap; in cudbg_collect_pcie_indirect()
2019 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_pcie_indirect()
2060 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_pcie_indirect()
2063 int cudbg_collect_pm_indirect(struct cudbg_init *pdbg_init, in cudbg_collect_pm_indirect() argument
2067 struct adapter *padap = pdbg_init->adap; in cudbg_collect_pm_indirect()
2075 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_pm_indirect()
2116 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_pm_indirect()
2119 int cudbg_collect_tid(struct cudbg_init *pdbg_init, in cudbg_collect_tid() argument
2123 struct adapter *padap = pdbg_init->adap; in cudbg_collect_tid()
2130 rc = cudbg_get_buff(pdbg_init, dbg_buff, in cudbg_collect_tid()
2146 if (!is_fw_attached(pdbg_init)) in cudbg_collect_tid()
2160 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_tid()
2179 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_tid()
2208 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_tid()
2211 int cudbg_collect_pcie_config(struct cudbg_init *pdbg_init, in cudbg_collect_pcie_config() argument
2215 struct adapter *padap = pdbg_init->adap; in cudbg_collect_pcie_config()
2222 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_pcie_config()
2234 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_pcie_config()
2342 static void cudbg_read_sge_ctxt(struct cudbg_init *pdbg_init, u32 cid, in cudbg_read_sge_ctxt() argument
2345 struct adapter *padap = pdbg_init->adap; in cudbg_read_sge_ctxt()
2355 if (is_fw_attached(pdbg_init)) in cudbg_read_sge_ctxt()
2361 static void cudbg_get_sge_ctxt_fw(struct cudbg_init *pdbg_init, u32 max_qid, in cudbg_get_sge_ctxt_fw() argument
2370 cudbg_read_sge_ctxt(pdbg_init, j, ctxt_type, buff->data); in cudbg_get_sge_ctxt_fw()
2379 cudbg_read_sge_ctxt(pdbg_init, j, CTXT_CNM, buff->data); in cudbg_get_sge_ctxt_fw()
2389 int cudbg_collect_dump_context(struct cudbg_init *pdbg_init, in cudbg_collect_dump_context() argument
2394 struct adapter *padap = pdbg_init->adap; in cudbg_collect_dump_context()
2413 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_dump_context()
2427 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_dump_context()
2440 cudbg_get_sge_ctxt_fw(pdbg_init, max_ctx_qid, i, in cudbg_collect_dump_context()
2451 if (is_fw_attached(pdbg_init)) { in cudbg_collect_dump_context()
2459 if (rc || !is_fw_attached(pdbg_init)) { in cudbg_collect_dump_context()
2461 cudbg_get_sge_ctxt_fw(pdbg_init, max_ctx_qid, i, in cudbg_collect_dump_context()
2498 cudbg_get_sge_ctxt_fw(pdbg_init, max_ctx_qid, CTXT_FLM, &buff); in cudbg_collect_dump_context()
2500 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_dump_context()
2538 static int cudbg_collect_tcam_index(struct cudbg_init *pdbg_init, in cudbg_collect_tcam_index() argument
2541 struct adapter *padap = pdbg_init->adap; in cudbg_collect_tcam_index()
2629 if (is_fw_attached(pdbg_init)) in cudbg_collect_tcam_index()
2633 if (rc || !is_fw_attached(pdbg_init)) { in cudbg_collect_tcam_index()
2660 int cudbg_collect_mps_tcam(struct cudbg_init *pdbg_init, in cudbg_collect_mps_tcam() argument
2664 struct adapter *padap = pdbg_init->adap; in cudbg_collect_mps_tcam()
2672 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_mps_tcam()
2678 rc = cudbg_collect_tcam_index(pdbg_init, tcam, i); in cudbg_collect_mps_tcam()
2681 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_mps_tcam()
2691 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_mps_tcam()
2694 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_mps_tcam()
2697 int cudbg_collect_vpd_data(struct cudbg_init *pdbg_init, in cudbg_collect_vpd_data() argument
2701 struct adapter *padap = pdbg_init->adap; in cudbg_collect_vpd_data()
2727 rc = cudbg_get_buff(pdbg_init, dbg_buff, sizeof(struct cudbg_vpd_data), in cudbg_collect_vpd_data()
2743 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_vpd_data()
2746 static int cudbg_read_tid(struct cudbg_init *pdbg_init, u32 tid, in cudbg_read_tid() argument
2749 struct adapter *padap = pdbg_init->adap; in cudbg_read_tid()
2889 int cudbg_collect_le_tcam(struct cudbg_init *pdbg_init, in cudbg_collect_le_tcam() argument
2893 struct adapter *padap = pdbg_init->adap; in cudbg_collect_le_tcam()
2905 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_le_tcam()
2914 rc = cudbg_read_tid(pdbg_init, i, tid_data); in cudbg_collect_le_tcam()
2941 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_le_tcam()
2944 int cudbg_collect_cctrl(struct cudbg_init *pdbg_init, in cudbg_collect_cctrl() argument
2948 struct adapter *padap = pdbg_init->adap; in cudbg_collect_cctrl()
2954 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_cctrl()
2959 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_cctrl()
2962 int cudbg_collect_ma_indirect(struct cudbg_init *pdbg_init, in cudbg_collect_ma_indirect() argument
2966 struct adapter *padap = pdbg_init->adap; in cudbg_collect_ma_indirect()
2977 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_ma_indirect()
3013 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_ma_indirect()
3016 int cudbg_collect_ulptx_la(struct cudbg_init *pdbg_init, in cudbg_collect_ulptx_la() argument
3020 struct adapter *padap = pdbg_init->adap; in cudbg_collect_ulptx_la()
3027 rc = cudbg_get_buff(pdbg_init, dbg_buff, in cudbg_collect_ulptx_la()
3075 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_ulptx_la()
3078 int cudbg_collect_up_cim_indirect(struct cudbg_init *pdbg_init, in cudbg_collect_up_cim_indirect() argument
3082 struct adapter *padap = pdbg_init->adap; in cudbg_collect_up_cim_indirect()
3100 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_up_cim_indirect()
3150 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_up_cim_indirect()
3156 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_up_cim_indirect()
3159 int cudbg_collect_pbt_tables(struct cudbg_init *pdbg_init, in cudbg_collect_pbt_tables() argument
3163 struct adapter *padap = pdbg_init->adap; in cudbg_collect_pbt_tables()
3169 rc = cudbg_get_buff(pdbg_init, dbg_buff, in cudbg_collect_pbt_tables()
3183 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_pbt_tables()
3196 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_pbt_tables()
3208 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_pbt_tables()
3220 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_pbt_tables()
3224 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_pbt_tables()
3227 int cudbg_collect_mbox_log(struct cudbg_init *pdbg_init, in cudbg_collect_mbox_log() argument
3231 struct adapter *padap = pdbg_init->adap; in cudbg_collect_mbox_log()
3245 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_mbox_log()
3268 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_mbox_log()
3271 int cudbg_collect_hma_indirect(struct cudbg_init *pdbg_init, in cudbg_collect_hma_indirect() argument
3275 struct adapter *padap = pdbg_init->adap; in cudbg_collect_hma_indirect()
3286 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_hma_indirect()
3304 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_hma_indirect()
3361 int cudbg_collect_qdesc(struct cudbg_init *pdbg_init, in cudbg_collect_qdesc() argument
3366 struct adapter *padap = pdbg_init->adap; in cudbg_collect_qdesc()
3534 rc = cudbg_get_buff(pdbg_init, dbg_buff, chunk_size, in cudbg_collect_qdesc()
3544 rc = cudbg_write_and_release_buff(pdbg_init, &temp_buff, in cudbg_collect_qdesc()
3547 cudbg_put_buff(pdbg_init, &temp_buff); in cudbg_collect_qdesc()
3564 int cudbg_collect_flash(struct cudbg_init *pdbg_init, in cudbg_collect_flash() argument
3568 struct adapter *padap = pdbg_init->adap; in cudbg_collect_flash()
3579 rc = cudbg_get_buff(pdbg_init, dbg_buff, n, &temp_buff); in cudbg_collect_flash()
3589 rc = cudbg_write_and_release_buff(pdbg_init, &temp_buff, in cudbg_collect_flash()