Lines Matching refs:bvec
259 struct bio_vec *bvec; in fd_do_rw() local
264 bvec = kcalloc(sgl_nents, sizeof(struct bio_vec), GFP_KERNEL); in fd_do_rw()
265 if (!bvec) { in fd_do_rw()
271 bvec[i].bv_page = sg_page(sg); in fd_do_rw()
272 bvec[i].bv_len = sg->length; in fd_do_rw()
273 bvec[i].bv_offset = sg->offset; in fd_do_rw()
278 iov_iter_bvec(&iter, ITER_BVEC, bvec, sgl_nents, len); in fd_do_rw()
322 kfree(bvec); in fd_do_rw()
379 struct bio_vec *bvec; in fd_execute_write_same() local
403 bvec = kcalloc(nolb, sizeof(struct bio_vec), GFP_KERNEL); in fd_execute_write_same()
404 if (!bvec) in fd_execute_write_same()
408 bvec[i].bv_page = sg_page(&cmd->t_data_sg[0]); in fd_execute_write_same()
409 bvec[i].bv_len = cmd->t_data_sg[0].length; in fd_execute_write_same()
410 bvec[i].bv_offset = cmd->t_data_sg[0].offset; in fd_execute_write_same()
415 iov_iter_bvec(&iter, ITER_BVEC, bvec, nolb, len); in fd_execute_write_same()
418 kfree(bvec); in fd_execute_write_same()