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