Searched refs:nr_bvec (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/drivers/nvme/target/ |
H A D | io-cmd-file.c | 122 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_array(nr_bvec, sizeof(struct bio_vec), in nvmet_file_execute_rw()
|
/openbmc/linux/drivers/block/ |
H A D | loop.c | 400 int nr_bvec = 0; in lo_rw_aio() local 404 nr_bvec++; in lo_rw_aio() 408 bvec = kmalloc_array(nr_bvec, sizeof(struct bio_vec), in lo_rw_aio() 437 iov_iter_bvec(&iter, rw, bvec, nr_bvec, blk_rq_bytes(rq)); in lo_rw_aio()
|
/openbmc/linux/drivers/nvme/host/ |
H A D | tcp.c | 282 int nr_bvec; in nvme_tcp_init_iter() local 287 nr_bvec = 1; in nvme_tcp_init_iter() 296 nr_bvec = 0; in nvme_tcp_init_iter() 298 nr_bvec++; in nvme_tcp_init_iter() 304 iov_iter_bvec(&req->iter, dir, vec, nr_bvec, size); in nvme_tcp_init_iter()
|