Lines Matching refs:filp

102 	struct file *filp = vma->vm_file;  in relay_mmap_buf()  local
113 buf->chan->cb->buf_mapped(buf, filp); in relay_mmap_buf()
291 struct file *filp) in buf_mapped_default_callback() argument
299 struct file *filp) in buf_unmapped_default_callback() argument
874 static int relay_file_open(struct inode *inode, struct file *filp) in relay_file_open() argument
878 filp->private_data = buf; in relay_file_open()
880 return nonseekable_open(inode, filp); in relay_file_open()
890 static int relay_file_mmap(struct file *filp, struct vm_area_struct *vma) in relay_file_mmap() argument
892 struct rchan_buf *buf = filp->private_data; in relay_file_mmap()
903 static unsigned int relay_file_poll(struct file *filp, poll_table *wait) in relay_file_poll() argument
906 struct rchan_buf *buf = filp->private_data; in relay_file_poll()
911 if (filp->f_mode & FMODE_READ) { in relay_file_poll()
912 poll_wait(filp, &buf->read_wait, wait); in relay_file_poll()
928 static int relay_file_release(struct inode *inode, struct file *filp) in relay_file_release() argument
930 struct rchan_buf *buf = filp->private_data; in relay_file_release()
1128 static ssize_t relay_file_read_subbufs(struct file *filp, loff_t *ppos, in relay_file_read_subbufs() argument
1132 struct rchan_buf *buf = filp->private_data; in relay_file_read_subbufs()
1139 mutex_lock(&file_inode(filp)->i_mutex); in relay_file_read_subbufs()
1159 mutex_unlock(&file_inode(filp)->i_mutex); in relay_file_read_subbufs()
1164 static ssize_t relay_file_read(struct file *filp, in relay_file_read() argument
1174 return relay_file_read_subbufs(filp, ppos, subbuf_read_actor, &desc); in relay_file_read()