Lines Matching defs:filep
169 int pipecommon_open(struct file *filep)
171 struct Vnode *vnode = filep->f_vnode;
210 if ((filep->f_oflags & O_WRONLY) != 0)
229 if ((filep->f_oflags & O_WRONLY) == 0)
241 if ((filep->f_oflags & O_WRONLY) == 0 && /* Read-only */
265 (void)pipecommon_close(filep);
278 int pipecommon_close(struct file *filep)
280 struct Vnode *vnode = filep->f_vnode;
284 if (dev == NULL || filep->f_vnode->useCount <= 1)
308 if ((filep->f_oflags & O_WRONLY) != 0)
331 if ((filep->f_oflags & O_WRONLY) == 0)
376 ssize_t pipecommon_read(struct file *filep, char *buffer, size_t len)
378 struct Vnode *vnode = filep->f_vnode;
414 if (filep->f_oflags & O_NONBLOCK)
536 ssize_t pipecommon_write(struct file *filep, const char *buffer,
539 struct Vnode *vnode = filep->f_vnode;
669 if (filep->f_oflags & O_NONBLOCK)
698 int pipecommon_poll(struct file *filep, poll_table *table)
700 struct Vnode *vnode = filep->f_vnode;
733 if (((filep->f_oflags & O_WRONLY) != 0) && (nbytes < (dev->d_bufsize - 1)))
740 if (((filep->f_oflags & O_WRONLY) == 0) && (nbytes > 0))
775 int pipecommon_ioctl(struct file *filep, int cmd, unsigned long arg)