Lines Matching refs:filp

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