/linux-5.19.10/block/ |
D | bio.c | 34 int nr_vecs; member 38 { .nr_vecs = 16, .name = "biovec-16" }, 39 { .nr_vecs = 64, .name = "biovec-64" }, 40 { .nr_vecs = 128, .name = "biovec-128" }, 41 { .nr_vecs = BIO_MAX_VECS, .name = "biovec-max" }, 44 static struct biovec_slab *biovec_slab(unsigned short nr_vecs) in biovec_slab() argument 46 switch (nr_vecs) { in biovec_slab() 158 void bvec_free(mempool_t *pool, struct bio_vec *bv, unsigned short nr_vecs) in bvec_free() argument 160 BUG_ON(nr_vecs > BIO_MAX_VECS); in bvec_free() 162 if (nr_vecs == BIO_MAX_VECS) in bvec_free() [all …]
|
D | bio-integrity.c | 50 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()
|
D | blk-map.c | 238 unsigned int nr_vecs = iov_iter_npages(iter, BIO_MAX_VECS); in bio_map_user_iov() local 246 bio = bio_kmalloc(nr_vecs, gfp_mask); in bio_map_user_iov() 249 bio_init(bio, NULL, bio->bi_inline_vecs, nr_vecs, req_op(rq)); in bio_map_user_iov()
|
D | blk.h | 85 struct bio_vec *bvec_alloc(mempool_t *pool, unsigned short *nr_vecs, 87 void bvec_free(mempool_t *pool, struct bio_vec *bv, unsigned short nr_vecs);
|
/linux-5.19.10/drivers/crypto/cavium/nitrox/ |
D | nitrox_isr.c | 294 int nr_vecs, vec, cpu; in nitrox_register_interrupts() local 309 nr_vecs = pci_msix_vec_count(pdev); in nitrox_register_interrupts() 310 if (nr_vecs < 0) { in nitrox_register_interrupts() 311 dev_err(DEV(ndev), "Error in getting vec count %d\n", nr_vecs); in nitrox_register_interrupts() 312 return nr_vecs; in nitrox_register_interrupts() 316 ret = pci_alloc_irq_vectors(pdev, nr_vecs, nr_vecs, PCI_IRQ_MSIX); in nitrox_register_interrupts() 318 dev_err(DEV(ndev), "msix vectors %d alloc failed\n", nr_vecs); in nitrox_register_interrupts() 321 ndev->num_vecs = nr_vecs; in nitrox_register_interrupts() 323 ndev->qvec = kcalloc(nr_vecs, sizeof(*qvec), GFP_KERNEL); in nitrox_register_interrupts() 330 for (i = PKT_RING_MSIX_BASE; i < (nr_vecs - 1); i += NR_RING_VECTORS) { in nitrox_register_interrupts()
|
/linux-5.19.10/tools/io_uring/ |
D | liburing.h | 122 unsigned nr_vecs, off_t offset) in io_uring_prep_readv() argument 124 io_uring_prep_rw(IORING_OP_READV, sqe, fd, iovecs, nr_vecs, offset); in io_uring_prep_readv() 136 unsigned nr_vecs, off_t offset) in io_uring_prep_writev() argument 138 io_uring_prep_rw(IORING_OP_WRITEV, sqe, fd, iovecs, nr_vecs, offset); in io_uring_prep_writev()
|
/linux-5.19.10/drivers/virt/nitro_enclaves/ |
D | ne_pci_dev.c | 298 int nr_vecs = 0; in ne_setup_msix() local 301 nr_vecs = pci_msix_vec_count(pdev); in ne_setup_msix() 302 if (nr_vecs < 0) { in ne_setup_msix() 303 rc = nr_vecs; in ne_setup_msix() 310 rc = pci_alloc_irq_vectors(pdev, nr_vecs, nr_vecs, PCI_IRQ_MSIX); in ne_setup_msix()
|
/linux-5.19.10/fs/nilfs2/ |
D | segbuf.c | 26 int nr_vecs; member 351 wi->nr_vecs = min(wi->max_pages, wi->rest_blocks); in nilfs_segbuf_submit_bio() 362 wi->nr_vecs = min(wi->max_pages, wi->rest_blocks); in nilfs_segbuf_prepare_write() 373 BUG_ON(wi->nr_vecs <= 0); in nilfs_segbuf_submit_bh() 376 wi->bio = bio_alloc(wi->nilfs->ns_bdev, wi->nr_vecs, in nilfs_segbuf_submit_bh()
|
/linux-5.19.10/drivers/target/ |
D | target_core_pscsi.c | 836 int nr_vecs = 0, rc; in pscsi_map_sg() local 864 nr_vecs = bio_max_segs(nr_pages); in pscsi_map_sg() 865 bio = bio_kmalloc(nr_vecs, GFP_KERNEL); in pscsi_map_sg() 868 bio_init(bio, NULL, bio->bi_inline_vecs, nr_vecs, in pscsi_map_sg() 874 (rw) ? "rw" : "r", nr_vecs); in pscsi_map_sg() 884 bio_segments(bio), nr_vecs); in pscsi_map_sg()
|
/linux-5.19.10/include/linux/ |
D | bio.h | 407 struct bio *bio_alloc_bioset(struct block_device *bdev, unsigned short nr_vecs, 410 struct bio *bio_kmalloc(unsigned short nr_vecs, gfp_t gfp_mask); 421 unsigned short nr_vecs, unsigned int opf, gfp_t gfp_mask) in bio_alloc() argument 423 return bio_alloc_bioset(bdev, nr_vecs, opf, gfp_mask, &fs_bio_set); in bio_alloc()
|
/linux-5.19.10/fs/iomap/ |
D | direct-io.c | 55 struct iomap_dio *dio, unsigned short nr_vecs, unsigned int opf) in iomap_dio_alloc_bio() argument 58 return bio_alloc_bioset(iter->iomap.bdev, nr_vecs, opf, in iomap_dio_alloc_bio() 60 return bio_alloc(iter->iomap.bdev, nr_vecs, opf, GFP_KERNEL); in iomap_dio_alloc_bio()
|
D | buffered-io.c | 288 unsigned int nr_vecs = DIV_ROUND_UP(length, PAGE_SIZE); in iomap_readpage_iter() local 295 ctx->bio = bio_alloc(iomap->bdev, bio_max_segs(nr_vecs), in iomap_readpage_iter()
|
/linux-5.19.10/fs/ |
D | direct-io.c | 391 sector_t first_sector, int nr_vecs) in dio_bio_alloc() argument 399 bio = bio_alloc(bdev, nr_vecs, dio->op | dio->op_flags, GFP_KERNEL); in dio_bio_alloc()
|