Lines Matching refs:last_offset
205 if (i->last_offset) { in sanity()
213 if (unlikely(p->offset + p->len != abs(i->last_offset))) in sanity()
221 printk(KERN_ERR "idx = %d, offset = %d\n", i_head, i->last_offset); in sanity()
265 static inline int last_offset(const struct pipe_buffer *buf) in last_offset() function
277 int offset = i->last_offset; in append_pipe()
286 i->last_offset += size; in append_pipe()
300 i->last_offset = size; in append_pipe()
320 if (offset && i->last_offset == -offset) { // could we merge it? in copy_page_to_iter_pipe()
324 i->last_offset -= bytes; in copy_page_to_iter_pipe()
333 i->last_offset = -(offset + bytes); in copy_page_to_iter_pipe()
447 int off = i->last_offset; in pipe_npages()
832 int off = i->last_offset; in pipe_advance()
845 i->last_offset = last_offset(buf); in pipe_advance()
929 i->last_offset = last_offset(b); in iov_iter_revert()
937 i->last_offset = 0; in iov_iter_revert()
1040 .last_offset = 0, in iov_iter_pipe()
1175 if (size && i->last_offset > 0) { in iov_iter_is_aligned()
1176 if (i->last_offset & addr_mask) in iov_iter_is_aligned()
1255 if (size && i->last_offset > 0) in iov_iter_alignment()
1256 return size | i->last_offset; in iov_iter_alignment()