Lines Matching refs:rgn
52 int type = be16_to_cpu(fdm->rgn[i].source_data_type); in rtas_fadump_get_config()
57 addr = be64_to_cpu(fdm->rgn[i].destination_address); in rtas_fadump_get_config()
70 base = be64_to_cpu(fdm->rgn[i].source_address); in rtas_fadump_get_config()
71 size = be64_to_cpu(fdm->rgn[i].source_len); in rtas_fadump_get_config()
75 be64_to_cpu(fdm->rgn[i].destination_address); in rtas_fadump_get_config()
86 fadump_conf->param_area = be64_to_cpu(fdm->rgn[i].destination_address); in rtas_fadump_get_config()
109 cpu_to_be32((u32)offsetof(struct rtas_fadump_mem_struct, rgn)); in rtas_fadump_init_mem_struct()
125 fdm.rgn[sec_cnt].request_flag = cpu_to_be32(RTAS_FADUMP_REQUEST_FLAG); in rtas_fadump_init_mem_struct()
126 fdm.rgn[sec_cnt].source_data_type = cpu_to_be16(RTAS_FADUMP_CPU_STATE_DATA); in rtas_fadump_init_mem_struct()
127 fdm.rgn[sec_cnt].source_address = 0; in rtas_fadump_init_mem_struct()
128 fdm.rgn[sec_cnt].source_len = cpu_to_be64(fadump_conf->cpu_state_data_size); in rtas_fadump_init_mem_struct()
129 fdm.rgn[sec_cnt].destination_address = cpu_to_be64(addr); in rtas_fadump_init_mem_struct()
134 fdm.rgn[sec_cnt].request_flag = cpu_to_be32(RTAS_FADUMP_REQUEST_FLAG); in rtas_fadump_init_mem_struct()
135 fdm.rgn[sec_cnt].source_data_type = cpu_to_be16(RTAS_FADUMP_HPTE_REGION); in rtas_fadump_init_mem_struct()
136 fdm.rgn[sec_cnt].source_address = 0; in rtas_fadump_init_mem_struct()
137 fdm.rgn[sec_cnt].source_len = cpu_to_be64(fadump_conf->hpte_region_size); in rtas_fadump_init_mem_struct()
138 fdm.rgn[sec_cnt].destination_address = cpu_to_be64(addr); in rtas_fadump_init_mem_struct()
152 fdm.rgn[sec_cnt].request_flag = cpu_to_be32(RTAS_FADUMP_REQUEST_FLAG); in rtas_fadump_init_mem_struct()
153 fdm.rgn[sec_cnt].source_data_type = cpu_to_be16(RTAS_FADUMP_REAL_MODE_REGION); in rtas_fadump_init_mem_struct()
154 fdm.rgn[sec_cnt].source_address = cpu_to_be64(fadump_conf->boot_mem_addr[i]); in rtas_fadump_init_mem_struct()
155 fdm.rgn[sec_cnt].source_len = cpu_to_be64(fadump_conf->boot_mem_sz[i]); in rtas_fadump_init_mem_struct()
156 fdm.rgn[sec_cnt].destination_address = cpu_to_be64(addr); in rtas_fadump_init_mem_struct()
163 fdm.rgn[sec_cnt].request_flag = cpu_to_be32(RTAS_FADUMP_REQUEST_FLAG); in rtas_fadump_init_mem_struct()
164 fdm.rgn[sec_cnt].source_data_type = cpu_to_be16(RTAS_FADUMP_PARAM_AREA); in rtas_fadump_init_mem_struct()
165 fdm.rgn[sec_cnt].source_address = cpu_to_be64(fadump_conf->param_area); in rtas_fadump_init_mem_struct()
166 fdm.rgn[sec_cnt].source_len = cpu_to_be64(COMMAND_LINE_SIZE); in rtas_fadump_init_mem_struct()
167 fdm.rgn[sec_cnt].destination_address = cpu_to_be64(fadump_conf->param_area); in rtas_fadump_init_mem_struct()
447 int type = be16_to_cpu(fdm_active->rgn[i].source_data_type); in rtas_fadump_process()
454 if (fdm_active->rgn[i].error_flags != 0) { in rtas_fadump_process()
458 if (fdm_active->rgn[i].bytes_dumped != fdm_active->rgn[i].source_len) { in rtas_fadump_process()
464 be16_to_cpu(fdm_active->rgn[i].source_data_type), in rtas_fadump_process()
465 be64_to_cpu(fdm_active->rgn[i].source_address), in rtas_fadump_process()
466 be64_to_cpu(fdm_active->rgn[i].destination_address)); in rtas_fadump_process()
471 if (fdm_active->rgn[i].bytes_dumped != fdm_active->rgn[i].source_len || in rtas_fadump_process()
472 fdm_active->rgn[i].error_flags != 0) { in rtas_fadump_process()
484 be16_to_cpu(fdm_active->rgn[i].source_data_type), in rtas_fadump_process()
485 be64_to_cpu(fdm_active->rgn[i].source_address), in rtas_fadump_process()
486 be64_to_cpu(fdm_active->rgn[i].destination_address)); in rtas_fadump_process()
506 int type = be16_to_cpu(fdm_ptr->rgn[i].source_data_type); in rtas_fadump_region_show()
511 be64_to_cpu(fdm_ptr->rgn[i].destination_address), in rtas_fadump_region_show()
512 be64_to_cpu(fdm_ptr->rgn[i].destination_address) + in rtas_fadump_region_show()
513 be64_to_cpu(fdm_ptr->rgn[i].source_len) - 1, in rtas_fadump_region_show()
514 be64_to_cpu(fdm_ptr->rgn[i].source_len), in rtas_fadump_region_show()
515 be64_to_cpu(fdm_ptr->rgn[i].bytes_dumped)); in rtas_fadump_region_show()
519 be64_to_cpu(fdm_ptr->rgn[i].destination_address), in rtas_fadump_region_show()
520 be64_to_cpu(fdm_ptr->rgn[i].destination_address) + in rtas_fadump_region_show()
521 be64_to_cpu(fdm_ptr->rgn[i].source_len) - 1, in rtas_fadump_region_show()
522 be64_to_cpu(fdm_ptr->rgn[i].source_len), in rtas_fadump_region_show()
523 be64_to_cpu(fdm_ptr->rgn[i].bytes_dumped)); in rtas_fadump_region_show()
527 be64_to_cpu(fdm_ptr->rgn[i].source_address), in rtas_fadump_region_show()
528 be64_to_cpu(fdm_ptr->rgn[i].destination_address)); in rtas_fadump_region_show()
530 be64_to_cpu(fdm_ptr->rgn[i].source_len), in rtas_fadump_region_show()
531 be64_to_cpu(fdm_ptr->rgn[i].bytes_dumped)); in rtas_fadump_region_show()
535 be64_to_cpu(fdm_ptr->rgn[i].destination_address), in rtas_fadump_region_show()
536 be64_to_cpu(fdm_ptr->rgn[i].destination_address) + in rtas_fadump_region_show()
537 be64_to_cpu(fdm_ptr->rgn[i].source_len) - 1, in rtas_fadump_region_show()
538 (char *)__va(be64_to_cpu(fdm_ptr->rgn[i].destination_address))); in rtas_fadump_region_show()
542 type, be64_to_cpu(fdm_ptr->rgn[i].source_address), in rtas_fadump_region_show()
543 be64_to_cpu(fdm_ptr->rgn[i].destination_address)); in rtas_fadump_region_show()