• Home
  • Raw
  • Download

Lines Matching refs:filp

666 static ssize_t xillybus_read(struct file *filp, char __user *userbuf,  in xillybus_read()  argument
674 struct xilly_channel *channel = filp->private_data; in xillybus_read()
812 if (!no_time_left && (filp->f_flags & O_NONBLOCK)) { in xillybus_read()
914 if (filp->f_flags & O_NONBLOCK) in xillybus_read()
1156 static int xillybus_flush(struct file *filp, fl_owner_t id) in xillybus_flush() argument
1158 if (!(filp->f_mode & FMODE_WRITE)) in xillybus_flush()
1161 return xillybus_myflush(filp->private_data, HZ); /* 1 second timeout */ in xillybus_flush()
1181 static ssize_t xillybus_write(struct file *filp, const char __user *userbuf, in xillybus_write() argument
1187 struct xilly_channel *channel = filp->private_data; in xillybus_write()
1367 if (filp->f_flags & O_NONBLOCK) { in xillybus_write()
1399 rc = xillybus_myflush(filp->private_data, 0); /* No timeout */ in xillybus_write()
1408 static int xillybus_open(struct inode *inode, struct file *filp) in xillybus_open() argument
1440 filp->private_data = channel; in xillybus_open()
1448 if ((filp->f_mode & FMODE_READ) && (!channel->num_wr_buffers)) in xillybus_open()
1451 if ((filp->f_mode & FMODE_WRITE) && (!channel->num_rd_buffers)) in xillybus_open()
1454 if ((filp->f_mode & FMODE_READ) && (filp->f_flags & O_NONBLOCK) && in xillybus_open()
1462 if ((filp->f_mode & FMODE_WRITE) && (filp->f_flags & O_NONBLOCK) && in xillybus_open()
1476 if (filp->f_mode & FMODE_READ) { in xillybus_open()
1482 if (filp->f_mode & FMODE_WRITE) { in xillybus_open()
1488 if ((filp->f_mode & FMODE_READ) && in xillybus_open()
1495 if ((filp->f_mode & FMODE_WRITE) && in xillybus_open()
1502 if (filp->f_mode & FMODE_READ) { in xillybus_open()
1527 if (filp->f_mode & FMODE_WRITE) { in xillybus_open()
1549 if (filp->f_mode & FMODE_WRITE) in xillybus_open()
1552 if (filp->f_mode & FMODE_READ) in xillybus_open()
1556 return nonseekable_open(inode, filp); in xillybus_open()
1561 static int xillybus_release(struct inode *inode, struct file *filp) in xillybus_release() argument
1564 struct xilly_channel *channel = filp->private_data; in xillybus_release()
1572 if (filp->f_mode & FMODE_WRITE) { in xillybus_release()
1591 if (filp->f_mode & FMODE_READ) { in xillybus_release()
1662 static loff_t xillybus_llseek(struct file *filp, loff_t offset, int whence) in xillybus_llseek() argument
1664 struct xilly_channel *channel = filp->private_data; in xillybus_llseek()
1665 loff_t pos = filp->f_pos; in xillybus_llseek()
1720 filp->f_pos = pos; in xillybus_llseek()
1736 static __poll_t xillybus_poll(struct file *filp, poll_table *wait) in xillybus_poll() argument
1738 struct xilly_channel *channel = filp->private_data; in xillybus_poll()
1742 poll_wait(filp, &channel->endpoint->ep_wait, wait); in xillybus_poll()
1753 poll_wait(filp, &channel->wr_wait, wait); in xillybus_poll()
1754 poll_wait(filp, &channel->wr_ready_wait, wait); in xillybus_poll()
1777 poll_wait(filp, &channel->rd_wait, wait); in xillybus_poll()