Home
last modified time | relevance | path

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

/linux/block/
A Dbio.c433 struct bio *bio_alloc_bioset(gfp_t gfp_mask, unsigned short nr_iovecs, in bio_alloc_bioset() argument
441 if (WARN_ON_ONCE(!mempool_initialized(&bs->bvec_pool) && nr_iovecs > 0)) in bio_alloc_bioset()
478 if (nr_iovecs > BIO_INLINE_VECS) { in bio_alloc_bioset()
481 bvl = bvec_alloc(&bs->bvec_pool, &nr_iovecs, gfp_mask); in bio_alloc_bioset()
485 bvl = bvec_alloc(&bs->bvec_pool, &nr_iovecs, gfp_mask); in bio_alloc_bioset()
490 bio_init(bio, bvl, nr_iovecs); in bio_alloc_bioset()
491 } else if (nr_iovecs) { in bio_alloc_bioset()
515 struct bio *bio_kmalloc(gfp_t gfp_mask, unsigned short nr_iovecs) in bio_kmalloc() argument
519 if (nr_iovecs > UIO_MAXIOV) in bio_kmalloc()
522 bio = kmalloc(struct_size(bio, bi_inline_vecs, nr_iovecs), gfp_mask); in bio_kmalloc()
[all …]
/linux/include/linux/
A Dbio.h357 struct bio *bio_alloc_bioset(gfp_t gfp, unsigned short nr_iovecs,
361 struct bio *bio_kmalloc(gfp_t gfp_mask, unsigned short nr_iovecs);
369 static inline struct bio *bio_alloc(gfp_t gfp_mask, unsigned short nr_iovecs) in bio_alloc() argument
371 return bio_alloc_bioset(gfp_mask, nr_iovecs, &fs_bio_set); in bio_alloc()
/linux/fs/btrfs/
A Dextent_io.h280 struct bio *btrfs_bio_alloc(unsigned int nr_iovecs);
A Dextent_io.c3145 struct bio *btrfs_bio_alloc(unsigned int nr_iovecs) in btrfs_bio_alloc() argument
3149 ASSERT(0 < nr_iovecs && nr_iovecs <= BIO_MAX_VECS); in btrfs_bio_alloc()
3150 bio = bio_alloc_bioset(GFP_NOFS, nr_iovecs, &btrfs_bioset); in btrfs_bio_alloc()
/linux/net/rds/
A 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()
/linux/fs/gfs2/
A Dlops.c488 static struct bio *gfs2_chain_bio(struct bio *prev, unsigned int nr_iovecs) in gfs2_chain_bio() argument
492 new = bio_alloc(GFP_NOIO, nr_iovecs); in gfs2_chain_bio()
/linux/drivers/md/
A Ddm-crypt.c1666 unsigned int nr_iovecs = (size + PAGE_SIZE - 1) >> PAGE_SHIFT; in crypt_alloc_buffer() local
1675 clone = bio_alloc_bioset(GFP_NOIO, nr_iovecs, &cc->bs); in crypt_alloc_buffer()
1683 for (i = 0; i < nr_iovecs; i++) { in crypt_alloc_buffer()
/linux/Documentation/block/
A Dbiodoc.rst658 so bio_alloc(gfp_mask, nr_iovecs) will allocate a vec_list of the

Completed in 32 milliseconds