Lines Matching refs:filp
810 static ssize_t cache_read(struct file *filp, char __user *buf, size_t count, in cache_read() argument
813 struct cache_reader *rp = filp->private_data; in cache_read()
815 struct inode *inode = file_inode(filp); in cache_read()
930 static ssize_t cache_write(struct file *filp, const char __user *buf, in cache_write() argument
934 struct address_space *mapping = filp->f_mapping; in cache_write()
935 struct inode *inode = file_inode(filp); in cache_write()
950 static __poll_t cache_poll(struct file *filp, poll_table *wait, in cache_poll() argument
954 struct cache_reader *rp = filp->private_data; in cache_poll()
957 poll_wait(filp, &queue_wait, wait); in cache_poll()
977 static int cache_ioctl(struct inode *ino, struct file *filp, in cache_ioctl() argument
982 struct cache_reader *rp = filp->private_data; in cache_ioctl()
1006 static int cache_open(struct inode *inode, struct file *filp, in cache_open() argument
1013 nonseekable_open(inode, filp); in cache_open()
1014 if (filp->f_mode & FMODE_READ) { in cache_open()
1027 if (filp->f_mode & FMODE_WRITE) in cache_open()
1029 filp->private_data = rp; in cache_open()
1033 static int cache_release(struct inode *inode, struct file *filp, in cache_release() argument
1036 struct cache_reader *rp = filp->private_data; in cache_release()
1054 filp->private_data = NULL; in cache_release()
1058 if (filp->f_mode & FMODE_WRITE) { in cache_release()
1536 static ssize_t cache_read_procfs(struct file *filp, char __user *buf, in cache_read_procfs() argument
1539 struct cache_detail *cd = PDE_DATA(file_inode(filp)); in cache_read_procfs()
1541 return cache_read(filp, buf, count, ppos, cd); in cache_read_procfs()
1544 static ssize_t cache_write_procfs(struct file *filp, const char __user *buf, in cache_write_procfs() argument
1547 struct cache_detail *cd = PDE_DATA(file_inode(filp)); in cache_write_procfs()
1549 return cache_write(filp, buf, count, ppos, cd); in cache_write_procfs()
1552 static __poll_t cache_poll_procfs(struct file *filp, poll_table *wait) in cache_poll_procfs() argument
1554 struct cache_detail *cd = PDE_DATA(file_inode(filp)); in cache_poll_procfs()
1556 return cache_poll(filp, wait, cd); in cache_poll_procfs()
1559 static long cache_ioctl_procfs(struct file *filp, in cache_ioctl_procfs() argument
1562 struct inode *inode = file_inode(filp); in cache_ioctl_procfs()
1565 return cache_ioctl(inode, filp, cmd, arg, cd); in cache_ioctl_procfs()
1568 static int cache_open_procfs(struct inode *inode, struct file *filp) in cache_open_procfs() argument
1572 return cache_open(inode, filp, cd); in cache_open_procfs()
1575 static int cache_release_procfs(struct inode *inode, struct file *filp) in cache_release_procfs() argument
1579 return cache_release(inode, filp, cd); in cache_release_procfs()
1592 static int content_open_procfs(struct inode *inode, struct file *filp) in content_open_procfs() argument
1596 return content_open(inode, filp, cd); in content_open_procfs()
1599 static int content_release_procfs(struct inode *inode, struct file *filp) in content_release_procfs() argument
1603 return content_release(inode, filp, cd); in content_release_procfs()
1613 static int open_flush_procfs(struct inode *inode, struct file *filp) in open_flush_procfs() argument
1617 return open_flush(inode, filp, cd); in open_flush_procfs()
1620 static int release_flush_procfs(struct inode *inode, struct file *filp) in release_flush_procfs() argument
1624 return release_flush(inode, filp, cd); in release_flush_procfs()
1627 static ssize_t read_flush_procfs(struct file *filp, char __user *buf, in read_flush_procfs() argument
1630 struct cache_detail *cd = PDE_DATA(file_inode(filp)); in read_flush_procfs()
1632 return read_flush(filp, buf, count, ppos, cd); in read_flush_procfs()
1635 static ssize_t write_flush_procfs(struct file *filp, in write_flush_procfs() argument
1639 struct cache_detail *cd = PDE_DATA(file_inode(filp)); in write_flush_procfs()
1641 return write_flush(filp, buf, count, ppos, cd); in write_flush_procfs()
1754 static ssize_t cache_read_pipefs(struct file *filp, char __user *buf, in cache_read_pipefs() argument
1757 struct cache_detail *cd = RPC_I(file_inode(filp))->private; in cache_read_pipefs()
1759 return cache_read(filp, buf, count, ppos, cd); in cache_read_pipefs()
1762 static ssize_t cache_write_pipefs(struct file *filp, const char __user *buf, in cache_write_pipefs() argument
1765 struct cache_detail *cd = RPC_I(file_inode(filp))->private; in cache_write_pipefs()
1767 return cache_write(filp, buf, count, ppos, cd); in cache_write_pipefs()
1770 static __poll_t cache_poll_pipefs(struct file *filp, poll_table *wait) in cache_poll_pipefs() argument
1772 struct cache_detail *cd = RPC_I(file_inode(filp))->private; in cache_poll_pipefs()
1774 return cache_poll(filp, wait, cd); in cache_poll_pipefs()
1777 static long cache_ioctl_pipefs(struct file *filp, in cache_ioctl_pipefs() argument
1780 struct inode *inode = file_inode(filp); in cache_ioctl_pipefs()
1783 return cache_ioctl(inode, filp, cmd, arg, cd); in cache_ioctl_pipefs()
1786 static int cache_open_pipefs(struct inode *inode, struct file *filp) in cache_open_pipefs() argument
1790 return cache_open(inode, filp, cd); in cache_open_pipefs()
1793 static int cache_release_pipefs(struct inode *inode, struct file *filp) in cache_release_pipefs() argument
1797 return cache_release(inode, filp, cd); in cache_release_pipefs()
1811 static int content_open_pipefs(struct inode *inode, struct file *filp) in content_open_pipefs() argument
1815 return content_open(inode, filp, cd); in content_open_pipefs()
1818 static int content_release_pipefs(struct inode *inode, struct file *filp) in content_release_pipefs() argument
1822 return content_release(inode, filp, cd); in content_release_pipefs()
1832 static int open_flush_pipefs(struct inode *inode, struct file *filp) in open_flush_pipefs() argument
1836 return open_flush(inode, filp, cd); in open_flush_pipefs()
1839 static int release_flush_pipefs(struct inode *inode, struct file *filp) in release_flush_pipefs() argument
1843 return release_flush(inode, filp, cd); in release_flush_pipefs()
1846 static ssize_t read_flush_pipefs(struct file *filp, char __user *buf, in read_flush_pipefs() argument
1849 struct cache_detail *cd = RPC_I(file_inode(filp))->private; in read_flush_pipefs()
1851 return read_flush(filp, buf, count, ppos, cd); in read_flush_pipefs()
1854 static ssize_t write_flush_pipefs(struct file *filp, in write_flush_pipefs() argument
1858 struct cache_detail *cd = RPC_I(file_inode(filp))->private; in write_flush_pipefs()
1860 return write_flush(filp, buf, count, ppos, cd); in write_flush_pipefs()