Lines Matching defs:nc
45 struct nvmf_capsule *nc, uint8_t sc_status);
68 nvmft_receive_capsule(void *arg, struct nvmf_capsule *nc)
75 cmd = nvmf_capsule_sqe(nc);
79 nvmf_free_capsule(nc);
83 sc_status = nvmf_validate_command_capsule(nc);
85 _nvmft_send_generic_error(qp, nc, sc_status);
86 nvmf_free_capsule(nc);
92 _nvmft_send_generic_error(qp, nc, NVME_SC_COMMAND_ID_CONFLICT);
93 nvmf_free_capsule(nc);
98 nvmft_handle_admin_command(ctrlr, nc);
100 nvmft_handle_io_command(qp, qp->qid, nc);
220 nvmft_command_completed(struct nvmft_qpair *qp, struct nvmf_capsule *nc)
222 const struct nvme_command *cmd = nvmf_capsule_sqe(nc);
245 nvmft_init_cqe(void *cqe, struct nvmf_capsule *nc, uint16_t status)
248 const struct nvme_command *cmd = nvmf_capsule_sqe(nc);
256 nvmft_send_error(struct nvmft_qpair *qp, struct nvmf_capsule *nc,
264 nvmft_init_cqe(&cpl, nc, status);
269 nvmft_send_generic_error(struct nvmft_qpair *qp, struct nvmf_capsule *nc,
272 return (nvmft_send_error(qp, nc, NVME_SCT_GENERIC, sc_status));
280 _nvmft_send_generic_error(struct nvmft_qpair *qp, struct nvmf_capsule *nc,
288 nvmft_init_cqe(&cpl, nc, status);
293 nvmft_send_success(struct nvmft_qpair *qp, struct nvmf_capsule *nc)
295 return (nvmft_send_generic_error(qp, nc, NVME_SC_SUCCESS));