Lines Matching refs:resid

839 	cursor->resid = min(length, data->bio_length);  in ceph_msg_data_bio_cursor_init()
843 cursor->resid <= bio_iter_len(bio, cursor->bvec_iter); in ceph_msg_data_bio_cursor_init()
864 *length = cursor->resid; in ceph_msg_data_bio_next()
867 BUG_ON(*length > cursor->resid); in ceph_msg_data_bio_next()
888 BUG_ON(cursor->resid < bytes); in ceph_msg_data_bio_advance()
889 cursor->resid -= bytes; in ceph_msg_data_bio_advance()
909 BUG_ON(!cursor->resid); in ceph_msg_data_bio_advance()
912 if (cursor->resid <= bio_iter_len(bio, cursor->bvec_iter)) in ceph_msg_data_bio_advance()
935 cursor->resid = min(length, data->length); in ceph_msg_data_pages_cursor_init()
942 cursor->last_piece = cursor->page_offset + cursor->resid <= PAGE_SIZE; in ceph_msg_data_pages_cursor_init()
958 *length = cursor->resid; in ceph_msg_data_pages_next()
974 cursor->resid -= bytes; in ceph_msg_data_pages_advance()
979 if (!cursor->resid) in ceph_msg_data_pages_advance()
986 cursor->last_piece = cursor->resid <= PAGE_SIZE; in ceph_msg_data_pages_advance()
1014 cursor->resid = min(length, pagelist->length); in ceph_msg_data_pagelist_cursor_init()
1017 cursor->last_piece = cursor->resid <= PAGE_SIZE; in ceph_msg_data_pagelist_cursor_init()
1033 BUG_ON(cursor->offset + cursor->resid != pagelist->length); in ceph_msg_data_pagelist_next()
1038 *length = cursor->resid; in ceph_msg_data_pagelist_next()
1056 BUG_ON(cursor->offset + cursor->resid != pagelist->length); in ceph_msg_data_pagelist_advance()
1061 cursor->resid -= bytes; in ceph_msg_data_pagelist_advance()
1067 if (!cursor->resid) in ceph_msg_data_pagelist_advance()
1074 cursor->last_piece = cursor->resid <= PAGE_SIZE; in ceph_msg_data_pagelist_advance()
1174 BUG_ON(bytes > cursor->resid); in ceph_msg_data_advance()
1194 if (!cursor->resid && cursor->total_resid) { in ceph_msg_data_advance()
1568 while (cursor->resid) { in write_partial_message_data()
2264 while (cursor->resid) { in read_partial_msg_data()