Lines Matching refs:filp

775 static ssize_t cache_read(struct file *filp, char __user *buf, size_t count,  in cache_read()  argument
778 struct cache_reader *rp = filp->private_data; in cache_read()
780 struct inode *inode = file_inode(filp); in cache_read()
913 static ssize_t cache_write(struct file *filp, const char __user *buf, in cache_write() argument
917 struct address_space *mapping = filp->f_mapping; in cache_write()
918 struct inode *inode = file_inode(filp); in cache_write()
933 static __poll_t cache_poll(struct file *filp, poll_table *wait, in cache_poll() argument
937 struct cache_reader *rp = filp->private_data; in cache_poll()
940 poll_wait(filp, &queue_wait, wait); in cache_poll()
960 static int cache_ioctl(struct inode *ino, struct file *filp, in cache_ioctl() argument
965 struct cache_reader *rp = filp->private_data; in cache_ioctl()
989 static int cache_open(struct inode *inode, struct file *filp, in cache_open() argument
996 nonseekable_open(inode, filp); in cache_open()
997 if (filp->f_mode & FMODE_READ) { in cache_open()
1010 filp->private_data = rp; in cache_open()
1014 static int cache_release(struct inode *inode, struct file *filp, in cache_release() argument
1017 struct cache_reader *rp = filp->private_data; in cache_release()
1035 filp->private_data = NULL; in cache_release()
1488 static ssize_t cache_read_procfs(struct file *filp, char __user *buf, in cache_read_procfs() argument
1491 struct cache_detail *cd = PDE_DATA(file_inode(filp)); in cache_read_procfs()
1493 return cache_read(filp, buf, count, ppos, cd); in cache_read_procfs()
1496 static ssize_t cache_write_procfs(struct file *filp, const char __user *buf, in cache_write_procfs() argument
1499 struct cache_detail *cd = PDE_DATA(file_inode(filp)); in cache_write_procfs()
1501 return cache_write(filp, buf, count, ppos, cd); in cache_write_procfs()
1504 static __poll_t cache_poll_procfs(struct file *filp, poll_table *wait) in cache_poll_procfs() argument
1506 struct cache_detail *cd = PDE_DATA(file_inode(filp)); in cache_poll_procfs()
1508 return cache_poll(filp, wait, cd); in cache_poll_procfs()
1511 static long cache_ioctl_procfs(struct file *filp, in cache_ioctl_procfs() argument
1514 struct inode *inode = file_inode(filp); in cache_ioctl_procfs()
1517 return cache_ioctl(inode, filp, cmd, arg, cd); in cache_ioctl_procfs()
1520 static int cache_open_procfs(struct inode *inode, struct file *filp) in cache_open_procfs() argument
1524 return cache_open(inode, filp, cd); in cache_open_procfs()
1527 static int cache_release_procfs(struct inode *inode, struct file *filp) in cache_release_procfs() argument
1531 return cache_release(inode, filp, cd); in cache_release_procfs()
1545 static int content_open_procfs(struct inode *inode, struct file *filp) in content_open_procfs() argument
1549 return content_open(inode, filp, cd); in content_open_procfs()
1552 static int content_release_procfs(struct inode *inode, struct file *filp) in content_release_procfs() argument
1556 return content_release(inode, filp, cd); in content_release_procfs()
1566 static int open_flush_procfs(struct inode *inode, struct file *filp) in open_flush_procfs() argument
1570 return open_flush(inode, filp, cd); in open_flush_procfs()
1573 static int release_flush_procfs(struct inode *inode, struct file *filp) in release_flush_procfs() argument
1577 return release_flush(inode, filp, cd); in release_flush_procfs()
1580 static ssize_t read_flush_procfs(struct file *filp, char __user *buf, in read_flush_procfs() argument
1583 struct cache_detail *cd = PDE_DATA(file_inode(filp)); in read_flush_procfs()
1585 return read_flush(filp, buf, count, ppos, cd); in read_flush_procfs()
1588 static ssize_t write_flush_procfs(struct file *filp, in write_flush_procfs() argument
1592 struct cache_detail *cd = PDE_DATA(file_inode(filp)); in write_flush_procfs()
1594 return write_flush(filp, buf, count, ppos, cd); in write_flush_procfs()
1707 static ssize_t cache_read_pipefs(struct file *filp, char __user *buf, in cache_read_pipefs() argument
1710 struct cache_detail *cd = RPC_I(file_inode(filp))->private; in cache_read_pipefs()
1712 return cache_read(filp, buf, count, ppos, cd); in cache_read_pipefs()
1715 static ssize_t cache_write_pipefs(struct file *filp, const char __user *buf, in cache_write_pipefs() argument
1718 struct cache_detail *cd = RPC_I(file_inode(filp))->private; in cache_write_pipefs()
1720 return cache_write(filp, buf, count, ppos, cd); in cache_write_pipefs()
1723 static __poll_t cache_poll_pipefs(struct file *filp, poll_table *wait) in cache_poll_pipefs() argument
1725 struct cache_detail *cd = RPC_I(file_inode(filp))->private; in cache_poll_pipefs()
1727 return cache_poll(filp, wait, cd); in cache_poll_pipefs()
1730 static long cache_ioctl_pipefs(struct file *filp, in cache_ioctl_pipefs() argument
1733 struct inode *inode = file_inode(filp); in cache_ioctl_pipefs()
1736 return cache_ioctl(inode, filp, cmd, arg, cd); in cache_ioctl_pipefs()
1739 static int cache_open_pipefs(struct inode *inode, struct file *filp) in cache_open_pipefs() argument
1743 return cache_open(inode, filp, cd); in cache_open_pipefs()
1746 static int cache_release_pipefs(struct inode *inode, struct file *filp) in cache_release_pipefs() argument
1750 return cache_release(inode, filp, cd); in cache_release_pipefs()
1764 static int content_open_pipefs(struct inode *inode, struct file *filp) in content_open_pipefs() argument
1768 return content_open(inode, filp, cd); in content_open_pipefs()
1771 static int content_release_pipefs(struct inode *inode, struct file *filp) in content_release_pipefs() argument
1775 return content_release(inode, filp, cd); in content_release_pipefs()
1785 static int open_flush_pipefs(struct inode *inode, struct file *filp) in open_flush_pipefs() argument
1789 return open_flush(inode, filp, cd); in open_flush_pipefs()
1792 static int release_flush_pipefs(struct inode *inode, struct file *filp) in release_flush_pipefs() argument
1796 return release_flush(inode, filp, cd); in release_flush_pipefs()
1799 static ssize_t read_flush_pipefs(struct file *filp, char __user *buf, in read_flush_pipefs() argument
1802 struct cache_detail *cd = RPC_I(file_inode(filp))->private; in read_flush_pipefs()
1804 return read_flush(filp, buf, count, ppos, cd); in read_flush_pipefs()
1807 static ssize_t write_flush_pipefs(struct file *filp, in write_flush_pipefs() argument
1811 struct cache_detail *cd = RPC_I(file_inode(filp))->private; in write_flush_pipefs()
1813 return write_flush(filp, buf, count, ppos, cd); in write_flush_pipefs()