Home
last modified time | relevance | path

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

/linux/block/
H A Dbio-integrity.c31 struct bio_vec *bvecs, unsigned int nr_vecs) in bio_integrity_init() argument
34 bip->bip_max_vcnt = nr_vecs; in bio_integrity_init()
35 if (nr_vecs) in bio_integrity_init()
54 unsigned int nr_vecs) in bio_integrity_alloc() argument
61 bia = kmalloc(struct_size(bia, bvecs, nr_vecs), gfp_mask); in bio_integrity_alloc()
64 bio_integrity_init(bio, &bia->bip, bia->bvecs, nr_vecs); in bio_integrity_alloc()
69 static void bio_integrity_unpin_bvec(struct bio_vec *bv, int nr_vecs) in bio_integrity_unpin_bvec() argument
73 for (i = 0; i < nr_vecs; i++) in bio_integrity_unpin_bvec()
160 int nr_vecs, unsigned int len) in bio_integrity_copy_user() argument
173 iov_iter_bvec(&iter, ITER_SOURCE, bvec, nr_vecs, len); in bio_integrity_copy_user()
[all …]
H A Dblk-lib.c200 unsigned int nr_vecs = __blkdev_sectors_to_bio_pages(nr_sects); in __blkdev_issue_zero_pages() local
203 bio = bio_alloc(bdev, nr_vecs, REQ_OP_WRITE, gfp_mask); in __blkdev_issue_zero_pages()
H A Dblk.h112 struct bio_vec *bvec_alloc(mempool_t *pool, unsigned short *nr_vecs,
114 void bvec_free(mempool_t *pool, struct bio_vec *bv, unsigned short nr_vecs);
/linux/drivers/crypto/cavium/nitrox/
H 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/drivers/virt/nitro_enclaves/
H 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/tools/testing/selftests/ublk/
H A Dstripe.c47 unsigned nr_vecs = calculate_nr_vec(conf, iod); in alloc_stripe_array() local
48 unsigned total = nr_vecs * conf->nr_files; in alloc_stripe_array()
59 t->vec = &s->_vec[i * nr_vecs]; in alloc_stripe_array()
61 t->cap = nr_vecs; in alloc_stripe_array()
/linux/include/linux/
H A Dbio.h356 struct bio *bio_alloc_bioset(struct block_device *bdev, unsigned short nr_vecs,
359 struct bio *bio_kmalloc(unsigned short nr_vecs, gfp_t gfp_mask);
370 unsigned short nr_vecs, blk_opf_t opf, gfp_t gfp_mask) in bio_alloc() argument
372 return bio_alloc_bioset(bdev, nr_vecs, opf, gfp_mask, &fs_bio_set); in bio_alloc()
H A Dbio-integrity.h71 struct bio_vec *bvecs, unsigned int nr_vecs);
/linux/fs/iomap/
H A Ddirect-io.c60 struct iomap_dio *dio, unsigned short nr_vecs, blk_opf_t opf) in iomap_dio_alloc_bio() argument
63 return bio_alloc_bioset(iter->iomap.bdev, nr_vecs, opf, in iomap_dio_alloc_bio()
65 return bio_alloc(iter->iomap.bdev, nr_vecs, opf, GFP_KERNEL); in iomap_dio_alloc_bio()
H A Dbuffered-io.c404 unsigned int nr_vecs = DIV_ROUND_UP(length, PAGE_SIZE); in iomap_readpage_iter() local
411 ctx->bio = bio_alloc(iomap->bdev, bio_max_segs(nr_vecs), in iomap_readpage_iter()
/linux/fs/bcachefs/
H A Ddata_update.c734 unsigned nr_vecs = DIV_ROUND_UP(buf_bytes, PAGE_SIZE); in __bch2_data_update_bios_init() local
736 m->bvecs = kmalloc_array(nr_vecs, sizeof*(m->bvecs), GFP_KERNEL); in __bch2_data_update_bios_init()
740 bio_init(&m->rbio.bio, NULL, m->bvecs, nr_vecs, REQ_OP_READ); in __bch2_data_update_bios_init()
741 bio_init(&m->op.wbio.bio, NULL, m->bvecs, nr_vecs, 0); in __bch2_data_update_bios_init()
/linux/fs/btrfs/
H A Dbio.c62 struct btrfs_bio *btrfs_bio_alloc(unsigned int nr_vecs, blk_opf_t opf, in btrfs_bio_alloc() argument
69 bio = bio_alloc_bioset(NULL, nr_vecs, opf, GFP_NOFS, &btrfs_bioset); in btrfs_bio_alloc()
/linux/fs/xfs/
H A Dxfs_buf.c1337 unsigned int nr_vecs = bio_add_max_vecs(bp->b_addr, len); in xfs_buf_submit_bio() local
1342 bio = bio_alloc(bp->b_target->bt_bdev, nr_vecs, xfs_buf_bio_op(bp), in xfs_buf_submit_bio()
/linux/fs/xfs/scrub/
H A Dtrace.h235 __field(unsigned short, nr_vecs)
245 __entry->nr_vecs = vhead->svh_nr;
255 __entry->nr_vecs)