Lines Matching refs:cpl
188 struct nvme_completion cpl; in _nvmft_send_response() local
193 memcpy(&cpl, cqe, sizeof(cpl)); in _nvmft_send_response()
205 cpl.sqhd = htole16(qp->sqhd); in _nvmft_send_response()
207 cpl.sqhd = 0; in _nvmft_send_response()
210 rc = nvmf_allocate_response(nq, &cpl, M_WAITOK); in _nvmft_send_response()
234 const struct nvme_completion *cpl = cqe; in nvmft_send_response() local
237 KASSERT(BIT_ISSET(NUM_CIDS, cpl->cid, qp->cids), in nvmft_send_response()
238 ("%s: CID %u not busy", __func__, cpl->cid)); in nvmft_send_response()
240 BIT_CLR_ATOMIC(NUM_CIDS, cpl->cid, qp->cids); in nvmft_send_response()
247 struct nvme_completion *cpl = cqe; in nvmft_init_cqe() local
250 memset(cpl, 0, sizeof(*cpl)); in nvmft_init_cqe()
251 cpl->cid = cmd->cid; in nvmft_init_cqe()
252 cpl->status = htole16(status); in nvmft_init_cqe()
259 struct nvme_completion cpl; in nvmft_send_error() local
264 nvmft_init_cqe(&cpl, nc, status); in nvmft_send_error()
265 return (nvmft_send_response(qp, &cpl)); in nvmft_send_error()
283 struct nvme_completion cpl; in _nvmft_send_generic_error() local
288 nvmft_init_cqe(&cpl, nc, status); in _nvmft_send_generic_error()
289 return (_nvmft_send_response(qp, &cpl)); in _nvmft_send_generic_error()