Lines Matching refs:filp
811 static ssize_t cache_read(struct file *filp, char __user *buf, size_t count, in cache_read() argument
814 struct cache_reader *rp = filp->private_data; in cache_read()
816 struct inode *inode = file_inode(filp); in cache_read()
949 static ssize_t cache_write(struct file *filp, const char __user *buf, in cache_write() argument
953 struct address_space *mapping = filp->f_mapping; in cache_write()
954 struct inode *inode = file_inode(filp); in cache_write()
969 static __poll_t cache_poll(struct file *filp, poll_table *wait, in cache_poll() argument
973 struct cache_reader *rp = filp->private_data; in cache_poll()
976 poll_wait(filp, &queue_wait, wait); in cache_poll()
996 static int cache_ioctl(struct inode *ino, struct file *filp, in cache_ioctl() argument
1001 struct cache_reader *rp = filp->private_data; in cache_ioctl()
1025 static int cache_open(struct inode *inode, struct file *filp, in cache_open() argument
1032 nonseekable_open(inode, filp); in cache_open()
1033 if (filp->f_mode & FMODE_READ) { in cache_open()
1046 if (filp->f_mode & FMODE_WRITE) in cache_open()
1048 filp->private_data = rp; in cache_open()
1052 static int cache_release(struct inode *inode, struct file *filp, in cache_release() argument
1055 struct cache_reader *rp = filp->private_data; in cache_release()
1073 filp->private_data = NULL; in cache_release()
1077 if (filp->f_mode & FMODE_WRITE) { in cache_release()
1555 static ssize_t cache_read_procfs(struct file *filp, char __user *buf, in cache_read_procfs() argument
1558 struct cache_detail *cd = PDE_DATA(file_inode(filp)); in cache_read_procfs()
1560 return cache_read(filp, buf, count, ppos, cd); in cache_read_procfs()
1563 static ssize_t cache_write_procfs(struct file *filp, const char __user *buf, in cache_write_procfs() argument
1566 struct cache_detail *cd = PDE_DATA(file_inode(filp)); in cache_write_procfs()
1568 return cache_write(filp, buf, count, ppos, cd); in cache_write_procfs()
1571 static __poll_t cache_poll_procfs(struct file *filp, poll_table *wait) in cache_poll_procfs() argument
1573 struct cache_detail *cd = PDE_DATA(file_inode(filp)); in cache_poll_procfs()
1575 return cache_poll(filp, wait, cd); in cache_poll_procfs()
1578 static long cache_ioctl_procfs(struct file *filp, in cache_ioctl_procfs() argument
1581 struct inode *inode = file_inode(filp); in cache_ioctl_procfs()
1584 return cache_ioctl(inode, filp, cmd, arg, cd); in cache_ioctl_procfs()
1587 static int cache_open_procfs(struct inode *inode, struct file *filp) in cache_open_procfs() argument
1591 return cache_open(inode, filp, cd); in cache_open_procfs()
1594 static int cache_release_procfs(struct inode *inode, struct file *filp) in cache_release_procfs() argument
1598 return cache_release(inode, filp, cd); in cache_release_procfs()
1611 static int content_open_procfs(struct inode *inode, struct file *filp) in content_open_procfs() argument
1615 return content_open(inode, filp, cd); in content_open_procfs()
1618 static int content_release_procfs(struct inode *inode, struct file *filp) in content_release_procfs() argument
1622 return content_release(inode, filp, cd); in content_release_procfs()
1632 static int open_flush_procfs(struct inode *inode, struct file *filp) in open_flush_procfs() argument
1636 return open_flush(inode, filp, cd); in open_flush_procfs()
1639 static int release_flush_procfs(struct inode *inode, struct file *filp) in release_flush_procfs() argument
1643 return release_flush(inode, filp, cd); in release_flush_procfs()
1646 static ssize_t read_flush_procfs(struct file *filp, char __user *buf, in read_flush_procfs() argument
1649 struct cache_detail *cd = PDE_DATA(file_inode(filp)); in read_flush_procfs()
1651 return read_flush(filp, buf, count, ppos, cd); in read_flush_procfs()
1654 static ssize_t write_flush_procfs(struct file *filp, in write_flush_procfs() argument
1658 struct cache_detail *cd = PDE_DATA(file_inode(filp)); in write_flush_procfs()
1660 return write_flush(filp, buf, count, ppos, cd); in write_flush_procfs()
1773 static ssize_t cache_read_pipefs(struct file *filp, char __user *buf, in cache_read_pipefs() argument
1776 struct cache_detail *cd = RPC_I(file_inode(filp))->private; in cache_read_pipefs()
1778 return cache_read(filp, buf, count, ppos, cd); in cache_read_pipefs()
1781 static ssize_t cache_write_pipefs(struct file *filp, const char __user *buf, in cache_write_pipefs() argument
1784 struct cache_detail *cd = RPC_I(file_inode(filp))->private; in cache_write_pipefs()
1786 return cache_write(filp, buf, count, ppos, cd); in cache_write_pipefs()
1789 static __poll_t cache_poll_pipefs(struct file *filp, poll_table *wait) in cache_poll_pipefs() argument
1791 struct cache_detail *cd = RPC_I(file_inode(filp))->private; in cache_poll_pipefs()
1793 return cache_poll(filp, wait, cd); in cache_poll_pipefs()
1796 static long cache_ioctl_pipefs(struct file *filp, in cache_ioctl_pipefs() argument
1799 struct inode *inode = file_inode(filp); in cache_ioctl_pipefs()
1802 return cache_ioctl(inode, filp, cmd, arg, cd); in cache_ioctl_pipefs()
1805 static int cache_open_pipefs(struct inode *inode, struct file *filp) in cache_open_pipefs() argument
1809 return cache_open(inode, filp, cd); in cache_open_pipefs()
1812 static int cache_release_pipefs(struct inode *inode, struct file *filp) in cache_release_pipefs() argument
1816 return cache_release(inode, filp, cd); in cache_release_pipefs()
1830 static int content_open_pipefs(struct inode *inode, struct file *filp) in content_open_pipefs() argument
1834 return content_open(inode, filp, cd); in content_open_pipefs()
1837 static int content_release_pipefs(struct inode *inode, struct file *filp) in content_release_pipefs() argument
1841 return content_release(inode, filp, cd); in content_release_pipefs()
1851 static int open_flush_pipefs(struct inode *inode, struct file *filp) in open_flush_pipefs() argument
1855 return open_flush(inode, filp, cd); in open_flush_pipefs()
1858 static int release_flush_pipefs(struct inode *inode, struct file *filp) in release_flush_pipefs() argument
1862 return release_flush(inode, filp, cd); in release_flush_pipefs()
1865 static ssize_t read_flush_pipefs(struct file *filp, char __user *buf, in read_flush_pipefs() argument
1868 struct cache_detail *cd = RPC_I(file_inode(filp))->private; in read_flush_pipefs()
1870 return read_flush(filp, buf, count, ppos, cd); in read_flush_pipefs()
1873 static ssize_t write_flush_pipefs(struct file *filp, in write_flush_pipefs() argument
1877 struct cache_detail *cd = RPC_I(file_inode(filp))->private; in write_flush_pipefs()
1879 return write_flush(filp, buf, count, ppos, cd); in write_flush_pipefs()