Lines Matching refs:iocb
159 blkdev_direct_IO(struct kiocb *iocb, struct iov_iter *iter, loff_t offset) in blkdev_direct_IO() argument
161 struct file *file = iocb->ki_filp; in blkdev_direct_IO()
165 return dax_do_io(iocb, inode, iter, offset, blkdev_get_block, in blkdev_direct_IO()
167 return __blockdev_direct_IO(iocb, inode, I_BDEV(inode), iter, offset, in blkdev_direct_IO()
1647 ssize_t blkdev_write_iter(struct kiocb *iocb, struct iov_iter *from) in blkdev_write_iter() argument
1649 struct file *file = iocb->ki_filp; in blkdev_write_iter()
1661 if (iocb->ki_pos >= size) in blkdev_write_iter()
1664 iov_iter_truncate(from, size - iocb->ki_pos); in blkdev_write_iter()
1667 ret = __generic_file_write_iter(iocb, from); in blkdev_write_iter()
1670 err = generic_write_sync(file, iocb->ki_pos - ret, ret); in blkdev_write_iter()
1679 ssize_t blkdev_read_iter(struct kiocb *iocb, struct iov_iter *to) in blkdev_read_iter() argument
1681 struct file *file = iocb->ki_filp; in blkdev_read_iter()
1684 loff_t pos = iocb->ki_pos; in blkdev_read_iter()
1691 return generic_file_read_iter(iocb, to); in blkdev_read_iter()