/tf-a-ffa_el3_spmc/plat/common/ |
A D | plat_spmd_manifest.c | 24 static int manifest_parse_attribute(spmc_manifest_attribute_t *attr, in manifest_parse_attribute() argument 31 assert((attr != NULL) && (fdt != NULL)); in manifest_parse_attribute() 33 rc = fdt_read_uint32(fdt, node, "maj_ver", &attr->major_version); in manifest_parse_attribute() 40 rc = fdt_read_uint32(fdt, node, "min_ver", &attr->minor_version); in manifest_parse_attribute() 53 attr->spmc_id = val32 & 0xffff; in manifest_parse_attribute() 55 rc = fdt_read_uint32(fdt, node, "exec_state", &attr->exec_state); in manifest_parse_attribute() 80 VERBOSE(" version: %u.%u\n", attr->major_version, attr->minor_version); in manifest_parse_attribute() 81 VERBOSE(" spmc_id: 0x%x\n", attr->spmc_id); in manifest_parse_attribute() 82 VERBOSE(" binary_size: 0x%x\n", attr->binary_size); in manifest_parse_attribute() 83 VERBOSE(" load_address: 0x%llx\n", attr->load_address); in manifest_parse_attribute() [all …]
|
/tf-a-ffa_el3_spmc/lib/xlat_tables/aarch32/ |
A D | nonlpae_tables.c | 163 mm->size, mm->attr); in print_mmap() 281 mm->attr = attr; in mmap_add_region() 308 desc |= (attr & MT_MEMORY) != 0U ? in mmap_desc() 311 if (((attr & MT_RW) != 0U) || ((attr & MT_MEMORY) == 0U)) { in mmap_desc() 323 desc |= (attr & MT_MEMORY) != 0U ? in mmap_desc() 326 if (((attr & MT_RW) != 0U) || ((attr & MT_MEMORY) == 0U)) { in mmap_desc() 379 if ((ret == 0U) && (mm->attr == *attr)) { in mmap_region_attr() 389 *attr = mm->attr; in mmap_region_attr() 432 unsigned int attr = mm->attr; in init_xlation_table_inner() local 434 level_size, &attr); in init_xlation_table_inner() [all …]
|
/tf-a-ffa_el3_spmc/lib/xlat_tables/ |
A D | xlat_tables_common.c | 66 mm->size, mm->attr); in print_mmap() 74 size_t size, unsigned int attr) in mmap_add_region() argument 170 mm->attr = attr; in mmap_add_region() 184 mm_cursor->size, mm_cursor->attr); in mmap_add() 223 mem_type = MT_TYPE(attr); in mmap_desc() 250 if (((attr & MT_RW) != 0U) || ((attr & MT_EXECUTE_NEVER) != 0U)) { in mmap_desc() 311 if ((ret == 0U) && (mm->attr == *attr)) in mmap_region_attr() 318 *attr = mm->attr; in mmap_region_attr() 365 unsigned int attr; in init_xlation_table_inner() local 367 level_size, &attr); in init_xlation_table_inner() [all …]
|
/tf-a-ffa_el3_spmc/include/lib/xlat_tables/ |
A D | xlat_tables.h | 21 #define MAP_REGION_FLAT(adr, sz, attr) MAP_REGION(adr, adr, sz, attr) argument 26 #define MAP_REGION(pa, va, sz, attr) {(pa), (va), (sz), (attr)} argument 82 unsigned int attr; member 88 size_t size, unsigned int attr);
|
A D | xlat_tables_v2.h | 41 #define MAP_REGION_ALLOC_VA(pa, sz, attr) MAP_REGION(pa, 0, sz, attr) argument 138 unsigned int attr; member 253 size_t size, unsigned int attr); 270 size_t size, unsigned int attr); 293 size_t size, unsigned int attr); 308 size_t size, unsigned int attr); 369 size_t size, uint32_t attr); 370 int xlat_change_mem_attributes(uintptr_t base_va, size_t size, uint32_t attr); 398 uint32_t *attr); 399 int xlat_get_mem_attributes(uintptr_t base_va, uint32_t *attr);
|
A D | xlat_tables_defs.h | 156 #define MAIR_ATTR_SET(attr, index) ((attr) << ((index) << 3)) argument 158 #define ATTR_INDEX_GET(attr) (((attr) >> 2) & ATTR_INDEX_MASK) argument
|
/tf-a-ffa_el3_spmc/lib/xlat_tables_v2/ |
A D | xlat_tables_context.c | 32 unsigned int attr) in mmap_add_region() argument 34 mmap_region_t mm = MAP_REGION(base_pa, base_va, size, attr); in mmap_add_region() 45 size_t size, unsigned int attr) in mmap_add_region_alloc_va() argument 47 mmap_region_t mm = MAP_REGION_ALLOC_VA(base_pa, size, attr); in mmap_add_region_alloc_va() 66 size_t size, unsigned int attr) in mmap_add_dynamic_region() argument 68 mmap_region_t mm = MAP_REGION(base_pa, base_va, size, attr); in mmap_add_dynamic_region() 75 unsigned int attr) in mmap_add_dynamic_region_alloc_va() argument 77 mmap_region_t mm = MAP_REGION_ALLOC_VA(base_pa, size, attr); in mmap_add_dynamic_region_alloc_va() 113 int xlat_get_mem_attributes(uintptr_t base_va, uint32_t *attr) in xlat_get_mem_attributes() argument 115 return xlat_get_mem_attributes_ctx(&tf_xlat_ctx, base_va, attr); in xlat_get_mem_attributes() [all …]
|
A D | xlat_tables_utils.c | 44 mm->base_va, mm->base_pa, mm->size, mm->attr, in xlat_mmap_print() 423 uint32_t *attr) in xlat_get_mem_attributes_ctx() argument 425 return xlat_get_mem_attributes_internal(ctx, base_va, attr, in xlat_get_mem_attributes_ctx() 431 size_t size, uint32_t attr) in xlat_change_mem_attributes_ctx() argument 459 if (((attr & MT_EXECUTE_NEVER) == 0U) && ((attr & MT_RW) != 0U)) { in xlat_change_mem_attributes_ctx() 510 if ((attr & MT_EXECUTE_NEVER) == 0U) { in xlat_change_mem_attributes_ctx() 546 new_attr |= attr & (MT_RW | MT_EXECUTE_NEVER | MT_USER); in xlat_change_mem_attributes_ctx()
|
A D | xlat_tables_core.c | 132 desc |= ((attr & MT_NS) != 0U) ? LOWER_ATTRS(NS) : 0U; in xlat_desc() 141 if ((attr & MT_USER) != 0U) { in xlat_desc() 164 mem_type = MT_TYPE(attr); in xlat_desc() 194 if (((attr & MT_RW) != 0U) || ((attr & MT_EXECUTE_NEVER) != 0U)) { in xlat_desc() 198 shareability_type = MT_SHAREABILITY(attr); in xlat_desc() 215 ((attr & (MT_TYPE_MASK | MT_RW | in xlat_desc() 736 if (((mm->attr & MT_DYNAMIC) != 0U) || in mmap_add_region_check() 737 ((mm_cursor->attr & MT_DYNAMIC) != 0U)) in mmap_add_region_check() 962 mm->attr |= MT_DYNAMIC; in mmap_add_dynamic_region_ctx() 1028 .attr = 0U in mmap_add_dynamic_region_ctx() [all …]
|
/tf-a-ffa_el3_spmc/services/std_svc/spm/spm_mm/ |
A D | spm_mm_xlat.c | 62 static unsigned int smc_mmap_to_smc_attr(unsigned int attr) in smc_mmap_to_smc_attr() argument 68 if ((attr & MT_USER) == 0) { in smc_mmap_to_smc_attr() 72 if ((attr & MT_RW) != 0) { in smc_mmap_to_smc_attr() 73 assert(MT_TYPE(attr) != MT_DEVICE); in smc_mmap_to_smc_attr() 83 if ((attr & MT_EXECUTE_NEVER) != 0U) { in smc_mmap_to_smc_attr()
|
/tf-a-ffa_el3_spmc/drivers/arm/css/scmi/ |
A D | scmi_ap_core_proto.c | 18 int scmi_ap_core_set_reset_addr(void *p, uint64_t reset_addr, uint32_t attr) in scmi_ap_core_set_reset_addr() argument 35 reset_addr >> 32, attr); in scmi_ap_core_set_reset_addr() 52 int scmi_ap_core_get_reset_addr(void *p, uint64_t *reset_addr, uint32_t *attr) in scmi_ap_core_get_reset_addr() argument 73 SCMI_PAYLOAD_RET_VAL4(mbx_mem->payload, ret, lo_addr, hi_addr, *attr); in scmi_ap_core_get_reset_addr()
|
/tf-a-ffa_el3_spmc/drivers/arm/tzc/ |
A D | tzc_dmc500.c | 32 #define verify_region_attr(region, attr) \ argument 34 ((attr) >> TZC_REGION_ATTR_SEC_SHIFT)) \ 35 && ((attr) & (0x1 << TZC_REGION_ATTR_F_EN_SHIFT))) 112 unsigned int attr; in tzc_dmc500_verify_complete() local 127 attr = _tzc_dmc500_read_region_attr_0( in tzc_dmc500_verify_complete() 132 region_no, dmc_inst, sys_if, attr); in tzc_dmc500_verify_complete() 133 if (!verify_region_attr(region_no, attr)) in tzc_dmc500_verify_complete()
|
A D | tzc380.c | 83 void tzc380_configure_region(uint8_t region, uintptr_t region_base, unsigned int attr) in tzc380_configure_region() argument 91 tzc380_write_region_attributes(tzc380.base, region, attr); in tzc380_configure_region()
|
/tf-a-ffa_el3_spmc/tools/cert_create/src/tbbr/ |
A D | tbb_ext.c | 31 .attr.nvctr_type = NVCTR_TYPE_TFW 41 .attr.nvctr_type = NVCTR_TYPE_NTFW 88 .attr.key = TRUSTED_WORLD_KEY 96 .attr.key = NON_TRUSTED_WORLD_KEY 104 .attr.key = SCP_FW_CONTENT_CERT_KEY 121 .attr.key = SOC_FW_CONTENT_CERT_KEY 148 .attr.key = TRUSTED_OS_FW_CONTENT_CERT_KEY 195 .attr.key = NON_TRUSTED_FW_CONTENT_CERT_KEY
|
/tf-a-ffa_el3_spmc/lib/el3_runtime/aarch32/ |
A D | context_mgmt.c | 62 security_state = GET_SECURITY_STATE(ep->h.attr); in cm_setup_context() 98 (EP_GET_EE(ep->h.attr) >> EP_EE_SHIFT)); in cm_setup_context() 100 sctlr = (EP_GET_EE(ep->h.attr) != 0U) ? SCTLR_EE_BIT : 0U; in cm_setup_context() 151 ctx = cm_get_context_by_index(cpu_idx, GET_SECURITY_STATE(ep->h.attr)); in cm_init_context_by_index() 163 ctx = cm_get_context(GET_SECURITY_STATE(ep->h.attr)); in cm_init_my_context()
|
/tf-a-ffa_el3_spmc/include/common/ |
A D | param_header.h | 25 (_p)->h.attr = (uint32_t)(_attr) ; \ 33 ._p.h.attr = (uint32_t)(_attr)
|
/tf-a-ffa_el3_spmc/include/drivers/arm/css/ |
A D | scmi.h | 143 uint32_t *attr); 161 int scmi_ap_core_set_reset_addr(void *p, uint64_t reset_addr, uint32_t attr); 162 int scmi_ap_core_get_reset_addr(void *p, uint64_t *reset_addr, uint32_t *attr);
|
/tf-a-ffa_el3_spmc/bl1/ |
A D | bl1_fwu.c | 249 if (GET_SECURITY_STATE(desc->ep_info.h.attr) == NON_SECURE) { in bl1_fwu_image_copy() 389 if (GET_SECURITY_STATE(desc->ep_info.h.attr) == SECURE) { in bl1_fwu_image_auth() 424 desc->ep_info.h.attr) != 0) { in bl1_fwu_image_auth() 520 (GET_SECURITY_STATE(desc->ep_info.h.attr) == NON_SECURE) || in bl1_fwu_image_execute() 521 (EP_GET_EXE(desc->ep_info.h.attr) == NON_EXECUTABLE) || in bl1_fwu_image_execute() 573 assert(GET_SECURITY_STATE(desc->ep_info.h.attr) == SECURE); in bl1_fwu_image_resume() 574 assert(EP_GET_EXE(desc->ep_info.h.attr) == EXECUTABLE); in bl1_fwu_image_resume() 634 assert(GET_SECURITY_STATE(desc->ep_info.h.attr) == SECURE); in bl1_fwu_sec_image_done() 635 assert(EP_GET_EXE(desc->ep_info.h.attr) == EXECUTABLE); in bl1_fwu_sec_image_done() 719 assert(GET_SECURITY_STATE(desc->ep_info.h.attr) in bl1_fwu_image_reset()
|
/tf-a-ffa_el3_spmc/bl32/tsp/ |
A D | ffa_helpers.h | 96 static inline void ffa_set_##name##_attr(container_type *attr, \ 99 *attr = (*attr & ~(mask)) | ((perm << offset) & mask); \ 104 container_type attr) \ 106 return (enum ffa_##name)((attr & mask) >> offset); \
|
/tf-a-ffa_el3_spmc/drivers/marvell/ |
A D | amb_adec.c | 96 uint32_t ctrl, base, win_id, attr; in dump_amb_adec() local 106 attr = (ctrl >> AMB_ATTR_OFFSET) & AMB_ATTR_MASK; in dump_amb_adec() 110 attr, base, size); in dump_amb_adec()
|
/tf-a-ffa_el3_spmc/tools/cert_create/src/dualroot/ |
A D | cot.c | 223 .attr.nvctr_type = NVCTR_TYPE_TFW 275 .attr.key = TRUSTED_WORLD_KEY 284 .attr.key = SCP_FW_CONTENT_CERT_KEY 303 .attr.key = SOC_FW_CONTENT_CERT_KEY 333 .attr.key = TRUSTED_OS_FW_CONTENT_CERT_KEY 499 .attr.key = PROT_KEY 510 .attr.nvctr_type = NVCTR_TYPE_NTFW
|
/tf-a-ffa_el3_spmc/include/lib/psci/ |
A D | psci_lib.h | 63 .h.attr = 0U, \ 72 && ((_p)->h.attr == 0) \
|
/tf-a-ffa_el3_spmc/bl2/ |
A D | bl2_image_load_v2.c | 50 if ((bl2_node_info->image_info->h.attr & in bl2_load_images() 67 if ((bl2_node_info->image_info->h.attr & in bl2_load_images()
|
/tf-a-ffa_el3_spmc/include/drivers/arm/ |
A D | tzc380.h | 140 unsigned int attr); 149 unsigned int attr) in tzc_configure_region() argument 151 tzc380_configure_region(region, region_base, attr); in tzc_configure_region()
|
/tf-a-ffa_el3_spmc/plat/mediatek/mt6795/ |
A D | bl31_plat_setup.c | 214 SET_SECURITY_STATE(bl32_image_ep_info.h.attr, SECURE); in bl31_early_platform_setup2() 230 SET_SECURITY_STATE(bl33_image_ep_info.h.attr, NON_SECURE); in bl31_early_platform_setup2() 366 SET_SECURITY_STATE(next_image_info->h.attr, NON_SECURE); in bl31_plat_get_next_kernel64_ep_info() 412 SET_SECURITY_STATE(next_image_info->h.attr, NON_SECURE); in bl31_plat_get_next_kernel32_ep_info() 440 assert(image_type == GET_SECURITY_STATE(next_image_info->h.attr)); in bl31_prepare_kernel_entry()
|