/optee_os/core/include/mm/ |
A D | fobj.h | 22 struct fobj { struct 41 void (*free)(struct fobj *fobj); 122 if (fobj) in fobj_load_page() 123 return fobj->ops->load_page(fobj, page_idx, va); in fobj_load_page() 148 if (fobj && fobj->ops->get_iv_vaddr) in fobj_get_iv_vaddr() 149 return fobj->ops->get_iv_vaddr(fobj, page_idx); in fobj_get_iv_vaddr() 185 static inline struct fobj *fobj_get(struct fobj *fobj) in fobj_get() argument 187 if (fobj && !refcount_inc(&fobj->refc)) in fobj_get() 200 static inline void fobj_put(struct fobj *fobj) in fobj_put() argument 202 if (fobj && refcount_dec(&fobj->refc)) in fobj_put() [all …]
|
A D | file.h | 23 struct fobj *fobj; member 65 TEE_Result file_add_slice(struct file *f, struct fobj *fobj,
|
A D | mobj.h | 36 struct fobj *(*get_fobj)(struct mobj *mobj); 190 static inline struct fobj *mobj_get_fobj(struct mobj *mobj) in mobj_get_fobj() 319 struct mobj *mobj_with_fobj_alloc(struct fobj *fobj, struct file *file);
|
A D | tee_mmu_types.h | 96 struct fobj *fobj; member
|
/optee_os/core/mm/ |
A D | fobj.c | 50 struct fobj fobj; member 55 struct fobj fobj; member 75 static void fobj_uninit(struct fobj *fobj) in fobj_uninit() argument 215 static void rwp_paged_iv_free(struct fobj *fobj) in rwp_paged_iv_free() argument 359 struct fobj *fobj = NULL; in rwp_init() local 414 struct fobj fobj; member 457 static void rop_free(struct fobj *fobj) in rop_free() argument 631 static void rrp_free(struct fobj *fobj) in rrp_free() argument 698 static void lop_free(struct fobj *fobj) in lop_free() argument 743 struct fobj fobj; member [all …]
|
A D | file.c | 74 fobj_put(fse->slice.fobj); in file_free() 81 TEE_Result file_add_slice(struct file *f, struct fobj *fobj, in file_add_slice() argument 95 fse->slice.fobj = fobj_get(fobj); in file_add_slice() 96 if (!fse->slice.fobj || in file_add_slice() 97 ADD_OVERFLOW(page_offset, fse->slice.fobj->num_pages, &s)) { in file_add_slice() 98 fobj_put(fse->slice.fobj); in file_add_slice() 189 page_offset < fs->page_offset + fs->fobj->num_pages) in file_find_slice()
|
A D | mobj.c | 458 struct fobj *fobj; member 495 fobj_put(m->fobj); in mobj_seccpy_shm_free() 555 fobj_put(m->fobj); in mobj_seccpy_shm_alloc() 564 struct fobj *fobj; member 571 struct mobj *mobj_with_fobj_alloc(struct fobj *fobj, struct file *file) in mobj_with_fobj_alloc() argument 575 if (!fobj) in mobj_with_fobj_alloc() 586 m->fobj = fobj_get(fobj); in mobj_with_fobj_alloc() 617 fobj_put(m->fobj); in mobj_with_fobj_free() 624 return fobj_get(to_mobj_with_fobj(mobj)->fobj); in mobj_with_fobj_get_fobj() 645 if (!f->fobj->ops->get_pa) { in mobj_with_fobj_get_pa() [all …]
|
A D | sub.mk | 2 srcs-y += fobj.c 3 cflags-fobj.c-$(CFG_CORE_PAGE_TAG_AND_IV) := -Wno-missing-noreturn
|
A D | vm.c | 304 struct fobj *fobj = mobj_get_fobj(mobj); in vm_map_pad() local 306 if (!fobj) { in vm_map_pad() 312 fobj_put(fobj); in vm_map_pad() 530 struct fobj *fobj = NULL; in vm_remap() local 543 fobj = mobj_get_fobj(r0->mobj); in vm_remap() 544 if (!fobj) in vm_remap() 579 if (fobj && !res) in vm_remap() 580 res = tee_pager_add_um_region(uctx, r->va, fobj, in vm_remap() 613 fobj_put(fobj); in vm_remap() 631 if (fobj && tee_pager_add_um_region(uctx, r->va, fobj, r->attr)) in vm_remap() [all …]
|
/optee_os/core/arch/arm/include/mm/ |
A D | tee_pager.h | 63 vaddr_t tee_pager_init_iv_region(struct fobj *fobj); 87 struct fobj *fobj); 103 struct fobj *fobj, uint32_t prot); 107 vaddr_t base __unused, struct fobj *fobj __unused, in tee_pager_add_um_region() 278 void tee_pager_invalidate_fobj(struct fobj *fobj);
|
/optee_os/core/arch/arm/mm/ |
A D | tee_pager.c | 55 struct fobj *fobj; member 286 if (pmem->fobj != reg->fobj) in pmem_is_covered_by_region() 494 pmem->fobj = reg->fobj; in pmem_assign_fobj_page() 626 struct fobj *fobj) in tee_pager_add_core_region() argument 640 reg->fobj = fobj_get(fobj); in tee_pager_add_core_region() 766 reg->fobj = fobj_get(fobj); in pager_add_um_region() 814 struct fobj *fobj, uint32_t prot) in tee_pager_add_um_region() argument 851 r2->fobj = fobj_get(reg->fobj); in split_region() 1025 if (pmem->fobj != reg->fobj || in rem_region() 1191 if (pmem->fobj == fobj) in tee_pager_invalidate_fobj() [all …]
|
/optee_os/out/arm/core/mm/ |
A D | .fobj.o.cmd | 1 …fobj.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../toolchains/aarch64/bin/aar…
|
A D | .fobj.o.d | 1 out/arm/core/mm/fobj.o: core/mm/fobj.c out/arm/include/generated/conf.h \ 33 core/arch/arm/include/mm/generic_ram_layout.h core/include/mm/fobj.h \
|
A D | .file.o.d | 11 lib/libutee/include/tee_api_defines_extensions.h core/include/mm/fobj.h \
|
/optee_os/core/arch/arm/kernel/ |
A D | boot.c | 378 static struct fobj *ro_paged_alloc(tee_mm_entry_t *mm, void *hashes, in ro_paged_alloc() 407 struct fobj *fobj = NULL; in init_runtime() local 522 fobj = ro_paged_alloc(mm, hashes, paged_store); in init_runtime() 523 assert(fobj); in init_runtime() 525 fobj); in init_runtime() 526 fobj_put(fobj); in init_runtime()
|
A D | ldelf_loader.c | 33 struct fobj *fobj = fobj_ta_mem_alloc(num_pgs); in alloc_and_map_ldelf_fobj() local 34 struct mobj *mobj = mobj_with_fobj_alloc(fobj, NULL); in alloc_and_map_ldelf_fobj() 37 fobj_put(fobj); in alloc_and_map_ldelf_fobj()
|
A D | stmm_sp.c | 169 struct fobj *fobj = fobj_ta_mem_alloc(num_pgs); in alloc_and_map_sp_fobj() local 170 struct mobj *mobj = mobj_with_fobj_alloc(fobj, NULL); in alloc_and_map_sp_fobj() 173 fobj_put(fobj); in alloc_and_map_sp_fobj()
|
A D | thread.c | 1009 struct fobj *fobj = NULL; in init_thread_stacks() local 1021 fobj = fobj_locked_paged_alloc(num_pages); in init_thread_stacks() 1025 PAGED_REGION_TYPE_LOCK, fobj); in init_thread_stacks() 1026 fobj_put(fobj); in init_thread_stacks()
|
/optee_os/core/kernel/ |
A D | ldelf_syscalls.c | 35 struct fobj *f = NULL; in ldelf_syscall_map_zi() 332 num_pages > fs->fobj->num_pages) { in ldelf_syscall_map_bin() 343 mobj = mobj_with_fobj_alloc(fs->fobj, binh->f); in ldelf_syscall_map_bin() 355 struct fobj *f = fobj_ta_mem_alloc(num_pages); in ldelf_syscall_map_bin()
|
/optee_os/out/arm/core/kernel/ |
A D | .msg_param.o.d | 29 core/arch/arm/include/mm/generic_ram_layout.h core/include/mm/fobj.h \
|
A D | .pseudo_ta.o.d | 33 core/include/mm/fobj.h core/arch/arm/include/mm/tee_pager.h \
|
A D | .ree_fs_ta.o.d | 31 core/include/mm/fobj.h core/include/kernel/panic.h \
|
/optee_os/out/arm/core/tee/ |
A D | .tee_supp_plugin_rpc.o.d | 29 core/arch/arm/include/mm/generic_ram_layout.h core/include/mm/fobj.h \
|
A D | .socket.o.d | 29 core/arch/arm/include/mm/generic_ram_layout.h core/include/mm/fobj.h \
|
/optee_os/out/arm/core/arch/arm/kernel/ |
A D | .rpc_io_i2c.o.d | 32 core/arch/arm/include/mm/generic_ram_layout.h core/include/mm/fobj.h \
|