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