/optee_os/core/include/mm/ |
A D | vm.h | 30 uint32_t prot, uint32_t flags, struct mobj *mobj, 40 size_t len, uint32_t prot, uint32_t flags, in vm_map() argument 43 return vm_map_pad(uctx, va, len, prot, flags, mobj, offs, 0, 0, 0); in vm_map() 53 uint16_t *prot); 56 uint32_t prot); 103 uint16_t *prot, size_t *offs);
|
/optee_os/core/kernel/ |
A D | ldelf_syscalls.c | 276 uint32_t prot = 0; in ldelf_syscall_map_bin() local 303 prot = TEE_MATTR_UR | TEE_MATTR_PR; in ldelf_syscall_map_bin() 305 prot |= TEE_MATTR_UW | TEE_MATTR_PW; in ldelf_syscall_map_bin() 307 prot |= TEE_MATTR_UX; in ldelf_syscall_map_bin() 309 prot |= TEE_MATTR_GUARDED; in ldelf_syscall_map_bin() 349 prot, VM_FLAG_READONLY, in ldelf_syscall_map_bin() 384 prot); in ldelf_syscall_map_bin() 465 prot |= TEE_MATTR_UW | TEE_MATTR_PW; in ldelf_syscall_set_prot() 467 prot |= TEE_MATTR_UX; in ldelf_syscall_set_prot() 469 prot |= TEE_MATTR_GUARDED; in ldelf_syscall_set_prot() [all …]
|
A D | user_ta.c | 262 uint32_t prot = TEE_MATTR_URW; in user_ta_dump_ftrace() local 291 res = vm_map(&utc->uctx, &va, mobj->size, prot, VM_FLAG_EPHEMERAL, in user_ta_dump_ftrace()
|
/optee_os/core/mm/ |
A D | vm.c | 269 if (prot & ~TEE_MATTR_PROT_MASK) in vm_map_pad() 292 reg->attr = attr | prot; in vm_map_pad() 676 uint16_t *prot) in vm_get_prot() argument 690 *prot = r->attr & TEE_MATTR_PROT_MASK; in vm_get_prot() 696 uint32_t prot) in vm_set_prot() argument 723 r->attr |= prot; in vm_set_prot() 736 prot)) in vm_set_prot() 803 uint32_t prot = 0; in map_kinit() local 807 prot = TEE_MATTR_PRX; in map_kinit() 809 prot |= TEE_MATTR_GUARDED; in map_kinit() [all …]
|
/optee_os/core/arch/arm/kernel/ |
A D | ldelf_loader.c | 29 size_t sz, uint32_t prot, in alloc_and_map_ldelf_fobj() argument 41 prot, VM_FLAG_LDELF, mobj, 0); in alloc_and_map_ldelf_fobj() 58 uint32_t prot = 0; in ldelf_load_ldelf() local 86 prot = TEE_MATTR_URX; in ldelf_load_ldelf() 88 prot |= TEE_MATTR_GUARDED; in ldelf_load_ldelf() 91 ROUNDUP(ldelf_code_size, SMALL_PAGE_SIZE), prot); in ldelf_load_ldelf()
|
A D | stmm_sp.c | 166 uint32_t prot, vaddr_t *va) in alloc_and_map_sp_fobj() argument 178 prot, 0, mobj, 0); in alloc_and_map_sp_fobj() 526 uint32_t prot = 0; in sp_svc_set_mem_attr() local 538 prot |= TEE_MATTR_UR; in sp_svc_set_mem_attr() 540 prot |= TEE_MATTR_URW; in sp_svc_set_mem_attr() 543 prot |= TEE_MATTR_UX; in sp_svc_set_mem_attr() 545 res = vm_set_prot(&spc->uctx, va, sz, prot); in sp_svc_set_mem_attr()
|
A D | spmc_sp_handler.c | 173 uint16_t prot = 0; in spmc_sp_add_sp_region() local 180 mobj = vm_get_mobj(&sp_ctx->uctx, va, &len, &prot, &offs); in spmc_sp_add_sp_region() 190 !(prot & TEE_MATTR_UW)) { in spmc_sp_add_sp_region() 196 !(prot & TEE_MATTR_UX)) { in spmc_sp_add_sp_region()
|
/optee_os/core/arch/arm/include/mm/ |
A D | tee_pager.h | 103 struct fobj *fobj, uint32_t prot); 108 uint32_t prot __unused) in tee_pager_add_um_region()
|
/optee_os/core/tee/ |
A D | tee_svc.c | 158 uint32_t prot; in get_prop_tee_sys_time_prot_level() local 160 if (*blen < sizeof(prot)) { in get_prop_tee_sys_time_prot_level() 161 *blen = sizeof(prot); in get_prop_tee_sys_time_prot_level() 164 *blen = sizeof(prot); in get_prop_tee_sys_time_prot_level() 165 prot = tee_time_get_sys_time_protection_level(); in get_prop_tee_sys_time_prot_level() 166 return copy_to_user(buf, &prot, sizeof(prot)); in get_prop_tee_sys_time_prot_level()
|
/optee_os/core/pta/ |
A D | system.c | 125 uint32_t prot = TEE_MATTR_URW | TEE_MATTR_PRW; in system_map_zi() local 155 res = vm_map_pad(uctx, &va, num_bytes, prot, vm_flags, in system_map_zi()
|
/optee_os/core/arch/arm/mm/ |
A D | tee_pager.c | 736 struct fobj *fobj, uint32_t prot) in pager_add_um_region() argument 769 reg->flags = prot; in pager_add_um_region() 814 struct fobj *fobj, uint32_t prot) in tee_pager_add_um_region() argument 820 res = pager_add_um_region(uctx, base, fobj, prot); in tee_pager_add_um_region()
|