| /optee_os/core/include/mm/ |
| H A D | mobj.h | 26 struct mobj { struct 27 const struct mobj_ops *ops; argument 34 void *(*get_va)(struct mobj *mobj, size_t offs, size_t len); argument 61 static inline void *mobj_get_va(struct mobj *mobj, size_t offset, size_t len) in mobj_get_va() 68 static inline TEE_Result mobj_get_pa(struct mobj *mobj, size_t offs, in mobj_get_pa() 76 static inline size_t mobj_get_phys_offs(struct mobj *mobj, size_t granule) in mobj_get_phys_offs() 83 static inline TEE_Result mobj_get_mem_type(struct mobj *mobj, uint32_t *mt) in mobj_get_mem_type() 90 static inline bool mobj_matches(struct mobj *mobj, enum buf_is_attr attr) in mobj_matches() 107 static inline TEE_Result mobj_inc_map(struct mobj *mobj) in mobj_inc_map() 127 static inline TEE_Result mobj_dec_map(struct mobj *mobj) in mobj_dec_map() [all …]
|
| H A D | vm.h | 41 struct mobj *mobj, size_t offs) in vm_map()
|
| H A D | sp_mem.h | 38 struct mobj *mobj; member
|
| /optee_os/core/mm/ |
| H A D | mobj.c | 32 struct mobj mobj; member 42 static void *mobj_phys_get_va(struct mobj *mobj, size_t offset, size_t len) in mobj_phys_get_va() 52 static TEE_Result mobj_phys_get_pa(struct mobj *mobj, size_t offs, in mobj_phys_get_pa() 75 static TEE_Result mobj_phys_get_mem_type(struct mobj *mobj, uint32_t *mem_type) in mobj_phys_get_mem_type() 86 static bool mobj_phys_matches(struct mobj *mobj, enum buf_is_attr attr) in mobj_phys_matches() 108 static void mobj_phys_free(struct mobj *mobj) in mobj_phys_free() 129 static struct mobj_phys *to_mobj_phys(struct mobj *mobj) in to_mobj_phys() 205 static void *mobj_virt_get_va(struct mobj *mobj, size_t offset, in mobj_virt_get_va() 239 struct mobj mobj; member 246 static void *mobj_shm_get_va(struct mobj *mobj, size_t offset, size_t len) in mobj_shm_get_va() [all …]
|
| H A D | mobj_dyn_shm.c | 33 struct mobj mobj; member 49 struct mobj mobj; member 81 static TEE_Result mobj_reg_shm_get_pa(struct mobj *mobj, size_t offst, in mobj_reg_shm_get_pa() 112 static size_t mobj_reg_shm_get_phys_offs(struct mobj *mobj, in mobj_reg_shm_get_phys_offs() 119 static void *mobj_reg_shm_get_va(struct mobj *mobj, size_t offst, size_t len) in mobj_reg_shm_get_va() 152 static void mobj_reg_shm_free(struct mobj *mobj) in mobj_reg_shm_free() 195 static TEE_Result mobj_reg_shm_inc_map(struct mobj *mobj) in mobj_reg_shm_inc_map() 246 static TEE_Result mobj_reg_shm_dec_map(struct mobj *mobj) in mobj_reg_shm_dec_map() 273 static uint64_t mobj_reg_shm_get_cookie(struct mobj *mobj) in mobj_reg_shm_get_cookie() 312 static struct mobj_reg_shm *to_mobj_reg_shm(struct mobj *mobj) in to_mobj_reg_shm() [all …]
|
| H A D | vm.c | 295 uint32_t prot, uint32_t flags, struct mobj *mobj, in vm_map_pad() 853 struct mobj *mobj = NULL; in map_kinit() local 1131 struct mobj **mobj, size_t *offs) in vm_buf_to_mboj_offs()
|
| /optee_os/core/arch/arm/mm/ |
| H A D | sp_mem.c | 23 struct mobj mobj; member 29 static struct mobj_sp *to_mobj_sp(struct mobj *mobj) in to_mobj_sp() 76 int sp_mem_add_pages(struct mobj *mobj, unsigned int *idx, in sp_mem_add_pages() 105 static TEE_Result get_mem_type(struct mobj *mobj, uint32_t *mt) in get_mem_type() 114 static bool mobj_sp_matches(struct mobj *mobj, enum buf_is_attr attr) in mobj_sp_matches() 124 static TEE_Result get_pa(struct mobj *mobj, size_t offset, in get_pa() 159 static void inactivate(struct mobj *mobj) in inactivate() 210 struct mobj *mobj) in sp_mem_get_va()
|
| H A D | mobj_ffa.c | 79 struct mobj mobj; member 130 static bool is_mobj_ffa_shm(struct mobj *mobj) in is_mobj_ffa_shm() 135 static struct mobj_ffa_shm *to_mobj_ffa_shm(struct mobj *mobj) in to_mobj_ffa_shm() 141 static bool is_mobj_ffa_prm(struct mobj *mobj) in is_mobj_ffa_prm() 146 static struct mobj_ffa_prm *to_mobj_ffa_prm(struct mobj *mobj) in to_mobj_ffa_prm() 741 static TEE_Result ffa_shm_get_pa(struct mobj *mobj, size_t offset, in ffa_shm_get_pa() 771 static size_t ffa_shm_get_phys_offs(struct mobj *mobj, in ffa_shm_get_phys_offs() 779 static void *ffa_shm_get_va(struct mobj *mobj, size_t offset, size_t len) in ffa_shm_get_va() 827 static void ffa_shm_inactivate(struct mobj *mobj) in ffa_shm_inactivate() 850 static uint64_t ffa_shm_get_cookie(struct mobj *mobj) in ffa_shm_get_cookie() [all …]
|
| /optee_os/core/arch/riscv/kernel/ |
| H A D | thread_optee_abi.c | 100 static uint32_t get_msg_arg(struct mobj *mobj, size_t offset, in get_msg_arg() 187 struct mobj *mobj = NULL; in std_entry_with_parg() local 244 struct mobj *mobj = NULL; in std_entry_with_regd_arg() local 396 struct mobj *mobj = NULL; in thread_rpc_alloc_arg() local 442 struct mobj *mobj = tpm->u.memref.mobj; in set_tmem() local 473 struct mobj *mobj = thread_rpc_alloc_arg(sz); in get_rpc_arg() local 593 static void thread_rpc_free(unsigned int bt, uint64_t cookie, struct mobj *mobj) in thread_rpc_free() 613 struct mobj *mobj = NULL; in get_rpc_alloc_res() local 695 void thread_rpc_free_kernel_payload(struct mobj *mobj) in thread_rpc_free_kernel_payload() 700 void thread_rpc_free_payload(struct mobj *mobj) in thread_rpc_free_payload() [all …]
|
| /optee_os/core/arch/arm/kernel/ |
| H A D | thread_optee_smc.c | 99 static uint32_t get_msg_arg(struct mobj *mobj, size_t offset, in get_msg_arg() 186 struct mobj *mobj = NULL; in std_entry_with_parg() local 243 struct mobj *mobj = NULL; in std_entry_with_regd_arg() local 395 struct mobj *mobj = NULL; in thread_rpc_alloc_arg() local 441 struct mobj *mobj = tpm->u.memref.mobj; in set_tmem() local 472 struct mobj *mobj = thread_rpc_alloc_arg(sz); in get_rpc_arg() local 592 static void thread_rpc_free(unsigned int bt, uint64_t cookie, struct mobj *mobj) in thread_rpc_free() 612 struct mobj *mobj = NULL; in get_rpc_alloc_res() local 686 void thread_rpc_free_kernel_payload(struct mobj *mobj) in thread_rpc_free_kernel_payload() 693 void thread_rpc_free_payload(struct mobj *mobj) in thread_rpc_free_payload() [all …]
|
| H A D | rpc_io_i2c.c | 23 struct mobj *mobj = NULL; in rpc_io_i2c_transfer() local
|
| H A D | thread_spmc.c | 2041 struct mobj *mobj = NULL; in yielding_call_with_arg() local 2230 thread_rpc_free(unsigned int bt,uint64_t cookie,struct mobj * mobj) thread_rpc_free() argument 2264 struct mobj *mobj = NULL; thread_rpc_alloc() local 2312 thread_rpc_free_kernel_payload(struct mobj * mobj) thread_rpc_free_kernel_payload() argument 2319 thread_rpc_free_payload(struct mobj * mobj) thread_rpc_free_payload() argument 2331 thread_rpc_free_global_payload(struct mobj * mobj) thread_rpc_free_global_payload() argument [all...] |
| /optee_os/core/kernel/ |
| H A D | msg_param.c | 66 struct mobj *mobj; in msg_param_extract_pages() local 118 struct mobj *mobj = NULL; in msg_param_mobj_from_noncontig() local
|
| H A D | ree_fs_ta.c | 63 struct mobj *mobj; member 197 size_t *ta_size, struct mobj **mobj) in rpc_load() 248 struct mobj *mobj = NULL; in ree_fs_ta_open() local
|
| H A D | ldelf_syscalls.c | 49 struct mobj *mobj = NULL; in ldelf_syscall_map_zi() local 308 struct mobj *mobj = NULL; in ldelf_syscall_map_bin() local
|
| H A D | ldelf_loader.c | 36 struct mobj *mobj = mobj_with_fobj_alloc(fobj, NULL, in alloc_and_map_fobj() local
|
| H A D | pseudo_ta.c | 30 static bool validate_in_param(struct ts_session *s, struct mobj *mobj) in validate_in_param()
|
| H A D | user_ta.c | 294 struct mobj *mobj = NULL; in user_ta_dump_ftrace() local
|
| /optee_os/core/tee/ |
| H A D | socket.c | 24 struct mobj *mobj = NULL; in socket_open() local 89 struct mobj *mobj = NULL; in socket_send() local 130 struct mobj *mobj = NULL; in socket_recv() local 177 struct mobj *mobj = NULL; in socket_ioctl() local
|
| H A D | tee_fs_rpc.c | 53 struct mobj *mobj = NULL; in operation_open_dfh() local 111 struct mobj *mobj; in tee_fs_rpc_read_init() local 150 struct mobj *mobj; in tee_fs_rpc_write_init() local 197 struct mobj *mobj = NULL; in tee_fs_rpc_remove_dfh() local
|
| H A D | tee_supp_plugin_rpc.c | 28 struct mobj *mobj = NULL; in tee_invoke_supp_plugin_rpc() local
|
| H A D | entry_std.c | 48 struct mobj *mobj, in param_mem_from_mobj() 104 struct mobj __maybe_unused **mobj = NULL; in set_tmem_param() local 494 struct mobj *mobj = NULL; in register_shm() local 536 struct mobj *mobj = NULL; in lend_protmem() local
|
| /optee_os/core/pta/ |
| H A D | gprof.c | 21 struct mobj *mobj; in gprof_send_rpc() local
|
| /optee_os/core/include/kernel/ |
| H A D | thread_private.h | 26 struct mobj *mobj; member
|
| H A D | thread.h | 296 struct mobj *mobj; member
|