Lines Matching refs:resid
836 cursor->resid = min(length, data->bio_length); in ceph_msg_data_bio_cursor_init()
840 cursor->resid <= bio_iter_len(bio, cursor->bvec_iter); in ceph_msg_data_bio_cursor_init()
861 *length = cursor->resid; in ceph_msg_data_bio_next()
864 BUG_ON(*length > cursor->resid); in ceph_msg_data_bio_next()
885 BUG_ON(cursor->resid < bytes); in ceph_msg_data_bio_advance()
886 cursor->resid -= bytes; in ceph_msg_data_bio_advance()
906 BUG_ON(!cursor->resid); in ceph_msg_data_bio_advance()
909 if (cursor->resid <= bio_iter_len(bio, cursor->bvec_iter)) in ceph_msg_data_bio_advance()
932 cursor->resid = min(length, data->length); in ceph_msg_data_pages_cursor_init()
939 cursor->last_piece = cursor->page_offset + cursor->resid <= PAGE_SIZE; in ceph_msg_data_pages_cursor_init()
955 *length = cursor->resid; in ceph_msg_data_pages_next()
971 cursor->resid -= bytes; in ceph_msg_data_pages_advance()
976 if (!cursor->resid) in ceph_msg_data_pages_advance()
983 cursor->last_piece = cursor->resid <= PAGE_SIZE; in ceph_msg_data_pages_advance()
1011 cursor->resid = min(length, pagelist->length); in ceph_msg_data_pagelist_cursor_init()
1014 cursor->last_piece = cursor->resid <= PAGE_SIZE; in ceph_msg_data_pagelist_cursor_init()
1030 BUG_ON(cursor->offset + cursor->resid != pagelist->length); in ceph_msg_data_pagelist_next()
1035 *length = cursor->resid; in ceph_msg_data_pagelist_next()
1053 BUG_ON(cursor->offset + cursor->resid != pagelist->length); in ceph_msg_data_pagelist_advance()
1058 cursor->resid -= bytes; in ceph_msg_data_pagelist_advance()
1064 if (!cursor->resid) in ceph_msg_data_pagelist_advance()
1071 cursor->last_piece = cursor->resid <= PAGE_SIZE; in ceph_msg_data_pagelist_advance()
1171 BUG_ON(bytes > cursor->resid); in ceph_msg_data_advance()
1191 if (!cursor->resid && cursor->total_resid) { in ceph_msg_data_advance()
1575 while (cursor->resid) { in write_partial_message_data()
2277 while (cursor->resid) { in read_partial_msg_data()