Lines Matching refs:nc
61 handle_property_get(const struct controller *c, const struct nvmf_capsule *nc,
66 nvmf_init_cqe(&rsp, nc, 0);
93 nvmf_send_response(nc, &rsp);
96 nvmf_send_generic_error(nc, NVME_SC_INVALID_FIELD);
100 handle_property_set(struct controller *c, const struct nvmf_capsule *nc,
114 nvmf_send_success(nc);
117 nvmf_send_generic_error(nc, NVME_SC_INVALID_FIELD);
122 const struct nvmf_capsule *nc, const struct nvmf_fabric_cmd *fc)
126 handle_property_get(c, nc,
130 handle_property_set(c, nc,
135 nvmf_send_generic_error(nc, NVME_SC_COMMAND_SEQUENCE_ERROR);
139 nvmf_send_error(nc, NVME_SCT_COMMAND_SPECIFIC,
144 nvmf_send_generic_error(nc, NVME_SC_INVALID_OPCODE);
151 const struct nvmf_capsule *nc, const struct nvme_command *cmd)
164 nvmf_send_controller_data(nc, &c->cdata, sizeof(c->cdata));
167 nvmf_send_generic_error(nc, NVME_SC_INVALID_FIELD);
176 struct nvmf_capsule *nc;
180 error = nvmf_controller_receive_capsule(qp, &nc);
187 cmd = nvmf_capsule_sqe(nc);
197 nvmf_send_generic_error(nc,
199 nvmf_free_capsule(nc);
203 if (cb(nc, cmd, cb_arg)) {
204 nvmf_free_capsule(nc);
210 handle_fabrics_command(c, nc,
214 handle_identify_command(c, nc, cmd);
218 nvmf_send_generic_error(nc, NVME_SC_INVALID_OPCODE);
221 nvmf_free_capsule(nc);