zns.c (a5a6ab0950b46ab1ef4a5c83c80234018b81b38a) zns.c (932635356618c19317c5b306b320368525cd1961)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * NVMe ZNS-ZBD command implementation.
4 * Copyright (C) 2021 Western Digital Corporation or its affiliates.
5 */
6#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
7#include <linux/nvme.h>
8#include <linux/blkdev.h>

--- 81 unchanged lines hidden (view full) ---

90
91 status = nvmet_copy_to_sgl(req, 0, id, sizeof(*id));
92
93 kfree(id);
94out:
95 nvmet_req_complete(req, status);
96}
97
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * NVMe ZNS-ZBD command implementation.
4 * Copyright (C) 2021 Western Digital Corporation or its affiliates.
5 */
6#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
7#include <linux/nvme.h>
8#include <linux/blkdev.h>

--- 81 unchanged lines hidden (view full) ---

90
91 status = nvmet_copy_to_sgl(req, 0, id, sizeof(*id));
92
93 kfree(id);
94out:
95 nvmet_req_complete(req, status);
96}
97
98void nvmet_execute_identify_cns_cs_ns(struct nvmet_req *req)
98void nvmet_execute_identify_ns_zns(struct nvmet_req *req)
99{
100 struct nvme_id_ns_zns *id_zns = NULL;
101 u64 zsze;
102 u16 status;
103 u32 mar, mor;
104
105 if (le32_to_cpu(req->cmd->identify.nsid) == NVME_NSID_ALL) {
106 req->error_loc = offsetof(struct nvme_identify, nsid);

--- 522 unchanged lines hidden ---
99{
100 struct nvme_id_ns_zns *id_zns = NULL;
101 u64 zsze;
102 u16 status;
103 u32 mar, mor;
104
105 if (le32_to_cpu(req->cmd->identify.nsid) == NVME_NSID_ALL) {
106 req->error_loc = offsetof(struct nvme_identify, nsid);

--- 522 unchanged lines hidden ---