Lines Matching refs:filp

756 static ssize_t cache_read(struct file *filp, char __user *buf, size_t count,  in cache_read()  argument
759 struct cache_reader *rp = filp->private_data; in cache_read()
761 struct inode *inode = file_inode(filp); in cache_read()
894 static ssize_t cache_write(struct file *filp, const char __user *buf, in cache_write() argument
898 struct address_space *mapping = filp->f_mapping; in cache_write()
899 struct inode *inode = file_inode(filp); in cache_write()
914 static unsigned int cache_poll(struct file *filp, poll_table *wait, in cache_poll() argument
918 struct cache_reader *rp = filp->private_data; in cache_poll()
921 poll_wait(filp, &queue_wait, wait); in cache_poll()
941 static int cache_ioctl(struct inode *ino, struct file *filp, in cache_ioctl() argument
946 struct cache_reader *rp = filp->private_data; in cache_ioctl()
970 static int cache_open(struct inode *inode, struct file *filp, in cache_open() argument
977 nonseekable_open(inode, filp); in cache_open()
978 if (filp->f_mode & FMODE_READ) { in cache_open()
991 filp->private_data = rp; in cache_open()
995 static int cache_release(struct inode *inode, struct file *filp, in cache_release() argument
998 struct cache_reader *rp = filp->private_data; in cache_release()
1016 filp->private_data = NULL; in cache_release()
1459 static ssize_t cache_read_procfs(struct file *filp, char __user *buf, in cache_read_procfs() argument
1462 struct cache_detail *cd = PDE_DATA(file_inode(filp)); in cache_read_procfs()
1464 return cache_read(filp, buf, count, ppos, cd); in cache_read_procfs()
1467 static ssize_t cache_write_procfs(struct file *filp, const char __user *buf, in cache_write_procfs() argument
1470 struct cache_detail *cd = PDE_DATA(file_inode(filp)); in cache_write_procfs()
1472 return cache_write(filp, buf, count, ppos, cd); in cache_write_procfs()
1475 static unsigned int cache_poll_procfs(struct file *filp, poll_table *wait) in cache_poll_procfs() argument
1477 struct cache_detail *cd = PDE_DATA(file_inode(filp)); in cache_poll_procfs()
1479 return cache_poll(filp, wait, cd); in cache_poll_procfs()
1482 static long cache_ioctl_procfs(struct file *filp, in cache_ioctl_procfs() argument
1485 struct inode *inode = file_inode(filp); in cache_ioctl_procfs()
1488 return cache_ioctl(inode, filp, cmd, arg, cd); in cache_ioctl_procfs()
1491 static int cache_open_procfs(struct inode *inode, struct file *filp) in cache_open_procfs() argument
1495 return cache_open(inode, filp, cd); in cache_open_procfs()
1498 static int cache_release_procfs(struct inode *inode, struct file *filp) in cache_release_procfs() argument
1502 return cache_release(inode, filp, cd); in cache_release_procfs()
1516 static int content_open_procfs(struct inode *inode, struct file *filp) in content_open_procfs() argument
1520 return content_open(inode, filp, cd); in content_open_procfs()
1523 static int content_release_procfs(struct inode *inode, struct file *filp) in content_release_procfs() argument
1527 return content_release(inode, filp, cd); in content_release_procfs()
1537 static int open_flush_procfs(struct inode *inode, struct file *filp) in open_flush_procfs() argument
1541 return open_flush(inode, filp, cd); in open_flush_procfs()
1544 static int release_flush_procfs(struct inode *inode, struct file *filp) in release_flush_procfs() argument
1548 return release_flush(inode, filp, cd); in release_flush_procfs()
1551 static ssize_t read_flush_procfs(struct file *filp, char __user *buf, in read_flush_procfs() argument
1554 struct cache_detail *cd = PDE_DATA(file_inode(filp)); in read_flush_procfs()
1556 return read_flush(filp, buf, count, ppos, cd); in read_flush_procfs()
1559 static ssize_t write_flush_procfs(struct file *filp, in write_flush_procfs() argument
1563 struct cache_detail *cd = PDE_DATA(file_inode(filp)); in write_flush_procfs()
1565 return write_flush(filp, buf, count, ppos, cd); in write_flush_procfs()
1691 static ssize_t cache_read_pipefs(struct file *filp, char __user *buf, in cache_read_pipefs() argument
1694 struct cache_detail *cd = RPC_I(file_inode(filp))->private; in cache_read_pipefs()
1696 return cache_read(filp, buf, count, ppos, cd); in cache_read_pipefs()
1699 static ssize_t cache_write_pipefs(struct file *filp, const char __user *buf, in cache_write_pipefs() argument
1702 struct cache_detail *cd = RPC_I(file_inode(filp))->private; in cache_write_pipefs()
1704 return cache_write(filp, buf, count, ppos, cd); in cache_write_pipefs()
1707 static unsigned int cache_poll_pipefs(struct file *filp, poll_table *wait) in cache_poll_pipefs() argument
1709 struct cache_detail *cd = RPC_I(file_inode(filp))->private; in cache_poll_pipefs()
1711 return cache_poll(filp, wait, cd); in cache_poll_pipefs()
1714 static long cache_ioctl_pipefs(struct file *filp, in cache_ioctl_pipefs() argument
1717 struct inode *inode = file_inode(filp); in cache_ioctl_pipefs()
1720 return cache_ioctl(inode, filp, cmd, arg, cd); in cache_ioctl_pipefs()
1723 static int cache_open_pipefs(struct inode *inode, struct file *filp) in cache_open_pipefs() argument
1727 return cache_open(inode, filp, cd); in cache_open_pipefs()
1730 static int cache_release_pipefs(struct inode *inode, struct file *filp) in cache_release_pipefs() argument
1734 return cache_release(inode, filp, cd); in cache_release_pipefs()
1748 static int content_open_pipefs(struct inode *inode, struct file *filp) in content_open_pipefs() argument
1752 return content_open(inode, filp, cd); in content_open_pipefs()
1755 static int content_release_pipefs(struct inode *inode, struct file *filp) in content_release_pipefs() argument
1759 return content_release(inode, filp, cd); in content_release_pipefs()
1769 static int open_flush_pipefs(struct inode *inode, struct file *filp) in open_flush_pipefs() argument
1773 return open_flush(inode, filp, cd); in open_flush_pipefs()
1776 static int release_flush_pipefs(struct inode *inode, struct file *filp) in release_flush_pipefs() argument
1780 return release_flush(inode, filp, cd); in release_flush_pipefs()
1783 static ssize_t read_flush_pipefs(struct file *filp, char __user *buf, in read_flush_pipefs() argument
1786 struct cache_detail *cd = RPC_I(file_inode(filp))->private; in read_flush_pipefs()
1788 return read_flush(filp, buf, count, ppos, cd); in read_flush_pipefs()
1791 static ssize_t write_flush_pipefs(struct file *filp, in write_flush_pipefs() argument
1795 struct cache_detail *cd = RPC_I(file_inode(filp))->private; in write_flush_pipefs()
1797 return write_flush(filp, buf, count, ppos, cd); in write_flush_pipefs()