Lines Matching refs:dump
1097 static u32 qed_dump_str(char *dump_buf, bool dump, const char *str) in qed_dump_str() argument
1099 if (dump) in qed_dump_str()
1108 static u32 qed_dump_align(char *dump_buf, bool dump, u32 byte_offset) in qed_dump_align() argument
1115 if (dump && align_size) in qed_dump_align()
1125 bool dump, in qed_dump_str_param() argument
1132 offset += qed_dump_str(char_buf + offset, dump, param_name); in qed_dump_str_param()
1135 if (dump) in qed_dump_str_param()
1140 offset += qed_dump_str(char_buf + offset, dump, param_val); in qed_dump_str_param()
1143 offset += qed_dump_align(char_buf + offset, dump, offset); in qed_dump_str_param()
1152 bool dump, const char *param_name, u32 param_val) in qed_dump_num_param() argument
1158 offset += qed_dump_str(char_buf + offset, dump, param_name); in qed_dump_num_param()
1161 if (dump) in qed_dump_num_param()
1166 offset += qed_dump_align(char_buf + offset, dump, offset); in qed_dump_num_param()
1170 if (dump) in qed_dump_num_param()
1182 u32 *dump_buf, bool dump) in qed_dump_fw_ver_param() argument
1189 if (dump && !qed_grc_get_param(p_hwfn, DBG_GRC_PARAM_NO_FW_VER)) { in qed_dump_fw_ver_param()
1218 dump, "fw-version", fw_ver_str); in qed_dump_fw_ver_param()
1220 dump, "fw-image", fw_img_str); 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
1236 if (dump && in qed_dump_mfw_ver_param()
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()
1303 bool dump, const char *name, u32 num_params) in qed_dump_section_hdr() argument
1305 return qed_dump_num_param(dump_buf, dump, name, num_params); in qed_dump_section_hdr()
1314 bool dump, in qed_dump_common_global_params() argument
1325 dump, "global_params", num_params); 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()
1334 dump, "tools-version", TOOLS_VERSION); in qed_dump_common_global_params()
1336 dump, in qed_dump_common_global_params()
1340 dump, in qed_dump_common_global_params()
1344 dump, "pci-func", p_hwfn->abs_pf_id); in qed_dump_common_global_params()
1346 dump, "epoch", qed_get_epoch_time()); in qed_dump_common_global_params()
1349 dump, "path", QED_PATH_ID(p_hwfn)); 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()
1365 if (dump) in qed_dump_last_section()
1929 bool dump, in qed_grc_dump_regs_hdr() argument
1939 dump, "grc_regs", num_params); in qed_grc_dump_regs_hdr()
1941 dump, "count", num_reg_entries); in qed_grc_dump_regs_hdr()
1943 dump, "split", in qed_grc_dump_regs_hdr()
1947 dump, "id", split_id); in qed_grc_dump_regs_hdr()
1950 dump, "type", reg_type_name); in qed_grc_dump_regs_hdr()
1974 bool dump, u32 addr, u32 len, bool wide_bus, in qed_grc_dump_addr_range() argument
1984 if (!dump) in qed_grc_dump_addr_range()
2108 bool dump, u32 addr, u32 len) in qed_grc_dump_reg_entry_hdr() argument
2110 if (dump) in qed_grc_dump_reg_entry_hdr()
2122 bool dump, u32 addr, u32 len, bool wide_bus, 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()
2131 dump, addr, len, wide_bus, in qed_grc_dump_reg_entry()
2147 bool dump, 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()
2156 if (!dump) in qed_grc_dump_reg_entry_skip()
2165 dump, addr, curr_len, false, in qed_grc_dump_reg_entry_skip()
2187 bool dump, in qed_grc_dump_regs_entries() argument
2234 dump, in qed_grc_dump_regs_entries()
2251 bool dump, in qed_grc_dump_split_data() argument
2279 dump, in qed_grc_dump_split_data()
2286 if (dump && num_dumped_reg_entries > 0) in qed_grc_dump_split_data()
2288 dump, in qed_grc_dump_split_data()
2302 bool dump, in qed_grc_dump_registers() argument
2355 dump, block_enable, in qed_grc_dump_registers()
2364 if (dump) { in qed_grc_dump_registers()
2378 u32 *dump_buf, bool dump) in qed_grc_dump_reset_regs() argument
2403 dump, in qed_grc_dump_reset_regs()
2410 if (dump) in qed_grc_dump_reset_regs()
2423 u32 *dump_buf, bool dump) in qed_grc_dump_modified_regs() argument
2438 if (dev_data->block_in_reset[block_id] && dump) in qed_grc_dump_modified_regs()
2468 dump, in qed_grc_dump_modified_regs()
2477 dump, in qed_grc_dump_modified_regs()
2486 if (dump) in qed_grc_dump_modified_regs()
2503 if (dev_data->block_in_reset[storm->sem_block_id] && dump) in qed_grc_dump_modified_regs()
2512 dump, in qed_grc_dump_modified_regs()
2520 if (dump) in qed_grc_dump_modified_regs()
2532 u32 *dump_buf, bool dump) in qed_grc_dump_special_regs() argument
2537 dump, 2, SPLIT_TYPE_NONE, 0, "REGS"); in qed_grc_dump_special_regs()
2546 dump, in qed_grc_dump_special_regs()
2556 dump, in qed_grc_dump_special_regs()
2579 bool dump, in qed_grc_dump_mem_hdr() argument
2602 dump, "grc_mem", num_params); in qed_grc_dump_mem_hdr()
2615 dump, "name", buf); in qed_grc_dump_mem_hdr()
2621 dump, "addr", addr_in_bytes); in qed_grc_dump_mem_hdr()
2625 offset += qed_dump_num_param(dump_buf + offset, dump, "len", len); in qed_grc_dump_mem_hdr()
2630 dump, "width", bit_width); in qed_grc_dump_mem_hdr()
2635 dump, "packed", 1); in qed_grc_dump_mem_hdr()
2646 offset += qed_dump_str_param(dump_buf + offset, dump, "type", buf); in qed_grc_dump_mem_hdr()
2658 bool dump, in qed_grc_dump_mem() argument
2671 dump, in qed_grc_dump_mem()
2680 dump, addr, len, wide_bus, in qed_grc_dump_mem()
2690 u32 *dump_buf, bool dump) in qed_grc_dump_mem_entries() argument
2765 dump, in qed_grc_dump_mem_entries()
2785 u32 *dump_buf, bool dump) in qed_grc_dump_memories() argument
2812 dump); in qed_grc_dump_memories()
2830 bool dump, in qed_grc_dump_ctx_data() argument
2850 dump, in qed_grc_dump_ctx_data()
2857 if (!dump) in qed_grc_dump_ctx_data()
2870 dump, in qed_grc_dump_ctx_data()
2883 struct qed_ptt *p_ptt, u32 *dump_buf, bool dump) in qed_grc_dump_ctx() argument
2897 dump, in qed_grc_dump_ctx()
2906 dump, in qed_grc_dump_ctx()
2915 dump, in qed_grc_dump_ctx()
2924 dump, in qed_grc_dump_ctx()
3010 u32 *dump_buf, bool dump, u8 storm_id) in qed_grc_dump_vfc_cam() argument
3020 dump, in qed_grc_dump_vfc_cam()
3027 if (!dump) in qed_grc_dump_vfc_cam()
3054 bool dump, in qed_grc_dump_vfc_ram() argument
3065 dump, in qed_grc_dump_vfc_ram()
3074 if (!dump) in qed_grc_dump_vfc_ram()
3100 struct qed_ptt *p_ptt, u32 *dump_buf, bool dump) in qed_grc_dump_vfc() argument
3115 dump, storm_id); in qed_grc_dump_vfc()
3122 dump, in qed_grc_dump_vfc()
3132 struct qed_ptt *p_ptt, u32 *dump_buf, bool dump) in qed_grc_dump_rss() argument
3152 dump, in qed_grc_dump_rss()
3161 if (!dump) { in qed_grc_dump_rss()
3175 dump, in qed_grc_dump_rss()
3191 u32 *dump_buf, bool dump, u8 big_ram_id) in qed_grc_dump_big_ram() argument
3213 dump, in qed_grc_dump_big_ram()
3221 if (!dump) in qed_grc_dump_big_ram()
3235 dump, in qed_grc_dump_big_ram()
3246 struct qed_ptt *p_ptt, u32 *dump_buf, bool dump) in qed_grc_dump_mcp() argument
3253 if (dump && !qed_grc_get_param(p_hwfn, DBG_GRC_PARAM_NO_MCP)) { in qed_grc_dump_mcp()
3263 dump, in qed_grc_dump_mcp()
3273 dump, in qed_grc_dump_mcp()
3284 dump, block_enable, "MCP"); in qed_grc_dump_mcp()
3288 dump, 1, SPLIT_TYPE_NONE, 0, in qed_grc_dump_mcp()
3294 dump, in qed_grc_dump_mcp()
3310 struct qed_ptt *p_ptt, u32 *dump_buf, bool dump) in qed_grc_dump_phy() argument
3338 dump, in qed_grc_dump_phy()
3344 if (!dump) { in qed_grc_dump_phy()
3376 u32 *dump_buf, bool dump) in qed_grc_dump_mcp_hw_dump() argument
3396 dump, "mcp_hw_dump", 1); in qed_grc_dump_mcp_hw_dump()
3398 dump, "size", hw_dump_size_dwords); in qed_grc_dump_mcp_hw_dump()
3401 if (dump && hw_dump_size_dwords) { in qed_grc_dump_mcp_hw_dump()
3422 u32 *dump_buf, bool dump) in qed_grc_dump_static_debug() argument
3428 if (dump && qed_rd(p_hwfn, p_ptt, DBG_REG_DBG_BLOCK_ON)) in qed_grc_dump_static_debug()
3431 if (dump) { in qed_grc_dump_static_debug()
3479 dump, in qed_grc_dump_static_debug()
3485 if (!dump) { in qed_grc_dump_static_debug()
3517 dump, in qed_grc_dump_static_debug()
3530 if (dump) { in qed_grc_dump_static_debug()
3544 bool dump, u32 *num_dumped_dwords) in qed_grc_dump() argument
3555 if (dump) in qed_grc_dump()
3561 dump_buf + offset, dump, 4); in qed_grc_dump()
3563 dump, "dump-type", "grc-dump"); in qed_grc_dump()
3565 dump, in qed_grc_dump()
3569 dump, in qed_grc_dump()
3573 dump, "num-ports", dev_data->num_ports); in qed_grc_dump()
3579 dump_buf + offset, dump); in qed_grc_dump()
3582 if (dump) { in qed_grc_dump()
3588 if (dump && in qed_grc_dump()
3604 dump_buf + offset, dump); in qed_grc_dump()
3607 if (dump && in qed_grc_dump()
3625 dump, 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()
3658 dump, i); 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()
3686 (!dump || dev_data->bus.state == DBG_BUS_STATE_IDLE)) 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()
3694 if (dump) { in qed_grc_dump()
3718 bool dump, in qed_idle_chk_dump_failure() argument
3739 if (dump) { in qed_idle_chk_dump_failure()
3758 if (!dump) { in qed_idle_chk_dump_failure()
3785 if (!dump) { in qed_idle_chk_dump_failure()
3838 dump, in qed_idle_chk_dump_failure()
3851 u32 *dump_buf, bool dump, in qed_idle_chk_dump_rule_entries() argument
3900 if (!check_rule && dump) in qed_idle_chk_dump_rule_entries()
3903 if (!dump) { in qed_idle_chk_dump_rule_entries()
3963 dump, addr, in qed_idle_chk_dump_rule_entries()
3977 dump, 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()
4006 dump, "dump-type", "idle-chk"); 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()
4044 dump, in qed_idle_chk_dump()
4055 if (dump) in qed_idle_chk_dump()
4057 dump, "num_rules", num_failing_rules); in qed_idle_chk_dump()
4060 offset += qed_dump_last_section(dump_buf, offset, dump); in qed_idle_chk_dump()
4186 bool dump, u32 *num_dumped_dwords) in qed_mcp_trace_dump() argument
4210 dump_buf + offset, dump, 1); in qed_mcp_trace_dump()
4212 dump, "dump-type", "mcp-trace"); in qed_mcp_trace_dump()
4218 if (dump && use_mfw) { in qed_mcp_trace_dump()
4231 dump, "mcp_trace_data", 1); in qed_mcp_trace_dump()
4233 dump, "size", trace_data_size_dwords); in qed_mcp_trace_dump()
4239 dump, in qed_mcp_trace_dump()
4250 dump, "mcp_trace_meta", 1); in qed_mcp_trace_dump()
4258 if ((!trace_meta_size_bytes || dump) && use_mfw) in qed_mcp_trace_dump()
4270 dump, "size", trace_meta_size_dwords); in qed_mcp_trace_dump()
4273 if (dump && trace_meta_size_dwords) in qed_mcp_trace_dump()
4283 offset += qed_dump_last_section(dump_buf, offset, dump); in qed_mcp_trace_dump()
4297 bool dump, u32 *num_dumped_dwords) in qed_reg_fifo_dump() argument
4307 dump_buf + offset, dump, 1); in qed_reg_fifo_dump()
4309 dump, "dump-type", "reg-fifo"); in qed_reg_fifo_dump()
4315 dump, "reg_fifo_data", 1); in qed_reg_fifo_dump()
4317 offset += qed_dump_num_param(dump_buf + offset, dump, "size", 0); in qed_reg_fifo_dump()
4319 if (!dump) { 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()
4367 bool dump, u32 *num_dumped_dwords) in qed_igu_fifo_dump() argument
4377 dump_buf + offset, dump, 1); in qed_igu_fifo_dump()
4379 dump, "dump-type", "igu-fifo"); in qed_igu_fifo_dump()
4385 dump, "igu_fifo_data", 1); in qed_igu_fifo_dump()
4387 offset += qed_dump_num_param(dump_buf + offset, dump, "size", 0); in qed_igu_fifo_dump()
4389 if (!dump) { 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()
4437 bool dump, in qed_protection_override_dump() argument
4447 dump_buf + offset, dump, 1); in qed_protection_override_dump()
4449 dump, "dump-type", "protection-override"); in qed_protection_override_dump()
4455 dump, "protection_override_data", 1); in qed_protection_override_dump()
4457 offset += qed_dump_num_param(dump_buf + offset, dump, "size", 0); in qed_protection_override_dump()
4459 if (!dump) { 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()
4507 dump, "dump-type", "fw-asserts"); in qed_fw_asserts_dump()
4526 dump, "fw_asserts", 2); in qed_fw_asserts_dump()
4528 dump, "storm", storm_letter_str); in qed_fw_asserts_dump()
4530 dump, in qed_fw_asserts_dump()
4535 if (!dump) { in qed_fw_asserts_dump()
4557 dump, addr, in qed_fw_asserts_dump()
4563 offset += qed_dump_last_section(dump_buf, offset, dump); in qed_fw_asserts_dump()
4572 bool *dump, u32 start_page_id, in qed_ilt_dump_pages_range() argument
4581 bool continue_dump = *dump; in qed_ilt_dump_pages_range()
4631 *dump = continue_dump; in qed_ilt_dump_pages_range()
4644 bool *dump, in qed_ilt_dump_pages_section() argument
4661 bool continue_dump = *dump; in qed_ilt_dump_pages_section()
4662 bool update_size = *dump; in qed_ilt_dump_pages_section()
4768 u32 section_size = (*dump == continue_dump) ? in qed_ilt_dump_pages_section()
4773 *dump, "size", section_size); in qed_ilt_dump_pages_section()
4774 else if ((section_size == 0) && (*dump != continue_dump)) in qed_ilt_dump_pages_section()
4779 *dump = continue_dump; in qed_ilt_dump_pages_section()
4794 bool dump, in qed_ilt_dump_dump_common_global_params() argument
4806 dump, 30); in qed_ilt_dump_dump_common_global_params()
4808 dump, in qed_ilt_dump_dump_common_global_params()
4811 dump, in qed_ilt_dump_dump_common_global_params()
4815 dump, in qed_ilt_dump_dump_common_global_params()
4819 dump, in qed_ilt_dump_dump_common_global_params()
4823 dump, in qed_ilt_dump_dump_common_global_params()
4827 dump, in qed_ilt_dump_dump_common_global_params()
4831 dump, in qed_ilt_dump_dump_common_global_params()
4835 dump, in qed_ilt_dump_dump_common_global_params()
4839 dump, in qed_ilt_dump_dump_common_global_params()
4843 dump, in qed_ilt_dump_dump_common_global_params()
4847 dump, in qed_ilt_dump_dump_common_global_params()
4851 dump, in qed_ilt_dump_dump_common_global_params()
4855 dump, in qed_ilt_dump_dump_common_global_params()
4859 dump, in qed_ilt_dump_dump_common_global_params()
4863 dump, in qed_ilt_dump_dump_common_global_params()
4867 dump, in qed_ilt_dump_dump_common_global_params()
4871 dump, in qed_ilt_dump_dump_common_global_params()
4875 dump, in qed_ilt_dump_dump_common_global_params()
4879 dump, in qed_ilt_dump_dump_common_global_params()
4883 dump, in qed_ilt_dump_dump_common_global_params()
4887 dump, in qed_ilt_dump_dump_common_global_params()
4894 dump, "dump-size-full", 0); in qed_ilt_dump_dump_common_global_params()
4899 dump, in qed_ilt_dump_dump_common_global_params()
4902 dump, in qed_ilt_dump_dump_common_global_params()
4906 dump, in qed_ilt_dump_dump_common_global_params()
4910 dump, in qed_ilt_dump_dump_common_global_params()
4914 dump, in qed_ilt_dump_dump_common_global_params()
4918 dump, in qed_ilt_dump_dump_common_global_params()
4922 dump, in qed_ilt_dump_dump_common_global_params()
4926 dump, in qed_ilt_dump_dump_common_global_params()
4943 bool dump, u32 *valid_conn_pf_cids) in qed_ilt_dump_dump_num_pf_cids() argument
4950 dump, "num_pf_cids_per_conn_type", 1); in qed_ilt_dump_dump_num_pf_cids()
4952 dump, "size", NUM_OF_CONNECTION_TYPES); in qed_ilt_dump_dump_num_pf_cids()
4956 if (dump) in qed_ilt_dump_dump_num_pf_cids()
4970 bool dump, u32 *valid_conn_vf_cids) 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()
4979 dump, "size", NUM_OF_CONNECTION_TYPES); in qed_ilt_dump_dump_num_vf_cids()
4984 if (dump) in qed_ilt_dump_dump_num_vf_cids()
4998 u32 *dump_buf, u32 buf_size_in_dwords, bool dump) in qed_ilt_dump() argument
5025 continue_dump = dump; in qed_ilt_dump()
5030 if (dump) { in qed_ilt_dump()
5187 (continue_dump == dump) ? offset : actual_dump_size_in_dwords; in qed_ilt_dump()
5188 qed_dump_num_param(dump_buf + full_dump_off, dump, in qed_ilt_dump()
5191 dump, in qed_ilt_dump()
5197 real_dumped_size, dump); in qed_ilt_dump()