Home
last modified time | relevance | path

Searched refs:nr_iovecs (Results 1 – 12 of 12) sorted by relevance

/kernel/linux/linux-5.10/block/
Dbio.c437 struct bio *bio_alloc_bioset(gfp_t gfp_mask, unsigned int nr_iovecs, in bio_alloc_bioset() argument
448 if (nr_iovecs > UIO_MAXIOV) in bio_alloc_bioset()
451 p = kmalloc(struct_size(bio, bi_inline_vecs, nr_iovecs), gfp_mask); in bio_alloc_bioset()
453 inline_vecs = nr_iovecs; in bio_alloc_bioset()
457 nr_iovecs > 0)) in bio_alloc_bioset()
503 if (nr_iovecs > inline_vecs) { in bio_alloc_bioset()
506 bvl = bvec_alloc(gfp_mask, nr_iovecs, &idx, &bs->bvec_pool); in bio_alloc_bioset()
510 bvl = bvec_alloc(gfp_mask, nr_iovecs, &idx, &bs->bvec_pool); in bio_alloc_bioset()
517 } else if (nr_iovecs) { in bio_alloc_bioset()
522 bio->bi_max_vecs = nr_iovecs; in bio_alloc_bioset()
/kernel/linux/linux-5.10/include/linux/
Dbio.h400 static inline struct bio *bio_alloc(gfp_t gfp_mask, unsigned int nr_iovecs) in bio_alloc() argument
402 return bio_alloc_bioset(gfp_mask, nr_iovecs, &fs_bio_set); in bio_alloc()
405 static inline struct bio *bio_kmalloc(gfp_t gfp_mask, unsigned int nr_iovecs) in bio_kmalloc() argument
407 return bio_alloc_bioset(gfp_mask, nr_iovecs, NULL); in bio_kmalloc()
/kernel/linux/linux-5.10/fs/btrfs/
Dextent_io.h276 struct bio *btrfs_io_bio_alloc(unsigned int nr_iovecs);
Dextent_io.c2985 struct bio *btrfs_io_bio_alloc(unsigned int nr_iovecs) in btrfs_io_bio_alloc() argument
2990 bio = bio_alloc_bioset(GFP_NOFS, nr_iovecs, &btrfs_bioset); in btrfs_io_bio_alloc()
/kernel/linux/linux-5.10/net/rds/
Drdma.c529 static int rds_rdma_pages(struct rds_iovec iov[], int nr_iovecs) in rds_rdma_pages() argument
536 for (i = 0; i < nr_iovecs; i++) { in rds_rdma_pages()
/kernel/linux/linux-5.10/fs/gfs2/
Dlops.c480 static struct bio *gfs2_chain_bio(struct bio *prev, unsigned int nr_iovecs) in gfs2_chain_bio() argument
484 new = bio_alloc(GFP_NOIO, nr_iovecs); in gfs2_chain_bio()
/kernel/linux/linux-5.10/drivers/md/
Dmd.h744 extern struct bio *bio_alloc_mddev(gfp_t gfp_mask, int nr_iovecs,
Ddm-crypt.c1658 unsigned int nr_iovecs = (size + PAGE_SIZE - 1) >> PAGE_SHIFT; in crypt_alloc_buffer() local
1667 clone = bio_alloc_bioset(GFP_NOIO, nr_iovecs, &cc->bs); in crypt_alloc_buffer()
1675 for (i = 0; i < nr_iovecs; i++) { in crypt_alloc_buffer()
Dmd.c343 struct bio *bio_alloc_mddev(gfp_t gfp_mask, int nr_iovecs, in bio_alloc_mddev() argument
347 return bio_alloc(gfp_mask, nr_iovecs); in bio_alloc_mddev()
349 return bio_alloc_bioset(gfp_mask, nr_iovecs, &mddev->bio_set); in bio_alloc_mddev()
/kernel/linux/linux-5.10/drivers/block/xen-blkback/
Dblkback.c1330 int nr_iovecs = min_t(int, (nseg-i), BIO_MAX_PAGES); in dispatch_rw_block_io() local
1331 bio = bio_alloc(GFP_KERNEL, nr_iovecs); in dispatch_rw_block_io()
/kernel/linux/linux-5.10/fs/f2fs/
Ddata.c54 unsigned int nr_iovecs) in __f2fs_bio_alloc() argument
56 return bio_alloc_bioset(gfp_mask, nr_iovecs, &f2fs_bioset); in __f2fs_bio_alloc()
/kernel/linux/linux-5.10/Documentation/block/
Dbiodoc.rst658 so bio_alloc(gfp_mask, nr_iovecs) will allocate a vec_list of the