Lines Matching refs:bi_vcnt
271 bio->bi_vcnt = 0; in bio_init()
847 if (bio->bi_vcnt >= bio->bi_max_vecs) in bio_full()
897 if (bio->bi_vcnt > 0) { in __bio_try_merge_page()
898 struct bio_vec *bv = &bio->bi_io_vec[bio->bi_vcnt - 1]; in __bio_try_merge_page()
922 struct bio_vec *bv = &bio->bi_io_vec[bio->bi_vcnt - 1]; in bio_try_merge_hw_seg()
959 if (bio->bi_vcnt > 0) { in bio_add_hw_page()
967 bvec = &bio->bi_io_vec[bio->bi_vcnt - 1]; in bio_add_hw_page()
975 if (bio->bi_vcnt >= queue_max_segments(q)) in bio_add_hw_page()
978 bvec = &bio->bi_io_vec[bio->bi_vcnt]; in bio_add_hw_page()
982 bio->bi_vcnt++; in bio_add_hw_page()
1057 struct bio_vec *bv = &bio->bi_io_vec[bio->bi_vcnt]; in __bio_add_page()
1067 bio->bi_vcnt++; in __bio_add_page()
1143 bio->bi_vcnt = iter->nr_segs; in bio_iov_bvec_set()
1194 unsigned short nr_pages = bio->bi_max_vecs - bio->bi_vcnt; in __bio_iov_iter_get_pages()
1195 unsigned short entries_left = bio->bi_max_vecs - bio->bi_vcnt; in __bio_iov_iter_get_pages()
1196 struct bio_vec *bv = bio->bi_io_vec + bio->bi_vcnt; in __bio_iov_iter_get_pages()
1291 return bio->bi_vcnt ? 0 : ret; in bio_iov_iter_get_pages()