Home
last modified time | relevance | path

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

/Linux-v5.10/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.10/drivers/crypto/cavium/nitrox/
Dnitrox_isr.c293 int nr_vecs, vec, cpu; in nitrox_register_interrupts() local
308 nr_vecs = pci_msix_vec_count(pdev); in nitrox_register_interrupts()
311 ret = pci_alloc_irq_vectors(pdev, nr_vecs, nr_vecs, PCI_IRQ_MSIX); in nitrox_register_interrupts()
313 dev_err(DEV(ndev), "msix vectors %d alloc failed\n", nr_vecs); in nitrox_register_interrupts()
316 ndev->num_vecs = nr_vecs; in nitrox_register_interrupts()
318 ndev->qvec = kcalloc(nr_vecs, sizeof(*qvec), GFP_KERNEL); in nitrox_register_interrupts()
325 for (i = PKT_RING_MSIX_BASE; i < (nr_vecs - 1); i += NR_RING_VECTORS) { in nitrox_register_interrupts()
/Linux-v5.10/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()
390 while (!bio && (nr_vecs >>= 1)) in nilfs_alloc_seg_bio()
391 bio = bio_alloc(GFP_NOIO, nr_vecs); in nilfs_alloc_seg_bio()
407 wi->nr_vecs = min(wi->max_pages, wi->rest_blocks); in nilfs_segbuf_prepare_write()
418 BUG_ON(wi->nr_vecs <= 0); in nilfs_segbuf_submit_bh()
422 wi->nr_vecs); in nilfs_segbuf_submit_bh()
/Linux-v5.10/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.10/block/
Dbio-integrity.c52 unsigned int nr_vecs) in bio_integrity_alloc() argument
62 bip = kmalloc(struct_size(bip, bip_inline_vecs, nr_vecs), gfp_mask); in bio_integrity_alloc()
63 inline_vecs = nr_vecs; in bio_integrity_alloc()
74 if (nr_vecs > inline_vecs) { in bio_integrity_alloc()
77 bip->bip_vec = bvec_alloc(gfp_mask, nr_vecs, &idx, in bio_integrity_alloc()
Dbio.c38 #define BV(x, n) { .nr_vecs = x, .name = "biovec-"#n }
151 return bvec_slabs[--idx].nr_vecs; in bvec_nr_vecs()
1641 if (bvs->nr_vecs <= BIO_INLINE_VECS) { in biovec_init_slabs()
1646 size = bvs->nr_vecs * sizeof(struct bio_vec); in biovec_init_slabs()
/Linux-v5.10/drivers/target/
Dtarget_core_pscsi.c828 static inline struct bio *pscsi_get_bio(int nr_vecs) in pscsi_get_bio() argument
835 bio = bio_kmalloc(GFP_KERNEL, nr_vecs); in pscsi_get_bio()
856 int nr_vecs = 0, rc; in pscsi_map_sg() local
884 nr_vecs = min_t(int, BIO_MAX_PAGES, nr_pages); in pscsi_map_sg()
885 nr_pages -= nr_vecs; in pscsi_map_sg()
889 bio = pscsi_get_bio(nr_vecs); in pscsi_map_sg()
898 (rw) ? "rw" : "r", nr_vecs); in pscsi_map_sg()
908 bio_segments(bio), nr_vecs); in pscsi_map_sg()
/Linux-v5.10/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.10/include/linux/
Dbio.h704 int nr_vecs; member
/Linux-v5.10/fs/iomap/
Dbuffered-io.c281 int nr_vecs = (length + PAGE_SIZE - 1) >> PAGE_SHIFT; in iomap_readpage_actor() local
288 ctx->bio = bio_alloc(gfp, min(BIO_MAX_PAGES, nr_vecs)); in iomap_readpage_actor()