Lines Matching refs:bv

143 	struct bio_vec bv;  in do_try_sendpage()  local
151 bv.bv_page = it->bvec->bv_page; in do_try_sendpage()
152 bv.bv_offset = it->bvec->bv_offset + it->iov_offset; in do_try_sendpage()
153 bv.bv_len = min(iov_iter_count(it), in do_try_sendpage()
165 if (sendpage_ok(bv.bv_page)) { in do_try_sendpage()
166 ret = sock->ops->sendpage(sock, bv.bv_page, in do_try_sendpage()
167 bv.bv_offset, bv.bv_len, in do_try_sendpage()
170 iov_iter_bvec(&msg.msg_iter, WRITE, &bv, 1, bv.bv_len); in do_try_sendpage()
230 static void set_in_bvec(struct ceph_connection *con, const struct bio_vec *bv) in set_in_bvec() argument
234 con->v2.in_bvec = *bv; in set_in_bvec()
235 iov_iter_bvec(&con->v2.in_iter, READ, &con->v2.in_bvec, 1, bv->bv_len); in set_in_bvec()
271 static void set_out_bvec(struct ceph_connection *con, const struct bio_vec *bv, in set_out_bvec() argument
277 con->v2.out_bvec = *bv; in set_out_bvec()
852 struct bio_vec *bv) in get_bvec_at() argument
866 bv->bv_page = page; in get_bvec_at()
867 bv->bv_offset = off; in get_bvec_at()
868 bv->bv_len = len; in get_bvec_at()
892 struct bio_vec bv; in calc_sg_cnt_cursor() local
900 get_bvec_at(cursor, &bv); in calc_sg_cnt_cursor()
903 ceph_msg_data_advance(cursor, bv.bv_len); in calc_sg_cnt_cursor()
944 struct bio_vec bv; in init_sgs_cursor() local
950 get_bvec_at(cursor, &bv); in init_sgs_cursor()
951 sg_set_page(*sg, bv.bv_page, bv.bv_len, bv.bv_offset); in init_sgs_cursor()
954 ceph_msg_data_advance(cursor, bv.bv_len); in init_sgs_cursor()
1738 struct bio_vec bv; in prepare_read_data() local
1745 get_bvec_at(&con->v2.in_cursor, &bv); in prepare_read_data()
1746 set_in_bvec(con, &bv); in prepare_read_data()
1752 struct bio_vec bv; in prepare_read_data_cont() local
1762 get_bvec_at(&con->v2.in_cursor, &bv); in prepare_read_data_cont()
1763 set_in_bvec(con, &bv); in prepare_read_data_cont()
2856 struct bio_vec bv; in queue_data() local
2862 get_bvec_at(&con->v2.out_cursor, &bv); in queue_data()
2863 set_out_bvec(con, &bv, true); in queue_data()
2869 struct bio_vec bv; in queue_data_cont() local
2877 get_bvec_at(&con->v2.out_cursor, &bv); in queue_data_cont()
2878 set_out_bvec(con, &bv, true); in queue_data_cont()
2894 struct bio_vec bv; in queue_enc_page() local
2900 bv.bv_page = con->v2.out_enc_pages[con->v2.out_enc_i]; in queue_enc_page()
2901 bv.bv_offset = 0; in queue_enc_page()
2902 bv.bv_len = min(con->v2.out_enc_resid, (int)PAGE_SIZE); in queue_enc_page()
2904 set_out_bvec(con, &bv, false); in queue_enc_page()
2906 con->v2.out_enc_resid -= bv.bv_len; in queue_enc_page()