Home
last modified time | relevance | path

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

/linux/block/
H A Dbio-integrity.c133 struct bio_vec *bvecs, unsigned int nr_vecs) in bio_integrity_init()
136 bip->bip_max_vcnt = nr_vecs; in bio_integrity_init()
137 if (nr_vecs) in bio_integrity_init()
148 * @nr_vecs: Number of integrity metadata scatter-gather elements
151 * metadata. nr_vecs specifies the maximum number of pages containing
156 unsigned int nr_vecs) in bio_integrity_alloc()
163 bia = kmalloc_flex(*bia, bvecs, nr_vecs, gfp_mask); in bio_integrity_alloc()
166 bio_integrity_init(bio, &bia->bip, bia->bvecs, nr_vecs); in bio_integrity_alloc()
171 static void bio_integrity_unpin_bvec(struct bio_vec *bv, int nr_vecs)
175 for (i = 0; i < nr_vecs; in bio_integrity_unpin_bvec()
134 bio_integrity_init(struct bio * bio,struct bio_integrity_payload * bip,struct bio_vec * bvecs,unsigned int nr_vecs) bio_integrity_init() argument
157 bio_integrity_alloc(struct bio * bio,gfp_t gfp_mask,unsigned int nr_vecs) bio_integrity_alloc() argument
172 bio_integrity_unpin_bvec(struct bio_vec * bv,int nr_vecs) bio_integrity_unpin_bvec() argument
263 bio_integrity_copy_user(struct bio * bio,struct bio_vec * bvec,int nr_vecs,unsigned int len) bio_integrity_copy_user() argument
320 bio_integrity_init_user(struct bio * bio,struct bio_vec * bvec,int nr_vecs,unsigned int len) bio_integrity_init_user() argument
335 bvec_from_pages(struct bio_vec * bvec,struct page ** pages,int nr_vecs,ssize_t bytes,ssize_t offset,bool * is_p2p) bvec_from_pages() argument
377 int ret, nr_vecs; bio_integrity_map_user() local
[all...]
H A Dbio.c41 int nr_vecs; member
45 { .nr_vecs = 16, .name = "biovec-16" },
46 { .nr_vecs = 64, .name = "biovec-64" },
47 { .nr_vecs = 128, .name = "biovec-128" },
48 { .nr_vecs = BIO_MAX_VECS, .name = "biovec-max" },
51 static struct biovec_slab *biovec_slab(unsigned short nr_vecs) in biovec_slab() argument
53 switch (nr_vecs) { in biovec_slab()
504 * @nr_vecs: number of bvecs to pre-allocate
535 struct bio *bio_alloc_bioset(struct block_device *bdev, unsigned short nr_vecs, in bio_alloc_bioset() argument
543 /* should not use nobvec bioset for nr_vecs > in bio_alloc_bioset()
627 bio_kmalloc(unsigned short nr_vecs,gfp_t gfp_mask) bio_kmalloc() argument
[all...]
H A Dblk-map.c46 unsigned int nr_vecs, gfp_t gfp_mask) in blk_rq_map_bio_alloc() argument
51 bio = bio_alloc_bioset(bdev, nr_vecs, rq->cmd_flags, gfp_mask, in blk_rq_map_bio_alloc()
263 unsigned int nr_vecs = iov_iter_npages(iter, BIO_MAX_VECS); in bio_map_user_iov() local
270 bio = blk_rq_map_bio_alloc(rq, nr_vecs, gfp_mask); in bio_map_user_iov()
314 unsigned int nr_vecs = bio_add_max_vecs(data, len); in bio_map_kern() local
317 bio = blk_rq_map_bio_alloc(rq, nr_vecs, gfp_mask); in bio_map_kern()
/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 = kzalloc_objs(*qvec, nr_vecs); 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/fs/iomap/
H A Ddirect-io.c55 struct iomap_dio *dio, unsigned short nr_vecs, blk_opf_t opf) in iomap_dio_alloc_bio() argument
58 return bio_alloc_bioset(iter->iomap.bdev, nr_vecs, opf, in iomap_dio_alloc_bio()
60 return bio_alloc(iter->iomap.bdev, nr_vecs, opf, GFP_KERNEL); in iomap_dio_alloc_bio()
304 int nr_vecs = max(1, i_blocksize(inode) / folio_size(zero_folio)); in iomap_dio_zero() local
313 if (WARN_ON_ONCE(nr_vecs > BIO_MAX_VECS)) in iomap_dio_zero()
316 bio = iomap_dio_alloc_bio(iter, dio, nr_vecs, in iomap_dio_zero()
338 unsigned int nr_vecs; in iomap_dio_bio_iter_one() local
343 nr_vecs = bio_iov_bounce_nr_vecs(dio->submit.iter, op); in iomap_dio_bio_iter_one()
345 nr_vecs = bio_iov_vecs_to_alloc(dio->submit.iter, BIO_MAX_VECS); in iomap_dio_bio_iter_one()
347 bio = iomap_dio_alloc_bio(iter, dio, nr_vecs, o in iomap_dio_bio_iter_one()
[all...]
H A Dbio.c102 unsigned int nr_vecs = DIV_ROUND_UP(iomap_length(iter), PAGE_SIZE); in iomap_read_alloc_bio() local
122 bio = bio_alloc_bioset(iomap->bdev, bio_max_segs(nr_vecs), REQ_OP_READ, in iomap_read_alloc_bio()
/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/drivers/target/
H A Dtarget_core_pscsi.c833 int nr_vecs = 0, rc; in pscsi_map_sg() local
861 nr_vecs = bio_max_segs(nr_pages); in pscsi_map_sg()
862 bio = bio_kmalloc(nr_vecs, GFP_KERNEL); in pscsi_map_sg()
865 bio_init_inline(bio, NULL, nr_vecs, in pscsi_map_sg()
871 (rw) ? "rw" : "r", nr_vecs); in pscsi_map_sg()
880 bio_segments(bio), nr_vecs); in pscsi_map_sg()
/linux/include/linux/
H A Dbio.h351 struct bio *bio_alloc_bioset(struct block_device *bdev, unsigned short nr_vecs,
353 struct bio *bio_kmalloc(unsigned short nr_vecs, gfp_t gfp_mask);
364 unsigned short nr_vecs, blk_opf_t opf, gfp_t gfp_mask) in bio_alloc()
366 return bio_alloc_bioset(bdev, nr_vecs, opf, gfp_mask, &fs_bio_set); in bio_alloc()
365 bio_alloc(struct block_device * bdev,unsigned short nr_vecs,blk_opf_t opf,gfp_t gfp_mask) bio_alloc() argument
/linux/fs/xfs/
H A Dxfs_buf.c1260 unsigned int nr_vecs = bio_add_max_vecs(bp->b_addr, len); in xfs_buf_submit_bio() local
1265 bio = bio_alloc(bp->b_target->bt_bdev, nr_vecs, xfs_buf_bio_op(bp), in xfs_buf_submit_bio()
/linux/fs/btrfs/
H A Dscrub.c941 unsigned int nr_vecs, blk_opf_t opf, in alloc_scrub_bbio()
947 bbio = btrfs_bio_alloc(nr_vecs, opf, BTRFS_I(fs_info->btree_inode), in alloc_scrub_bbio()
940 alloc_scrub_bbio(struct btrfs_fs_info * fs_info,unsigned int nr_vecs,blk_opf_t opf,u64 logical,btrfs_bio_end_io_t end_io,void * private) alloc_scrub_bbio() argument
/linux/fs/xfs/scrub/
H A Dtrace.h235 __field(unsigned short, nr_vecs)
245 __entry->nr_vecs = vhead->svh_nr;
247 TP_printk("dev %d:%d ino 0x%llx agno 0x%x inum 0x%llx gen 0x%x flags 0x%x rest_us %u nr_vecs %u",
255 __entry->nr_vecs)