Lines Matching refs:dump_buf

1097 static u32 qed_dump_str(char *dump_buf, bool dump, const char *str)  in qed_dump_str()  argument
1100 strcpy(dump_buf, str); in qed_dump_str()
1108 static u32 qed_dump_align(char *dump_buf, bool dump, u32 byte_offset) in qed_dump_align() argument
1116 memset(dump_buf, 0, align_size); in qed_dump_align()
1124 static u32 qed_dump_str_param(u32 *dump_buf, in qed_dump_str_param() argument
1128 char *char_buf = (char *)dump_buf; in qed_dump_str_param()
1151 static u32 qed_dump_num_param(u32 *dump_buf, in qed_dump_num_param() argument
1154 char *char_buf = (char *)dump_buf; in qed_dump_num_param()
1171 *(dump_buf + offset) = param_val; in qed_dump_num_param()
1182 u32 *dump_buf, bool dump) in qed_dump_fw_ver_param() argument
1217 offset += qed_dump_str_param(dump_buf + offset, in qed_dump_fw_ver_param()
1219 offset += qed_dump_str_param(dump_buf + offset, in qed_dump_fw_ver_param()
1221 offset += qed_dump_num_param(dump_buf + offset, dump, "fw-timestamp", in qed_dump_fw_ver_param()
1232 u32 *dump_buf, bool dump) in qed_dump_mfw_ver_param() argument
1273 return qed_dump_str_param(dump_buf, dump, "mfw-version", mfw_ver_str); in qed_dump_mfw_ver_param()
1281 u32 *dump_buf, bool dump) in qed_dump_chip_revision_param() argument
1296 return qed_dump_str_param(dump_buf, dump, "chip-revision", param_str); in qed_dump_chip_revision_param()
1302 static u32 qed_dump_section_hdr(u32 *dump_buf, in qed_dump_section_hdr() argument
1305 return qed_dump_num_param(dump_buf, dump, name, num_params); in qed_dump_section_hdr()
1313 u32 *dump_buf, in qed_dump_common_global_params() argument
1324 offset += qed_dump_section_hdr(dump_buf + offset, in qed_dump_common_global_params()
1328 offset += qed_dump_fw_ver_param(p_hwfn, p_ptt, dump_buf + offset, dump); in qed_dump_common_global_params()
1330 p_ptt, dump_buf + offset, dump); in qed_dump_common_global_params()
1332 p_ptt, dump_buf + offset, dump); in qed_dump_common_global_params()
1333 offset += qed_dump_num_param(dump_buf + offset, in qed_dump_common_global_params()
1335 offset += qed_dump_str_param(dump_buf + offset, in qed_dump_common_global_params()
1339 offset += qed_dump_str_param(dump_buf + offset, in qed_dump_common_global_params()
1343 offset += qed_dump_num_param(dump_buf + offset, in qed_dump_common_global_params()
1345 offset += qed_dump_num_param(dump_buf + offset, in qed_dump_common_global_params()
1348 offset += qed_dump_num_param(dump_buf + offset, in qed_dump_common_global_params()
1357 static u32 qed_dump_last_section(u32 *dump_buf, u32 offset, bool dump) in qed_dump_last_section() argument
1362 offset += qed_dump_section_hdr(dump_buf + offset, dump, "last", 0); in qed_dump_last_section()
1366 *(dump_buf + offset) = ~crc32(0xffffffff, in qed_dump_last_section()
1367 (u8 *)dump_buf, in qed_dump_last_section()
1928 static u32 qed_grc_dump_regs_hdr(u32 *dump_buf, in qed_grc_dump_regs_hdr() argument
1938 offset += qed_dump_section_hdr(dump_buf + offset, in qed_grc_dump_regs_hdr()
1940 offset += qed_dump_num_param(dump_buf + offset, in qed_grc_dump_regs_hdr()
1942 offset += qed_dump_str_param(dump_buf + offset, in qed_grc_dump_regs_hdr()
1946 offset += qed_dump_num_param(dump_buf + offset, in qed_grc_dump_regs_hdr()
1949 offset += qed_dump_str_param(dump_buf + offset, in qed_grc_dump_regs_hdr()
1973 u32 *dump_buf, in qed_grc_dump_addr_range() argument
2042 (u64)(uintptr_t)(dump_buf), in qed_grc_dump_addr_range()
2089 qed_read_regs(p_hwfn, p_ptt, dump_buf, addr, len); in qed_grc_dump_addr_range()
2107 static u32 qed_grc_dump_reg_entry_hdr(u32 *dump_buf, in qed_grc_dump_reg_entry_hdr() argument
2111 *dump_buf = addr | (len << REG_DUMP_LEN_SHIFT); in qed_grc_dump_reg_entry_hdr()
2121 u32 *dump_buf, in qed_grc_dump_reg_entry() argument
2127 offset += qed_grc_dump_reg_entry_hdr(dump_buf, dump, addr, len); in qed_grc_dump_reg_entry()
2130 dump_buf + offset, in qed_grc_dump_reg_entry()
2146 u32 *dump_buf, in qed_grc_dump_reg_entry_skip() argument
2154 offset += qed_grc_dump_reg_entry_hdr(dump_buf, dump, addr, total_len); in qed_grc_dump_reg_entry_skip()
2164 dump_buf + offset, in qed_grc_dump_reg_entry_skip()
2172 memset(dump_buf + offset, 0, DWORDS_TO_BYTES(curr_len)); in qed_grc_dump_reg_entry_skip()
2186 u32 *dump_buf, in qed_grc_dump_regs_entries() argument
2233 dump_buf + offset, in qed_grc_dump_regs_entries()
2250 u32 *dump_buf, in qed_grc_dump_split_data() argument
2268 offset = qed_grc_dump_regs_hdr(dump_buf, in qed_grc_dump_split_data()
2278 dump_buf + offset, in qed_grc_dump_split_data()
2287 qed_grc_dump_regs_hdr(dump_buf, in qed_grc_dump_split_data()
2301 u32 *dump_buf, in qed_grc_dump_registers() argument
2354 dump_buf + offset, in qed_grc_dump_registers()
2378 u32 *dump_buf, bool dump) in qed_grc_dump_reset_regs() argument
2384 offset += qed_grc_dump_regs_hdr(dump_buf, in qed_grc_dump_reset_regs()
2402 dump_buf + offset, in qed_grc_dump_reset_regs()
2411 qed_grc_dump_regs_hdr(dump_buf, in qed_grc_dump_reset_regs()
2423 u32 *dump_buf, bool dump) in qed_grc_dump_modified_regs() argument
2432 offset += qed_grc_dump_regs_hdr(dump_buf, in qed_grc_dump_modified_regs()
2467 dump_buf + offset, in qed_grc_dump_modified_regs()
2476 dump_buf + offset, in qed_grc_dump_modified_regs()
2487 qed_grc_dump_regs_hdr(dump_buf, in qed_grc_dump_modified_regs()
2494 offset += qed_grc_dump_regs_hdr(dump_buf, in qed_grc_dump_modified_regs()
2511 dump_buf + offset, in qed_grc_dump_modified_regs()
2521 qed_grc_dump_regs_hdr(dump_buf + stall_regs_offset, in qed_grc_dump_modified_regs()
2532 u32 *dump_buf, bool dump) in qed_grc_dump_special_regs() argument
2536 offset += qed_grc_dump_regs_hdr(dump_buf, in qed_grc_dump_special_regs()
2545 dump_buf + offset, in qed_grc_dump_special_regs()
2555 dump_buf + offset, in qed_grc_dump_special_regs()
2578 u32 *dump_buf, in qed_grc_dump_mem_hdr() argument
2601 offset += qed_dump_section_hdr(dump_buf + offset, in qed_grc_dump_mem_hdr()
2614 offset += qed_dump_str_param(dump_buf + offset, in qed_grc_dump_mem_hdr()
2620 offset += qed_dump_num_param(dump_buf + offset, in qed_grc_dump_mem_hdr()
2625 offset += qed_dump_num_param(dump_buf + offset, dump, "len", len); in qed_grc_dump_mem_hdr()
2629 offset += qed_dump_num_param(dump_buf + offset, in qed_grc_dump_mem_hdr()
2634 offset += qed_dump_num_param(dump_buf + offset, in qed_grc_dump_mem_hdr()
2646 offset += qed_dump_str_param(dump_buf + offset, dump, "type", buf); in qed_grc_dump_mem_hdr()
2657 u32 *dump_buf, in qed_grc_dump_mem() argument
2670 dump_buf + offset, in qed_grc_dump_mem()
2679 dump_buf + offset, in qed_grc_dump_mem()
2690 u32 *dump_buf, bool dump) in qed_grc_dump_mem_entries() argument
2764 dump_buf + offset, in qed_grc_dump_mem_entries()
2785 u32 *dump_buf, bool dump) in qed_grc_dump_memories() argument
2811 dump_buf + offset, in qed_grc_dump_memories()
2829 u32 *dump_buf, in qed_grc_dump_ctx_data() argument
2849 dump_buf + offset, in qed_grc_dump_ctx_data()
2869 dump_buf + offset, in qed_grc_dump_ctx_data()
2883 struct qed_ptt *p_ptt, u32 *dump_buf, bool dump) in qed_grc_dump_ctx() argument
2896 dump_buf + offset, in qed_grc_dump_ctx()
2905 dump_buf + offset, in qed_grc_dump_ctx()
2914 dump_buf + offset, in qed_grc_dump_ctx()
2923 dump_buf + offset, in qed_grc_dump_ctx()
2950 u32 resp_size, u32 *dump_buf) in qed_grc_dump_read_from_vfc() argument
2998 dump_buf + i, in qed_grc_dump_read_from_vfc()
3010 u32 *dump_buf, bool dump, u8 storm_id) in qed_grc_dump_vfc_cam() argument
3019 dump_buf + offset, in qed_grc_dump_vfc_cam()
3044 dump_buf + offset); in qed_grc_dump_vfc_cam()
3053 u32 *dump_buf, in qed_grc_dump_vfc_ram() argument
3064 dump_buf + offset, in qed_grc_dump_vfc_ram()
3092 dump_buf + offset); in qed_grc_dump_vfc_ram()
3100 struct qed_ptt *p_ptt, u32 *dump_buf, bool dump) in qed_grc_dump_vfc() argument
3114 dump_buf + offset, in qed_grc_dump_vfc()
3121 dump_buf + offset, in qed_grc_dump_vfc()
3132 struct qed_ptt *p_ptt, u32 *dump_buf, bool dump) in qed_grc_dump_rss() argument
3151 dump_buf + offset, in qed_grc_dump_rss()
3174 dump_buf + offset, in qed_grc_dump_rss()
3191 u32 *dump_buf, bool dump, u8 big_ram_id) in qed_grc_dump_big_ram() argument
3212 dump_buf + offset, in qed_grc_dump_big_ram()
3234 dump_buf + offset, in qed_grc_dump_big_ram()
3246 struct qed_ptt *p_ptt, u32 *dump_buf, bool dump) in qed_grc_dump_mcp() argument
3262 dump_buf + offset, in qed_grc_dump_mcp()
3272 dump_buf + offset, in qed_grc_dump_mcp()
3283 dump_buf + offset, in qed_grc_dump_mcp()
3287 offset += qed_grc_dump_regs_hdr(dump_buf + offset, in qed_grc_dump_mcp()
3293 dump_buf + offset, in qed_grc_dump_mcp()
3310 struct qed_ptt *p_ptt, u32 *dump_buf, bool dump) in qed_grc_dump_phy() argument
3337 dump_buf + offset, in qed_grc_dump_phy()
3349 bytes_buf = (u8 *)(dump_buf + offset); in qed_grc_dump_phy()
3376 u32 *dump_buf, bool dump) in qed_grc_dump_mcp_hw_dump() argument
3395 offset += qed_dump_section_hdr(dump_buf + offset, in qed_grc_dump_mcp_hw_dump()
3397 offset += qed_dump_num_param(dump_buf + offset, in qed_grc_dump_mcp_hw_dump()
3406 dump_buf + offset, in qed_grc_dump_mcp_hw_dump()
3422 u32 *dump_buf, bool dump) in qed_grc_dump_static_debug() argument
3478 dump_buf + offset, in qed_grc_dump_static_debug()
3492 memset(dump_buf + offset, 0, in qed_grc_dump_static_debug()
3516 dump_buf + offset, in qed_grc_dump_static_debug()
3543 u32 *dump_buf, in qed_grc_dump() argument
3561 dump_buf + offset, dump, 4); in qed_grc_dump()
3562 offset += qed_dump_str_param(dump_buf + offset, in qed_grc_dump()
3564 offset += qed_dump_num_param(dump_buf + offset, in qed_grc_dump()
3568 offset += qed_dump_num_param(dump_buf + offset, in qed_grc_dump()
3572 offset += qed_dump_num_param(dump_buf + offset, in qed_grc_dump()
3579 dump_buf + offset, dump); in qed_grc_dump()
3604 dump_buf + offset, dump); in qed_grc_dump()
3623 dump_buf + in qed_grc_dump()
3631 dump_buf + offset, dump); in qed_grc_dump()
3635 offset += qed_grc_dump_memories(p_hwfn, p_ptt, dump_buf + offset, dump); in qed_grc_dump()
3640 p_ptt, dump_buf + offset, dump); in qed_grc_dump()
3645 p_ptt, dump_buf + offset, dump); in qed_grc_dump()
3650 p_ptt, dump_buf + offset, dump); in qed_grc_dump()
3657 dump_buf + offset, in qed_grc_dump()
3663 p_ptt, dump_buf + offset, dump); in qed_grc_dump()
3674 p_ptt, dump_buf + offset, dump); in qed_grc_dump()
3681 dump_buf + offset, dump); in qed_grc_dump()
3689 dump_buf + offset, dump); in qed_grc_dump()
3692 offset += qed_dump_last_section(dump_buf, offset, dump); in qed_grc_dump()
3717 u32 *dump_buf, in qed_idle_chk_dump_failure() argument
3731 hdr = (struct dbg_idle_chk_result_hdr *)dump_buf; in qed_idle_chk_dump_failure()
3755 (struct dbg_idle_chk_result_reg_hdr *)(dump_buf + offset); in qed_idle_chk_dump_failure()
3776 dump_buf[offset] = cond_reg_values[next_reg_offset]; in qed_idle_chk_dump_failure()
3803 (dump_buf + offset); in qed_idle_chk_dump_failure()
3837 dump_buf + offset, in qed_idle_chk_dump_failure()
3851 u32 *dump_buf, bool dump, in qed_idle_chk_dump_rule_entries() argument
3907 dump_buf + offset, in qed_idle_chk_dump_rule_entries()
3976 dump_buf + offset, in qed_idle_chk_dump_rule_entries()
3994 struct qed_ptt *p_ptt, u32 *dump_buf, bool dump) in qed_idle_chk_dump() argument
4004 dump_buf + offset, dump, 1); in qed_idle_chk_dump()
4005 offset += qed_dump_str_param(dump_buf + offset, in qed_idle_chk_dump()
4009 offset += qed_dump_section_hdr(dump_buf + offset, dump, "idle_chk", 1); in qed_idle_chk_dump()
4011 offset += qed_dump_num_param(dump_buf + offset, dump, "num_rules", 0); in qed_idle_chk_dump()
4042 dump_buf + in qed_idle_chk_dump()
4056 qed_dump_num_param(dump_buf + num_failing_rules_offset, in qed_idle_chk_dump()
4060 offset += qed_dump_last_section(dump_buf, offset, dump); in qed_idle_chk_dump()
4185 u32 *dump_buf, in qed_mcp_trace_dump() argument
4210 dump_buf + offset, dump, 1); in qed_mcp_trace_dump()
4211 offset += qed_dump_str_param(dump_buf + offset, in qed_mcp_trace_dump()
4230 offset += qed_dump_section_hdr(dump_buf + offset, in qed_mcp_trace_dump()
4232 offset += qed_dump_num_param(dump_buf + offset, in qed_mcp_trace_dump()
4238 dump_buf + offset, in qed_mcp_trace_dump()
4249 offset += qed_dump_section_hdr(dump_buf + offset, in qed_mcp_trace_dump()
4269 offset += qed_dump_num_param(dump_buf + offset, in qed_mcp_trace_dump()
4278 dump_buf + offset); in qed_mcp_trace_dump()
4283 offset += qed_dump_last_section(dump_buf, offset, dump); in qed_mcp_trace_dump()
4296 u32 *dump_buf, in qed_reg_fifo_dump() argument
4307 dump_buf + offset, dump, 1); in qed_reg_fifo_dump()
4308 offset += qed_dump_str_param(dump_buf + offset, in qed_reg_fifo_dump()
4314 offset += qed_dump_section_hdr(dump_buf + offset, in qed_reg_fifo_dump()
4317 offset += qed_dump_num_param(dump_buf + offset, dump, "size", 0); in qed_reg_fifo_dump()
4342 dump_buf + offset, in qed_reg_fifo_dump()
4352 qed_dump_num_param(dump_buf + size_param_offset, dump, "size", in qed_reg_fifo_dump()
4356 offset += qed_dump_last_section(dump_buf, offset, dump); in qed_reg_fifo_dump()
4366 u32 *dump_buf, in qed_igu_fifo_dump() argument
4377 dump_buf + offset, dump, 1); in qed_igu_fifo_dump()
4378 offset += qed_dump_str_param(dump_buf + offset, in qed_igu_fifo_dump()
4384 offset += qed_dump_section_hdr(dump_buf + offset, in qed_igu_fifo_dump()
4387 offset += qed_dump_num_param(dump_buf + offset, dump, "size", 0); in qed_igu_fifo_dump()
4412 dump_buf + offset, in qed_igu_fifo_dump()
4422 qed_dump_num_param(dump_buf + size_param_offset, dump, "size", in qed_igu_fifo_dump()
4426 offset += qed_dump_last_section(dump_buf, offset, dump); in qed_igu_fifo_dump()
4436 u32 *dump_buf, in qed_protection_override_dump() argument
4447 dump_buf + offset, dump, 1); in qed_protection_override_dump()
4448 offset += qed_dump_str_param(dump_buf + offset, in qed_protection_override_dump()
4454 offset += qed_dump_section_hdr(dump_buf + offset, in qed_protection_override_dump()
4457 offset += qed_dump_num_param(dump_buf + offset, dump, "size", 0); in qed_protection_override_dump()
4472 dump_buf + offset, in qed_protection_override_dump()
4477 qed_dump_num_param(dump_buf + size_param_offset, dump, "size", in qed_protection_override_dump()
4482 offset += qed_dump_last_section(dump_buf, offset, dump); in qed_protection_override_dump()
4493 struct qed_ptt *p_ptt, u32 *dump_buf, bool dump) in qed_fw_asserts_dump() argument
4505 dump_buf + offset, dump, 1); in qed_fw_asserts_dump()
4506 offset += qed_dump_str_param(dump_buf + offset, in qed_fw_asserts_dump()
4525 offset += qed_dump_section_hdr(dump_buf + offset, in qed_fw_asserts_dump()
4527 offset += qed_dump_str_param(dump_buf + offset, in qed_fw_asserts_dump()
4529 offset += qed_dump_num_param(dump_buf + offset, in qed_fw_asserts_dump()
4556 dump_buf + offset, in qed_fw_asserts_dump()
4563 offset += qed_dump_last_section(dump_buf, offset, dump); in qed_fw_asserts_dump()
4571 static u32 qed_ilt_dump_pages_range(u32 *dump_buf, u32 *given_offset, in qed_ilt_dump_pages_range() argument
4604 *(dump_buf + offset) = page_id; in qed_ilt_dump_pages_range()
4615 memcpy(dump_buf + offset, in qed_ilt_dump_pages_range()
4625 memcpy(dump_buf + offset, in qed_ilt_dump_pages_range()
4642 u32 *dump_buf, in qed_ilt_dump_pages_section() argument
4688 offset += qed_dump_section_hdr(dump_buf + offset, in qed_ilt_dump_pages_section()
4693 offset += qed_dump_num_param(dump_buf + offset, in qed_ilt_dump_pages_section()
4707 qed_ilt_dump_pages_range(dump_buf, &offset, &continue_dump, in qed_ilt_dump_pages_section()
4717 qed_ilt_dump_pages_range(dump_buf, &offset, in qed_ilt_dump_pages_section()
4736 qed_ilt_dump_pages_range(dump_buf, &offset, &continue_dump, in qed_ilt_dump_pages_section()
4747 qed_ilt_dump_pages_range(dump_buf, &offset, in qed_ilt_dump_pages_section()
4760 qed_ilt_dump_pages_range(dump_buf, &offset, &continue_dump, in qed_ilt_dump_pages_section()
4772 qed_dump_num_param(dump_buf + size_param_offset, in qed_ilt_dump_pages_section()
4793 u32 *dump_buf, in qed_ilt_dump_dump_common_global_params() argument
4805 dump_buf + offset, in qed_ilt_dump_dump_common_global_params()
4807 offset += qed_dump_str_param(dump_buf + offset, in qed_ilt_dump_dump_common_global_params()
4810 offset += qed_dump_num_param(dump_buf + offset, in qed_ilt_dump_dump_common_global_params()
4814 offset += qed_dump_num_param(dump_buf + offset, in qed_ilt_dump_dump_common_global_params()
4818 offset += qed_dump_num_param(dump_buf + offset, in qed_ilt_dump_dump_common_global_params()
4822 offset += qed_dump_num_param(dump_buf + offset, in qed_ilt_dump_dump_common_global_params()
4826 offset += qed_dump_num_param(dump_buf + offset, in qed_ilt_dump_dump_common_global_params()
4830 offset += qed_dump_num_param(dump_buf + offset, in qed_ilt_dump_dump_common_global_params()
4834 offset += qed_dump_num_param(dump_buf + offset, in qed_ilt_dump_dump_common_global_params()
4838 offset += qed_dump_num_param(dump_buf + offset, in qed_ilt_dump_dump_common_global_params()
4842 offset += qed_dump_num_param(dump_buf + offset, in qed_ilt_dump_dump_common_global_params()
4846 offset += qed_dump_num_param(dump_buf + offset, in qed_ilt_dump_dump_common_global_params()
4850 offset += qed_dump_num_param(dump_buf + offset, in qed_ilt_dump_dump_common_global_params()
4854 offset += qed_dump_num_param(dump_buf + offset, in qed_ilt_dump_dump_common_global_params()
4858 offset += qed_dump_num_param(dump_buf + offset, in qed_ilt_dump_dump_common_global_params()
4862 offset += qed_dump_num_param(dump_buf + offset, in qed_ilt_dump_dump_common_global_params()
4866 offset += qed_dump_num_param(dump_buf + offset, in qed_ilt_dump_dump_common_global_params()
4870 offset += qed_dump_num_param(dump_buf + offset, in qed_ilt_dump_dump_common_global_params()
4874 offset += qed_dump_num_param(dump_buf + offset, in qed_ilt_dump_dump_common_global_params()
4878 offset += qed_dump_num_param(dump_buf + offset, in qed_ilt_dump_dump_common_global_params()
4882 offset += qed_dump_num_param(dump_buf + offset, in qed_ilt_dump_dump_common_global_params()
4886 offset += qed_dump_num_param(dump_buf + offset, in qed_ilt_dump_dump_common_global_params()
4893 offset += qed_dump_num_param(dump_buf + offset, in qed_ilt_dump_dump_common_global_params()
4898 offset += qed_dump_num_param(dump_buf + offset, in qed_ilt_dump_dump_common_global_params()
4901 offset += qed_dump_num_param(dump_buf + offset, in qed_ilt_dump_dump_common_global_params()
4905 offset += qed_dump_num_param(dump_buf + offset, in qed_ilt_dump_dump_common_global_params()
4909 offset += qed_dump_num_param(dump_buf + offset, in qed_ilt_dump_dump_common_global_params()
4913 offset += qed_dump_num_param(dump_buf + offset, in qed_ilt_dump_dump_common_global_params()
4917 offset += qed_dump_num_param(dump_buf + offset, in qed_ilt_dump_dump_common_global_params()
4921 offset += qed_dump_num_param(dump_buf + offset, in qed_ilt_dump_dump_common_global_params()
4925 offset += qed_dump_num_param(dump_buf + offset, in qed_ilt_dump_dump_common_global_params()
4942 u32 *dump_buf, in qed_ilt_dump_dump_num_pf_cids() argument
4949 offset += qed_dump_section_hdr(dump_buf + offset, in qed_ilt_dump_dump_num_pf_cids()
4951 offset += qed_dump_num_param(dump_buf + offset, in qed_ilt_dump_dump_num_pf_cids()
4957 *(dump_buf + offset) = num_pf_cids; in qed_ilt_dump_dump_num_pf_cids()
4969 u32 *dump_buf, in qed_ilt_dump_dump_num_vf_cids() argument
4976 offset += qed_dump_section_hdr(dump_buf + offset, dump, in qed_ilt_dump_dump_num_vf_cids()
4978 offset += qed_dump_num_param(dump_buf + offset, in qed_ilt_dump_dump_num_vf_cids()
4985 *(dump_buf + offset) = num_vf_cids; in qed_ilt_dump_dump_num_vf_cids()
4998 u32 *dump_buf, u32 buf_size_in_dwords, bool dump) in qed_ilt_dump() argument
5065 dump_buf + offset, in qed_ilt_dump()
5090 dump_buf + offset, in qed_ilt_dump()
5111 dump_buf + offset, in qed_ilt_dump()
5138 offset += qed_dump_section_hdr(dump_buf + offset, in qed_ilt_dump()
5140 offset += qed_dump_num_param(dump_buf + offset, in qed_ilt_dump()
5154 memcpy(dump_buf + offset, in qed_ilt_dump()
5175 qed_ilt_dump_pages_section(p_hwfn, dump_buf, &offset, &continue_dump, in qed_ilt_dump()
5181 qed_ilt_dump_pages_section(p_hwfn, dump_buf, &offset, &continue_dump, in qed_ilt_dump()
5188 qed_dump_num_param(dump_buf + full_dump_off, dump, in qed_ilt_dump()
5190 qed_dump_num_param(dump_buf + actul_dump_off, in qed_ilt_dump()
5196 real_dumped_size += qed_dump_last_section(dump_buf, in qed_ilt_dump()
5350 u32 *dump_buf, in qed_dbg_grc_dump() argument
5372 status = qed_grc_dump(p_hwfn, p_ptt, dump_buf, true, num_dumped_dwords); in qed_dbg_grc_dump()
5413 u32 *dump_buf, in qed_dbg_idle_chk_dump() argument
5436 *num_dumped_dwords = qed_idle_chk_dump(p_hwfn, p_ptt, dump_buf, true); in qed_dbg_idle_chk_dump()
5460 u32 *dump_buf, in qed_dbg_mcp_trace_dump() argument
5483 p_ptt, dump_buf, true, num_dumped_dwords); in qed_dbg_mcp_trace_dump()
5507 u32 *dump_buf, in qed_dbg_reg_fifo_dump() argument
5529 p_ptt, dump_buf, true, num_dumped_dwords); in qed_dbg_reg_fifo_dump()
5553 u32 *dump_buf, in qed_dbg_igu_fifo_dump() argument
5575 p_ptt, dump_buf, true, num_dumped_dwords); in qed_dbg_igu_fifo_dump()
5600 u32 *dump_buf, in qed_dbg_protection_override_dump() argument
5624 dump_buf, in qed_dbg_protection_override_dump()
5654 u32 *dump_buf, in qed_dbg_fw_asserts_dump() argument
5673 *num_dumped_dwords = qed_fw_asserts_dump(p_hwfn, p_ptt, dump_buf, true); in qed_dbg_fw_asserts_dump()
5699 u32 *dump_buf, in qed_dbg_ilt_dump() argument
5705 dump_buf, buf_size_in_dwords, true); in qed_dbg_ilt_dump()
6379 static u32 qed_read_param(u32 *dump_buf, in qed_read_param() argument
6383 char *char_buf = (char *)dump_buf; in qed_read_param()
6413 static u32 qed_read_section_hdr(u32 *dump_buf, in qed_read_section_hdr() argument
6419 return qed_read_param(dump_buf, in qed_read_section_hdr()
6426 static u32 qed_print_section_params(u32 *dump_buf, in qed_print_section_params() argument
6436 dump_offset += qed_read_param(dump_buf + dump_offset, in qed_print_section_params()
6483 u32 *dump_buf, in qed_parse_idle_chk_dump_rules() argument
6500 for (rule_idx = 0; rule_idx < num_rules && dump_buf < dump_buf_end; in qed_parse_idle_chk_dump_rules()
6509 hdr = (struct dbg_idle_chk_result_hdr *)dump_buf; in qed_parse_idle_chk_dump_rules()
6530 dump_buf += BYTES_TO_DWORDS(sizeof(*hdr)); in qed_parse_idle_chk_dump_rules()
6567 (struct dbg_idle_chk_result_reg_hdr *)dump_buf; in qed_parse_idle_chk_dump_rules()
6574 dump_buf += BYTES_TO_DWORDS(sizeof(*reg_hdr)); in qed_parse_idle_chk_dump_rules()
6595 for (j = 0; j < reg_hdr->size; j++, dump_buf++) { in qed_parse_idle_chk_dump_rules()
6599 "0x%x", *dump_buf); in qed_parse_idle_chk_dump_rules()
6613 if (dump_buf > dump_buf_end) in qed_parse_idle_chk_dump_rules()
6626 u32 *dump_buf, in qed_parse_idle_chk_dump() argument
6635 u32 *dump_buf_end = dump_buf + num_dumped_dwords; in qed_parse_idle_chk_dump()
6649 dump_buf += qed_read_section_hdr(dump_buf, in qed_parse_idle_chk_dump()
6655 dump_buf += qed_print_section_params(dump_buf, in qed_parse_idle_chk_dump()
6665 dump_buf += qed_read_section_hdr(dump_buf, in qed_parse_idle_chk_dump()
6670 dump_buf += qed_read_param(dump_buf, in qed_parse_idle_chk_dump()
6675 dump_buf += qed_read_param(dump_buf, in qed_parse_idle_chk_dump()
6695 dump_buf, in qed_parse_idle_chk_dump()
6716 dump_buf, in qed_parse_idle_chk_dump()
6984 u32 *dump_buf, in qed_parse_mcp_trace_dump() argument
7001 dump_buf += qed_read_section_hdr(dump_buf, in qed_parse_mcp_trace_dump()
7007 dump_buf += qed_print_section_params(dump_buf, in qed_parse_mcp_trace_dump()
7012 dump_buf += qed_read_section_hdr(dump_buf, in qed_parse_mcp_trace_dump()
7016 dump_buf += qed_read_param(dump_buf, in qed_parse_mcp_trace_dump()
7023 trace = (struct mcp_trace *)dump_buf; in qed_parse_mcp_trace_dump()
7027 trace_buf = (u8 *)dump_buf + sizeof(*trace); in qed_parse_mcp_trace_dump()
7030 dump_buf += trace_data_dwords; in qed_parse_mcp_trace_dump()
7033 dump_buf += qed_read_section_hdr(dump_buf, in qed_parse_mcp_trace_dump()
7037 dump_buf += qed_read_param(dump_buf, in qed_parse_mcp_trace_dump()
7055 meta_buf = dump_buf; in qed_parse_mcp_trace_dump()
7089 static enum dbg_status qed_parse_reg_fifo_dump(u32 *dump_buf, in qed_parse_reg_fifo_dump() argument
7101 dump_buf += qed_read_section_hdr(dump_buf, in qed_parse_reg_fifo_dump()
7107 dump_buf += qed_print_section_params(dump_buf, in qed_parse_reg_fifo_dump()
7112 dump_buf += qed_read_section_hdr(dump_buf, in qed_parse_reg_fifo_dump()
7116 dump_buf += qed_read_param(dump_buf, in qed_parse_reg_fifo_dump()
7123 elements = (struct reg_fifo_element *)dump_buf; in qed_parse_reg_fifo_dump()
7314 static enum dbg_status qed_parse_igu_fifo_dump(u32 *dump_buf, in qed_parse_igu_fifo_dump() argument
7326 dump_buf += qed_read_section_hdr(dump_buf, in qed_parse_igu_fifo_dump()
7332 dump_buf += qed_print_section_params(dump_buf, in qed_parse_igu_fifo_dump()
7337 dump_buf += qed_read_section_hdr(dump_buf, in qed_parse_igu_fifo_dump()
7341 dump_buf += qed_read_param(dump_buf, in qed_parse_igu_fifo_dump()
7348 elements = (struct igu_fifo_element *)dump_buf; in qed_parse_igu_fifo_dump()
7370 qed_parse_protection_override_dump(u32 *dump_buf, in qed_parse_protection_override_dump() argument
7381 dump_buf += qed_read_section_hdr(dump_buf, in qed_parse_protection_override_dump()
7387 dump_buf += qed_print_section_params(dump_buf, in qed_parse_protection_override_dump()
7392 dump_buf += qed_read_section_hdr(dump_buf, in qed_parse_protection_override_dump()
7396 dump_buf += qed_read_param(dump_buf, in qed_parse_protection_override_dump()
7403 elements = (struct protection_override_element *)dump_buf; in qed_parse_protection_override_dump()
7445 static enum dbg_status qed_parse_fw_asserts_dump(u32 *dump_buf, in qed_parse_fw_asserts_dump() argument
7456 dump_buf += qed_read_section_hdr(dump_buf, in qed_parse_fw_asserts_dump()
7462 dump_buf += qed_print_section_params(dump_buf, in qed_parse_fw_asserts_dump()
7467 dump_buf += qed_read_section_hdr(dump_buf, in qed_parse_fw_asserts_dump()
7476 dump_buf += qed_read_param(dump_buf, in qed_parse_fw_asserts_dump()
7498 for (i = 0; i < storm_dump_size; i++, dump_buf++) in qed_parse_fw_asserts_dump()
7502 "%08x\n", *dump_buf); in qed_parse_fw_asserts_dump()
7552 u32 *dump_buf, in qed_get_idle_chk_results_buf_size() argument
7559 dump_buf, in qed_get_idle_chk_results_buf_size()
7567 u32 *dump_buf, in qed_print_idle_chk_results() argument
7576 dump_buf, in qed_print_idle_chk_results()
7593 u32 *dump_buf, in qed_get_mcp_trace_results_buf_size() argument
7598 dump_buf, NULL, results_buf_size, true); in qed_get_mcp_trace_results_buf_size()
7602 u32 *dump_buf, in qed_print_mcp_trace_results() argument
7612 dump_buf, in qed_print_mcp_trace_results()
7617 u32 *dump_buf, in qed_print_mcp_trace_results_cont() argument
7622 return qed_parse_mcp_trace_dump(p_hwfn, dump_buf, results_buf, in qed_print_mcp_trace_results_cont()
7627 u8 *dump_buf, in qed_print_mcp_trace_line() argument
7634 dump_buf, in qed_print_mcp_trace_line()
7671 u32 *dump_buf, in qed_get_reg_fifo_results_buf_size() argument
7675 return qed_parse_reg_fifo_dump(dump_buf, NULL, results_buf_size); in qed_get_reg_fifo_results_buf_size()
7679 u32 *dump_buf, in qed_print_reg_fifo_results() argument
7685 return qed_parse_reg_fifo_dump(dump_buf, results_buf, &parsed_buf_size); in qed_print_reg_fifo_results()
7689 u32 *dump_buf, in qed_get_igu_fifo_results_buf_size() argument
7693 return qed_parse_igu_fifo_dump(dump_buf, NULL, results_buf_size); in qed_get_igu_fifo_results_buf_size()
7697 u32 *dump_buf, in qed_print_igu_fifo_results() argument
7703 return qed_parse_igu_fifo_dump(dump_buf, results_buf, &parsed_buf_size); in qed_print_igu_fifo_results()
7708 u32 *dump_buf, in qed_get_protection_override_results_buf_size() argument
7712 return qed_parse_protection_override_dump(dump_buf, in qed_get_protection_override_results_buf_size()
7717 u32 *dump_buf, in qed_print_protection_override_results() argument
7723 return qed_parse_protection_override_dump(dump_buf, in qed_print_protection_override_results()
7729 u32 *dump_buf, in qed_get_fw_asserts_results_buf_size() argument
7733 return qed_parse_fw_asserts_dump(dump_buf, NULL, results_buf_size); in qed_get_fw_asserts_results_buf_size()
7737 u32 *dump_buf, in qed_print_fw_asserts_results() argument
7743 return qed_parse_fw_asserts_dump(dump_buf, in qed_print_fw_asserts_results()
7837 u32 *dump_buf, in qed_print_idle_chk_results_wrapper() argument
7843 return qed_print_idle_chk_results(p_hwfn, dump_buf, num_dumped_dwords, in qed_print_idle_chk_results_wrapper()
7871 struct qed_ptt *p_ptt, u32 *dump_buf,
7874 u32 *dump_buf, u32 num_dumped_dwords,
7877 u32 *dump_buf,
7950 dbuf = (u32 *)feature->dump_buf; in format_feature()
8012 vfree(feature->dump_buf); in format_feature()
8013 feature->dump_buf = text_buf; in format_feature()
8039 if (feature->dump_buf) { in qed_dbg_dump()
8040 vfree(feature->dump_buf); in qed_dbg_dump()
8041 feature->dump_buf = NULL; in qed_dbg_dump()
8063 feature->dump_buf = vmalloc(feature->buf_size); in qed_dbg_dump()
8064 if (!feature->dump_buf) in qed_dbg_dump()
8067 dbuf = (u32 *)feature->dump_buf; in qed_dbg_dump()
8620 memcpy(buffer, qed_feature->dump_buf, qed_feature->buf_size); in qed_dbg_feature()
8706 if (feature->dump_buf) { in qed_dbg_pf_exit()
8707 vfree(feature->dump_buf); in qed_dbg_pf_exit()
8708 feature->dump_buf = NULL; in qed_dbg_pf_exit()