Home
last modified time | relevance | path

Searched refs:nr_vecs (Results 1 – 4 of 4) sorted by relevance

/block/
Dbio.c39 int nr_vecs; member
43 { .nr_vecs = 16, .name = "biovec-16" },
44 { .nr_vecs = 64, .name = "biovec-64" },
45 { .nr_vecs = 128, .name = "biovec-128" },
46 { .nr_vecs = BIO_MAX_VECS, .name = "biovec-max" },
49 static struct biovec_slab *biovec_slab(unsigned short nr_vecs) in biovec_slab() argument
51 switch (nr_vecs) { in biovec_slab()
163 void bvec_free(mempool_t *pool, struct bio_vec *bv, unsigned short nr_vecs) in bvec_free() argument
165 BUG_ON(nr_vecs > BIO_MAX_VECS); in bvec_free()
167 if (nr_vecs == BIO_MAX_VECS) in bvec_free()
[all …]
Dblk-map.c254 unsigned int nr_vecs, gfp_t gfp_mask) in blk_rq_map_bio_alloc() argument
258 if (rq->cmd_flags & REQ_ALLOC_CACHE && (nr_vecs <= BIO_INLINE_VECS)) { in blk_rq_map_bio_alloc()
259 bio = bio_alloc_bioset(NULL, nr_vecs, rq->cmd_flags, gfp_mask, in blk_rq_map_bio_alloc()
264 bio = bio_kmalloc(nr_vecs, gfp_mask); in blk_rq_map_bio_alloc()
267 bio_init(bio, NULL, bio->bi_inline_vecs, nr_vecs, req_op(rq)); in blk_rq_map_bio_alloc()
277 unsigned int nr_vecs = iov_iter_npages(iter, BIO_MAX_VECS); in bio_map_user_iov() local
285 bio = blk_rq_map_bio_alloc(rq, nr_vecs, gfp_mask); in bio_map_user_iov()
301 if (nr_vecs > ARRAY_SIZE(stack_pages)) in bio_map_user_iov()
305 nr_vecs, extraction_flags, &offs); in bio_map_user_iov()
Dbio-integrity.c50 unsigned int nr_vecs) in bio_integrity_alloc() argument
60 bip = kmalloc(struct_size(bip, bip_inline_vecs, nr_vecs), gfp_mask); in bio_integrity_alloc()
61 inline_vecs = nr_vecs; in bio_integrity_alloc()
72 if (nr_vecs > inline_vecs) { in bio_integrity_alloc()
73 bip->bip_max_vcnt = nr_vecs; in bio_integrity_alloc()
Dblk.h84 struct bio_vec *bvec_alloc(mempool_t *pool, unsigned short *nr_vecs,
86 void bvec_free(mempool_t *pool, struct bio_vec *bv, unsigned short nr_vecs);