Lines Matching refs:fdm
25 static struct rtas_fadump_mem_struct fdm; variable
29 const struct rtas_fadump_mem_struct *fdm) in rtas_fadump_update_config() argument
32 be64_to_cpu(fdm->rmr_region.destination_address); in rtas_fadump_update_config()
43 const struct rtas_fadump_mem_struct *fdm) in rtas_fadump_get_config() argument
46 be64_to_cpu(fdm->rmr_region.source_address); in rtas_fadump_get_config()
47 fadump_conf->boot_mem_sz[0] = be64_to_cpu(fdm->rmr_region.source_len); in rtas_fadump_get_config()
58 be64_to_cpu(fdm->cpu_state_data.destination_address); in rtas_fadump_get_config()
60 rtas_fadump_update_config(fadump_conf, fdm); in rtas_fadump_get_config()
67 memset(&fdm, 0, sizeof(struct rtas_fadump_mem_struct)); in rtas_fadump_init_mem_struct()
70 fdm.header.dump_format_version = cpu_to_be32(0x00000001); in rtas_fadump_init_mem_struct()
71 fdm.header.dump_num_sections = cpu_to_be16(3); in rtas_fadump_init_mem_struct()
72 fdm.header.dump_status_flag = 0; in rtas_fadump_init_mem_struct()
73 fdm.header.offset_first_dump_section = in rtas_fadump_init_mem_struct()
81 fdm.header.dd_block_size = 0; in rtas_fadump_init_mem_struct()
82 fdm.header.dd_block_offset = 0; in rtas_fadump_init_mem_struct()
83 fdm.header.dd_num_blocks = 0; in rtas_fadump_init_mem_struct()
84 fdm.header.dd_offset_disk_path = 0; in rtas_fadump_init_mem_struct()
87 fdm.header.max_time_auto = 0; in rtas_fadump_init_mem_struct()
91 fdm.cpu_state_data.request_flag = in rtas_fadump_init_mem_struct()
93 fdm.cpu_state_data.source_data_type = in rtas_fadump_init_mem_struct()
95 fdm.cpu_state_data.source_address = 0; in rtas_fadump_init_mem_struct()
96 fdm.cpu_state_data.source_len = in rtas_fadump_init_mem_struct()
98 fdm.cpu_state_data.destination_address = cpu_to_be64(addr); in rtas_fadump_init_mem_struct()
102 fdm.hpte_region.request_flag = cpu_to_be32(RTAS_FADUMP_REQUEST_FLAG); in rtas_fadump_init_mem_struct()
103 fdm.hpte_region.source_data_type = in rtas_fadump_init_mem_struct()
105 fdm.hpte_region.source_address = 0; in rtas_fadump_init_mem_struct()
106 fdm.hpte_region.source_len = in rtas_fadump_init_mem_struct()
108 fdm.hpte_region.destination_address = cpu_to_be64(addr); in rtas_fadump_init_mem_struct()
112 fdm.rmr_region.request_flag = cpu_to_be32(RTAS_FADUMP_REQUEST_FLAG); in rtas_fadump_init_mem_struct()
113 fdm.rmr_region.source_data_type = in rtas_fadump_init_mem_struct()
115 fdm.rmr_region.source_address = cpu_to_be64(0); in rtas_fadump_init_mem_struct()
116 fdm.rmr_region.source_len = cpu_to_be64(fadump_conf->boot_memory_size); in rtas_fadump_init_mem_struct()
117 fdm.rmr_region.destination_address = cpu_to_be64(addr); in rtas_fadump_init_mem_struct()
120 rtas_fadump_update_config(fadump_conf, &fdm); in rtas_fadump_init_mem_struct()
138 NULL, FADUMP_REGISTER, &fdm, in rtas_fadump_register()
186 NULL, FADUMP_UNREGISTER, &fdm, in rtas_fadump_unregister()
441 fdm_ptr = &fdm; in rtas_fadump_region_show()