/optee_os-3.20.0/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); 107 uint16_t *prot, size_t *offs);
|
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-3.20.0/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() 350 prot, VM_FLAG_READONLY, in ldelf_syscall_map_bin() 385 prot); in ldelf_syscall_map_bin() 466 prot |= TEE_MATTR_UW | TEE_MATTR_PW; in ldelf_syscall_set_prot() 468 prot |= TEE_MATTR_UX; in ldelf_syscall_set_prot() 470 prot |= TEE_MATTR_GUARDED; in ldelf_syscall_set_prot() [all …]
|
A D | user_ta.c | 269 uint32_t prot = TEE_MATTR_URW; in user_ta_dump_ftrace() local 298 res = vm_map(&utc->uctx, &va, mobj->size, prot, VM_FLAG_EPHEMERAL, in user_ta_dump_ftrace()
|
/optee_os-3.20.0/core/mm/ |
A D | vm.c | 304 if (prot & ~TEE_MATTR_PROT_MASK) in vm_map_pad() 327 reg->attr = attr | prot; in vm_map_pad() 724 uint16_t *prot) in vm_get_prot() argument 738 *prot = r->attr & TEE_MATTR_PROT_MASK; in vm_get_prot() 744 uint32_t prot) in vm_set_prot() argument 768 r->attr |= prot; in vm_set_prot() 791 prot)) in vm_set_prot() 858 uint32_t prot = 0; in map_kinit() local 862 prot = TEE_MATTR_PRX; in map_kinit() 864 prot |= TEE_MATTR_GUARDED; in map_kinit() [all …]
|
/optee_os-3.20.0/core/arch/arm/kernel/ |
A D | ldelf_loader.c | 29 size_t sz, uint32_t prot, in alloc_and_map_ldelf_fobj() argument 42 prot, VM_FLAG_LDELF, mobj, 0); in alloc_and_map_ldelf_fobj() 59 uint32_t prot = 0; in ldelf_load_ldelf() local 87 prot = TEE_MATTR_URX; in ldelf_load_ldelf() 89 prot |= TEE_MATTR_GUARDED; in ldelf_load_ldelf() 92 ROUNDUP(ldelf_code_size, SMALL_PAGE_SIZE), prot); in ldelf_load_ldelf()
|
A D | stmm_sp.c | 176 uint32_t prot, vaddr_t *va) in alloc_and_map_sp_fobj() argument 189 prot, 0, mobj, 0); in alloc_and_map_sp_fobj() 536 uint32_t prot = 0; in sp_svc_set_mem_attr() local 548 prot |= TEE_MATTR_UR; in sp_svc_set_mem_attr() 550 prot |= TEE_MATTR_URW; in sp_svc_set_mem_attr() 553 prot |= TEE_MATTR_UX; in sp_svc_set_mem_attr() 555 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-3.20.0/core/tee/ |
A D | tee_svc.c | 160 uint32_t prot; in get_prop_tee_sys_time_prot_level() local 162 if (*blen < sizeof(prot)) { in get_prop_tee_sys_time_prot_level() 163 *blen = sizeof(prot); in get_prop_tee_sys_time_prot_level() 166 *blen = sizeof(prot); in get_prop_tee_sys_time_prot_level() 167 prot = tee_time_get_sys_time_protection_level(); in get_prop_tee_sys_time_prot_level() 168 return copy_to_user(buf, &prot, sizeof(prot)); in get_prop_tee_sys_time_prot_level()
|
/optee_os-3.20.0/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-3.20.0/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()
|