Lines Matching refs:filp
99 struct file *filp = vma->vm_file; in relay_mmap_buf() local
110 buf->chan->cb->buf_mapped(buf, filp); in relay_mmap_buf()
288 struct file *filp) in buf_mapped_default_callback() argument
296 struct file *filp) in buf_unmapped_default_callback() argument
871 static int relay_file_open(struct inode *inode, struct file *filp) in relay_file_open() argument
875 filp->private_data = buf; in relay_file_open()
877 return nonseekable_open(inode, filp); in relay_file_open()
887 static int relay_file_mmap(struct file *filp, struct vm_area_struct *vma) in relay_file_mmap() argument
889 struct rchan_buf *buf = filp->private_data; in relay_file_mmap()
900 static unsigned int relay_file_poll(struct file *filp, poll_table *wait) in relay_file_poll() argument
903 struct rchan_buf *buf = filp->private_data; in relay_file_poll()
908 if (filp->f_mode & FMODE_READ) { in relay_file_poll()
909 poll_wait(filp, &buf->read_wait, wait); in relay_file_poll()
925 static int relay_file_release(struct inode *inode, struct file *filp) in relay_file_release() argument
927 struct rchan_buf *buf = filp->private_data; in relay_file_release()
1125 static ssize_t relay_file_read_subbufs(struct file *filp, loff_t *ppos, in relay_file_read_subbufs() argument
1129 struct rchan_buf *buf = filp->private_data; in relay_file_read_subbufs()
1136 mutex_lock(&file_inode(filp)->i_mutex); in relay_file_read_subbufs()
1156 mutex_unlock(&file_inode(filp)->i_mutex); in relay_file_read_subbufs()
1161 static ssize_t relay_file_read(struct file *filp, in relay_file_read() argument
1171 return relay_file_read_subbufs(filp, ppos, subbuf_read_actor, &desc); in relay_file_read()