Lines Matching refs:filp
111 * @filp: file pointer
116 static int comp_open(struct inode *inode, struct file *filp)
122 filp->private_data = c;
125 ((filp->f_flags & O_ACCMODE) != O_RDONLY)) ||
127 ((filp->f_flags & O_ACCMODE) != O_WRONLY))) {
153 * @filp: file pointer
157 static int comp_close(struct inode *inode, struct file *filp)
177 * @filp: file pointer
182 static ssize_t comp_write(struct file *filp, const char __user *buf,
188 struct comp_channel *c = filp->private_data;
194 if ((filp->f_flags & O_NONBLOCK))
231 * @filp: file pointer
237 comp_read(struct file *filp, char __user *buf, size_t count, loff_t *offset)
241 struct comp_channel *c = filp->private_data;
246 if (filp->f_flags & O_NONBLOCK)
281 static __poll_t comp_poll(struct file *filp, poll_table *wait)
283 struct comp_channel *c = filp->private_data;
286 poll_wait(filp, &c->wq, wait);