Home
last modified time | relevance | path

Searched refs:BIO_MAX_VECS (Results 1 – 25 of 26) sorted by relevance

12

/linux/include/linux/
H A Dbio.h13 #define BIO_MAX_VECS 256U macro
20 return min(nr_segs, BIO_MAX_VECS); in bio_max_segs()
466 return iov_iter_npages(iter, BIO_MAX_VECS); in bio_iov_bounce_nr_vecs()
467 return iov_iter_npages(iter, BIO_MAX_VECS - 1) + 1; in bio_iov_bounce_nr_vecs()
/linux/drivers/md/dm-vdo/
H A Dvio.h21 MAX_BLOCKS_PER_VIO = (BIO_MAX_VECS << PAGE_SHIFT) / VDO_BLOCK_SIZE,
/linux/block/
H A Dbio-integrity.c383 nr_vecs = iov_iter_npages(iter, BIO_MAX_VECS + 1); in bio_integrity_map_user()
384 if (nr_vecs > BIO_MAX_VECS) in bio_integrity_map_user()
H A Dfops.c256 nr_pages = bio_iov_vecs_to_alloc(iter, BIO_MAX_VECS); in __blkdev_direct_IO()
425 nr_pages = bio_iov_vecs_to_alloc(iter, BIO_MAX_VECS + 1); in blkdev_direct_IO()
426 if (likely(nr_pages <= BIO_MAX_VECS && in blkdev_direct_IO()
H A Dbio.c48 { .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()
605 nr_vecs = BIO_MAX_VECS; in bio_alloc_bioset()
H A Dblk-map.c263 unsigned int nr_vecs = iov_iter_npages(iter, BIO_MAX_VECS); in bio_map_user_iov()
/linux/fs/iomap/
H A Ddirect-io.c314 if (WARN_ON_ONCE(nr_vecs > BIO_MAX_VECS)) in iomap_dio_zero()
346 nr_vecs = bio_iov_vecs_to_alloc(dio->submit.iter, BIO_MAX_VECS); in iomap_dio_bio_iter_one()
1024 bio_iov_vecs_to_alloc(iter, BIO_MAX_VECS), in __iomap_dio_read_simple()
H A Dioend.c164 bio = bio_alloc_bioset(wpc->iomap.bdev, BIO_MAX_VECS, in iomap_alloc_ioend()
/linux/drivers/nvme/target/
H A Dpassthru.c121 max_hw_sectors = min_not_zero(BIO_MAX_VECS << PAGE_SECTORS_SHIFT, in nvmet_passthru_override_id_ctrl()
277 if (req->sg_cnt > BIO_MAX_VECS) in nvmet_passthru_map_sg()
/linux/fs/f2fs/
H A Dsegment.h990 return 8 * BIO_MAX_VECS; in nr_pages_to_skip()
1007 desired = BIO_MAX_VECS; in nr_pages_to_write()
H A Ddata.c993 bio = __bio_alloc(fio, BIO_MAX_VECS); in f2fs_merge_page_bio()
1093 io->bio = __bio_alloc(fio, BIO_MAX_VECS); in f2fs_submit_page_write()
H A Df2fs.h738 #define RECOVERY_MAX_RA_BLOCKS BIO_MAX_VECS
/linux/drivers/md/
H A Ddm-crypt.c248 #define DM_CRYPT_MIN_PAGES_PER_CLIENT (BIO_MAX_VECS * 16)
276 val = min(val, BIO_MAX_VECS << PAGE_SHIFT); in get_max_request_sectors()
3273 ret = mempool_init(&cc->page_pool, BIO_MAX_VECS, crypt_page_alloc, crypt_page_free, cc); in crypt_ctr()
3693 BIO_MAX_VECS << PAGE_SECTORS_SHIFT); in crypt_io_hints()
3696 BIO_MAX_VECS << PAGE_SHIFT); in crypt_io_hints()
3698 BIO_MAX_VECS << PAGE_SHIFT); in crypt_io_hints()
H A Draid5-ppl.c495 bio = bio_alloc_bioset(prev->bi_bdev, BIO_MAX_VECS, in ppl_submit_iounit()
H A Draid1.c1535 if (atomic && max_sectors > BIO_MAX_VECS * (PAGE_SIZE >> 9)) in raid1_write_request()
1580 BIO_MAX_VECS * (PAGE_SIZE >> 9)); in raid1_write_request()
/linux/fs/
H A Dmpage.c597 bio = bio_alloc(bdev, BIO_MAX_VECS, in mpage_write_folio()
/linux/fs/btrfs/
H A Ddirect-io.c404 len = min_t(u64, len, fs_info->sectorsize * BIO_MAX_VECS); in btrfs_dio_iomap_begin()
H A Drelocation.c4116 bbio = btrfs_bio_alloc(BIO_MAX_VECS, op, BTRFS_I(fs_info->btree_inode), in copy_remapped_data_io()
4129 bbio = btrfs_bio_alloc(BIO_MAX_VECS, op, in copy_remapped_data_io()
4175 to_copy = min_t(u64, to_copy, BIO_MAX_VECS << PAGE_SHIFT); in copy_remapped_data()
H A Dextent_io.c755 bbio = btrfs_bio_alloc(BIO_MAX_VECS, bio_ctrl->opf, inode, in alloc_new_bio()
H A Dinode.c9646 bbio = btrfs_bio_alloc(BIO_MAX_VECS, REQ_OP_READ, inode, 0, in btrfs_encoded_read_regular_fill_pages()
9657 bbio = btrfs_bio_alloc(BIO_MAX_VECS, REQ_OP_READ, inode, 0, in btrfs_encoded_read_regular_fill_pages()
/linux/fs/xfs/
H A Dxfs_zone_gc.c59 static_assert(XFS_GC_NR_BUFS < BIO_MAX_VECS);
/linux/drivers/md/bcache/
H A Drequest.c909 size_limit = min_t(unsigned int, BIO_MAX_VECS * PAGE_SECTORS, in cached_dev_cache_miss()
/linux/fs/erofs/
H A Dzdata.c1726 bio = bio_alloc(mdev.m_bdev, BIO_MAX_VECS, in z_erofs_submit_queue()
/linux/fs/ntfs3/
H A Dfsntfs.c1641 new = bio_alloc(bdev, BIO_MAX_VECS, REQ_OP_WRITE, GFP_NOFS); in ntfs_bio_fill_1()
/linux/drivers/vhost/
H A Dscsi.c867 cmd->tvc_sgl_count > BIO_MAX_VECS) { in vhost_scsi_map_to_sgl()

12