Lines Matching refs:file
34 struct file { struct
38 TAILQ_ENTRY(file) link; argument
44 static TAILQ_HEAD(, file) file_head = TAILQ_HEAD_INITIALIZER(file_head); argument
46 static int file_tag_cmp(const struct file *f, const uint8_t *tag, in file_tag_cmp()
54 static struct file *file_find_tag_unlocked(const uint8_t *tag, in file_find_tag_unlocked()
57 struct file *f = NULL; in file_find_tag_unlocked()
66 static void file_free(struct file *f) in file_free()
81 TEE_Result file_add_slice(struct file *f, struct fobj *fobj, in file_add_slice()
109 struct file *file_get(struct file *f) in file_get()
117 struct file *file_get_by_tag(const uint8_t *tag, unsigned int taglen) in file_get_by_tag()
119 struct file *f = NULL; in file_get_by_tag()
167 void file_put(struct file *f) in file_put()
179 struct file_slice *file_find_slice(struct file *f, unsigned int page_offset) in file_find_slice()
196 void file_lock(struct file *f) in file_lock()
201 bool file_trylock(struct file *f) in file_trylock()
206 void file_unlock(struct file *f) in file_unlock()