nvmet.h (6b7781b42dc9bc9bcd1523b6c24b876cdda0bef3) nvmet.h (549f01ae7b913355bea76100d3f17694bc9ec769)
1/*
2 * Copyright (c) 2015-2016 HGST, a Western Digital Company.
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License,
6 * version 2, as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope it will be useful, but WITHOUT

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

256u16 nvmet_parse_connect_cmd(struct nvmet_req *req);
257u16 nvmet_parse_io_cmd(struct nvmet_req *req);
258u16 nvmet_parse_admin_cmd(struct nvmet_req *req);
259u16 nvmet_parse_discovery_cmd(struct nvmet_req *req);
260u16 nvmet_parse_fabrics_cmd(struct nvmet_req *req);
261
262bool nvmet_req_init(struct nvmet_req *req, struct nvmet_cq *cq,
263 struct nvmet_sq *sq, struct nvmet_fabrics_ops *ops);
1/*
2 * Copyright (c) 2015-2016 HGST, a Western Digital Company.
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License,
6 * version 2, as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope it will be useful, but WITHOUT

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

256u16 nvmet_parse_connect_cmd(struct nvmet_req *req);
257u16 nvmet_parse_io_cmd(struct nvmet_req *req);
258u16 nvmet_parse_admin_cmd(struct nvmet_req *req);
259u16 nvmet_parse_discovery_cmd(struct nvmet_req *req);
260u16 nvmet_parse_fabrics_cmd(struct nvmet_req *req);
261
262bool nvmet_req_init(struct nvmet_req *req, struct nvmet_cq *cq,
263 struct nvmet_sq *sq, struct nvmet_fabrics_ops *ops);
264void nvmet_req_uninit(struct nvmet_req *req);
264void nvmet_req_complete(struct nvmet_req *req, u16 status);
265
266void nvmet_cq_setup(struct nvmet_ctrl *ctrl, struct nvmet_cq *cq, u16 qid,
267 u16 size);
268void nvmet_sq_setup(struct nvmet_ctrl *ctrl, struct nvmet_sq *sq, u16 qid,
269 u16 size);
270void nvmet_sq_destroy(struct nvmet_sq *sq);
271int nvmet_sq_init(struct nvmet_sq *sq);

--- 59 unchanged lines hidden ---
265void nvmet_req_complete(struct nvmet_req *req, u16 status);
266
267void nvmet_cq_setup(struct nvmet_ctrl *ctrl, struct nvmet_cq *cq, u16 qid,
268 u16 size);
269void nvmet_sq_setup(struct nvmet_ctrl *ctrl, struct nvmet_sq *sq, u16 qid,
270 u16 size);
271void nvmet_sq_destroy(struct nvmet_sq *sq);
272int nvmet_sq_init(struct nvmet_sq *sq);

--- 59 unchanged lines hidden ---