Lines Matching defs:bytes
160 /* static tag bytes (protocol control messages) */
501 * If @buf is NULL, discard up to @len bytes.
780 * Chop off a kvec from the end. Return residual number of bytes for
781 * that kvec, i.e. how many bytes would have been written if the kvec
835 size_t bytes)
840 BUG_ON(bytes > cursor->resid);
841 BUG_ON(bytes > bio_iter_len(it->bio, it->iter));
842 cursor->resid -= bytes;
843 bio_advance_iter(it->bio, &it->iter, bytes);
850 if (!bytes || (it->iter.bi_size && it->iter.bi_bvec_done &&
852 return false; /* more bytes to process in this segment */
896 size_t bytes)
901 BUG_ON(bytes > cursor->resid);
902 BUG_ON(bytes > bvec_iter_len(bvecs, cursor->bvec_iter));
903 cursor->resid -= bytes;
904 bvec_iter_advance(bvecs, &cursor->bvec_iter, bytes);
911 if (!bytes || (cursor->bvec_iter.bi_bvec_done &&
913 return false; /* more bytes to process in this segment */
968 size_t bytes)
972 BUG_ON(cursor->page_offset + bytes > PAGE_SIZE);
976 cursor->resid -= bytes;
977 cursor->page_offset = (cursor->page_offset + bytes) & ~PAGE_MASK;
978 if (!bytes || cursor->page_offset)
979 return false; /* more bytes to process in the current page */
1048 size_t bytes)
1059 BUG_ON((cursor->offset & ~PAGE_MASK) + bytes > PAGE_SIZE);
1063 cursor->resid -= bytes;
1064 cursor->offset += bytes;
1066 if (!bytes || cursor->offset & ~PAGE_MASK)
1067 return false; /* more bytes to process in the current page */
1177 size_t bytes)
1181 BUG_ON(bytes > cursor->resid);
1184 new_piece = ceph_msg_data_pagelist_advance(cursor, bytes);
1187 new_piece = ceph_msg_data_pages_advance(cursor, bytes);
1191 new_piece = ceph_msg_data_bio_advance(cursor, bytes);
1195 new_piece = ceph_msg_data_bvecs_advance(cursor, bytes);
1202 cursor->total_resid -= bytes;
2717 dout("skipped %d / %d bytes\n", ret, -con->in_base_pos);
3346 dout("ceph_msg_new can't allocate %d bytes\n",