Lines Matching refs:bv
146 struct bio_vec bv; in do_try_sendpage() local
154 bvec_set_page(&bv, it->bvec->bv_page, in do_try_sendpage()
168 if (sendpage_ok(bv.bv_page)) in do_try_sendpage()
173 iov_iter_bvec(&msg.msg_iter, ITER_SOURCE, &bv, 1, bv.bv_len); in do_try_sendpage()
232 static void set_in_bvec(struct ceph_connection *con, const struct bio_vec *bv) in set_in_bvec() argument
236 con->v2.in_bvec = *bv; in set_in_bvec()
237 iov_iter_bvec(&con->v2.in_iter, ITER_DEST, &con->v2.in_bvec, 1, bv->bv_len); in set_in_bvec()
273 static void set_out_bvec(struct ceph_connection *con, const struct bio_vec *bv, in set_out_bvec() argument
279 con->v2.out_bvec = *bv; in set_out_bvec()
860 struct bio_vec *bv) in get_bvec_at() argument
873 bvec_set_page(bv, page, len, off); in get_bvec_at()
897 struct bio_vec bv; in calc_sg_cnt_cursor() local
905 get_bvec_at(cursor, &bv); in calc_sg_cnt_cursor()
908 ceph_msg_data_advance(cursor, bv.bv_len); in calc_sg_cnt_cursor()
949 struct bio_vec bv; in init_sgs_cursor() local
955 get_bvec_at(cursor, &bv); in init_sgs_cursor()
956 sg_set_page(*sg, bv.bv_page, bv.bv_len, bv.bv_offset); in init_sgs_cursor()
959 ceph_msg_data_advance(cursor, bv.bv_len); in init_sgs_cursor()
1112 struct bio_vec bv; in process_v2_sparse_read() local
1114 get_bvec_at(cursor, &bv); in process_v2_sparse_read()
1115 len = min_t(int, len, bv.bv_len); in process_v2_sparse_read()
1116 memcpy_page(bv.bv_page, bv.bv_offset, in process_v2_sparse_read()
1862 struct bio_vec bv; in prepare_read_data() local
1868 get_bvec_at(&con->v2.in_cursor, &bv); in prepare_read_data()
1878 bv.bv_page = con->bounce_page; in prepare_read_data()
1879 bv.bv_offset = 0; in prepare_read_data()
1881 set_in_bvec(con, &bv); in prepare_read_data()
1888 struct bio_vec bv; in prepare_read_data_cont() local
1895 get_bvec_at(&con->v2.in_cursor, &bv); in prepare_read_data_cont()
1896 memcpy_to_page(bv.bv_page, bv.bv_offset, in prepare_read_data_cont()
1908 get_bvec_at(&con->v2.in_cursor, &bv); in prepare_read_data_cont()
1910 bv.bv_page = con->bounce_page; in prepare_read_data_cont()
1911 bv.bv_offset = 0; in prepare_read_data_cont()
1913 set_in_bvec(con, &bv); in prepare_read_data_cont()
1929 struct bio_vec bv; in prepare_sparse_read_cont() local
1940 get_bvec_at(cursor, &bv); in prepare_sparse_read_cont()
1941 memcpy_to_page(bv.bv_page, bv.bv_offset, in prepare_sparse_read_cont()
1957 get_bvec_at(cursor, &bv); in prepare_sparse_read_cont()
1958 if (bv.bv_len > cursor->sr_resid) in prepare_sparse_read_cont()
1959 bv.bv_len = cursor->sr_resid; in prepare_sparse_read_cont()
1961 bv.bv_page = con->bounce_page; in prepare_sparse_read_cont()
1962 bv.bv_offset = 0; in prepare_sparse_read_cont()
1964 set_in_bvec(con, &bv); in prepare_sparse_read_cont()
1965 con->v2.data_len_remain -= bv.bv_len; in prepare_sparse_read_cont()
2005 get_bvec_at(cursor, &bv); in prepare_sparse_read_cont()
2006 if (bv.bv_len > cursor->sr_resid) in prepare_sparse_read_cont()
2007 bv.bv_len = cursor->sr_resid; in prepare_sparse_read_cont()
2017 bv.bv_page = con->bounce_page; in prepare_sparse_read_cont()
2018 bv.bv_offset = 0; in prepare_sparse_read_cont()
2020 set_in_bvec(con, &bv); in prepare_sparse_read_cont()
2079 struct bio_vec bv; in prepare_read_enc_page() local
2085 bvec_set_page(&bv, con->v2.in_enc_pages[con->v2.in_enc_i], in prepare_read_enc_page()
2088 set_in_bvec(con, &bv); in prepare_read_enc_page()
2090 con->v2.in_enc_resid -= bv.bv_len; in prepare_read_enc_page()
3189 struct bio_vec bv; in queue_data() local
3195 get_bvec_at(&con->v2.out_cursor, &bv); in queue_data()
3196 set_out_bvec(con, &bv, true); in queue_data()
3202 struct bio_vec bv; in queue_data_cont() local
3210 get_bvec_at(&con->v2.out_cursor, &bv); in queue_data_cont()
3211 set_out_bvec(con, &bv, true); in queue_data_cont()
3227 struct bio_vec bv; in queue_enc_page() local
3233 bvec_set_page(&bv, con->v2.out_enc_pages[con->v2.out_enc_i], in queue_enc_page()
3236 set_out_bvec(con, &bv, false); in queue_enc_page()
3238 con->v2.out_enc_resid -= bv.bv_len; in queue_enc_page()