Lines Matching refs:dbg_buff

426 				struct cudbg_buffer *dbg_buff)  in cudbg_do_compression()  argument
430 u32 offset = dbg_buff->offset; in cudbg_do_compression()
445 rc = cudbg_compress_buff(pdbg_init, &temp_in_buff, dbg_buff); in cudbg_do_compression()
452 pin_buff->size = dbg_buff->offset - offset; in cudbg_do_compression()
458 struct cudbg_buffer *dbg_buff) in cudbg_write_and_release_buff() argument
463 cudbg_update_buff(pin_buff, dbg_buff); in cudbg_write_and_release_buff()
465 rc = cudbg_do_compression(pdbg_init, pin_buff, dbg_buff); in cudbg_write_and_release_buff()
488 void cudbg_align_debug_buffer(struct cudbg_buffer *dbg_buff, in cudbg_align_debug_buffer() argument
494 remain = (dbg_buff->offset - entity_hdr->start_offset) % 4; in cudbg_align_debug_buffer()
497 memcpy(((u8 *)dbg_buff->data) + dbg_buff->offset, &zero_buf, in cudbg_align_debug_buffer()
499 dbg_buff->offset += padding; in cudbg_align_debug_buffer()
502 entity_hdr->size = dbg_buff->offset - entity_hdr->start_offset; in cudbg_align_debug_buffer()
814 struct cudbg_buffer *dbg_buff, in cudbg_collect_reg_dump() argument
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()
835 struct cudbg_buffer *dbg_buff, in cudbg_collect_fw_devlog() argument
850 rc = cudbg_get_buff(pdbg_init, dbg_buff, dparams->size, &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()
873 struct cudbg_buffer *dbg_buff, in cudbg_collect_cim_la() argument
890 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &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()
914 struct cudbg_buffer *dbg_buff, in cudbg_collect_cim_ma_la() argument
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()
934 struct cudbg_buffer *dbg_buff, in cudbg_collect_cim_qcfg() argument
942 rc = cudbg_get_buff(pdbg_init, dbg_buff, sizeof(struct cudbg_cim_qcfg), in cudbg_collect_cim_qcfg()
968 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_cim_qcfg()
972 struct cudbg_buffer *dbg_buff, in cudbg_read_cim_ibq() argument
982 rc = cudbg_get_buff(pdbg_init, dbg_buff, qsize, &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()
1003 struct cudbg_buffer *dbg_buff, 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()
1010 struct cudbg_buffer *dbg_buff, 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()
1017 struct cudbg_buffer *dbg_buff, 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()
1024 struct cudbg_buffer *dbg_buff, 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()
1031 struct cudbg_buffer *dbg_buff, 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()
1038 struct cudbg_buffer *dbg_buff, 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()
1056 struct cudbg_buffer *dbg_buff, in cudbg_read_cim_obq() argument
1066 rc = cudbg_get_buff(pdbg_init, dbg_buff, qsize, &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()
1087 struct cudbg_buffer *dbg_buff, 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()
1094 struct cudbg_buffer *dbg_buff, 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()
1101 struct cudbg_buffer *dbg_buff, 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()
1108 struct cudbg_buffer *dbg_buff, 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()
1115 struct cudbg_buffer *dbg_buff, 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()
1122 struct cudbg_buffer *dbg_buff, 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()
1129 struct cudbg_buffer *dbg_buff, 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()
1136 struct cudbg_buffer *dbg_buff, 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()
1366 struct cudbg_buffer *dbg_buff, u8 mem_type, in cudbg_read_fw_mem() argument
1410 rc = cudbg_get_buff(pdbg_init, dbg_buff, bytes, &temp_buff); in cudbg_read_fw_mem()
1435 dbg_buff); in cudbg_read_fw_mem()
1489 struct cudbg_buffer *dbg_buff, in cudbg_collect_mem_region() argument
1500 return cudbg_read_fw_mem(pdbg_init, dbg_buff, mem_type, size, in cudbg_collect_mem_region()
1505 struct cudbg_buffer *dbg_buff, in cudbg_collect_edc0_meminfo() argument
1508 return cudbg_collect_mem_region(pdbg_init, dbg_buff, cudbg_err, in cudbg_collect_edc0_meminfo()
1513 struct cudbg_buffer *dbg_buff, in cudbg_collect_edc1_meminfo() argument
1516 return cudbg_collect_mem_region(pdbg_init, dbg_buff, cudbg_err, in cudbg_collect_edc1_meminfo()
1521 struct cudbg_buffer *dbg_buff, in cudbg_collect_mc0_meminfo() argument
1524 return cudbg_collect_mem_region(pdbg_init, dbg_buff, cudbg_err, in cudbg_collect_mc0_meminfo()
1529 struct cudbg_buffer *dbg_buff, in cudbg_collect_mc1_meminfo() argument
1532 return cudbg_collect_mem_region(pdbg_init, dbg_buff, cudbg_err, in cudbg_collect_mc1_meminfo()
1537 struct cudbg_buffer *dbg_buff, in cudbg_collect_hma_meminfo() argument
1540 return cudbg_collect_mem_region(pdbg_init, dbg_buff, cudbg_err, in cudbg_collect_hma_meminfo()
1545 struct cudbg_buffer *dbg_buff, in cudbg_collect_rss() argument
1553 rc = cudbg_get_buff(pdbg_init, dbg_buff, nentries * sizeof(u16), in cudbg_collect_rss()
1564 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_rss()
1568 struct cudbg_buffer *dbg_buff, in cudbg_collect_rss_vf_config() argument
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()
1591 struct cudbg_buffer *dbg_buff, in cudbg_collect_path_mtu() argument
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()
1608 struct cudbg_buffer *dbg_buff, in cudbg_collect_pm_stats() argument
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()
1628 struct cudbg_buffer *dbg_buff, in cudbg_collect_hw_sched() argument
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()
1656 struct cudbg_buffer *dbg_buff, in cudbg_collect_tp_indirect() argument
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()
1790 struct cudbg_buffer *dbg_buff, in cudbg_collect_sge_indirect() argument
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()
1863 struct cudbg_buffer *dbg_buff, in cudbg_collect_ulprx_la() argument
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()
1883 struct cudbg_buffer *dbg_buff, in cudbg_collect_tp_la() argument
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()
1903 struct cudbg_buffer *dbg_buff, in cudbg_collect_meminfo() argument
1912 rc = cudbg_get_buff(pdbg_init, dbg_buff, in cudbg_collect_meminfo()
1933 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_meminfo()
1937 struct cudbg_buffer *dbg_buff, in cudbg_collect_cim_pif_la() argument
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()
1960 struct cudbg_buffer *dbg_buff, in cudbg_collect_clk_info() argument
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()
2008 struct cudbg_buffer *dbg_buff, in cudbg_collect_pcie_indirect() argument
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()
2064 struct cudbg_buffer *dbg_buff, in cudbg_collect_pm_indirect() argument
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()
2120 struct cudbg_buffer *dbg_buff, in cudbg_collect_tid() argument
2130 rc = cudbg_get_buff(pdbg_init, dbg_buff, in cudbg_collect_tid()
2208 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_tid()
2212 struct cudbg_buffer *dbg_buff, in cudbg_collect_pcie_config() argument
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()
2390 struct cudbg_buffer *dbg_buff, in cudbg_collect_dump_context() argument
2413 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_dump_context()
2500 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_dump_context()
2661 struct cudbg_buffer *dbg_buff, in cudbg_collect_mps_tcam() argument
2672 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &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()
2698 struct cudbg_buffer *dbg_buff, in cudbg_collect_vpd_data() argument
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()
2890 struct cudbg_buffer *dbg_buff, in cudbg_collect_le_tcam() argument
2905 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_le_tcam()
2941 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_le_tcam()
2945 struct cudbg_buffer *dbg_buff, in cudbg_collect_cctrl() argument
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()
2963 struct cudbg_buffer *dbg_buff, in cudbg_collect_ma_indirect() argument
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()
3017 struct cudbg_buffer *dbg_buff, in cudbg_collect_ulptx_la() argument
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()
3079 struct cudbg_buffer *dbg_buff, in cudbg_collect_up_cim_indirect() argument
3100 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &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()
3160 struct cudbg_buffer *dbg_buff, in cudbg_collect_pbt_tables() argument
3169 rc = cudbg_get_buff(pdbg_init, dbg_buff, in cudbg_collect_pbt_tables()
3224 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_pbt_tables()
3228 struct cudbg_buffer *dbg_buff, in cudbg_collect_mbox_log() argument
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()
3272 struct cudbg_buffer *dbg_buff, in cudbg_collect_hma_indirect() argument
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()
3362 struct cudbg_buffer *dbg_buff, in cudbg_collect_qdesc() argument
3534 rc = cudbg_get_buff(pdbg_init, dbg_buff, chunk_size, in cudbg_collect_qdesc()
3545 dbg_buff); in cudbg_collect_qdesc()
3565 struct cudbg_buffer *dbg_buff, in cudbg_collect_flash() argument
3579 rc = cudbg_get_buff(pdbg_init, dbg_buff, n, &temp_buff); in cudbg_collect_flash()
3590 dbg_buff); in cudbg_collect_flash()