Lines Matching refs:fdm
96 const struct opal_fadump_mem_struct *fdm) in opal_fadump_update_config() argument
98 pr_debug("Boot memory regions count: %d\n", be16_to_cpu(fdm->region_cnt)); in opal_fadump_update_config()
104 fadump_conf->boot_mem_dest_addr = be64_to_cpu(fdm->rgn[0].dest); in opal_fadump_update_config()
108 fadump_conf->fadumphdr_addr = be64_to_cpu(fdm->fadumphdr_addr); in opal_fadump_update_config()
116 const struct opal_fadump_mem_struct *fdm) in opal_fadump_get_config() argument
129 for (i = 0; i < be16_to_cpu(fdm->region_cnt); i++) { in opal_fadump_get_config()
130 base = be64_to_cpu(fdm->rgn[i].src); in opal_fadump_get_config()
131 size = be64_to_cpu(fdm->rgn[i].size); in opal_fadump_get_config()
146 fadump_conf->reserve_dump_area_start = be64_to_cpu(fdm->rgn[0].dest); in opal_fadump_get_config()
158 if (be16_to_cpu(fdm->region_cnt) > be16_to_cpu(fdm->registered_regions)) { in opal_fadump_get_config()
161 i = be16_to_cpu(fdm->registered_regions); in opal_fadump_get_config()
162 while (i < be16_to_cpu(fdm->region_cnt)) { in opal_fadump_get_config()
164 i, be64_to_cpu(fdm->rgn[i].src), in opal_fadump_get_config()
165 be64_to_cpu(fdm->rgn[i].size)); in opal_fadump_get_config()
174 fadump_conf->boot_mem_regs_cnt = be16_to_cpu(fdm->region_cnt); in opal_fadump_get_config()
175 opal_fadump_update_config(fadump_conf, fdm); in opal_fadump_get_config()
179 static void opal_fadump_init_metadata(struct opal_fadump_mem_struct *fdm) in opal_fadump_init_metadata() argument
181 fdm->version = OPAL_FADUMP_VERSION; in opal_fadump_init_metadata()
182 fdm->region_cnt = cpu_to_be16(0); in opal_fadump_init_metadata()
183 fdm->registered_regions = cpu_to_be16(0); in opal_fadump_init_metadata()
184 fdm->fadumphdr_addr = cpu_to_be64(0); in opal_fadump_init_metadata()