Home
last modified time | relevance | path

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

/linux/block/
A Dbio.c34 int nr_vecs; member
38 { .nr_vecs = 16, .name = "biovec-16" },
39 { .nr_vecs = 64, .name = "biovec-64" },
46 switch (nr_vecs) { in biovec_slab()
160 BUG_ON(nr_vecs > BIO_MAX_VECS); in bvec_free()
162 if (nr_vecs == BIO_MAX_VECS) in bvec_free()
164 else if (nr_vecs > BIO_INLINE_VECS) in bvec_free()
190 *nr_vecs = bvs->nr_vecs; in bvec_alloc()
197 if (*nr_vecs < BIO_MAX_VECS) { in bvec_alloc()
203 *nr_vecs = BIO_MAX_VECS; in bvec_alloc()
[all …]
A 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()
A Dblk.h95 struct bio_vec *bvec_alloc(mempool_t *pool, unsigned short *nr_vecs,
97 void bvec_free(mempool_t *pool, struct bio_vec *bv, unsigned short nr_vecs);
/linux/drivers/crypto/cavium/nitrox/
A 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/tools/io_uring/
A 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/drivers/virt/nitro_enclaves/
A 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/fs/nilfs2/
A 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/drivers/target/
A 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/fs/
A 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()
A Ddirect-io.c391 sector_t first_sector, int nr_vecs) in dio_bio_alloc() argument
399 bio = bio_alloc(GFP_KERNEL, nr_vecs); in dio_bio_alloc()
/linux/fs/ntfs3/
A 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/fs/iomap/
A Dbuffered-io.c293 unsigned int nr_vecs = DIV_ROUND_UP(length, PAGE_SIZE); in iomap_readpage_iter() local
300 ctx->bio = bio_alloc(gfp, bio_max_segs(nr_vecs)); in iomap_readpage_iter()
/linux/include/linux/
A Dbio.h359 struct bio *bio_alloc_kiocb(struct kiocb *kiocb, unsigned short nr_vecs,

Completed in 27 milliseconds