Home
last modified time | relevance | path

Searched refs:nr_bvec (Results 1 – 7 of 7) sorted by relevance

/linux/drivers/nvme/target/
H A Dio-cmd-file.c122 ssize_t nr_bvec = req->sg_cnt; in nvmet_file_execute_io() local
131 if (req->f.mpool_alloc && nr_bvec > NVMET_MAX_MPOOL_BVEC) in nvmet_file_execute_io()
148 WARN_ON_ONCE((nr_bvec - 1) < 0); in nvmet_file_execute_io()
151 (nr_bvec - 1 == 0 || bv_cnt == NVMET_MAX_MPOOL_BVEC)) { in nvmet_file_execute_io()
160 nr_bvec--; in nvmet_file_execute_io()
220 ssize_t nr_bvec = req->sg_cnt; in nvmet_file_execute_rw() local
225 if (!req->sg_cnt || !nr_bvec) { in nvmet_file_execute_rw()
230 if (nr_bvec > NVMET_MAX_INLINE_BIOVEC) in nvmet_file_execute_rw()
231 req->f.bvec = kmalloc_objs(struct bio_vec, nr_bvec); in nvmet_file_execute_rw()
/linux/drivers/infiniband/core/
H A Drw.c205 u32 port_num, const struct bio_vec *bvecs, u32 nr_bvec, in rdma_rw_init_mr_wrs_bvec() argument
216 ctx->reg = kzalloc_objs(*ctx->reg, DIV_ROUND_UP(nr_bvec, pages_per_mr)); in rdma_rw_init_mr_wrs_bvec()
224 ctx->reg[0].sgt.sgl = kmalloc_objs(*ctx->reg[0].sgt.sgl, nr_bvec); in rdma_rw_init_mr_wrs_bvec()
229 sg_init_table(ctx->reg[0].sgt.sgl, nr_bvec); in rdma_rw_init_mr_wrs_bvec()
234 if (nents >= nr_bvec) { in rdma_rw_init_mr_wrs_bvec()
404 const struct bio_vec *bvecs, u32 nr_bvec, struct bvec_iter *iter, in rdma_rw_init_map_wrs_bvec() argument
413 u32 nr_ops = DIV_ROUND_UP(nr_bvec, max_sge); in rdma_rw_init_map_wrs_bvec()
414 size_t sges_size = array_size(nr_bvec, sizeof(*ctx->map.sges)); in rdma_rw_init_map_wrs_bvec()
432 u32 nr_sge = min(nr_bvec - mapped_bvecs, max_sge); in rdma_rw_init_map_wrs_bvec()
651 u32 port_num, const struct bio_vec *bvecs, u32 nr_bvec, in rdma_rw_ctx_init_bvec() argument
[all …]
/linux/net/sunrpc/xprtrdma/
H A Dsvc_rdma_rw.c60 svc_rdma_get_rw_ctxt(struct svcxprt_rdma *rdma, unsigned int nr_bvec) in svc_rdma_get_rw_ctxt() argument
83 if (nr_bvec <= ctxt->rw_first_bvec_nents) { in svc_rdma_get_rw_ctxt()
86 ctxt->rw_bvec = kmalloc_array_node(nr_bvec, in svc_rdma_get_rw_ctxt()
102 trace_svcrdma_rwctx_empty(rdma, nr_bvec); in svc_rdma_get_rw_ctxt()
753 unsigned int bvec_idx, nr_bvec, seg_len, len, total; in svc_rdma_build_read_segment() local
760 nr_bvec = PAGE_ALIGN(total) >> PAGE_SHIFT; in svc_rdma_build_read_segment()
761 ctxt = svc_rdma_get_rw_ctxt(rdma, nr_bvec); in svc_rdma_build_read_segment()
764 ctxt->rw_nents = nr_bvec; in svc_rdma_build_read_segment()
/linux/fs/netfs/
H A Dbuffered_read.c409 size_t nr_bvec = flen / PAGE_SIZE + 2; in netfs_read_gaps() local
432 bvec = kmalloc_objs(*bvec, nr_bvec); in netfs_read_gaps()
445 rreq->direct_bv_count = nr_bvec; in netfs_read_gaps()
/linux/drivers/block/
H A Dzloop.c397 unsigned int nr_bvec; in zloop_rw() local
490 nr_bvec = blk_rq_nr_bvec(rq); in zloop_rw()
495 cmd->bvec = kmalloc_objs(*cmd->bvec, nr_bvec, GFP_NOIO); in zloop_rw()
512 iov_iter_bvec(&iter, rw, cmd->bvec, nr_bvec, blk_rq_bytes(rq)); in zloop_rw()
521 nr_bvec, blk_rq_bytes(rq)); in zloop_rw()
H A Dloop.c351 unsigned int nr_bvec; in lo_rw_aio() local
354 nr_bvec = blk_rq_nr_bvec(rq); in lo_rw_aio()
358 bvec = kmalloc_objs(struct bio_vec, nr_bvec, GFP_NOIO); in lo_rw_aio()
386 iov_iter_bvec(&iter, rw, bvec, nr_bvec, blk_rq_bytes(rq)); in lo_rw_aio()
/linux/drivers/nvme/host/
H A Dtcp.c344 int nr_bvec; in nvme_tcp_init_iter() local
349 nr_bvec = 1; in nvme_tcp_init_iter()
358 nr_bvec = 0; in nvme_tcp_init_iter()
360 nr_bvec++; in nvme_tcp_init_iter()
366 iov_iter_bvec(&req->iter, dir, vec, nr_bvec, size); in nvme_tcp_init_iter()