Lines Matching refs:bv
144 struct bio_vec bv; in do_try_sendpage() local
152 bv.bv_page = it->bvec->bv_page; in do_try_sendpage()
153 bv.bv_offset = it->bvec->bv_offset + it->iov_offset; in do_try_sendpage()
154 bv.bv_len = min(iov_iter_count(it), in do_try_sendpage()
166 if (sendpage_ok(bv.bv_page)) { in do_try_sendpage()
167 ret = sock->ops->sendpage(sock, bv.bv_page, in do_try_sendpage()
168 bv.bv_offset, bv.bv_len, in do_try_sendpage()
171 iov_iter_bvec(&msg.msg_iter, WRITE, &bv, 1, bv.bv_len); in do_try_sendpage()
231 static void set_in_bvec(struct ceph_connection *con, const struct bio_vec *bv) in set_in_bvec() argument
235 con->v2.in_bvec = *bv; in set_in_bvec()
236 iov_iter_bvec(&con->v2.in_iter, READ, &con->v2.in_bvec, 1, bv->bv_len); in set_in_bvec()
272 static void set_out_bvec(struct ceph_connection *con, const struct bio_vec *bv, in set_out_bvec() argument
278 con->v2.out_bvec = *bv; in set_out_bvec()
853 struct bio_vec *bv) in get_bvec_at() argument
867 bv->bv_page = page; in get_bvec_at()
868 bv->bv_offset = off; in get_bvec_at()
869 bv->bv_len = len; in get_bvec_at()
893 struct bio_vec bv; in calc_sg_cnt_cursor() local
901 get_bvec_at(cursor, &bv); in calc_sg_cnt_cursor()
904 ceph_msg_data_advance(cursor, bv.bv_len); in calc_sg_cnt_cursor()
945 struct bio_vec bv; in init_sgs_cursor() local
951 get_bvec_at(cursor, &bv); in init_sgs_cursor()
952 sg_set_page(*sg, bv.bv_page, bv.bv_len, bv.bv_offset); in init_sgs_cursor()
955 ceph_msg_data_advance(cursor, bv.bv_len); in init_sgs_cursor()
1758 struct bio_vec bv; in prepare_read_data() local
1764 get_bvec_at(&con->v2.in_cursor, &bv); in prepare_read_data()
1774 bv.bv_page = con->bounce_page; in prepare_read_data()
1775 bv.bv_offset = 0; in prepare_read_data()
1777 set_in_bvec(con, &bv); in prepare_read_data()
1784 struct bio_vec bv; in prepare_read_data_cont() local
1791 get_bvec_at(&con->v2.in_cursor, &bv); in prepare_read_data_cont()
1792 memcpy_to_page(bv.bv_page, bv.bv_offset, in prepare_read_data_cont()
1804 get_bvec_at(&con->v2.in_cursor, &bv); in prepare_read_data_cont()
1806 bv.bv_page = con->bounce_page; in prepare_read_data_cont()
1807 bv.bv_offset = 0; in prepare_read_data_cont()
1809 set_in_bvec(con, &bv); in prepare_read_data_cont()
1852 struct bio_vec bv; in prepare_read_enc_page() local
1858 bv.bv_page = con->v2.in_enc_pages[con->v2.in_enc_i]; in prepare_read_enc_page()
1859 bv.bv_offset = 0; in prepare_read_enc_page()
1860 bv.bv_len = min(con->v2.in_enc_resid, (int)PAGE_SIZE); in prepare_read_enc_page()
1862 set_in_bvec(con, &bv); in prepare_read_enc_page()
1864 con->v2.in_enc_resid -= bv.bv_len; in prepare_read_enc_page()
2957 struct bio_vec bv; in queue_data() local
2963 get_bvec_at(&con->v2.out_cursor, &bv); in queue_data()
2964 set_out_bvec(con, &bv, true); in queue_data()
2970 struct bio_vec bv; in queue_data_cont() local
2978 get_bvec_at(&con->v2.out_cursor, &bv); in queue_data_cont()
2979 set_out_bvec(con, &bv, true); in queue_data_cont()
2995 struct bio_vec bv; in queue_enc_page() local
3001 bv.bv_page = con->v2.out_enc_pages[con->v2.out_enc_i]; in queue_enc_page()
3002 bv.bv_offset = 0; in queue_enc_page()
3003 bv.bv_len = min(con->v2.out_enc_resid, (int)PAGE_SIZE); in queue_enc_page()
3005 set_out_bvec(con, &bv, false); in queue_enc_page()
3007 con->v2.out_enc_resid -= bv.bv_len; in queue_enc_page()