Searched refs:nr_bvec (Results 1 – 6 of 6) sorted by relevance
| /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()
|
| /linux/fs/netfs/ |
| H A D | buffered_read.c | 409 size_t nr_bvec = flen / PAGE_SIZE + 2; in netfs_read_gaps() local 432 bvec = kmalloc_array(nr_bvec, sizeof(*bvec), GFP_KERNEL); in netfs_read_gaps() 445 rreq->direct_bv_count = nr_bvec; in netfs_read_gaps()
|
| /linux/include/linux/ |
| H A D | blk-mq.h | 1226 unsigned int nr_bvec = 0; in blk_rq_nr_bvec() local 1229 nr_bvec++; in blk_rq_nr_bvec() 1231 return nr_bvec; in blk_rq_nr_bvec()
|
| /linux/drivers/block/ |
| H A D | zloop.c | 397 unsigned int nr_bvec; in zloop_rw() local 490 nr_bvec = blk_rq_nr_bvec(rq); in zloop_rw() 495 cmd->bvec = kmalloc_array(nr_bvec, sizeof(*cmd->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 D | loop.c | 351 unsigned int nr_bvec; in lo_rw_aio() local 354 nr_bvec = blk_rq_nr_bvec(rq); in lo_rw_aio() 358 bvec = kmalloc_array(nr_bvec, sizeof(struct bio_vec), in lo_rw_aio() 387 iov_iter_bvec(&iter, rw, bvec, nr_bvec, blk_rq_bytes(rq)); in lo_rw_aio()
|
| /linux/drivers/nvme/host/ |
| H A D | tcp.c | 344 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()
|