Home
last modified time | relevance | path

Searched refs:fobj (Results 1 – 25 of 49) sorted by relevance

12

/optee_os/core/include/mm/
A Dfobj.h22 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 Dfile.h23 struct fobj *fobj; member
65 TEE_Result file_add_slice(struct file *f, struct fobj *fobj,
A Dmobj.h36 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 Dtee_mmu_types.h96 struct fobj *fobj; member
/optee_os/core/mm/
A Dfobj.c50 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 Dfile.c74 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 Dmobj.c458 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 Dsub.mk2 srcs-y += fobj.c
3 cflags-fobj.c-$(CFG_CORE_PAGE_TAG_AND_IV) := -Wno-missing-noreturn
A Dvm.c304 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 Dtee_pager.h63 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 Dtee_pager.c55 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.cmd1fobj.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../toolchains/aarch64/bin/aar…
A D.fobj.o.d1 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.d11 lib/libutee/include/tee_api_defines_extensions.h core/include/mm/fobj.h \
/optee_os/core/arch/arm/kernel/
A Dboot.c378 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 Dldelf_loader.c33 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 Dstmm_sp.c169 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 Dthread.c1009 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 Dldelf_syscalls.c35 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.d29 core/arch/arm/include/mm/generic_ram_layout.h core/include/mm/fobj.h \
A D.pseudo_ta.o.d33 core/include/mm/fobj.h core/arch/arm/include/mm/tee_pager.h \
A D.ree_fs_ta.o.d31 core/include/mm/fobj.h core/include/kernel/panic.h \
/optee_os/out/arm/core/tee/
A D.tee_supp_plugin_rpc.o.d29 core/arch/arm/include/mm/generic_ram_layout.h core/include/mm/fobj.h \
A D.socket.o.d29 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.d32 core/arch/arm/include/mm/generic_ram_layout.h core/include/mm/fobj.h \

Completed in 55 milliseconds

12