/trusted-firmware-m-3.7.0/secure_fw/spm/core/ |
D | interrupt.c | 70 p_curr_sp->boundary, p_owner_sp->boundary); in tfm_flih_prepare_depriv_flih() 73 p_owner_sp->p_ldinf, p_owner_sp->boundary); in tfm_flih_prepare_depriv_flih() 106 p_owner_sp->boundary, p_prev_sp->boundary); in tfm_flih_return_to_isr() 109 p_prev_sp->p_ldinf, p_prev_sp->boundary); in tfm_flih_return_to_isr() 181 spm_boundary, p_part->boundary); in spm_handle_interrupt()
|
D | psa_call_api.c | 62 curr_partition->boundary, (uintptr_t)inptr, in spm_associate_call_params() 77 curr_partition->boundary, (uintptr_t)outptr, in spm_associate_call_params() 117 curr_partition->boundary, (uintptr_t)ivecs_local[i].base, in spm_associate_call_params() 140 curr_partition->boundary, (uintptr_t)ovecs_local[i].base, in spm_associate_call_params()
|
D | tfm_svcalls.c | 90 FIH_CALL(tfm_hal_boundary_need_switch, fih_bool, spm_boundary, p_part_next->boundary); in thread_mode_spm_return() 93 p_part_next->p_ldinf, p_part_next->boundary); in thread_mode_spm_return() 174 FIH_CALL(tfm_hal_boundary_need_switch, fih_bool, p_curr_sp->boundary, spm_boundary); in prepare_to_thread_mode_spm() 228 FIH_CALL(tfm_hal_memory_check, fih_rc, curr_partition->boundary, (uintptr_t)svc_args[0], in handle_spm_svc_requests()
|
D | backend_ipc.c | 152 FIH_CALL(tfm_hal_boundary_need_switch, fih_rc, spm_boundary, p_pt->boundary); in prv_process_metadata() 358 FIH_CALL(tfm_hal_activate_boundary, fih_rc, p_cur_pt->p_ldinf, p_cur_pt->boundary); in backend_system_run() 511 p_part_curr->boundary, p_part_next->boundary); in ipc_schedule() 514 p_part_next->p_ldinf, p_part_next->boundary); in ipc_schedule()
|
D | psa_read_write_skip_api.c | 68 curr_partition->boundary, (uintptr_t)buffer, in tfm_spm_partition_psa_read() 199 curr_partition->boundary, (uintptr_t)buffer, in tfm_spm_partition_psa_write()
|
D | psa_mmiovec_api.c | 81 partition->boundary, (uintptr_t)handle->invec_base[invec_idx], in tfm_spm_partition_psa_map_invec() 210 partition->boundary, (uintptr_t)handle->outvec_base[outvec_idx], in tfm_spm_partition_psa_map_outvec()
|
/trusted-firmware-m-3.7.0/platform/ext/target/arm/rse/common/fip_parser/ |
D | host_flash_atu.c | 26 static inline uint32_t round_down(uint32_t num, uint32_t boundary) in round_down() argument 28 return num - (num % boundary); in round_down() 31 static inline uint32_t round_up(uint32_t num, uint32_t boundary) in round_up() argument 33 return (num + boundary - 1) - ((num + boundary - 1) % boundary); in round_up() 37 uint32_t boundary, uint32_t atu_slot, in setup_aligned_atu_slot() argument 45 aligned_physical_address = round_down(physical_address, boundary); in setup_aligned_atu_slot() 46 *atu_slot_size = round_up(physical_address + size, boundary) in setup_aligned_atu_slot() 60 || *alignment_offset > boundary) { in setup_aligned_atu_slot()
|
/trusted-firmware-m-3.7.0/platform/ext/target/cypress/psoc64/ |
D | tfm_hal_isolation.c | 50 uintptr_t boundary, in tfm_hal_memory_check() argument 70 if (!((uint32_t)boundary & HANDLE_ATTR_PRIV_MASK)) { in tfm_hal_memory_check() 74 if ((uint32_t)boundary & HANDLE_ATTR_NS_MASK) { in tfm_hal_memory_check() 146 uintptr_t boundary) in tfm_hal_activate_boundary() argument 149 bool privileged = !!((uint32_t)boundary & HANDLE_ATTR_PRIV_MASK); in tfm_hal_activate_boundary()
|
/trusted-firmware-m-3.7.0/platform/ext/accelerator/cc312/cc312-rom/ |
D | cc3xx_dma.c | 24 static inline uint32_t round_down(uint32_t num, uint32_t boundary) in round_down() argument 26 return num - (num % boundary); in round_down() 29 static inline uint32_t round_up(uint32_t num, uint32_t boundary) in round_up() argument 31 return (num + boundary - 1) - ((num + boundary - 1) % boundary); in round_up()
|
/trusted-firmware-m-3.7.0/platform/ext/target/arm/rse/common/bl2/ |
D | create_xip_tables.py | 33 def round_up(x, boundary): argument 34 return ((x + (boundary - 1)) // boundary) * boundary
|
/trusted-firmware-m-3.7.0/docs/design_docs/software/ |
D | hardware_abstraction_layer.rst | 288 The Isolation API operates on boundaries. A boundary represents a set of 290 boundary examples in the current implementation: 298 persistent after the initialization. This type of boundary needs the 301 is running. This type of boundary needs both set-up and switching 304 The boundary operations are abstracted as HAL interfaces because isolation 307 - The set-up HAL interface creates a partition boundary based on given 308 partition information. This created boundary is bound with the partition 309 for subsequent usage. The binding is done by storing the boundary into 311 - The activation HAL interface activates the partition boundary to secure 313 information and boundary are given to the activation HAL to accomplish [all …]
|
/trusted-firmware-m-3.7.0/platform/ext/target/arm/corstone1000/ |
D | tfm_hal_isolation.c | 166 enum tfm_hal_status_t tfm_hal_memory_check(uintptr_t boundary, in tfm_hal_memory_check() argument 186 if (!((uint32_t)boundary & HANDLE_ATTR_PRIV_MASK)) { in tfm_hal_memory_check() 190 if ((uint32_t)boundary & HANDLE_ATTR_NS_MASK) { in tfm_hal_memory_check() 272 uintptr_t boundary) in tfm_hal_activate_boundary() argument 275 uint32_t local_handle = (uint32_t)boundary; in tfm_hal_activate_boundary()
|
/trusted-firmware-m-3.7.0/platform/include/ |
D | tfm_hal_isolation.h | 70 uintptr_t boundary); 91 uintptr_t boundary, uintptr_t base,
|
/trusted-firmware-m-3.7.0/platform/ext/target/arm/mps2/an519/ |
D | tfm_hal_isolation.c | 253 uintptr_t boundary) in tfm_hal_activate_boundary() argument 256 bool privileged = !!((uint32_t)boundary & HANDLE_ATTR_PRIV_MASK); in tfm_hal_activate_boundary() 266 enum tfm_hal_status_t tfm_hal_memory_check(uintptr_t boundary, uintptr_t base, in tfm_hal_memory_check() argument 288 if (!((uint32_t)boundary & HANDLE_ATTR_PRIV_MASK)) { in tfm_hal_memory_check() 292 if ((uint32_t)boundary & HANDLE_ATTR_NS_MASK) { in tfm_hal_memory_check()
|
/trusted-firmware-m-3.7.0/platform/ext/target/arm/musca_s1/ |
D | tfm_hal_isolation.c | 263 uintptr_t boundary) in tfm_hal_activate_boundary() argument 266 bool privileged = !!(((uint32_t)boundary) & HANDLE_ATTR_PRIV_MASK); in tfm_hal_activate_boundary() 276 enum tfm_hal_status_t tfm_hal_memory_check(uintptr_t boundary, uintptr_t base, in tfm_hal_memory_check() argument 298 if (!((uint32_t)boundary & HANDLE_ATTR_PRIV_MASK)) { in tfm_hal_memory_check() 302 if ((uint32_t)boundary & HANDLE_ATTR_NS_MASK) { in tfm_hal_memory_check()
|
/trusted-firmware-m-3.7.0/platform/ext/common/ |
D | tfm_hal_isolation_v8m.c | 409 uintptr_t boundary) in tfm_hal_activate_boundary() argument 412 bool privileged = !!((uint32_t)boundary & HANDLE_ATTR_PRIV_MASK); in tfm_hal_activate_boundary() 422 enum tfm_hal_status_t tfm_hal_memory_check(uintptr_t boundary, uintptr_t base, in tfm_hal_memory_check() argument 448 if (!((uint32_t)boundary & HANDLE_ATTR_PRIV_MASK)) { in tfm_hal_memory_check() 453 if ((uint32_t)boundary & HANDLE_ATTR_NS_MASK) { in tfm_hal_memory_check()
|
/trusted-firmware-m-3.7.0/platform/ext/target/stm/common/stm32u5xx/secure/ |
D | tfm_hal_isolation.c | 436 uintptr_t boundary) in tfm_hal_activate_boundary() argument 439 uint32_t local_handle = (uint32_t)boundary; in tfm_hal_activate_boundary() 450 FIH_RET_TYPE(enum tfm_hal_status_t) tfm_hal_memory_check(uintptr_t boundary, uintptr_t base, in tfm_hal_memory_check() argument 472 if (!((uint32_t)boundary & HANDLE_ATTR_PRIV_MASK)) { in tfm_hal_memory_check() 476 if ((uint32_t)boundary & HANDLE_ATTR_NS_MASK) { in tfm_hal_memory_check()
|
/trusted-firmware-m-3.7.0/platform/ext/target/nordic_nrf/common/core/services/src/ |
D | tfm_platform_hal_ioctl.c | 32 uintptr_t boundary = (1 << HANDLE_ATTR_NS_POS) & in tfm_platform_hal_read_service() local 52 status = tfm_hal_memory_check(boundary, (uintptr_t)args->destination, in tfm_platform_hal_read_service()
|
/trusted-firmware-m-3.7.0/platform/ext/target/nordic_nrf/common/core/ |
D | tfm_hal_isolation.c | 160 uintptr_t boundary) in tfm_hal_activate_boundary() argument 166 ctrl.b.nPRIV = ((uint32_t)boundary & HANDLE_ATTR_PRIV_MASK) ? 0 : 1; in tfm_hal_activate_boundary() 241 enum tfm_hal_status_t tfm_hal_memory_check(uintptr_t boundary, uintptr_t base, in tfm_hal_memory_check() argument 268 if (!((uint32_t)boundary & HANDLE_ATTR_PRIV_MASK)) { in tfm_hal_memory_check() 273 if ((uint32_t)boundary & HANDLE_ATTR_NS_MASK) { in tfm_hal_memory_check()
|
/trusted-firmware-m-3.7.0/platform/ext/target/nuvoton/common/ |
D | tfm_hal_isolation.c | 374 uintptr_t boundary) in tfm_hal_activate_boundary() argument 377 uint32_t local_handle = (uint32_t)boundary; in tfm_hal_activate_boundary() 464 enum tfm_hal_status_t tfm_hal_memory_check(uintptr_t boundary, uintptr_t base, in tfm_hal_memory_check() argument 486 if (!((uint32_t)boundary & HANDLE_ATTR_PRIV_MASK)) { in tfm_hal_memory_check() 490 if ((uint32_t)boundary & HANDLE_ATTR_NS_MASK) { in tfm_hal_memory_check()
|
/trusted-firmware-m-3.7.0/platform/ext/target/stm/common/stm32l5xx/secure/ |
D | tfm_hal_isolation.c | 365 uintptr_t boundary) in tfm_hal_activate_boundary() argument 368 uint32_t local_handle = (uint32_t)boundary; in tfm_hal_activate_boundary() 455 enum tfm_hal_status_t tfm_hal_memory_check(uintptr_t boundary, uintptr_t base, in tfm_hal_memory_check() argument 477 if (!((uint32_t)boundary & HANDLE_ATTR_PRIV_MASK)) { in tfm_hal_memory_check() 481 if ((uint32_t)boundary & HANDLE_ATTR_NS_MASK) { in tfm_hal_memory_check()
|
/trusted-firmware-m-3.7.0/platform/ext/common/template/ |
D | flash_otp_nv_counters_backend.c | 227 static inline uint32_t round_down(uint32_t num, uint32_t boundary) in round_down() argument 229 return num - (num % boundary); in round_down() 232 static inline uint32_t round_up(uint32_t num, uint32_t boundary) in round_up() argument 234 return (num + boundary - 1) - ((num + boundary - 1) % boundary); in round_up()
|
/trusted-firmware-m-3.7.0/platform/ext/target/stm/common/stm32h5xx/secure/ |
D | tfm_hal_isolation.c | 496 uintptr_t boundary) in tfm_hal_activate_boundary() argument 499 uint32_t local_handle = (uint32_t)boundary; in tfm_hal_activate_boundary() 510 FIH_RET_TYPE(enum tfm_hal_status_t) tfm_hal_memory_check(uintptr_t boundary, uintptr_t base, in tfm_hal_memory_check() argument 532 if (!((uint32_t)boundary & HANDLE_ATTR_PRIV_MASK)) { in tfm_hal_memory_check() 536 if ((uint32_t)boundary & HANDLE_ATTR_NS_MASK) { in tfm_hal_memory_check()
|
/trusted-firmware-m-3.7.0/platform/ext/target/arm/musca_b1/ |
D | tfm_hal_isolation.c | 387 uintptr_t boundary) in tfm_hal_activate_boundary() argument 390 uint32_t local_handle = (uint32_t)boundary; in tfm_hal_activate_boundary() 477 enum tfm_hal_status_t tfm_hal_memory_check(uintptr_t boundary, uintptr_t base, in tfm_hal_memory_check() argument 499 if (!((uint32_t)boundary & HANDLE_ATTR_PRIV_MASK)) { in tfm_hal_memory_check() 503 if ((uint32_t)boundary & HANDLE_ATTR_NS_MASK) { in tfm_hal_memory_check()
|
/trusted-firmware-m-3.7.0/platform/ext/target/arm/rse/common/rse_comms/ |
D | rse_comms_atu.c | 25 static inline uint64_t round_down(uint64_t num, uint64_t boundary) in round_down() argument 27 return num - (num % boundary); in round_down()
|