Lines Matching refs:f
24 struct file *f; member
35 struct fobj *f = NULL; in ldelf_syscall_map_zi() local
46 f = fobj_ta_mem_alloc(ROUNDUP_DIV(num_bytes, SMALL_PAGE_SIZE)); in ldelf_syscall_map_zi()
47 if (!f) in ldelf_syscall_map_zi()
49 mobj = mobj_with_fobj_alloc(f, NULL, TEE_MATTR_MEM_TYPE_TAGGED); in ldelf_syscall_map_zi()
50 fobj_put(f); in ldelf_syscall_map_zi()
94 file_put(binh->f); in bin_close()
176 binh->f = file_get_by_tag(tag, tag_len); in ldelf_syscall_open_bin()
177 if (!binh->f) in ldelf_syscall_open_bin()
316 if (!file_trylock(binh->f)) { in ldelf_syscall_map_bin()
324 file_lock(binh->f); in ldelf_syscall_map_bin()
328 fs = file_find_slice(binh->f, offs_pages); in ldelf_syscall_map_bin()
343 mobj = mobj_with_fobj_alloc(fs->fobj, binh->f, in ldelf_syscall_map_bin()
356 struct fobj *f = fobj_ta_mem_alloc(num_pages); in ldelf_syscall_map_bin() local
360 if (!f) { in ldelf_syscall_map_bin()
365 file = binh->f; in ldelf_syscall_map_bin()
369 mobj = mobj_with_fobj_alloc(f, file, TEE_MATTR_MEM_TYPE_TAGGED); in ldelf_syscall_map_bin()
370 fobj_put(f); in ldelf_syscall_map_bin()
396 res = file_add_slice(binh->f, f, offs_pages); in ldelf_syscall_map_bin()
402 file_unlock(binh->f); in ldelf_syscall_map_bin()
418 file_unlock(binh->f); in ldelf_syscall_map_bin()