| /linux/include/linux/ |
| H A D | bio.h | 13 #define BIO_MAX_VECS 256U macro 20 return min(nr_segs, BIO_MAX_VECS); in bio_max_segs() 418 return iov_iter_npages(iter, BIO_MAX_VECS); in bio_iov_bounce_nr_vecs() 419 return iov_iter_npages(iter, BIO_MAX_VECS - 1) + 1; in bio_iov_bounce_nr_vecs()
|
| /linux/drivers/md/dm-vdo/ |
| H A D | vio.h | 21 MAX_BLOCKS_PER_VIO = (BIO_MAX_VECS << PAGE_SHIFT) / VDO_BLOCK_SIZE,
|
| /linux/block/ |
| H A D | bio.c | 48 { .nr_vecs = BIO_MAX_VECS, .name = "biovec-max" }, 61 case 129 ... BIO_MAX_VECS: in biovec_slab() 201 WARN_ON_ONCE(bio->bi_max_vecs > BIO_MAX_VECS); in bio_free() 204 if (bio->bi_max_vecs == BIO_MAX_VECS) in bio_free() 597 nr_vecs = BIO_MAX_VECS; in bio_alloc_bioset()
|
| H A D | blk-crypto-fallback.c | 25 static unsigned int num_prealloc_bounce_pg = BIO_MAX_VECS; 273 nr_enc_pages = min(bio_segments(src_bio), BIO_MAX_VECS); in __blk_crypto_fallback_encrypt_bio()
|
| H A D | bio-integrity.c | 384 nr_vecs = iov_iter_npages(iter, BIO_MAX_VECS + 1); in bio_integrity_map_user() 385 if (nr_vecs > BIO_MAX_VECS) in bio_integrity_map_user()
|
| H A D | fops.c | 255 nr_pages = bio_iov_vecs_to_alloc(iter, BIO_MAX_VECS); in __blkdev_direct_IO() 426 nr_pages = bio_iov_vecs_to_alloc(iter, BIO_MAX_VECS + 1); in blkdev_direct_IO() 427 if (likely(nr_pages <= BIO_MAX_VECS && in blkdev_direct_IO()
|
| H A D | blk-map.c | 263 unsigned int nr_vecs = iov_iter_npages(iter, BIO_MAX_VECS); in bio_map_user_iov()
|
| /linux/drivers/nvme/target/ |
| H A D | passthru.c | 112 max_hw_sectors = min_not_zero(BIO_MAX_VECS << PAGE_SECTORS_SHIFT, in nvmet_passthru_override_id_ctrl() 268 if (req->sg_cnt > BIO_MAX_VECS) in nvmet_passthru_map_sg()
|
| /linux/fs/erofs/ |
| H A D | fscache.c | 166 struct bio_vec bvecs[BIO_MAX_VECS]; 185 bio_init(&io->bio, NULL, io->bvecs, BIO_MAX_VECS, REQ_OP_READ); in erofs_fscache_bio_alloc()
|
| H A D | zdata.c | 1749 bio = bio_alloc(mdev.m_bdev, BIO_MAX_VECS, in z_erofs_submit_queue()
|
| /linux/fs/iomap/ |
| H A D | direct-io.c | 313 if (WARN_ON_ONCE(nr_vecs > BIO_MAX_VECS)) in iomap_dio_zero() 345 nr_vecs = bio_iov_vecs_to_alloc(dio->submit.iter, BIO_MAX_VECS); in iomap_dio_bio_iter_one()
|
| H A D | ioend.c | 162 bio = bio_alloc_bioset(wpc->iomap.bdev, BIO_MAX_VECS, in iomap_alloc_ioend()
|
| /linux/fs/ |
| H A D | mpage.c | 597 bio = bio_alloc(bdev, BIO_MAX_VECS, in mpage_write_folio()
|
| /linux/fs/ext4/ |
| H A D | page-io.c | 428 bio = bio_alloc(bh->b_bdev, BIO_MAX_VECS, REQ_OP_WRITE, GFP_NOIO); in io_submit_init_bio()
|
| /linux/fs/xfs/ |
| H A D | xfs_zone_gc.c | 59 static_assert(XFS_GC_NR_BUFS < BIO_MAX_VECS);
|
| /linux/drivers/md/ |
| H A D | raid5-ppl.c | 495 bio = bio_alloc_bioset(prev->bi_bdev, BIO_MAX_VECS, in ppl_submit_iounit()
|
| H A D | raid1.c | 1618 BIO_MAX_VECS * (PAGE_SIZE >> 9)); in raid1_write_request()
|
| /linux/drivers/md/bcache/ |
| H A D | request.c | 909 size_limit = min_t(unsigned int, BIO_MAX_VECS * PAGE_SECTORS, in cached_dev_cache_miss()
|
| /linux/drivers/block/drbd/ |
| H A D | drbd_int.h | 1262 #if DRBD_MAX_BIO_SIZE > (BIO_MAX_VECS << PAGE_SHIFT)
|
| /linux/fs/btrfs/ |
| H A D | relocation.c | 3993 bbio = btrfs_bio_alloc(BIO_MAX_VECS, op, BTRFS_I(fs_info->btree_inode), in copy_remapped_data_io() 4006 bbio = btrfs_bio_alloc(BIO_MAX_VECS, op, in copy_remapped_data_io() 4052 to_copy = min_t(u64, to_copy, BIO_MAX_VECS << PAGE_SHIFT); in copy_remapped_data()
|
| H A D | extent_io.c | 739 bbio = btrfs_bio_alloc(BIO_MAX_VECS, bio_ctrl->opf, inode, in alloc_new_bio()
|
| H A D | inode.c | 9630 bbio = btrfs_bio_alloc(BIO_MAX_VECS, REQ_OP_READ, inode, 0, in btrfs_encoded_read_regular_fill_pages() 9641 bbio = btrfs_bio_alloc(BIO_MAX_VECS, REQ_OP_READ, inode, 0, in btrfs_encoded_read_regular_fill_pages()
|