Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/nvme/target/
Dio-cmd-file.c145 ssize_t nr_bvec = req->sg_cnt; in nvmet_file_execute_io() local
154 if (req->f.mpool_alloc && nr_bvec > NVMET_MAX_MPOOL_BVEC) in nvmet_file_execute_io()
170 WARN_ON_ONCE((nr_bvec - 1) < 0); in nvmet_file_execute_io()
173 (nr_bvec - 1 == 0 || bv_cnt == NVMET_MAX_MPOOL_BVEC)) { in nvmet_file_execute_io()
182 nr_bvec--; in nvmet_file_execute_io()
242 ssize_t nr_bvec = req->sg_cnt; in nvmet_file_execute_rw() local
247 if (!req->sg_cnt || !nr_bvec) { in nvmet_file_execute_rw()
252 if (nr_bvec > NVMET_MAX_INLINE_BIOVEC) in nvmet_file_execute_rw()
253 req->f.bvec = kmalloc_array(nr_bvec, sizeof(struct bio_vec), in nvmet_file_execute_rw()
/Linux-v5.10/drivers/block/
Dloop.c538 int nr_bvec = 0; in lo_rw_aio() local
542 nr_bvec++; in lo_rw_aio()
546 bvec = kmalloc_array(nr_bvec, sizeof(struct bio_vec), in lo_rw_aio()
575 iov_iter_bvec(&iter, rw, bvec, nr_bvec, blk_rq_bytes(rq)); in lo_rw_aio()