Lines Matching refs:fdm_active

48 static const struct fadump_mem_struct *fdm_active;  variable
83 fdm_active = of_get_flat_dt_prop(node, "ibm,kernel-dump", NULL); in early_init_dt_scan_fw_dump()
84 if (fdm_active) in early_init_dt_scan_fw_dump()
379 if (fdm_active) in fadump_reserve_mem()
380 fw_dump.boot_memory_size = be64_to_cpu(fdm_active->rmr_region.source_len); in fadump_reserve_mem()
427 be64_to_cpu(fdm_active->rmr_region.destination_address) + in fadump_reserve_mem()
428 be64_to_cpu(fdm_active->rmr_region.source_len); in fadump_reserve_mem()
831 static int __init process_fadump(const struct fadump_mem_struct *fdm_active) in process_fadump() argument
836 if (!fdm_active || !fw_dump.fadumphdr_addr) in process_fadump()
840 if ((be16_to_cpu(fdm_active->header.dump_status_flag) == FADUMP_ERROR_FLAG) || in process_fadump()
841 (fdm_active->cpu_state_data.error_flags != 0) || in process_fadump()
842 (fdm_active->rmr_region.error_flags != 0)) { in process_fadump()
846 if ((fdm_active->rmr_region.bytes_dumped != in process_fadump()
847 fdm_active->rmr_region.source_len) || in process_fadump()
848 !fdm_active->cpu_state_data.bytes_dumped) { in process_fadump()
860 rc = fadump_build_cpu_notes(fdm_active); in process_fadump()
1255 fdm_active = NULL; in fadump_invalidate_dump()
1264 be64_to_cpu(fdm_active->cpu_state_data.destination_address)); in fadump_cleanup()
1351 destination_address = be64_to_cpu(fdm_active->cpu_state_data.destination_address); in fadump_invalidate_release_mem()
1429 if (!fw_dump.fadump_enabled || fdm_active) in fadump_register_store()
1471 if (fdm_active) in fadump_region_show()
1472 fdm_ptr = fdm_active; in fadump_region_show()
1503 if (!fdm_active || in fadump_region_show()
1519 if (fdm_active) in fadump_region_show()
1601 if (process_fadump(fdm_active) < 0) in setup_fadump()