Lines Matching refs:dbg_buff

427 				struct cudbg_buffer *dbg_buff)  in cudbg_do_compression()  argument
431 u32 offset = dbg_buff->offset; in cudbg_do_compression()
446 rc = cudbg_compress_buff(pdbg_init, &temp_in_buff, dbg_buff); in cudbg_do_compression()
453 pin_buff->size = dbg_buff->offset - offset; in cudbg_do_compression()
459 struct cudbg_buffer *dbg_buff) in cudbg_write_and_release_buff() argument
464 cudbg_update_buff(pin_buff, dbg_buff); in cudbg_write_and_release_buff()
466 rc = cudbg_do_compression(pdbg_init, pin_buff, dbg_buff); in cudbg_write_and_release_buff()
489 void cudbg_align_debug_buffer(struct cudbg_buffer *dbg_buff, in cudbg_align_debug_buffer() argument
495 remain = (dbg_buff->offset - entity_hdr->start_offset) % 4; in cudbg_align_debug_buffer()
498 memcpy(((u8 *)dbg_buff->data) + dbg_buff->offset, &zero_buf, in cudbg_align_debug_buffer()
500 dbg_buff->offset += padding; in cudbg_align_debug_buffer()
503 entity_hdr->size = dbg_buff->offset - entity_hdr->start_offset; in cudbg_align_debug_buffer()
815 struct cudbg_buffer *dbg_buff, in cudbg_collect_reg_dump() argument
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()
836 struct cudbg_buffer *dbg_buff, in cudbg_collect_fw_devlog() argument
851 rc = cudbg_get_buff(pdbg_init, dbg_buff, dparams->size, &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()
874 struct cudbg_buffer *dbg_buff, in cudbg_collect_cim_la() argument
891 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &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()
915 struct cudbg_buffer *dbg_buff, in cudbg_collect_cim_ma_la() argument
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()
935 struct cudbg_buffer *dbg_buff, in cudbg_collect_cim_qcfg() argument
943 rc = cudbg_get_buff(pdbg_init, dbg_buff, sizeof(struct cudbg_cim_qcfg), in cudbg_collect_cim_qcfg()
969 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_cim_qcfg()
973 struct cudbg_buffer *dbg_buff, in cudbg_read_cim_ibq() argument
983 rc = cudbg_get_buff(pdbg_init, dbg_buff, qsize, &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()
1004 struct cudbg_buffer *dbg_buff, 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()
1011 struct cudbg_buffer *dbg_buff, 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()
1018 struct cudbg_buffer *dbg_buff, 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()
1025 struct cudbg_buffer *dbg_buff, 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()
1032 struct cudbg_buffer *dbg_buff, 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()
1039 struct cudbg_buffer *dbg_buff, 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()
1057 struct cudbg_buffer *dbg_buff, in cudbg_read_cim_obq() argument
1067 rc = cudbg_get_buff(pdbg_init, dbg_buff, qsize, &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()
1088 struct cudbg_buffer *dbg_buff, 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()
1095 struct cudbg_buffer *dbg_buff, 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()
1102 struct cudbg_buffer *dbg_buff, 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()
1109 struct cudbg_buffer *dbg_buff, 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()
1116 struct cudbg_buffer *dbg_buff, 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()
1123 struct cudbg_buffer *dbg_buff, 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()
1130 struct cudbg_buffer *dbg_buff, 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()
1137 struct cudbg_buffer *dbg_buff, 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()
1367 struct cudbg_buffer *dbg_buff, u8 mem_type, in cudbg_read_fw_mem() argument
1411 rc = cudbg_get_buff(pdbg_init, dbg_buff, bytes, &temp_buff); in cudbg_read_fw_mem()
1436 dbg_buff); in cudbg_read_fw_mem()
1490 struct cudbg_buffer *dbg_buff, in cudbg_collect_mem_region() argument
1501 return cudbg_read_fw_mem(pdbg_init, dbg_buff, mem_type, size, in cudbg_collect_mem_region()
1506 struct cudbg_buffer *dbg_buff, in cudbg_collect_edc0_meminfo() argument
1509 return cudbg_collect_mem_region(pdbg_init, dbg_buff, cudbg_err, in cudbg_collect_edc0_meminfo()
1514 struct cudbg_buffer *dbg_buff, in cudbg_collect_edc1_meminfo() argument
1517 return cudbg_collect_mem_region(pdbg_init, dbg_buff, cudbg_err, in cudbg_collect_edc1_meminfo()
1522 struct cudbg_buffer *dbg_buff, in cudbg_collect_mc0_meminfo() argument
1525 return cudbg_collect_mem_region(pdbg_init, dbg_buff, cudbg_err, in cudbg_collect_mc0_meminfo()
1530 struct cudbg_buffer *dbg_buff, in cudbg_collect_mc1_meminfo() argument
1533 return cudbg_collect_mem_region(pdbg_init, dbg_buff, cudbg_err, in cudbg_collect_mc1_meminfo()
1538 struct cudbg_buffer *dbg_buff, in cudbg_collect_hma_meminfo() argument
1541 return cudbg_collect_mem_region(pdbg_init, dbg_buff, cudbg_err, in cudbg_collect_hma_meminfo()
1546 struct cudbg_buffer *dbg_buff, in cudbg_collect_rss() argument
1554 rc = cudbg_get_buff(pdbg_init, dbg_buff, nentries * sizeof(u16), in cudbg_collect_rss()
1565 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_rss()
1569 struct cudbg_buffer *dbg_buff, in cudbg_collect_rss_vf_config() argument
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()
1592 struct cudbg_buffer *dbg_buff, in cudbg_collect_path_mtu() argument
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()
1609 struct cudbg_buffer *dbg_buff, in cudbg_collect_pm_stats() argument
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()
1629 struct cudbg_buffer *dbg_buff, in cudbg_collect_hw_sched() argument
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()
1657 struct cudbg_buffer *dbg_buff, in cudbg_collect_tp_indirect() argument
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()
1791 struct cudbg_buffer *dbg_buff, in cudbg_collect_sge_indirect() argument
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()
1864 struct cudbg_buffer *dbg_buff, in cudbg_collect_ulprx_la() argument
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()
1884 struct cudbg_buffer *dbg_buff, in cudbg_collect_tp_la() argument
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()
1904 struct cudbg_buffer *dbg_buff, in cudbg_collect_meminfo() argument
1913 rc = cudbg_get_buff(pdbg_init, dbg_buff, in cudbg_collect_meminfo()
1934 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_meminfo()
1938 struct cudbg_buffer *dbg_buff, in cudbg_collect_cim_pif_la() argument
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()
1961 struct cudbg_buffer *dbg_buff, in cudbg_collect_clk_info() argument
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()
2009 struct cudbg_buffer *dbg_buff, in cudbg_collect_pcie_indirect() argument
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()
2065 struct cudbg_buffer *dbg_buff, in cudbg_collect_pm_indirect() argument
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()
2121 struct cudbg_buffer *dbg_buff, in cudbg_collect_tid() argument
2131 rc = cudbg_get_buff(pdbg_init, dbg_buff, in cudbg_collect_tid()
2209 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_tid()
2213 struct cudbg_buffer *dbg_buff, in cudbg_collect_pcie_config() argument
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()
2391 struct cudbg_buffer *dbg_buff, in cudbg_collect_dump_context() argument
2414 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_dump_context()
2501 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_dump_context()
2662 struct cudbg_buffer *dbg_buff, in cudbg_collect_mps_tcam() argument
2673 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &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()
2699 struct cudbg_buffer *dbg_buff, in cudbg_collect_vpd_data() argument
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()
2891 struct cudbg_buffer *dbg_buff, in cudbg_collect_le_tcam() argument
2906 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &temp_buff); in cudbg_collect_le_tcam()
2942 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_le_tcam()
2946 struct cudbg_buffer *dbg_buff, in cudbg_collect_cctrl() argument
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()
2964 struct cudbg_buffer *dbg_buff, in cudbg_collect_ma_indirect() argument
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()
3018 struct cudbg_buffer *dbg_buff, in cudbg_collect_ulptx_la() argument
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()
3080 struct cudbg_buffer *dbg_buff, in cudbg_collect_up_cim_indirect() argument
3101 rc = cudbg_get_buff(pdbg_init, dbg_buff, size, &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()
3161 struct cudbg_buffer *dbg_buff, in cudbg_collect_pbt_tables() argument
3170 rc = cudbg_get_buff(pdbg_init, dbg_buff, in cudbg_collect_pbt_tables()
3225 return cudbg_write_and_release_buff(pdbg_init, &temp_buff, dbg_buff); in cudbg_collect_pbt_tables()
3229 struct cudbg_buffer *dbg_buff, in cudbg_collect_mbox_log() argument
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()
3273 struct cudbg_buffer *dbg_buff, in cudbg_collect_hma_indirect() argument
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()
3363 struct cudbg_buffer *dbg_buff, in cudbg_collect_qdesc() argument
3540 rc = cudbg_get_buff(pdbg_init, dbg_buff, chunk_size, in cudbg_collect_qdesc()
3551 dbg_buff); in cudbg_collect_qdesc()
3575 struct cudbg_buffer *dbg_buff, in cudbg_collect_flash() argument
3589 rc = cudbg_get_buff(pdbg_init, dbg_buff, n, &temp_buff); in cudbg_collect_flash()
3600 dbg_buff); in cudbg_collect_flash()