Lines Matching refs:bvec
327 struct bio_vec *bvec; in fd_do_rw() local
332 bvec = kcalloc(sgl_nents, sizeof(struct bio_vec), GFP_KERNEL); in fd_do_rw()
333 if (!bvec) { in fd_do_rw()
339 bvec[i].bv_page = sg_page(sg); in fd_do_rw()
340 bvec[i].bv_len = sg->length; in fd_do_rw()
341 bvec[i].bv_offset = sg->offset; in fd_do_rw()
346 iov_iter_bvec(&iter, ITER_BVEC, bvec, sgl_nents, len); in fd_do_rw()
352 kfree(bvec); in fd_do_rw()
436 struct bio_vec *bvec; in fd_execute_write_same() local
460 bvec = kcalloc(nolb, sizeof(struct bio_vec), GFP_KERNEL); in fd_execute_write_same()
461 if (!bvec) in fd_execute_write_same()
465 bvec[i].bv_page = sg_page(&cmd->t_data_sg[0]); in fd_execute_write_same()
466 bvec[i].bv_len = cmd->t_data_sg[0].length; in fd_execute_write_same()
467 bvec[i].bv_offset = cmd->t_data_sg[0].offset; in fd_execute_write_same()
472 iov_iter_bvec(&iter, ITER_BVEC, bvec, nolb, len); in fd_execute_write_same()
475 kfree(bvec); in fd_execute_write_same()