Lines Matching refs:dbg_buff

53 static void align_debug_buffer(struct cudbg_buffer *dbg_buff,  in align_debug_buffer()  argument
59 remain = (dbg_buff->offset - entity_hdr->start_offset) % 4; in align_debug_buffer()
62 memcpy(((u8 *) dbg_buff->data) + dbg_buff->offset, &zero_buf, in align_debug_buffer()
64 dbg_buff->offset += padding; in align_debug_buffer()
68 entity_hdr->size = dbg_buff->offset - entity_hdr->start_offset; in align_debug_buffer()
93 struct cudbg_buffer *dbg_buff, in get_next_ext_entity_hdr() argument
101 if (dbg_buff->size - dbg_buff->offset <= in get_next_ext_entity_hdr()
119 if (dbg_buff->size - dbg_buff->offset + *ext_size <= in get_next_ext_entity_hdr()
139 dbg_buff->offset = ext_offset; in get_next_ext_entity_hdr()
144 static int wr_entity_to_flash(void *handle, struct cudbg_buffer *dbg_buff, in wr_entity_to_flash() argument
187 rc = cudbg_write_flash(handle, timestamp, dbg_buff, in wr_entity_to_flash()
205 struct cudbg_buffer dbg_buff; in cudbg_collect() local
221 dbg_buff.data = outbuf; in cudbg_collect()
222 dbg_buff.size = *outbuf_size; in cudbg_collect()
223 dbg_buff.offset = 0; in cudbg_collect()
225 cudbg_hdr = (struct cudbg_hdr *)dbg_buff.data; in cudbg_collect()
260 dbg_buff.size) { in cudbg_collect()
277 dbg_buff.offset = cudbg_hdr->data_len; in cudbg_collect()
279 dbg_buff.offset += cudbg_hdr->hdr_len; /* move 24 bytes*/ in cudbg_collect()
280 dbg_buff.offset += CUDBG_MAX_ENTITY * in cudbg_collect()
284 total_size = dbg_buff.offset; in cudbg_collect()
299 rc = get_entity_hdr(outbuf, i, dbg_buff.size, in cudbg_collect()
305 &dbg_buff, in cudbg_collect()
311 dbg_buff.offset += in cudbg_collect()
316 entity_hdr->start_offset = dbg_buff.offset; in cudbg_collect()
318 remaining_buf_size = dbg_buff.size - dbg_buff.offset; in cudbg_collect()
349 rc = process_entity[i-1](cudbg_init, &dbg_buff, in cudbg_collect()
355 dbg_buff.offset = entity_hdr->start_offset; in cudbg_collect()
357 align_debug_buffer(&dbg_buff, entity_hdr); in cudbg_collect()
390 &dbg_buff, in cudbg_collect()
400 &dbg_buff, in cudbg_collect()
415 dbg_buff.size, &entity_hdr); in cudbg_collect()
420 &dbg_buff, in cudbg_collect()
425 dbg_buff.offset += in cudbg_collect()
445 entity_hdr->start_offset = dbg_buff.offset; in cudbg_collect()
452 &dbg_buff, in cudbg_collect()
456 dbg_buff.offset = entity_hdr->start_offset; in cudbg_collect()
458 align_debug_buffer(&dbg_buff, entity_hdr); in cudbg_collect()
491 &dbg_buff, in cudbg_collect()
499 &dbg_buff, in cudbg_collect()
568 struct cudbg_buffer *dbg_buff, in collect_rss() argument
577 rc = get_scratch_buff(dbg_buff, size, &scratch_buff); in collect_rss()
590 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_rss()
594 rc = compress_buff(&scratch_buff, dbg_buff); in collect_rss()
597 release_scratch_buff(&scratch_buff, dbg_buff); in collect_rss()
603 struct cudbg_buffer *dbg_buff, in collect_sw_state() argument
614 rc = get_scratch_buff(dbg_buff, size, &scratch_buff); in collect_sw_state()
625 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_sw_state()
629 rc = compress_buff(&scratch_buff, dbg_buff); in collect_sw_state()
632 release_scratch_buff(&scratch_buff, dbg_buff); in collect_sw_state()
638 struct cudbg_buffer *dbg_buff, in collect_ddp_stats() argument
649 rc = get_scratch_buff(dbg_buff, size, &scratch_buff); in collect_ddp_stats()
659 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_ddp_stats()
663 rc = compress_buff(&scratch_buff, dbg_buff); in collect_ddp_stats()
666 release_scratch_buff(&scratch_buff, dbg_buff); in collect_ddp_stats()
672 struct cudbg_buffer *dbg_buff, in collect_ulptx_la() argument
683 rc = get_scratch_buff(dbg_buff, size, &scratch_buff); in collect_ulptx_la()
706 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_ulptx_la()
710 rc = compress_buff(&scratch_buff, dbg_buff); in collect_ulptx_la()
713 release_scratch_buff(&scratch_buff, dbg_buff); in collect_ulptx_la()
720 struct cudbg_buffer *dbg_buff, in collect_ulprx_la() argument
731 rc = get_scratch_buff(dbg_buff, size, &scratch_buff); in collect_ulprx_la()
739 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_ulprx_la()
743 rc = compress_buff(&scratch_buff, dbg_buff); in collect_ulprx_la()
746 release_scratch_buff(&scratch_buff, dbg_buff); in collect_ulprx_la()
752 struct cudbg_buffer *dbg_buff, in collect_cpl_stats() argument
763 rc = get_scratch_buff(dbg_buff, size, &scratch_buff); in collect_cpl_stats()
774 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_cpl_stats()
778 rc = compress_buff(&scratch_buff, dbg_buff); in collect_cpl_stats()
781 release_scratch_buff(&scratch_buff, dbg_buff); in collect_cpl_stats()
787 struct cudbg_buffer *dbg_buff, in collect_wc_stats() argument
801 rc = get_scratch_buff(dbg_buff, size, &scratch_buff); in collect_wc_stats()
817 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_wc_stats()
821 rc = compress_buff(&scratch_buff, dbg_buff); in collect_wc_stats()
823 release_scratch_buff(&scratch_buff, dbg_buff); in collect_wc_stats()
1089 struct cudbg_buffer *dbg_buff, in collect_meminfo() argument
1100 rc = get_scratch_buff(dbg_buff, size, &scratch_buff); in collect_meminfo()
1110 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_meminfo()
1114 rc = compress_buff(&scratch_buff, dbg_buff); in collect_meminfo()
1116 release_scratch_buff(&scratch_buff, dbg_buff); in collect_meminfo()
1122 struct cudbg_buffer *dbg_buff, in collect_lb_stats() argument
1140 rc = get_scratch_buff(dbg_buff, size, &scratch_buff); in collect_lb_stats()
1154 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_lb_stats()
1158 rc = compress_buff(&scratch_buff, dbg_buff); in collect_lb_stats()
1160 release_scratch_buff(&scratch_buff, dbg_buff); in collect_lb_stats()
1166 struct cudbg_buffer *dbg_buff, in collect_rdma_stats() argument
1177 rc = get_scratch_buff(dbg_buff, size, &scratch_buff); in collect_rdma_stats()
1187 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_rdma_stats()
1191 rc = compress_buff(&scratch_buff, dbg_buff); in collect_rdma_stats()
1193 release_scratch_buff(&scratch_buff, dbg_buff); in collect_rdma_stats()
1199 struct cudbg_buffer *dbg_buff, in collect_clk_info() argument
1215 rc = get_scratch_buff(dbg_buff, size, &scratch_buff); in collect_clk_info()
1252 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_clk_info()
1257 rc = compress_buff(&scratch_buff, dbg_buff); in collect_clk_info()
1259 release_scratch_buff(&scratch_buff, dbg_buff); in collect_clk_info()
1266 struct cudbg_buffer *dbg_buff, in collect_macstats() argument
1282 rc = get_scratch_buff(dbg_buff, size, &scratch_buff); in collect_macstats()
1297 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_macstats()
1301 rc = compress_buff(&scratch_buff, dbg_buff); in collect_macstats()
1303 release_scratch_buff(&scratch_buff, dbg_buff); in collect_macstats()
1309 struct cudbg_buffer *dbg_buff, in collect_cim_pif_la() argument
1321 rc = get_scratch_buff(dbg_buff, size, &scratch_buff); in collect_cim_pif_la()
1332 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_cim_pif_la()
1336 rc = compress_buff(&scratch_buff, dbg_buff); in collect_cim_pif_la()
1338 release_scratch_buff(&scratch_buff, dbg_buff); in collect_cim_pif_la()
1344 struct cudbg_buffer *dbg_buff, in collect_tp_la() argument
1355 rc = get_scratch_buff(dbg_buff, size, &scratch_buff); in collect_tp_la()
1364 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_tp_la()
1368 rc = compress_buff(&scratch_buff, dbg_buff); in collect_tp_la()
1370 release_scratch_buff(&scratch_buff, dbg_buff); in collect_tp_la()
1376 struct cudbg_buffer *dbg_buff, in collect_fcoe_stats() argument
1387 rc = get_scratch_buff(dbg_buff, size, &scratch_buff); in collect_fcoe_stats()
1402 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_fcoe_stats()
1406 rc = compress_buff(&scratch_buff, dbg_buff); in collect_fcoe_stats()
1408 release_scratch_buff(&scratch_buff, dbg_buff); in collect_fcoe_stats()
1414 struct cudbg_buffer *dbg_buff, in collect_tp_err_stats() argument
1425 rc = get_scratch_buff(dbg_buff, size, &scratch_buff); in collect_tp_err_stats()
1436 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_tp_err_stats()
1440 rc = compress_buff(&scratch_buff, dbg_buff); in collect_tp_err_stats()
1442 release_scratch_buff(&scratch_buff, dbg_buff); in collect_tp_err_stats()
1448 struct cudbg_buffer *dbg_buff, in collect_tcp_stats() argument
1459 rc = get_scratch_buff(dbg_buff, size, &scratch_buff); in collect_tcp_stats()
1469 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_tcp_stats()
1473 rc = compress_buff(&scratch_buff, dbg_buff); in collect_tcp_stats()
1475 release_scratch_buff(&scratch_buff, dbg_buff); in collect_tcp_stats()
1481 struct cudbg_buffer *dbg_buff, in collect_hw_sched() argument
1496 rc = get_scratch_buff(dbg_buff, size, &scratch_buff); in collect_hw_sched()
1511 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_hw_sched()
1515 rc = compress_buff(&scratch_buff, dbg_buff); in collect_hw_sched()
1517 release_scratch_buff(&scratch_buff, dbg_buff); in collect_hw_sched()
1523 struct cudbg_buffer *dbg_buff, in collect_pm_stats() argument
1534 rc = get_scratch_buff(dbg_buff, size, &scratch_buff); in collect_pm_stats()
1543 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_pm_stats()
1547 rc = compress_buff(&scratch_buff, dbg_buff); in collect_pm_stats()
1549 release_scratch_buff(&scratch_buff, dbg_buff); in collect_pm_stats()
1555 struct cudbg_buffer *dbg_buff, in collect_path_mtu() argument
1565 rc = get_scratch_buff(dbg_buff, size, &scratch_buff); in collect_path_mtu()
1571 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_path_mtu()
1575 rc = compress_buff(&scratch_buff, dbg_buff); in collect_path_mtu()
1577 release_scratch_buff(&scratch_buff, dbg_buff); in collect_path_mtu()
1583 struct cudbg_buffer *dbg_buff, in collect_rss_key() argument
1593 rc = get_scratch_buff(dbg_buff, size, &scratch_buff); in collect_rss_key()
1599 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_rss_key()
1603 rc = compress_buff(&scratch_buff, dbg_buff); in collect_rss_key()
1605 release_scratch_buff(&scratch_buff, dbg_buff); in collect_rss_key()
1611 struct cudbg_buffer *dbg_buff, in collect_rss_config() argument
1622 rc = get_scratch_buff(dbg_buff, size, &scratch_buff); in collect_rss_config()
1636 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_rss_config()
1640 rc = compress_buff(&scratch_buff, dbg_buff); in collect_rss_config()
1643 release_scratch_buff(&scratch_buff, dbg_buff); in collect_rss_config()
1649 struct cudbg_buffer *dbg_buff, in collect_rss_vf_config() argument
1661 rc = get_scratch_buff(dbg_buff, size, &scratch_buff); in collect_rss_vf_config()
1672 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_rss_vf_config()
1676 rc = compress_buff(&scratch_buff, dbg_buff); in collect_rss_vf_config()
1679 release_scratch_buff(&scratch_buff, dbg_buff); in collect_rss_vf_config()
1685 struct cudbg_buffer *dbg_buff, in collect_rss_pf_config() argument
1696 rc = get_scratch_buff(dbg_buff, size, &scratch_buff); in collect_rss_pf_config()
1712 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_rss_pf_config()
1716 rc = compress_buff(&scratch_buff, dbg_buff); in collect_rss_pf_config()
1718 release_scratch_buff(&scratch_buff, dbg_buff); in collect_rss_pf_config()
1846 struct cudbg_buffer *dbg_buff, in collect_dump_context() argument
1877 rc = get_scratch_buff(dbg_buff, size, &scratch_buff); in collect_dump_context()
1889 rc = get_scratch_buff(dbg_buff, size, &scratch_buff); in collect_dump_context()
1931 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_dump_context()
1943 rc = compress_buff(&temp_buff, dbg_buff); in collect_dump_context()
1953 release_scratch_buff(&scratch_buff, dbg_buff); in collect_dump_context()
1959 struct cudbg_buffer *dbg_buff, in collect_fw_devlog() argument
1993 rc = get_scratch_buff(dbg_buff, dparams->size, &scratch_buff); in collect_fw_devlog()
2015 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_fw_devlog()
2020 rc = compress_buff(&scratch_buff, dbg_buff); in collect_fw_devlog()
2023 release_scratch_buff(&scratch_buff, dbg_buff); in collect_fw_devlog()
2032 struct cudbg_buffer *dbg_buff, in collect_cim_obq_ulp0() argument
2037 rc = read_cim_obq(pdbg_init, dbg_buff, cudbg_err, qid); in collect_cim_obq_ulp0()
2043 struct cudbg_buffer *dbg_buff, in collect_cim_obq_ulp1() argument
2048 rc = read_cim_obq(pdbg_init, dbg_buff, cudbg_err, qid); in collect_cim_obq_ulp1()
2054 struct cudbg_buffer *dbg_buff, in collect_cim_obq_ulp2() argument
2059 rc = read_cim_obq(pdbg_init, dbg_buff, cudbg_err, qid); in collect_cim_obq_ulp2()
2065 struct cudbg_buffer *dbg_buff, in collect_cim_obq_ulp3() argument
2070 rc = read_cim_obq(pdbg_init, dbg_buff, cudbg_err, qid); in collect_cim_obq_ulp3()
2076 struct cudbg_buffer *dbg_buff, in collect_cim_obq_sge() argument
2081 rc = read_cim_obq(pdbg_init, dbg_buff, cudbg_err, qid); in collect_cim_obq_sge()
2087 struct cudbg_buffer *dbg_buff, in collect_cim_obq_ncsi() argument
2092 rc = read_cim_obq(pdbg_init, dbg_buff, cudbg_err, qid); in collect_cim_obq_ncsi()
2098 struct cudbg_buffer *dbg_buff, in collect_obq_sge_rx_q0() argument
2103 rc = read_cim_obq(pdbg_init, dbg_buff, cudbg_err, qid); in collect_obq_sge_rx_q0()
2109 struct cudbg_buffer *dbg_buff, in collect_obq_sge_rx_q1() argument
2114 rc = read_cim_obq(pdbg_init, dbg_buff, cudbg_err, qid); in collect_obq_sge_rx_q1()
2120 struct cudbg_buffer *dbg_buff, in read_cim_obq() argument
2131 rc = get_scratch_buff(dbg_buff, qsize, &scratch_buff); in read_cim_obq()
2155 rc = write_compression_hdr(&scratch_buff, dbg_buff); in read_cim_obq()
2160 rc = compress_buff(&scratch_buff, dbg_buff); in read_cim_obq()
2166 release_scratch_buff(&scratch_buff, dbg_buff); in read_cim_obq()
2174 struct cudbg_buffer *dbg_buff, in collect_cim_ibq_tp0() argument
2179 rc = read_cim_ibq(pdbg_init, dbg_buff, cudbg_err, qid); in collect_cim_ibq_tp0()
2184 struct cudbg_buffer *dbg_buff, in collect_cim_ibq_tp1() argument
2189 rc = read_cim_ibq(pdbg_init, dbg_buff, cudbg_err, qid); in collect_cim_ibq_tp1()
2194 struct cudbg_buffer *dbg_buff, in collect_cim_ibq_ulp() argument
2199 rc = read_cim_ibq(pdbg_init, dbg_buff, cudbg_err, qid); in collect_cim_ibq_ulp()
2204 struct cudbg_buffer *dbg_buff, in collect_cim_ibq_sge0() argument
2209 rc = read_cim_ibq(pdbg_init, dbg_buff, cudbg_err, qid); in collect_cim_ibq_sge0()
2214 struct cudbg_buffer *dbg_buff, in collect_cim_ibq_sge1() argument
2219 rc = read_cim_ibq(pdbg_init, dbg_buff, cudbg_err, qid); in collect_cim_ibq_sge1()
2224 struct cudbg_buffer *dbg_buff, in collect_cim_ibq_ncsi() argument
2229 rc = read_cim_ibq(pdbg_init, dbg_buff, cudbg_err, qid); in collect_cim_ibq_ncsi()
2234 struct cudbg_buffer *dbg_buff, in read_cim_ibq() argument
2245 rc = get_scratch_buff(dbg_buff, qsize, &scratch_buff); in read_cim_ibq()
2267 rc = write_compression_hdr(&scratch_buff, dbg_buff); in read_cim_ibq()
2271 rc = compress_buff(&scratch_buff, dbg_buff); in read_cim_ibq()
2276 release_scratch_buff(&scratch_buff, dbg_buff); in read_cim_ibq()
2283 struct cudbg_buffer *dbg_buff, in collect_cim_ma_la() argument
2292 rc = get_scratch_buff(dbg_buff, scratch_buff.size, &scratch_buff); in collect_cim_ma_la()
2303 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_cim_ma_la()
2307 rc = compress_buff(&scratch_buff, dbg_buff); in collect_cim_ma_la()
2310 release_scratch_buff(&scratch_buff, dbg_buff); in collect_cim_ma_la()
2316 struct cudbg_buffer *dbg_buff, in collect_cim_la() argument
2337 rc = get_scratch_buff(dbg_buff, size, &scratch_buff); in collect_cim_la()
2365 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_cim_la()
2369 rc = compress_buff(&scratch_buff, dbg_buff); in collect_cim_la()
2374 release_scratch_buff(&scratch_buff, dbg_buff); in collect_cim_la()
2380 struct cudbg_buffer *dbg_buff, in collect_cim_qcfg() argument
2390 rc = get_scratch_buff(dbg_buff, sizeof(struct struct_cim_qcfg), in collect_cim_qcfg()
2431 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_cim_qcfg()
2435 rc = compress_buff(&scratch_buff, dbg_buff); in collect_cim_qcfg()
2440 release_scratch_buff(&scratch_buff, dbg_buff); in collect_cim_qcfg()
2546 struct cudbg_buffer *dbg_buff, u8 mem_type, in read_fw_mem() argument
2605 rc = write_compression_hdr(&scratch_buff, dbg_buff); in read_fw_mem()
2611 rc = get_scratch_buff(dbg_buff, bytes, &scratch_buff); in read_fw_mem()
2646 rc = compress_buff(&scratch_buff, dbg_buff); in read_fw_mem()
2652 release_scratch_buff(&scratch_buff, dbg_buff); in read_fw_mem()
2657 release_scratch_buff(&scratch_buff, dbg_buff); in read_fw_mem()
2742 struct cudbg_buffer *dbg_buff, in collect_edc0_meminfo() argument
2755 rc = read_fw_mem(pdbg_init, dbg_buff, MEM_EDC0, in collect_edc0_meminfo()
2773 struct cudbg_buffer *dbg_buff, in collect_edc1_meminfo() argument
2786 rc = read_fw_mem(pdbg_init, dbg_buff, MEM_EDC1, in collect_edc1_meminfo()
2804 struct cudbg_buffer *dbg_buff, in collect_mc0_meminfo() argument
2817 rc = read_fw_mem(pdbg_init, dbg_buff, MEM_MC0, in collect_mc0_meminfo()
2834 struct cudbg_buffer *dbg_buff, in collect_mc1_meminfo() argument
2847 rc = read_fw_mem(pdbg_init, dbg_buff, MEM_MC1, in collect_mc1_meminfo()
2864 struct cudbg_buffer *dbg_buff, in collect_reg_dump() argument
2884 rc = get_scratch_buff(dbg_buff, scratch_buff.size, &scratch_buff); in collect_reg_dump()
2892 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_reg_dump()
2901 compress_buff(&tmp_scratch_buff, dbg_buff); in collect_reg_dump()
2907 release_scratch_buff(&scratch_buff, dbg_buff); in collect_reg_dump()
2913 struct cudbg_buffer *dbg_buff, in collect_cctrl() argument
2924 rc = get_scratch_buff(dbg_buff, scratch_buff.size, &scratch_buff); in collect_cctrl()
2930 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_cctrl()
2934 rc = compress_buff(&scratch_buff, dbg_buff); in collect_cctrl()
2937 release_scratch_buff(&scratch_buff, dbg_buff); in collect_cctrl()
3006 struct cudbg_buffer *dbg_buff, in collect_up_cim_indirect() argument
3019 rc = get_scratch_buff(dbg_buff, scratch_buff.size, &scratch_buff); in collect_up_cim_indirect()
3050 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_up_cim_indirect()
3054 rc = compress_buff(&scratch_buff, dbg_buff); in collect_up_cim_indirect()
3057 release_scratch_buff(&scratch_buff, dbg_buff); in collect_up_cim_indirect()
3063 struct cudbg_buffer *dbg_buff, in collect_mbox_log() argument
3090 rc = get_scratch_buff(dbg_buff, scratch_buff.size, &scratch_buff); in collect_mbox_log()
3117 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_mbox_log()
3121 rc = compress_buff(&scratch_buff, dbg_buff); in collect_mbox_log()
3124 release_scratch_buff(&scratch_buff, dbg_buff); in collect_mbox_log()
3132 struct cudbg_buffer *dbg_buff, in collect_pbt_tables() argument
3145 rc = get_scratch_buff(dbg_buff, scratch_buff.size, &scratch_buff); in collect_pbt_tables()
3201 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_pbt_tables()
3205 rc = compress_buff(&scratch_buff, dbg_buff); in collect_pbt_tables()
3208 release_scratch_buff(&scratch_buff, dbg_buff); in collect_pbt_tables()
3214 struct cudbg_buffer *dbg_buff, in collect_pm_indirect() argument
3227 rc = get_scratch_buff(dbg_buff, scratch_buff.size, &scratch_buff); in collect_pm_indirect()
3274 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_pm_indirect()
3278 rc = compress_buff(&scratch_buff, dbg_buff); in collect_pm_indirect()
3281 release_scratch_buff(&scratch_buff, dbg_buff); in collect_pm_indirect()
3288 struct cudbg_buffer *dbg_buff, in collect_tid() argument
3302 rc = get_scratch_buff(dbg_buff, scratch_buff.size, &scratch_buff); in collect_tid()
3424 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_tid()
3427 rc = compress_buff(&scratch_buff, dbg_buff); in collect_tid()
3431 release_scratch_buff(&scratch_buff, dbg_buff); in collect_tid()
3437 struct cudbg_buffer *dbg_buff, in collect_tx_rate() argument
3449 rc = get_scratch_buff(dbg_buff, scratch_buff.size, &scratch_buff); in collect_tx_rate()
3457 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_tx_rate()
3461 rc = compress_buff(&scratch_buff, dbg_buff); in collect_tx_rate()
3464 release_scratch_buff(&scratch_buff, dbg_buff); in collect_tx_rate()
3504 struct cudbg_buffer *dbg_buff, in collect_mps_tcam() argument
3519 rc = get_scratch_buff(dbg_buff, scratch_buff.size, &scratch_buff); in collect_mps_tcam()
3657 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_mps_tcam()
3661 rc = compress_buff(&scratch_buff, dbg_buff); in collect_mps_tcam()
3665 release_scratch_buff(&scratch_buff, dbg_buff); in collect_mps_tcam()
3671 struct cudbg_buffer *dbg_buff, in collect_pcie_config() argument
3683 rc = get_scratch_buff(dbg_buff, scratch_buff.size, &scratch_buff); in collect_pcie_config()
3695 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_pcie_config()
3699 rc = compress_buff(&scratch_buff, dbg_buff); in collect_pcie_config()
3702 release_scratch_buff(&scratch_buff, dbg_buff); in collect_pcie_config()
3765 struct cudbg_buffer *dbg_buff, in collect_le_tcam() argument
3817 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_le_tcam()
3821 rc = get_scratch_buff(dbg_buff, CUDBG_CHUNK_SIZE, &scratch_buff); in collect_le_tcam()
3836 rc = compress_buff(&scratch_buff, dbg_buff); in collect_le_tcam()
3840 release_scratch_buff(&scratch_buff, dbg_buff); in collect_le_tcam()
3843 rc = get_scratch_buff(dbg_buff, CUDBG_CHUNK_SIZE, in collect_le_tcam()
3867 rc = compress_buff(&scratch_buff, dbg_buff); in collect_le_tcam()
3872 release_scratch_buff(&scratch_buff, dbg_buff); in collect_le_tcam()
3878 struct cudbg_buffer *dbg_buff, in collect_ma_indirect() argument
3898 rc = get_scratch_buff(dbg_buff, scratch_buff.size, &scratch_buff); in collect_ma_indirect()
3941 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_ma_indirect()
3945 rc = compress_buff(&scratch_buff, dbg_buff); in collect_ma_indirect()
3948 release_scratch_buff(&scratch_buff, dbg_buff); in collect_ma_indirect()
3954 struct cudbg_buffer *dbg_buff, in collect_hma_indirect() argument
3974 rc = get_scratch_buff(dbg_buff, scratch_buff.size, &scratch_buff); in collect_hma_indirect()
3997 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_hma_indirect()
4001 rc = compress_buff(&scratch_buff, dbg_buff); in collect_hma_indirect()
4004 release_scratch_buff(&scratch_buff, dbg_buff); in collect_hma_indirect()
4010 struct cudbg_buffer *dbg_buff, in collect_pcie_indirect() argument
4023 rc = get_scratch_buff(dbg_buff, scratch_buff.size, &scratch_buff); in collect_pcie_indirect()
4070 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_pcie_indirect()
4074 rc = compress_buff(&scratch_buff, dbg_buff); in collect_pcie_indirect()
4077 release_scratch_buff(&scratch_buff, dbg_buff); in collect_pcie_indirect()
4084 struct cudbg_buffer *dbg_buff, in collect_tp_indirect() argument
4101 rc = get_scratch_buff(dbg_buff, scratch_buff.size, &scratch_buff); in collect_tp_indirect()
4190 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_tp_indirect()
4194 rc = compress_buff(&scratch_buff, dbg_buff); in collect_tp_indirect()
4197 release_scratch_buff(&scratch_buff, dbg_buff); in collect_tp_indirect()
4203 struct cudbg_buffer *dbg_buff, in collect_sge_indirect() argument
4215 rc = get_scratch_buff(dbg_buff, scratch_buff.size, &scratch_buff); in collect_sge_indirect()
4240 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_sge_indirect()
4244 rc = compress_buff(&scratch_buff, dbg_buff); in collect_sge_indirect()
4247 release_scratch_buff(&scratch_buff, dbg_buff); in collect_sge_indirect()
4253 struct cudbg_buffer *dbg_buff, in collect_full() argument
4280 rc = get_scratch_buff(dbg_buff, scratch_buff.size, &scratch_buff); in collect_full()
4345 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_full()
4349 rc = compress_buff(&scratch_buff, dbg_buff); in collect_full()
4352 release_scratch_buff(&scratch_buff, dbg_buff); in collect_full()
4358 struct cudbg_buffer *dbg_buff, in collect_vpd_data() argument
4373 rc = get_scratch_buff(dbg_buff, scratch_buff.size, &scratch_buff); in collect_vpd_data()
4437 rc = write_compression_hdr(&scratch_buff, dbg_buff); in collect_vpd_data()
4441 rc = compress_buff(&scratch_buff, dbg_buff); in collect_vpd_data()
4444 release_scratch_buff(&scratch_buff, dbg_buff); in collect_vpd_data()