Lines Matching refs:bdev
13 void nvmet_bdev_set_limits(struct block_device *bdev, struct nvme_id_ns *id) in nvmet_bdev_set_limits() argument
16 const __le16 lpp0b = to0based(bdev_physical_block_size(bdev) / in nvmet_bdev_set_limits()
17 bdev_logical_block_size(bdev)); in nvmet_bdev_set_limits()
43 id->npdg = to0based(bdev_discard_granularity(bdev) / in nvmet_bdev_set_limits()
44 bdev_logical_block_size(bdev)); in nvmet_bdev_set_limits()
48 id->nows = to0based(bdev_io_opt(bdev) / bdev_logical_block_size(bdev)); in nvmet_bdev_set_limits()
55 ns->bdev = NULL; in nvmet_bdev_ns_disable()
62 struct blk_integrity *bi = bdev_get_integrity(ns->bdev); in nvmet_bdev_ns_enable_integrity()
101 ns->bdev = file_bdev(ns->bdev_file); in nvmet_bdev_ns_enable()
102 ns->size = bdev_nr_bytes(ns->bdev); in nvmet_bdev_ns_enable()
103 ns->blksize_shift = blksize_bits(bdev_logical_block_size(ns->bdev)); in nvmet_bdev_ns_enable()
110 if (bdev_is_zoned(ns->bdev)) { in nvmet_bdev_ns_enable()
123 ns->size = bdev_nr_bytes(ns->bdev); in nvmet_bdev_ns_revalidate()
200 bi = bdev_get_integrity(req->ns->bdev); in nvmet_bdev_alloc_bip()
282 bio_init(bio, req->ns->bdev, req->inline_bvec, in nvmet_bdev_execute_rw()
285 bio = bio_alloc(req->ns->bdev, bio_max_segs(sg_cnt), opf, in nvmet_bdev_execute_rw()
311 bio = bio_alloc(req->ns->bdev, bio_max_segs(sg_cnt), in nvmet_bdev_execute_rw()
339 if (!bdev_write_cache(req->ns->bdev)) { in nvmet_bdev_execute_flush()
347 bio_init(bio, req->ns->bdev, req->inline_bvec, in nvmet_bdev_execute_flush()
357 if (!bdev_write_cache(req->ns->bdev)) in nvmet_bdev_flush()
360 if (blkdev_issue_flush(req->ns->bdev)) in nvmet_bdev_flush()
371 ret = __blkdev_issue_discard(ns->bdev, in nvmet_bdev_discard_range()
445 ret = __blkdev_issue_zeroout(req->ns->bdev, sector, nr_sector, in nvmet_bdev_execute_write_zeroes()