Home
last modified time | relevance | path

Searched refs:attr (Results 1 – 25 of 106) sorted by relevance

12345

/arm-trusted-firmware-2.8.0/plat/common/
A Dplat_spmd_manifest.c26 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()
82 VERBOSE(" version: %u.%u\n", attr->major_version, attr->minor_version); in manifest_parse_attribute()
83 VERBOSE(" spmc_id: 0x%x\n", attr->spmc_id); in manifest_parse_attribute()
84 VERBOSE(" binary_size: 0x%x\n", attr->binary_size); in manifest_parse_attribute()
85 VERBOSE(" load_address: 0x%" PRIx64 "\n", attr->load_address); in manifest_parse_attribute()
[all …]
/arm-trusted-firmware-2.8.0/lib/xlat_tables/aarch32/
A Dnonlpae_tables.c163 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 …]
/arm-trusted-firmware-2.8.0/lib/xlat_tables/
A Dxlat_tables_common.c66 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 …]
/arm-trusted-firmware-2.8.0/include/lib/xlat_tables/
A Dxlat_tables.h21 #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);
A Dxlat_tables_v2.h41 #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);
A Dxlat_tables_defs.h157 #define MAIR_ATTR_SET(attr, index) ((attr) << ((index) << 3)) argument
159 #define ATTR_INDEX_GET(attr) (((attr) >> 2) & ATTR_INDEX_MASK) argument
/arm-trusted-firmware-2.8.0/lib/xlat_tables_v2/
A Dxlat_tables_context.c32 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 Dxlat_tables_private.h44 uint32_t xlat_arch_get_pas(uint32_t attr);
83 uint64_t xlat_desc(const xlat_ctx_t *ctx, uint32_t attr,
A Dxlat_tables_utils.c45 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()
A Dxlat_tables_core.c130 desc |= xlat_arch_get_pas(attr); 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()
739 if (((mm->attr & MT_DYNAMIC) != 0U) || in mmap_add_region_check()
740 ((mm_cursor->attr & MT_DYNAMIC) != 0U)) in mmap_add_region_check()
965 mm->attr |= MT_DYNAMIC; in mmap_add_dynamic_region_ctx()
1031 .attr = 0U in mmap_add_dynamic_region_ctx()
[all …]
/arm-trusted-firmware-2.8.0/lib/xlat_mpu/
A Dxlat_mpu_core.c38 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()
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()
211 ((mm_cursor->attr & MT_DYNAMIC) != 0U)) { in mmap_add_region_check()
[all …]
A Dxlat_mpu_private.h33 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,
A Dxlat_mpu_context.c56 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()
/arm-trusted-firmware-2.8.0/services/std_svc/spm/spm_mm/
A Dspm_mm_xlat.c84 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()
/arm-trusted-firmware-2.8.0/drivers/arm/css/scmi/
A Dscmi_ap_core_proto.c18 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()
/arm-trusted-firmware-2.8.0/drivers/arm/tzc/
A Dtzc_dmc500.c32 #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()
/arm-trusted-firmware-2.8.0/tools/cert_create/src/tbbr/
A Dtbb_ext.c31 .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
/arm-trusted-firmware-2.8.0/lib/el3_runtime/aarch32/
A Dcontext_mgmt.c64 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()
/arm-trusted-firmware-2.8.0/include/common/
A Dparam_header.h25 (_p)->h.attr = (uint32_t)(_attr) ; \
33 ._p.h.attr = (uint32_t)(_attr)
/arm-trusted-firmware-2.8.0/include/drivers/arm/css/
A Dscmi.h149 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);
/arm-trusted-firmware-2.8.0/bl1/
A Dbl1_fwu.c249 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()
/arm-trusted-firmware-2.8.0/tools/cert_create/src/cca/
A Dcot.c150 .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
/arm-trusted-firmware-2.8.0/drivers/marvell/
A Damb_adec.c99 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()
/arm-trusted-firmware-2.8.0/tools/cert_create/src/dualroot/
A Dcot.c223 .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
/arm-trusted-firmware-2.8.0/bl2/
A Dbl2_image_load_v2.c49 if ((bl2_node_info->image_info->h.attr & in bl2_load_images()
66 if ((bl2_node_info->image_info->h.attr & in bl2_load_images()

Completed in 41 milliseconds

12345