linux/drivers/nvme/target/io-cmd-bdev.c

// SPDX-License-Identifier: GPL-2.0
/*
 * NVMe I/O command implementation.
 * Copyright (c) 2015-2016 HGST, a Western Digital Company.
 */
#define pr_fmt(fmt)
#include <linux/blkdev.h>
#include <linux/blk-integrity.h>
#include <linux/memremap.h>
#include <linux/module.h>
#include "nvmet.h"

void nvmet_bdev_set_limits(struct block_device *bdev, struct nvme_id_ns *id)
{}

void nvmet_bdev_ns_disable(struct nvmet_ns *ns)
{}

static void nvmet_bdev_ns_enable_integrity(struct nvmet_ns *ns)
{}

int nvmet_bdev_ns_enable(struct nvmet_ns *ns)
{}

void nvmet_bdev_ns_revalidate(struct nvmet_ns *ns)
{}

u16 blk_to_nvme_status(struct nvmet_req *req, blk_status_t blk_sts)
{}

static void nvmet_bio_done(struct bio *bio)
{}

#ifdef CONFIG_BLK_DEV_INTEGRITY
static int nvmet_bdev_alloc_bip(struct nvmet_req *req, struct bio *bio,
				struct sg_mapping_iter *miter)
{}
#else
static int nvmet_bdev_alloc_bip(struct nvmet_req *req, struct bio *bio,
				struct sg_mapping_iter *miter)
{
	return -EINVAL;
}
#endif /* CONFIG_BLK_DEV_INTEGRITY */

static void nvmet_bdev_execute_rw(struct nvmet_req *req)
{}

static void nvmet_bdev_execute_flush(struct nvmet_req *req)
{}

u16 nvmet_bdev_flush(struct nvmet_req *req)
{}

static u16 nvmet_bdev_discard_range(struct nvmet_req *req,
		struct nvme_dsm_range *range, struct bio **bio)
{}

static void nvmet_bdev_execute_discard(struct nvmet_req *req)
{}

static void nvmet_bdev_execute_dsm(struct nvmet_req *req)
{}

static void nvmet_bdev_execute_write_zeroes(struct nvmet_req *req)
{}

u16 nvmet_bdev_parse_io_cmd(struct nvmet_req *req)
{}