Lines Matching refs:nc

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