Lines Matching defs:filep
112 int tmpfs_close(struct file *filep);
113 off_t tmpfs_seek(struct file *filep, off_t offset, int whence);
114 int tmpfs_ioctl(struct file *filep, int cmd, unsigned long arg);
115 int tmpfs_sync(struct file *filep);
124 ssize_t tmpfs_write(struct file *filep, const char *buffer, size_t buflen);
125 ssize_t tmpfs_read(struct file *filep, char *buffer, size_t buflen);
996 int tmpfs_close(struct file *filep)
1000 DEBUGASSERT(filep != NULL);
1003 tfo = (struct tmpfs_file_s *)(filep->f_vnode->data);
1046 ssize_t tmpfs_read(struct file *filep, char *buffer, size_t buflen)
1053 DEBUGASSERT(filep->f_vnode != NULL);
1057 tfo = (struct tmpfs_file_s *)(filep->f_vnode->data);
1062 if (filep->f_pos >= tfo->tfo_size || buflen == 0)
1073 startpos = filep->f_pos;
1090 filep->f_pos += nread;
1247 ssize_t tmpfs_write(struct file *filep, const char *buffer, size_t buflen)
1257 DEBUGASSERT(filep->f_vnode != NULL);
1265 tfo = (struct tmpfs_file_s *)(filep->f_vnode->data);
1276 startpos = filep->f_pos;
1323 filep->f_pos += nwritten;
1343 off_t tmpfs_seek(struct file *filep, off_t offset, int whence)
1348 DEBUGASSERT(filep->f_vnode != NULL);
1352 tfo = (struct tmpfs_file_s *)(filep->f_vnode->data);
1367 position = offset + filep->f_pos;
1392 filep->f_pos = position;
1400 int tmpfs_ioctl(struct file *filep, int cmd, unsigned long arg)
1409 int tmpfs_sync(struct file *filep)