Lines Matching refs:filp

826 static ssize_t cache_read(struct file *filp, char __user *buf, size_t count,
829 struct cache_reader *rp = filp->private_data;
831 struct inode *inode = file_inode(filp);
946 static ssize_t cache_write(struct file *filp, const char __user *buf,
950 struct address_space *mapping = filp->f_mapping;
951 struct inode *inode = file_inode(filp);
966 static __poll_t cache_poll(struct file *filp, poll_table *wait,
970 struct cache_reader *rp = filp->private_data;
973 poll_wait(filp, &queue_wait, wait);
993 static int cache_ioctl(struct inode *ino, struct file *filp,
998 struct cache_reader *rp = filp->private_data;
1022 static int cache_open(struct inode *inode, struct file *filp,
1029 nonseekable_open(inode, filp);
1030 if (filp->f_mode & FMODE_READ) {
1043 if (filp->f_mode & FMODE_WRITE)
1045 filp->private_data = rp;
1049 static int cache_release(struct inode *inode, struct file *filp,
1052 struct cache_reader *rp = filp->private_data;
1070 filp->private_data = NULL;
1074 if (filp->f_mode & FMODE_WRITE) {
1552 static ssize_t cache_read_procfs(struct file *filp, char __user *buf,
1555 struct cache_detail *cd = pde_data(file_inode(filp));
1557 return cache_read(filp, buf, count, ppos, cd);
1560 static ssize_t cache_write_procfs(struct file *filp, const char __user *buf,
1563 struct cache_detail *cd = pde_data(file_inode(filp));
1565 return cache_write(filp, buf, count, ppos, cd);
1568 static __poll_t cache_poll_procfs(struct file *filp, poll_table *wait)
1570 struct cache_detail *cd = pde_data(file_inode(filp));
1572 return cache_poll(filp, wait, cd);
1575 static long cache_ioctl_procfs(struct file *filp,
1578 struct inode *inode = file_inode(filp);
1581 return cache_ioctl(inode, filp, cmd, arg, cd);
1584 static int cache_open_procfs(struct inode *inode, struct file *filp)
1588 return cache_open(inode, filp, cd);
1591 static int cache_release_procfs(struct inode *inode, struct file *filp)
1595 return cache_release(inode, filp, cd);
1608 static int content_open_procfs(struct inode *inode, struct file *filp)
1612 return content_open(inode, filp, cd);
1615 static int content_release_procfs(struct inode *inode, struct file *filp)
1619 return content_release(inode, filp, cd);
1629 static int open_flush_procfs(struct inode *inode, struct file *filp)
1633 return open_flush(inode, filp, cd);
1636 static int release_flush_procfs(struct inode *inode, struct file *filp)
1640 return release_flush(inode, filp, cd);
1643 static ssize_t read_flush_procfs(struct file *filp, char __user *buf,
1646 struct cache_detail *cd = pde_data(file_inode(filp));
1648 return read_flush(filp, buf, count, ppos, cd);
1651 static ssize_t write_flush_procfs(struct file *filp,
1655 struct cache_detail *cd = pde_data(file_inode(filp));
1657 return write_flush(filp, buf, count, ppos, cd);
1770 static ssize_t cache_read_pipefs(struct file *filp, char __user *buf,
1773 struct cache_detail *cd = RPC_I(file_inode(filp))->private;
1775 return cache_read(filp, buf, count, ppos, cd);
1778 static ssize_t cache_write_pipefs(struct file *filp, const char __user *buf,
1781 struct cache_detail *cd = RPC_I(file_inode(filp))->private;
1783 return cache_write(filp, buf, count, ppos, cd);
1786 static __poll_t cache_poll_pipefs(struct file *filp, poll_table *wait)
1788 struct cache_detail *cd = RPC_I(file_inode(filp))->private;
1790 return cache_poll(filp, wait, cd);
1793 static long cache_ioctl_pipefs(struct file *filp,
1796 struct inode *inode = file_inode(filp);
1799 return cache_ioctl(inode, filp, cmd, arg, cd);
1802 static int cache_open_pipefs(struct inode *inode, struct file *filp)
1806 return cache_open(inode, filp, cd);
1809 static int cache_release_pipefs(struct inode *inode, struct file *filp)
1813 return cache_release(inode, filp, cd);
1827 static int content_open_pipefs(struct inode *inode, struct file *filp)
1831 return content_open(inode, filp, cd);
1834 static int content_release_pipefs(struct inode *inode, struct file *filp)
1838 return content_release(inode, filp, cd);
1848 static int open_flush_pipefs(struct inode *inode, struct file *filp)
1852 return open_flush(inode, filp, cd);
1855 static int release_flush_pipefs(struct inode *inode, struct file *filp)
1859 return release_flush(inode, filp, cd);
1862 static ssize_t read_flush_pipefs(struct file *filp, char __user *buf,
1865 struct cache_detail *cd = RPC_I(file_inode(filp))->private;
1867 return read_flush(filp, buf, count, ppos, cd);
1870 static ssize_t write_flush_pipefs(struct file *filp,
1874 struct cache_detail *cd = RPC_I(file_inode(filp))->private;
1876 return write_flush(filp, buf, count, ppos, cd);