Lines Matching refs:filp
728 static ssize_t port_fops_read(struct file *filp, char __user *ubuf,
734 port = filp->private_data;
748 if (filp->f_flags & O_NONBLOCK)
795 static ssize_t port_fops_write(struct file *filp, const char __user *ubuf,
808 port = filp->private_data;
810 nonblock = filp->f_flags & O_NONBLOCK;
900 struct file *filp, loff_t *ppos,
903 struct port *port = filp->private_data;
929 ret = wait_port_writable(port, filp->f_flags & O_NONBLOCK);
960 static __poll_t port_fops_poll(struct file *filp, poll_table *wait)
965 port = filp->private_data;
966 poll_wait(filp, &port->waitqueue, wait);
985 static int port_fops_release(struct inode *inode, struct file *filp)
989 port = filp->private_data;
1019 static int port_fops_open(struct inode *inode, struct file *filp)
1031 filp->private_data = port;
1062 nonseekable_open(inode, filp);
1065 send_control_msg(filp->private_data, VIRTIO_CONSOLE_PORT_OPEN, 1);
1073 static int port_fops_fasync(int fd, struct file *filp, int mode)
1077 port = filp->private_data;
1078 return fasync_helper(fd, filp, mode, &port->async_queue);