Lines Matching defs:filep
55 * filep - Instance of struct file to use with the write
66 ssize_t file_write(struct file *filep, const void *buf, size_t nbytes)
79 if ((((unsigned int)(filep->f_oflags)) & O_ACCMODE) == O_RDONLY)
87 if (!filep->ops || !filep->ops->write)
95 ret = filep->ops->write(filep, (const char *)buf, nbytes);
160 struct file *filep;
219 int ret = fs_getfilep(fd, &filep);
226 if (filep->f_oflags & O_DIRECTORY)
232 if (filep->f_oflags & O_APPEND)
234 if (file_seek64(filep, 0, SEEK_END) == -1)
242 return file_write(filep, buf, nbytes);