Home
last modified time | relevance | path

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

/Linux-v5.15/block/
Dbio.c34 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()
157 void bvec_free(mempool_t *pool, struct bio_vec *bv, unsigned short nr_vecs) in bvec_free() argument
159 BIO_BUG_ON(nr_vecs > BIO_MAX_VECS); in bvec_free()
161 if (nr_vecs == BIO_MAX_VECS) in bvec_free()
[all …]
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.h58 struct bio_vec *bvec_alloc(mempool_t *pool, unsigned short *nr_vecs,
60 void bvec_free(mempool_t *pool, struct bio_vec *bv, unsigned short nr_vecs);
/Linux-v5.15/drivers/crypto/cavium/nitrox/
Dnitrox_isr.c294 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-v5.15/tools/io_uring/
Dliburing.h122 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-v5.15/drivers/virt/nitro_enclaves/
Dne_pci_dev.c298 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-v5.15/fs/nilfs2/
Dsegbuf.c26 int nr_vecs; member
365 wi->nr_vecs = min(wi->max_pages, wi->rest_blocks); in nilfs_segbuf_submit_bio()
384 int nr_vecs) in nilfs_alloc_seg_bio() argument
388 bio = bio_alloc(GFP_NOIO, nr_vecs); in nilfs_alloc_seg_bio()
403 wi->nr_vecs = min(wi->max_pages, wi->rest_blocks); in nilfs_segbuf_prepare_write()
414 BUG_ON(wi->nr_vecs <= 0); in nilfs_segbuf_submit_bh()
418 wi->nr_vecs); in nilfs_segbuf_submit_bh()
/Linux-v5.15/drivers/target/
Dtarget_core_pscsi.c827 static inline struct bio *pscsi_get_bio(int nr_vecs) in pscsi_get_bio() argument
834 bio = bio_kmalloc(GFP_KERNEL, nr_vecs); in pscsi_get_bio()
855 int nr_vecs = 0, rc; in pscsi_map_sg() local
883 nr_vecs = bio_max_segs(nr_pages); in pscsi_map_sg()
887 bio = pscsi_get_bio(nr_vecs); in pscsi_map_sg()
896 (rw) ? "rw" : "r", nr_vecs); in pscsi_map_sg()
906 bio_segments(bio), nr_vecs); in pscsi_map_sg()
/Linux-v5.15/fs/
Dmpage.c72 sector_t first_sector, int nr_vecs, in mpage_alloc() argument
79 bio = bio_alloc(gfp_flags, nr_vecs); in mpage_alloc()
82 while (!bio && (nr_vecs /= 2)) in mpage_alloc()
83 bio = bio_alloc(gfp_flags, nr_vecs); in mpage_alloc()
Ddirect-io.c392 sector_t first_sector, int nr_vecs) in dio_bio_alloc() argument
400 bio = bio_alloc(GFP_KERNEL, nr_vecs); in dio_bio_alloc()
/Linux-v5.15/fs/ntfs3/
Dfsntfs.c1446 static inline struct bio *ntfs_alloc_bio(u32 nr_vecs) in ntfs_alloc_bio() argument
1448 struct bio *bio = bio_alloc(GFP_NOFS | __GFP_HIGH, nr_vecs); in ntfs_alloc_bio()
1451 while (!bio && (nr_vecs /= 2)) in ntfs_alloc_bio()
1452 bio = bio_alloc(GFP_NOFS | __GFP_HIGH, nr_vecs); in ntfs_alloc_bio()
/Linux-v5.15/include/linux/
Dbio.h412 struct bio *bio_alloc_kiocb(struct kiocb *kiocb, unsigned short nr_vecs,
/Linux-v5.15/fs/iomap/
Dbuffered-io.c284 unsigned int nr_vecs = DIV_ROUND_UP(length, PAGE_SIZE); in iomap_readpage_iter() local
291 ctx->bio = bio_alloc(gfp, bio_max_segs(nr_vecs)); in iomap_readpage_iter()