| /linux-6.15/block/ |
| H A D | bio-integrity.c | 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 73 for (i = 0; i < nr_vecs; i++) in bio_integrity_unpin_bvec() 159 int nr_vecs, unsigned int len, in bio_integrity_copy_user() argument 208 bip->bip_vcnt = nr_vecs; in bio_integrity_copy_user() 228 bip->bip_vcnt = nr_vecs; in bio_integrity_init_user() 238 for (i = 0; i < nr_vecs; i = j) { in bvec_from_pages() 270 int ret, nr_vecs; in bio_integrity_map_user() local 284 if (nr_vecs > BIO_MAX_VECS) in bio_integrity_map_user() [all …]
|
| H A D | bio.c | 38 int nr_vecs; member 50 switch (nr_vecs) { in biovec_slab() 164 BUG_ON(nr_vecs > BIO_MAX_VECS); in bvec_free() 166 if (nr_vecs == BIO_MAX_VECS) in bvec_free() 168 else if (nr_vecs > BIO_INLINE_VECS) in bvec_free() 194 *nr_vecs = bvs->nr_vecs; in bvec_alloc() 201 if (*nr_vecs < BIO_MAX_VECS) { in bvec_alloc() 207 *nr_vecs = BIO_MAX_VECS; in bvec_alloc() 464 bio_init(bio, bdev, nr_vecs ? bio->bi_inline_vecs : NULL, nr_vecs, opf); in bio_alloc_percpu_cache() 566 if (nr_vecs > BIO_INLINE_VECS) { in bio_alloc_bioset() [all …]
|
| H A D | blk-map.c | 254 unsigned int nr_vecs, gfp_t gfp_mask) in blk_rq_map_bio_alloc() argument 258 if (rq->cmd_flags & REQ_ALLOC_CACHE && (nr_vecs <= BIO_INLINE_VECS)) { in blk_rq_map_bio_alloc() 259 bio = bio_alloc_bioset(NULL, nr_vecs, rq->cmd_flags, gfp_mask, in blk_rq_map_bio_alloc() 264 bio = bio_kmalloc(nr_vecs, gfp_mask); in blk_rq_map_bio_alloc() 267 bio_init(bio, NULL, bio->bi_inline_vecs, nr_vecs, req_op(rq)); in blk_rq_map_bio_alloc() 275 unsigned int nr_vecs = iov_iter_npages(iter, BIO_MAX_VECS); in bio_map_user_iov() local 282 bio = blk_rq_map_bio_alloc(rq, nr_vecs, gfp_mask); in bio_map_user_iov()
|
| H A D | blk-lib.c | 200 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 D | blk.h | 101 struct bio_vec *bvec_alloc(mempool_t *pool, unsigned short *nr_vecs, 103 void bvec_free(mempool_t *pool, struct bio_vec *bv, unsigned short nr_vecs);
|
| /linux-6.15/drivers/crypto/cavium/nitrox/ |
| H A 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-6.15/drivers/virt/nitro_enclaves/ |
| H A 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-6.15/fs/nilfs2/ |
| H A D | segbuf.c | 26 int nr_vecs; member 360 wi->nr_vecs = min(wi->max_pages, wi->rest_blocks); in nilfs_segbuf_submit_bio() 371 wi->nr_vecs = min(wi->max_pages, wi->rest_blocks); in nilfs_segbuf_prepare_write() 382 BUG_ON(wi->nr_vecs <= 0); in nilfs_segbuf_submit_bh() 385 wi->bio = bio_alloc(wi->nilfs->ns_bdev, wi->nr_vecs, in nilfs_segbuf_submit_bh()
|
| /linux-6.15/tools/testing/selftests/ublk/ |
| H A D | stripe.c | 47 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-6.15/drivers/target/ |
| H A D | target_core_pscsi.c | 832 int nr_vecs = 0, rc; in pscsi_map_sg() local 860 nr_vecs = bio_max_segs(nr_pages); in pscsi_map_sg() 861 bio = bio_kmalloc(nr_vecs, GFP_KERNEL); in pscsi_map_sg() 864 bio_init(bio, NULL, bio->bi_inline_vecs, nr_vecs, in pscsi_map_sg() 870 (rw) ? "rw" : "r", nr_vecs); in pscsi_map_sg() 879 bio_segments(bio), nr_vecs); in pscsi_map_sg()
|
| /linux-6.15/include/linux/ |
| H A D | bio.h | 356 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 D | bio-integrity.h | 71 struct bio_vec *bvecs, unsigned int nr_vecs);
|
| /linux-6.15/fs/btrfs/ |
| H A D | bio.h | 102 struct btrfs_bio *btrfs_bio_alloc(unsigned int nr_vecs, blk_opf_t opf,
|
| H A D | bio.c | 62 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-6.15/fs/iomap/ |
| H A D | direct-io.c | 65 struct iomap_dio *dio, unsigned short nr_vecs, blk_opf_t opf) in iomap_dio_alloc_bio() argument 68 return bio_alloc_bioset(iter->iomap.bdev, nr_vecs, opf, in iomap_dio_alloc_bio() 70 return bio_alloc(iter->iomap.bdev, nr_vecs, opf, GFP_KERNEL); in iomap_dio_alloc_bio()
|
| H A D | buffered-io.c | 409 unsigned int nr_vecs = DIV_ROUND_UP(length, PAGE_SIZE); in iomap_readpage_iter() local 416 ctx->bio = bio_alloc(iomap->bdev, bio_max_segs(nr_vecs), in iomap_readpage_iter()
|
| /linux-6.15/fs/bcachefs/ |
| H A D | data_update.c | 670 unsigned nr_vecs = DIV_ROUND_UP(buf_bytes, PAGE_SIZE); in bch2_data_update_bios_init() local 672 m->bvecs = kmalloc_array(nr_vecs, sizeof*(m->bvecs), GFP_KERNEL); in bch2_data_update_bios_init() 676 bio_init(&m->rbio.bio, NULL, m->bvecs, nr_vecs, REQ_OP_READ); in bch2_data_update_bios_init() 677 bio_init(&m->op.wbio.bio, NULL, m->bvecs, nr_vecs, 0); in bch2_data_update_bios_init()
|
| /linux-6.15/fs/ |
| H A D | direct-io.c | 396 sector_t first_sector, int nr_vecs) in dio_bio_alloc() argument 404 bio = bio_alloc(bdev, nr_vecs, dio->opf, GFP_KERNEL); in dio_bio_alloc()
|
| /linux-6.15/fs/xfs/scrub/ |
| H A D | trace.h | 235 __field(unsigned short, nr_vecs) 245 __entry->nr_vecs = vhead->svh_nr; 255 __entry->nr_vecs)
|