Lines Matching refs:iocb
80 static ssize_t configfs_read_iter(struct kiocb *iocb, struct iov_iter *to) in configfs_read_iter() argument
82 struct file *file = iocb->ki_filp; in configfs_read_iter()
93 __func__, iov_iter_count(to), iocb->ki_pos, buffer->page); in configfs_read_iter()
94 if (iocb->ki_pos >= buffer->count) in configfs_read_iter()
96 retval = copy_to_iter(buffer->page + iocb->ki_pos, in configfs_read_iter()
97 buffer->count - iocb->ki_pos, to); in configfs_read_iter()
98 iocb->ki_pos += retval; in configfs_read_iter()
106 static ssize_t configfs_bin_read_iter(struct kiocb *iocb, struct iov_iter *to) in configfs_bin_read_iter() argument
108 struct file *file = iocb->ki_filp; in configfs_bin_read_iter()
168 if (iocb->ki_pos >= buffer->bin_buffer_size) in configfs_bin_read_iter()
170 retval = copy_to_iter(buffer->bin_buffer + iocb->ki_pos, in configfs_bin_read_iter()
171 buffer->bin_buffer_size - iocb->ki_pos, to); in configfs_bin_read_iter()
172 iocb->ki_pos += retval; in configfs_bin_read_iter()
220 static ssize_t configfs_write_iter(struct kiocb *iocb, struct iov_iter *from) in configfs_write_iter() argument
222 struct file *file = iocb->ki_filp; in configfs_write_iter()
231 iocb->ki_pos += len; in configfs_write_iter()
236 static ssize_t configfs_bin_write_iter(struct kiocb *iocb, in configfs_bin_write_iter() argument
239 struct file *file = iocb->ki_filp; in configfs_bin_write_iter()
255 end_offset = iocb->ki_pos + iov_iter_count(from); in configfs_bin_write_iter()
282 len = copy_from_iter(buffer->bin_buffer + iocb->ki_pos, in configfs_bin_write_iter()
283 buffer->bin_buffer_size - iocb->ki_pos, from); in configfs_bin_write_iter()
284 iocb->ki_pos += len; in configfs_bin_write_iter()