Lines Matching defs:nc
19 nvmf_init_cqe(void *cqe, const struct nvmf_capsule *nc, uint16_t status)
22 const struct nvme_command *cmd = nvmf_capsule_sqe(nc);
30 nvmf_simple_response(const struct nvmf_capsule *nc, uint8_t sc_type,
38 nvmf_init_cqe(&cpl, nc, status);
39 return (nvmf_allocate_response(nc->nc_qpair, &cpl));
46 struct nvmf_capsule *nc;
51 error = nvmf_receive_capsule(qp, &nc);
55 sc_status = nvmf_validate_command_capsule(nc);
57 nvmf_send_generic_error(nc, sc_status);
58 nvmf_free_capsule(nc);
62 *ncp = nc;
67 nvmf_controller_transmit_response(struct nvmf_capsule *nc)
69 struct nvmf_qpair *qp = nc->nc_qpair;
74 nc->nc_cqe.sqhd = htole16(qp->nq_sqhd);
76 nc->nc_cqe.sqhd = 0;
78 return (nvmf_transmit_capsule(nc));
109 nvmf_send_generic_error(const struct nvmf_capsule *nc, uint8_t sc_status)
111 return (nvmf_send_error(nc, NVME_SCT_GENERIC, sc_status));
115 nvmf_send_success(const struct nvmf_capsule *nc)
117 return (nvmf_send_generic_error(nc, NVME_SC_SUCCESS));