Lines Matching refs:filp
802 static ssize_t cache_read(struct file *filp, char __user *buf, size_t count, in cache_read() argument
805 struct cache_reader *rp = filp->private_data; in cache_read()
807 struct inode *inode = file_inode(filp); in cache_read()
940 static ssize_t cache_write(struct file *filp, const char __user *buf, in cache_write() argument
944 struct address_space *mapping = filp->f_mapping; in cache_write()
945 struct inode *inode = file_inode(filp); in cache_write()
960 static __poll_t cache_poll(struct file *filp, poll_table *wait, in cache_poll() argument
964 struct cache_reader *rp = filp->private_data; in cache_poll()
967 poll_wait(filp, &queue_wait, wait); in cache_poll()
987 static int cache_ioctl(struct inode *ino, struct file *filp, in cache_ioctl() argument
992 struct cache_reader *rp = filp->private_data; in cache_ioctl()
1016 static int cache_open(struct inode *inode, struct file *filp, in cache_open() argument
1023 nonseekable_open(inode, filp); in cache_open()
1024 if (filp->f_mode & FMODE_READ) { in cache_open()
1037 if (filp->f_mode & FMODE_WRITE) in cache_open()
1039 filp->private_data = rp; in cache_open()
1043 static int cache_release(struct inode *inode, struct file *filp, in cache_release() argument
1046 struct cache_reader *rp = filp->private_data; in cache_release()
1064 filp->private_data = NULL; in cache_release()
1068 if (filp->f_mode & FMODE_WRITE) { in cache_release()
1534 static ssize_t cache_read_procfs(struct file *filp, char __user *buf, in cache_read_procfs() argument
1537 struct cache_detail *cd = PDE_DATA(file_inode(filp)); in cache_read_procfs()
1539 return cache_read(filp, buf, count, ppos, cd); in cache_read_procfs()
1542 static ssize_t cache_write_procfs(struct file *filp, const char __user *buf, in cache_write_procfs() argument
1545 struct cache_detail *cd = PDE_DATA(file_inode(filp)); in cache_write_procfs()
1547 return cache_write(filp, buf, count, ppos, cd); in cache_write_procfs()
1550 static __poll_t cache_poll_procfs(struct file *filp, poll_table *wait) in cache_poll_procfs() argument
1552 struct cache_detail *cd = PDE_DATA(file_inode(filp)); in cache_poll_procfs()
1554 return cache_poll(filp, wait, cd); in cache_poll_procfs()
1557 static long cache_ioctl_procfs(struct file *filp, in cache_ioctl_procfs() argument
1560 struct inode *inode = file_inode(filp); in cache_ioctl_procfs()
1563 return cache_ioctl(inode, filp, cmd, arg, cd); in cache_ioctl_procfs()
1566 static int cache_open_procfs(struct inode *inode, struct file *filp) in cache_open_procfs() argument
1570 return cache_open(inode, filp, cd); in cache_open_procfs()
1573 static int cache_release_procfs(struct inode *inode, struct file *filp) in cache_release_procfs() argument
1577 return cache_release(inode, filp, cd); in cache_release_procfs()
1591 static int content_open_procfs(struct inode *inode, struct file *filp) in content_open_procfs() argument
1595 return content_open(inode, filp, cd); in content_open_procfs()
1598 static int content_release_procfs(struct inode *inode, struct file *filp) in content_release_procfs() argument
1602 return content_release(inode, filp, cd); in content_release_procfs()
1612 static int open_flush_procfs(struct inode *inode, struct file *filp) in open_flush_procfs() argument
1616 return open_flush(inode, filp, cd); in open_flush_procfs()
1619 static int release_flush_procfs(struct inode *inode, struct file *filp) in release_flush_procfs() argument
1623 return release_flush(inode, filp, cd); in release_flush_procfs()
1626 static ssize_t read_flush_procfs(struct file *filp, char __user *buf, in read_flush_procfs() argument
1629 struct cache_detail *cd = PDE_DATA(file_inode(filp)); in read_flush_procfs()
1631 return read_flush(filp, buf, count, ppos, cd); in read_flush_procfs()
1634 static ssize_t write_flush_procfs(struct file *filp, in write_flush_procfs() argument
1638 struct cache_detail *cd = PDE_DATA(file_inode(filp)); in write_flush_procfs()
1640 return write_flush(filp, buf, count, ppos, cd); in write_flush_procfs()
1753 static ssize_t cache_read_pipefs(struct file *filp, char __user *buf, in cache_read_pipefs() argument
1756 struct cache_detail *cd = RPC_I(file_inode(filp))->private; in cache_read_pipefs()
1758 return cache_read(filp, buf, count, ppos, cd); in cache_read_pipefs()
1761 static ssize_t cache_write_pipefs(struct file *filp, const char __user *buf, in cache_write_pipefs() argument
1764 struct cache_detail *cd = RPC_I(file_inode(filp))->private; in cache_write_pipefs()
1766 return cache_write(filp, buf, count, ppos, cd); in cache_write_pipefs()
1769 static __poll_t cache_poll_pipefs(struct file *filp, poll_table *wait) in cache_poll_pipefs() argument
1771 struct cache_detail *cd = RPC_I(file_inode(filp))->private; in cache_poll_pipefs()
1773 return cache_poll(filp, wait, cd); in cache_poll_pipefs()
1776 static long cache_ioctl_pipefs(struct file *filp, in cache_ioctl_pipefs() argument
1779 struct inode *inode = file_inode(filp); in cache_ioctl_pipefs()
1782 return cache_ioctl(inode, filp, cmd, arg, cd); in cache_ioctl_pipefs()
1785 static int cache_open_pipefs(struct inode *inode, struct file *filp) in cache_open_pipefs() argument
1789 return cache_open(inode, filp, cd); in cache_open_pipefs()
1792 static int cache_release_pipefs(struct inode *inode, struct file *filp) in cache_release_pipefs() argument
1796 return cache_release(inode, filp, cd); in cache_release_pipefs()
1810 static int content_open_pipefs(struct inode *inode, struct file *filp) in content_open_pipefs() argument
1814 return content_open(inode, filp, cd); in content_open_pipefs()
1817 static int content_release_pipefs(struct inode *inode, struct file *filp) in content_release_pipefs() argument
1821 return content_release(inode, filp, cd); in content_release_pipefs()
1831 static int open_flush_pipefs(struct inode *inode, struct file *filp) in open_flush_pipefs() argument
1835 return open_flush(inode, filp, cd); in open_flush_pipefs()
1838 static int release_flush_pipefs(struct inode *inode, struct file *filp) in release_flush_pipefs() argument
1842 return release_flush(inode, filp, cd); in release_flush_pipefs()
1845 static ssize_t read_flush_pipefs(struct file *filp, char __user *buf, in read_flush_pipefs() argument
1848 struct cache_detail *cd = RPC_I(file_inode(filp))->private; in read_flush_pipefs()
1850 return read_flush(filp, buf, count, ppos, cd); in read_flush_pipefs()
1853 static ssize_t write_flush_pipefs(struct file *filp, in write_flush_pipefs() argument
1857 struct cache_detail *cd = RPC_I(file_inode(filp))->private; in write_flush_pipefs()
1859 return write_flush(filp, buf, count, ppos, cd); in write_flush_pipefs()