Lines Matching refs:bvec
255 struct bio_vec *bvec; in fd_do_rw() local
260 bvec = kcalloc(sgl_nents, sizeof(struct bio_vec), GFP_KERNEL); in fd_do_rw()
261 if (!bvec) { in fd_do_rw()
267 bvec[i].bv_page = sg_page(sg); in fd_do_rw()
268 bvec[i].bv_len = sg->length; in fd_do_rw()
269 bvec[i].bv_offset = sg->offset; in fd_do_rw()
274 iov_iter_bvec(&iter, ITER_BVEC, bvec, sgl_nents, len); in fd_do_rw()
280 kfree(bvec); in fd_do_rw()
364 struct bio_vec *bvec; in fd_execute_write_same() local
388 bvec = kcalloc(nolb, sizeof(struct bio_vec), GFP_KERNEL); in fd_execute_write_same()
389 if (!bvec) in fd_execute_write_same()
393 bvec[i].bv_page = sg_page(&cmd->t_data_sg[0]); in fd_execute_write_same()
394 bvec[i].bv_len = cmd->t_data_sg[0].length; in fd_execute_write_same()
395 bvec[i].bv_offset = cmd->t_data_sg[0].offset; in fd_execute_write_same()
400 iov_iter_bvec(&iter, ITER_BVEC, bvec, nolb, len); in fd_execute_write_same()
403 kfree(bvec); in fd_execute_write_same()