Home
last modified time | relevance | path

Searched refs:boundary (Results 1 – 25 of 46) sorted by relevance

12

/trusted-firmware-m-3.7.0/secure_fw/spm/core/
Dinterrupt.c70 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()
Dpsa_call_api.c62 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()
Dtfm_svcalls.c90 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()
Dbackend_ipc.c152 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()
Dpsa_read_write_skip_api.c68 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()
Dpsa_mmiovec_api.c81 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/
Dhost_flash_atu.c26 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/
Dtfm_hal_isolation.c50 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/
Dcc3xx_dma.c24 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/
Dcreate_xip_tables.py33 def round_up(x, boundary): argument
34 return ((x + (boundary - 1)) // boundary) * boundary
/trusted-firmware-m-3.7.0/docs/design_docs/software/
Dhardware_abstraction_layer.rst288 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/
Dtfm_hal_isolation.c166 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/
Dtfm_hal_isolation.h70 uintptr_t boundary);
91 uintptr_t boundary, uintptr_t base,
/trusted-firmware-m-3.7.0/platform/ext/target/arm/mps2/an519/
Dtfm_hal_isolation.c253 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/
Dtfm_hal_isolation.c263 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/
Dtfm_hal_isolation_v8m.c409 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/
Dtfm_hal_isolation.c436 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/
Dtfm_platform_hal_ioctl.c32 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/
Dtfm_hal_isolation.c160 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/
Dtfm_hal_isolation.c374 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/
Dtfm_hal_isolation.c365 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/
Dflash_otp_nv_counters_backend.c227 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/
Dtfm_hal_isolation.c496 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/
Dtfm_hal_isolation.c387 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/
Drse_comms_atu.c25 static inline uint64_t round_down(uint64_t num, uint64_t boundary) in round_down() argument
27 return num - (num % boundary); in round_down()

12