Home
last modified time | relevance | path

Searched refs:bio_max_segs (Results 1 – 19 of 19) sorted by relevance

/openbmc/linux/fs/xfs/
H A Dxfs_bio_io.c9 return bio_max_segs(howmany(count, PAGE_SIZE)); in bio_max_vecs()
H A Dxfs_buf.c1487 nr_pages = bio_max_segs(total_nr_pages); in xfs_buf_ioapply_map()
/openbmc/linux/drivers/nvme/target/
H A Dio-cmd-bdev.c203 bio_max_segs(req->metadata_sg_cnt)); in nvmet_bdev_alloc_bip()
281 bio = bio_alloc(req->ns->bdev, bio_max_segs(sg_cnt), opf, in nvmet_bdev_execute_rw()
307 bio = bio_alloc(req->ns->bdev, bio_max_segs(sg_cnt), in nvmet_bdev_execute_rw()
H A Dpassthru.c274 bio = bio_alloc(NULL, bio_max_segs(req->sg_cnt), req_op(rq), in nvmet_passthru_map_sg()
/openbmc/linux/drivers/md/
H A Ddm-log-writes.c269 bio_pages = bio_max_segs(DIV_ROUND_UP(datalen, PAGE_SIZE)); in write_inline_data()
354 bio = bio_alloc(lc->logdev->bdev, bio_max_segs(block->vec_cnt), in log_one_block()
372 bio_max_segs(block->vec_cnt - i), in log_one_block()
H A Ddm-io.c349 num_bvecs = bio_max_segs(dm_sector_div_up(remaining, in do_region()
/openbmc/linux/fs/ext4/
H A Dreadpage.c361 bio = bio_alloc(bdev, bio_max_segs(nr_pages), in ext4_mpage_readpages()
/openbmc/linux/drivers/target/
H A Dtarget_core_iblock.c364 bio = bio_alloc_bioset(ib_dev->ibd_bd, bio_max_segs(sg_num), opf, in iblock_get_bio()
686 bip = bio_integrity_alloc(bio, GFP_NOIO, bio_max_segs(cmd->t_prot_nents)); in iblock_alloc_bip()
H A Dtarget_core_pscsi.c861 nr_vecs = bio_max_segs(nr_pages); in pscsi_map_sg()
/openbmc/linux/fs/
H A Dmpage.c298 args->bio = bio_alloc(bdev, bio_max_segs(args->nr_pages), opf, in do_mpage_readpage()
H A Ddirect-io.c672 nr_pages = bio_max_segs(sdio->pages_in_io); in dio_new_bio()
/openbmc/linux/include/linux/
H A Dbio.h17 static inline unsigned int bio_max_segs(unsigned int nr_segs) in bio_max_segs() function
/openbmc/linux/block/
H A Dblk-map.c154 nr_pages = bio_max_segs(DIV_ROUND_UP(offset + len, PAGE_SIZE)); in bio_copy_user_iov()
H A Dfops.c379 return __blkdev_direct_IO(iocb, iter, bio_max_segs(nr_pages)); in blkdev_direct_IO()
/openbmc/linux/fs/nfs/blocklayout/
H A Dblocklayout.c157 bio = bio_alloc(map->bdev, bio_max_segs(npg), op, GFP_NOIO); in do_add_page_to_bio()
/openbmc/linux/drivers/block/xen-blkback/
H A Dblkback.c1434 bio = bio_alloc(preq.bdev, bio_max_segs(nseg - i), in dispatch_rw_block_io()
/openbmc/linux/fs/iomap/
H A Dbuffered-io.c378 ctx->bio = bio_alloc(iomap->bdev, bio_max_segs(nr_vecs), in iomap_readpage_iter()
/openbmc/linux/fs/f2fs/
H A Dnode.c2872 nrpages = bio_max_segs(last_offset - i); in f2fs_restore_node_summary()
H A Ddata.c1051 bio = bio_alloc_bioset(bdev, bio_max_segs(nr_pages), in f2fs_grab_read_bio()