Lines Matching refs:filp
763 static ssize_t cache_read(struct file *filp, char __user *buf, size_t count, in cache_read() argument
766 struct cache_reader *rp = filp->private_data; in cache_read()
768 struct inode *inode = file_inode(filp); in cache_read()
901 static ssize_t cache_write(struct file *filp, const char __user *buf, in cache_write() argument
905 struct address_space *mapping = filp->f_mapping; in cache_write()
906 struct inode *inode = file_inode(filp); in cache_write()
921 static unsigned int cache_poll(struct file *filp, poll_table *wait, in cache_poll() argument
925 struct cache_reader *rp = filp->private_data; in cache_poll()
928 poll_wait(filp, &queue_wait, wait); in cache_poll()
948 static int cache_ioctl(struct inode *ino, struct file *filp, in cache_ioctl() argument
953 struct cache_reader *rp = filp->private_data; in cache_ioctl()
977 static int cache_open(struct inode *inode, struct file *filp, in cache_open() argument
984 nonseekable_open(inode, filp); in cache_open()
985 if (filp->f_mode & FMODE_READ) { in cache_open()
998 filp->private_data = rp; in cache_open()
1002 static int cache_release(struct inode *inode, struct file *filp, in cache_release() argument
1005 struct cache_reader *rp = filp->private_data; in cache_release()
1023 filp->private_data = NULL; in cache_release()
1485 static ssize_t cache_read_procfs(struct file *filp, char __user *buf, in cache_read_procfs() argument
1488 struct cache_detail *cd = PDE_DATA(file_inode(filp)); in cache_read_procfs()
1490 return cache_read(filp, buf, count, ppos, cd); in cache_read_procfs()
1493 static ssize_t cache_write_procfs(struct file *filp, const char __user *buf, in cache_write_procfs() argument
1496 struct cache_detail *cd = PDE_DATA(file_inode(filp)); in cache_write_procfs()
1498 return cache_write(filp, buf, count, ppos, cd); in cache_write_procfs()
1501 static unsigned int cache_poll_procfs(struct file *filp, poll_table *wait) in cache_poll_procfs() argument
1503 struct cache_detail *cd = PDE_DATA(file_inode(filp)); in cache_poll_procfs()
1505 return cache_poll(filp, wait, cd); in cache_poll_procfs()
1508 static long cache_ioctl_procfs(struct file *filp, in cache_ioctl_procfs() argument
1511 struct inode *inode = file_inode(filp); in cache_ioctl_procfs()
1514 return cache_ioctl(inode, filp, cmd, arg, cd); in cache_ioctl_procfs()
1517 static int cache_open_procfs(struct inode *inode, struct file *filp) in cache_open_procfs() argument
1521 return cache_open(inode, filp, cd); in cache_open_procfs()
1524 static int cache_release_procfs(struct inode *inode, struct file *filp) in cache_release_procfs() argument
1528 return cache_release(inode, filp, cd); in cache_release_procfs()
1542 static int content_open_procfs(struct inode *inode, struct file *filp) in content_open_procfs() argument
1546 return content_open(inode, filp, cd); in content_open_procfs()
1549 static int content_release_procfs(struct inode *inode, struct file *filp) in content_release_procfs() argument
1553 return content_release(inode, filp, cd); in content_release_procfs()
1563 static int open_flush_procfs(struct inode *inode, struct file *filp) in open_flush_procfs() argument
1567 return open_flush(inode, filp, cd); in open_flush_procfs()
1570 static int release_flush_procfs(struct inode *inode, struct file *filp) in release_flush_procfs() argument
1574 return release_flush(inode, filp, cd); in release_flush_procfs()
1577 static ssize_t read_flush_procfs(struct file *filp, char __user *buf, in read_flush_procfs() argument
1580 struct cache_detail *cd = PDE_DATA(file_inode(filp)); in read_flush_procfs()
1582 return read_flush(filp, buf, count, ppos, cd); in read_flush_procfs()
1585 static ssize_t write_flush_procfs(struct file *filp, in write_flush_procfs() argument
1589 struct cache_detail *cd = PDE_DATA(file_inode(filp)); in write_flush_procfs()
1591 return write_flush(filp, buf, count, ppos, cd); in write_flush_procfs()
1721 static ssize_t cache_read_pipefs(struct file *filp, char __user *buf, in cache_read_pipefs() argument
1724 struct cache_detail *cd = RPC_I(file_inode(filp))->private; in cache_read_pipefs()
1726 return cache_read(filp, buf, count, ppos, cd); in cache_read_pipefs()
1729 static ssize_t cache_write_pipefs(struct file *filp, const char __user *buf, in cache_write_pipefs() argument
1732 struct cache_detail *cd = RPC_I(file_inode(filp))->private; in cache_write_pipefs()
1734 return cache_write(filp, buf, count, ppos, cd); in cache_write_pipefs()
1737 static unsigned int cache_poll_pipefs(struct file *filp, poll_table *wait) in cache_poll_pipefs() argument
1739 struct cache_detail *cd = RPC_I(file_inode(filp))->private; in cache_poll_pipefs()
1741 return cache_poll(filp, wait, cd); in cache_poll_pipefs()
1744 static long cache_ioctl_pipefs(struct file *filp, in cache_ioctl_pipefs() argument
1747 struct inode *inode = file_inode(filp); in cache_ioctl_pipefs()
1750 return cache_ioctl(inode, filp, cmd, arg, cd); in cache_ioctl_pipefs()
1753 static int cache_open_pipefs(struct inode *inode, struct file *filp) in cache_open_pipefs() argument
1757 return cache_open(inode, filp, cd); in cache_open_pipefs()
1760 static int cache_release_pipefs(struct inode *inode, struct file *filp) in cache_release_pipefs() argument
1764 return cache_release(inode, filp, cd); in cache_release_pipefs()
1778 static int content_open_pipefs(struct inode *inode, struct file *filp) in content_open_pipefs() argument
1782 return content_open(inode, filp, cd); in content_open_pipefs()
1785 static int content_release_pipefs(struct inode *inode, struct file *filp) in content_release_pipefs() argument
1789 return content_release(inode, filp, cd); in content_release_pipefs()
1799 static int open_flush_pipefs(struct inode *inode, struct file *filp) in open_flush_pipefs() argument
1803 return open_flush(inode, filp, cd); in open_flush_pipefs()
1806 static int release_flush_pipefs(struct inode *inode, struct file *filp) in release_flush_pipefs() argument
1810 return release_flush(inode, filp, cd); in release_flush_pipefs()
1813 static ssize_t read_flush_pipefs(struct file *filp, char __user *buf, in read_flush_pipefs() argument
1816 struct cache_detail *cd = RPC_I(file_inode(filp))->private; in read_flush_pipefs()
1818 return read_flush(filp, buf, count, ppos, cd); in read_flush_pipefs()
1821 static ssize_t write_flush_pipefs(struct file *filp, in write_flush_pipefs() argument
1825 struct cache_detail *cd = RPC_I(file_inode(filp))->private; in write_flush_pipefs()
1827 return write_flush(filp, buf, count, ppos, cd); in write_flush_pipefs()