Lines Matching refs:bio
832 struct bio *bio; in ceph_msg_data_bio_cursor_init() local
836 bio = data->bio; in ceph_msg_data_bio_cursor_init()
837 BUG_ON(!bio); in ceph_msg_data_bio_cursor_init()
840 cursor->bio = bio; in ceph_msg_data_bio_cursor_init()
841 cursor->bvec_iter = bio->bi_iter; in ceph_msg_data_bio_cursor_init()
843 cursor->resid <= bio_iter_len(bio, cursor->bvec_iter); in ceph_msg_data_bio_cursor_init()
851 struct bio *bio; in ceph_msg_data_bio_next() local
856 bio = cursor->bio; in ceph_msg_data_bio_next()
857 BUG_ON(!bio); in ceph_msg_data_bio_next()
859 bio_vec = bio_iter_iovec(bio, cursor->bvec_iter); in ceph_msg_data_bio_next()
876 struct bio *bio; in ceph_msg_data_bio_advance() local
881 bio = cursor->bio; in ceph_msg_data_bio_advance()
882 BUG_ON(!bio); in ceph_msg_data_bio_advance()
884 bio_vec = bio_iter_iovec(bio, cursor->bvec_iter); in ceph_msg_data_bio_advance()
891 bio_advance_iter(bio, &cursor->bvec_iter, bytes); in ceph_msg_data_bio_advance()
899 bio = bio->bi_next; in ceph_msg_data_bio_advance()
900 cursor->bio = bio; in ceph_msg_data_bio_advance()
901 if (bio) in ceph_msg_data_bio_advance()
902 cursor->bvec_iter = bio->bi_iter; in ceph_msg_data_bio_advance()
910 BUG_ON(!bio); in ceph_msg_data_bio_advance()
912 if (cursor->resid <= bio_iter_len(bio, cursor->bvec_iter)) in ceph_msg_data_bio_advance()
3207 void ceph_msg_data_add_bio(struct ceph_msg *msg, struct bio *bio, in ceph_msg_data_add_bio() argument
3212 BUG_ON(!bio); in ceph_msg_data_add_bio()
3216 data->bio = bio; in ceph_msg_data_add_bio()