/linux-master/block/ |
H A D | bio-integrity.c | 42 * @nr_vecs: Number of integrity metadata scatter-gather elements 45 * metadata. nr_vecs specifies the maximum number of pages containing 50 unsigned int nr_vecs) 60 bip = kmalloc(struct_size(bip, bip_inline_vecs, nr_vecs), gfp_mask); 61 inline_vecs = nr_vecs; 73 bip->bip_max_vcnt = nr_vecs; 74 if (nr_vecs > inline_vecs) { 94 static void bio_integrity_unpin_bvec(struct bio_vec *bv, int nr_vecs, argument 99 for (i = 0; i < nr_vecs; i++) { 108 unsigned short nr_vecs local 48 bio_integrity_alloc(struct bio *bio, gfp_t gfp_mask, unsigned int nr_vecs) argument 206 bio_integrity_copy_user(struct bio *bio, struct bio_vec *bvec, int nr_vecs, unsigned int len, unsigned int direction, u32 seed) argument 265 bio_integrity_init_user(struct bio *bio, struct bio_vec *bvec, int nr_vecs, unsigned int len, u32 seed) argument 281 bvec_from_pages(struct bio_vec *bvec, struct page **pages, int nr_vecs, ssize_t bytes, ssize_t offset) argument 320 int ret, nr_vecs; local [all...] |
H A D | bio.c | 38 int nr_vecs; member in struct:biovec_slab 42 { .nr_vecs = 16, .name = "biovec-16" }, 43 { .nr_vecs = 64, .name = "biovec-64" }, 44 { .nr_vecs = 128, .name = "biovec-128" }, 45 { .nr_vecs = BIO_MAX_VECS, .name = "biovec-max" }, 48 static struct biovec_slab *biovec_slab(unsigned short nr_vecs) argument 50 switch (nr_vecs) { 162 void bvec_free(mempool_t *pool, struct bio_vec *bv, unsigned short nr_vecs) argument 164 BUG_ON(nr_vecs > BIO_MAX_VECS); 166 if (nr_vecs 182 bvec_alloc(mempool_t *pool, unsigned short *nr_vecs, gfp_t gfp_mask) argument 443 bio_alloc_percpu_cache(struct block_device *bdev, unsigned short nr_vecs, blk_opf_t opf, gfp_t gfp, struct bio_set *bs) argument 503 bio_alloc_bioset(struct block_device *bdev, unsigned short nr_vecs, blk_opf_t opf, gfp_t gfp_mask, struct bio_set *bs) argument 610 bio_kmalloc(unsigned short nr_vecs, gfp_t gfp_mask) argument [all...] |
H A D | blk-map.c | 254 unsigned int nr_vecs, gfp_t gfp_mask) 258 if (rq->cmd_flags & REQ_ALLOC_CACHE && (nr_vecs <= BIO_INLINE_VECS)) { 259 bio = bio_alloc_bioset(NULL, nr_vecs, rq->cmd_flags, gfp_mask, 264 bio = bio_kmalloc(nr_vecs, gfp_mask); 267 bio_init(bio, NULL, bio->bi_inline_vecs, nr_vecs, req_op(rq)); 277 unsigned int nr_vecs = iov_iter_npages(iter, BIO_MAX_VECS); local 285 bio = blk_rq_map_bio_alloc(rq, nr_vecs, gfp_mask); 301 if (nr_vecs > ARRAY_SIZE(stack_pages)) 305 nr_vecs, extraction_flags, &offs); 253 blk_rq_map_bio_alloc(struct request *rq, unsigned int nr_vecs, gfp_t gfp_mask) argument
|
H A D | blk.h | 89 struct bio_vec *bvec_alloc(mempool_t *pool, unsigned short *nr_vecs, 91 void bvec_free(mempool_t *pool, struct bio_vec *bv, unsigned short nr_vecs);
|
/linux-master/drivers/crypto/cavium/nitrox/ |
H A D | nitrox_isr.c | 294 int nr_vecs, vec, cpu; local 309 nr_vecs = pci_msix_vec_count(pdev); 310 if (nr_vecs < 0) { 311 dev_err(DEV(ndev), "Error in getting vec count %d\n", nr_vecs); local 312 return nr_vecs; 316 ret = pci_alloc_irq_vectors(pdev, nr_vecs, nr_vecs, PCI_IRQ_MSIX); 318 dev_err(DEV(ndev), "msix vectors %d alloc failed\n", nr_vecs); local 321 ndev->num_vecs = nr_vecs; 323 ndev->qvec = kcalloc(nr_vecs, sizeo [all...] |
/linux-master/fs/btrfs/ |
H A D | bio.h | 99 struct btrfs_bio *btrfs_bio_alloc(unsigned int nr_vecs, blk_opf_t opf,
|
H A D | bio.c | 61 struct btrfs_bio *btrfs_bio_alloc(unsigned int nr_vecs, blk_opf_t opf, argument 68 bio = bio_alloc_bioset(NULL, nr_vecs, opf, GFP_NOFS, &btrfs_bioset);
|
/linux-master/drivers/virt/nitro_enclaves/ |
H A D | ne_pci_dev.c | 298 int nr_vecs = 0; local 301 nr_vecs = pci_msix_vec_count(pdev); 302 if (nr_vecs < 0) { 303 rc = nr_vecs; 310 rc = pci_alloc_irq_vectors(pdev, nr_vecs, nr_vecs, PCI_IRQ_MSIX);
|
/linux-master/fs/nilfs2/ |
H A D | segbuf.c | 26 int nr_vecs; member in struct:nilfs_write_info 357 wi->nr_vecs = min(wi->max_pages, wi->rest_blocks); 368 wi->nr_vecs = min(wi->max_pages, wi->rest_blocks); 379 BUG_ON(wi->nr_vecs <= 0); 382 wi->bio = bio_alloc(wi->nilfs->ns_bdev, wi->nr_vecs,
|
/linux-master/include/linux/ |
H A D | bio.h | 421 struct bio *bio_alloc_bioset(struct block_device *bdev, unsigned short nr_vecs, 424 struct bio *bio_kmalloc(unsigned short nr_vecs, gfp_t gfp_mask); 435 unsigned short nr_vecs, blk_opf_t opf, gfp_t gfp_mask) 437 return bio_alloc_bioset(bdev, nr_vecs, opf, gfp_mask, &fs_bio_set); 434 bio_alloc(struct block_device *bdev, unsigned short nr_vecs, blk_opf_t opf, gfp_t gfp_mask) argument
|
/linux-master/drivers/target/ |
H A D | target_core_pscsi.c | 833 int nr_vecs = 0, rc; local 861 nr_vecs = bio_max_segs(nr_pages); 862 bio = bio_kmalloc(nr_vecs, GFP_KERNEL); 865 bio_init(bio, NULL, bio->bi_inline_vecs, nr_vecs, 870 " dir: %s nr_vecs: %d\n", bio, 871 (rw) ? "rw" : "r", nr_vecs); 880 pr_debug("PSCSI: bio->bi_vcnt: %d nr_vecs: %d\n", 881 bio_segments(bio), nr_vecs);
|
/linux-master/fs/iomap/ |
H A D | direct-io.c | 56 struct iomap_dio *dio, unsigned short nr_vecs, blk_opf_t opf) 59 return bio_alloc_bioset(iter->iomap.bdev, nr_vecs, opf, 61 return bio_alloc(iter->iomap.bdev, nr_vecs, opf, GFP_KERNEL); 55 iomap_dio_alloc_bio(const struct iomap_iter *iter, struct iomap_dio *dio, unsigned short nr_vecs, blk_opf_t opf) argument
|
H A D | buffered-io.c | 411 unsigned int nr_vecs = DIV_ROUND_UP(length, PAGE_SIZE); local 418 ctx->bio = bio_alloc(iomap->bdev, bio_max_segs(nr_vecs),
|
/linux-master/fs/ |
H A D | direct-io.c | 397 sector_t first_sector, int nr_vecs) 405 bio = bio_alloc(bdev, nr_vecs, dio->opf, GFP_KERNEL); 395 dio_bio_alloc(struct dio *dio, struct dio_submit *sdio, struct block_device *bdev, sector_t first_sector, int nr_vecs) argument
|
/linux-master/fs/xfs/scrub/ |
H A D | trace.h | 223 __field(unsigned short, nr_vecs) 233 __entry->nr_vecs = vhead->svh_nr; 235 TP_printk("dev %d:%d ino 0x%llx agno 0x%x inum 0x%llx gen 0x%x flags 0x%x rest_us %u nr_vecs %u", 243 __entry->nr_vecs)
|