/trusted-firmware-a-3.4.0/plat/common/ |
D | plat_spmd_manifest.c | 26 static int manifest_parse_attribute(spmc_manifest_attribute_t *attr, in manifest_parse_attribute() argument 33 assert((attr != NULL) && (fdt != NULL)); in manifest_parse_attribute() 35 rc = fdt_read_uint32(fdt, node, "maj_ver", &attr->major_version); in manifest_parse_attribute() 42 rc = fdt_read_uint32(fdt, node, "min_ver", &attr->minor_version); in manifest_parse_attribute() 55 attr->spmc_id = val32 & 0xffff; in manifest_parse_attribute() 57 rc = fdt_read_uint32(fdt, node, "exec_state", &attr->exec_state); in manifest_parse_attribute() 63 rc = fdt_read_uint32(fdt, node, "binary_size", &attr->binary_size); in manifest_parse_attribute() 69 rc = fdt_read_uint64(fdt, node, "load_address", &attr->load_address); in manifest_parse_attribute() 75 rc = fdt_read_uint64(fdt, node, "entrypoint", &attr->entrypoint); in manifest_parse_attribute() 82 VERBOSE(" version: %u.%u\n", attr->major_version, attr->minor_version); in manifest_parse_attribute() [all …]
|
/trusted-firmware-a-3.4.0/lib/xlat_tables/aarch32/ |
D | nonlpae_tables.c | 163 mm->size, mm->attr); in print_mmap() 174 while ((mm_cursor->size != 0U) || (mm_cursor->attr != 0U)) { in mmap_add() 176 mm_cursor->size, mm_cursor->attr); in mmap_add() 182 size_t size, unsigned int attr) in mmap_add_region() argument 281 mm->attr = attr; in mmap_add_region() 292 static uint32_t mmap_desc(unsigned attr, unsigned int addr_pa, in mmap_desc() argument 303 desc |= (attr & MT_NS) != 0U ? SECTION_NOTSECURE : 0U; in mmap_desc() 306 desc |= (attr & MT_RW) != 0U ? 0U : SECTION_RO; in mmap_desc() 308 desc |= (attr & MT_MEMORY) != 0U ? in mmap_desc() 311 if (((attr & MT_RW) != 0U) || ((attr & MT_MEMORY) == 0U)) { in mmap_desc() [all …]
|
/trusted-firmware-a-3.4.0/lib/xlat_tables/ |
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() 182 while ((mm_cursor->size != 0U) || (mm_cursor->attr != 0U)) { in mmap_add() 184 mm_cursor->size, mm_cursor->attr); in mmap_add() 189 static uint64_t mmap_desc(unsigned int attr, unsigned long long addr_pa, in mmap_desc() argument 204 desc |= ((attr & MT_NS) != 0U) ? LOWER_ATTRS(NS) : 0U; in mmap_desc() 205 desc |= ((attr & MT_RW) != 0U) ? LOWER_ATTRS(AP_RW) : LOWER_ATTRS(AP_RO); in mmap_desc() 223 mem_type = MT_TYPE(attr); in mmap_desc() 250 if (((attr & MT_RW) != 0U) || ((attr & MT_EXECUTE_NEVER) != 0U)) { in mmap_desc() [all …]
|
/trusted-firmware-a-3.4.0/include/lib/xlat_tables/ |
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 89 unsigned int attr; member 95 size_t size, unsigned int attr);
|
D | xlat_tables_v2.h | 41 #define MAP_REGION_ALLOC_VA(pa, sz, attr) MAP_REGION(pa, 0, sz, attr) argument 145 unsigned int attr; member 267 size_t size, unsigned int attr); 284 size_t size, unsigned int attr); 307 size_t size, unsigned int attr); 322 size_t size, unsigned int attr); 383 size_t size, uint32_t attr); 384 int xlat_change_mem_attributes(uintptr_t base_va, size_t size, uint32_t attr); 412 uint32_t *attr); 413 int xlat_get_mem_attributes(uintptr_t base_va, uint32_t *attr);
|
D | xlat_tables_defs.h | 157 #define MAIR_ATTR_SET(attr, index) ((attr) << ((index) << 3)) argument 159 #define ATTR_INDEX_GET(attr) (((attr) >> 2) & ATTR_INDEX_MASK) argument
|
/trusted-firmware-a-3.4.0/lib/xlat_tables_v2/ |
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 …]
|
D | xlat_tables_private.h | 44 uint32_t xlat_arch_get_pas(uint32_t attr); 83 uint64_t xlat_desc(const xlat_ctx_t *ctx, uint32_t attr,
|
D | xlat_tables_utils.c | 45 mm->base_va, mm->base_pa, mm->size, mm->attr, in xlat_mmap_print() 440 uint32_t *attr) in xlat_get_mem_attributes_ctx() argument 442 return xlat_get_mem_attributes_internal(ctx, base_va, attr, in xlat_get_mem_attributes_ctx() 448 size_t size, uint32_t attr) in xlat_change_mem_attributes_ctx() argument 476 if (((attr & MT_EXECUTE_NEVER) == 0U) && ((attr & MT_RW) != 0U)) { in xlat_change_mem_attributes_ctx() 527 if ((attr & MT_EXECUTE_NEVER) == 0U) { in xlat_change_mem_attributes_ctx() 563 new_attr |= attr & (MT_RW | MT_EXECUTE_NEVER | MT_USER); in xlat_change_mem_attributes_ctx()
|
D | xlat_tables_core.c | 107 uint64_t xlat_desc(const xlat_ctx_t *ctx, uint32_t attr, in xlat_desc() argument 130 desc |= xlat_arch_get_pas(attr); in xlat_desc() 136 desc |= ((attr & MT_RW) != 0U) ? LOWER_ATTRS(AP_RW) : LOWER_ATTRS(AP_RO); in xlat_desc() 144 if ((attr & MT_USER) != 0U) { in xlat_desc() 167 mem_type = MT_TYPE(attr); in xlat_desc() 197 if (((attr & MT_RW) != 0U) || ((attr & MT_EXECUTE_NEVER) != 0U)) { in xlat_desc() 201 shareability_type = MT_SHAREABILITY(attr); in xlat_desc() 218 ((attr & (MT_TYPE_MASK | MT_RW | in xlat_desc() 609 xlat_desc(ctx, (uint32_t)mm->attr, table_idx_pa, in xlat_tables_map_region() 739 if (((mm->attr & MT_DYNAMIC) != 0U) || in mmap_add_region_check() [all …]
|
/trusted-firmware-a-3.4.0/lib/xlat_mpu/ |
D | xlat_mpu_core.c | 38 uint64_t prbar_attr_value(uint32_t attr) in prbar_attr_value() argument 44 extract = (uint64_t) ((attr >> MT_SHAREABILITY_SHIFT) in prbar_attr_value() 49 extract = (uint64_t) ((attr >> MT_PERM_SHIFT) & MT_PERM_MASK); in prbar_attr_value() 57 extract = (uint64_t) ((attr >> MT_EXECUTE_SHIFT) & MT_EXECUTE_MASK); in prbar_attr_value() 60 extract = (uint64_t) ((attr >> MT_TYPE_SHIFT) & MT_TYPE_MASK); in prbar_attr_value() 68 uint64_t prlar_attr_value(uint32_t attr) in prlar_attr_value() argument 74 extract = (uint64_t) ((attr >> MT_TYPE_SHIFT) in prlar_attr_value() 136 prbar_attrs = prbar_attr_value(mm->attr); in mpu_map_region() 138 prlar_attrs = prlar_attr_value(mm->attr); in mpu_map_region() 210 if (((mm->attr & MT_DYNAMIC) != 0U) || in mmap_add_region_check() [all …]
|
D | xlat_mpu_private.h | 33 uint64_t prbar_attr_value(uint32_t attr); 35 uint64_t prlar_attr_value(uint32_t attr); 82 uint64_t xlat_desc(const xlat_ctx_t *ctx, uint32_t attr,
|
D | xlat_mpu_context.c | 56 int xlat_get_mem_attributes(uintptr_t base_va, uint32_t *attr) in xlat_get_mem_attributes() argument 58 return xlat_get_mem_attributes_ctx(&tf_xlat_ctx, base_va, attr); in xlat_get_mem_attributes()
|
/trusted-firmware-a-3.4.0/services/std_svc/spm/spm_mm/ |
D | spm_mm_xlat.c | 84 static unsigned int smc_mmap_to_smc_attr(unsigned int attr) in smc_mmap_to_smc_attr() argument 90 if ((attr & MT_USER) == 0) { in smc_mmap_to_smc_attr() 94 if ((attr & MT_RW) != 0) { in smc_mmap_to_smc_attr() 95 assert(MT_TYPE(attr) != MT_DEVICE); in smc_mmap_to_smc_attr() 105 if ((attr & MT_EXECUTE_NEVER) != 0U) { in smc_mmap_to_smc_attr()
|
/trusted-firmware-a-3.4.0/drivers/arm/css/scmi/ |
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()
|
/trusted-firmware-a-3.4.0/drivers/arm/tzc/ |
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()
|
/trusted-firmware-a-3.4.0/tools/cert_create/src/tbbr/ |
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
|
/trusted-firmware-a-3.4.0/lib/el3_runtime/aarch32/ |
D | context_mgmt.c | 64 security_state = GET_SECURITY_STATE(ep->h.attr); in cm_setup_context() 100 (EP_GET_EE(ep->h.attr) >> EP_EE_SHIFT)); in cm_setup_context() 102 sctlr = (EP_GET_EE(ep->h.attr) != 0U) ? SCTLR_EE_BIT : 0U; in cm_setup_context() 161 ctx = cm_get_context_by_index(cpu_idx, GET_SECURITY_STATE(ep->h.attr)); in cm_init_context_by_index() 173 ctx = cm_get_context(GET_SECURITY_STATE(ep->h.attr)); in cm_init_my_context()
|
/trusted-firmware-a-3.4.0/include/common/ |
D | param_header.h | 25 (_p)->h.attr = (uint32_t)(_attr) ; \ 33 ._p.h.attr = (uint32_t)(_attr)
|
/trusted-firmware-a-3.4.0/include/drivers/arm/css/ |
D | scmi.h | 149 uint32_t *attr); 167 int scmi_ap_core_set_reset_addr(void *p, uint64_t reset_addr, uint32_t attr); 168 int scmi_ap_core_get_reset_addr(void *p, uint64_t *reset_addr, uint32_t *attr);
|
/trusted-firmware-a-3.4.0/bl1/ |
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()
|
/trusted-firmware-a-3.4.0/tools/cert_create/src/cca/ |
D | cot.c | 150 .attr.nvctr_type = NVCTR_TYPE_TFW 202 .attr.key = SWD_ROT_KEY 211 .attr.key = CORE_SWD_KEY 313 .attr.key = PROT_KEY 322 .attr.key = PLAT_KEY 374 .attr.nvctr_type = NVCTR_TYPE_NTFW
|
/trusted-firmware-a-3.4.0/drivers/marvell/ |
D | amb_adec.c | 99 uint32_t ctrl, base, win_id, attr; in dump_amb_adec() local 109 attr = (ctrl >> AMB_ATTR_OFFSET) & AMB_ATTR_MASK; in dump_amb_adec() 113 attr, base, size); in dump_amb_adec()
|
/trusted-firmware-a-3.4.0/tools/cert_create/src/dualroot/ |
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
|
/trusted-firmware-a-3.4.0/include/lib/psci/ |
D | psci_lib.h | 63 .h.attr = 0U, \ 72 && ((_p)->h.attr == 0) \
|