Lines Matching refs:cpl

178 void nvme_completion_print(const struct nvme_completion *cpl)  in nvme_completion_print()  argument
182 sct = NVME_STATUS_GET_SCT(cpl->status); in nvme_completion_print()
183 sc = NVME_STATUS_GET_SC(cpl->status); in nvme_completion_print()
184 crd = NVME_STATUS_GET_CRD(cpl->status); in nvme_completion_print()
185 m = NVME_STATUS_GET_M(cpl->status); in nvme_completion_print()
186 dnr = NVME_STATUS_GET_DNR(cpl->status); in nvme_completion_print()
187 p = NVME_STATUS_GET_P(cpl->status); in nvme_completion_print()
192 cpl->sqid, cpl->cid, cpl->cdw0); in nvme_completion_print()
314 static bool nvme_completion_is_retry(const struct nvme_completion *cpl) in nvme_completion_is_retry() argument
318 sct = NVME_STATUS_GET_SCT(cpl->status); in nvme_completion_is_retry()
319 sc = NVME_STATUS_GET_SC(cpl->status); in nvme_completion_is_retry()
320 dnr = NVME_STATUS_GET_DNR(cpl->status); in nvme_completion_is_retry()
376 struct nvme_completion *cpl) in nvme_cmd_request_complete() argument
380 error = nvme_completion_is_error(cpl); in nvme_cmd_request_complete()
381 retriable = nvme_completion_is_retry(cpl); in nvme_cmd_request_complete()
396 if (cpl->cid != request->cmd.cdw0.cid) { in nvme_cmd_request_complete()
412 request->cb_fn(request->cb_arg, cpl); in nvme_cmd_request_complete()
422 struct nvme_completion cpl; in nvme_cmd_qpair_process_completion() local
434 status = sys_le16_to_cpu(qpair->cpl[qpair->cq_head].status); in nvme_cmd_qpair_process_completion()
439 cpl = qpair->cpl[qpair->cq_head]; in nvme_cmd_qpair_process_completion()
440 nvme_completion_swapbytes(&cpl); in nvme_cmd_qpair_process_completion()
442 if (NVME_STATUS_GET_P(status) != NVME_STATUS_GET_P(cpl.status)) { in nvme_cmd_qpair_process_completion()
446 if (cpl.cid < NVME_REQUEST_AMOUNT) { in nvme_cmd_qpair_process_completion()
447 request = &request_pool[cpl.cid]; in nvme_cmd_qpair_process_completion()
454 nvme_cmd_request_complete(request, &cpl); in nvme_cmd_qpair_process_completion()
455 qpair->sq_head = cpl.sqhd; in nvme_cmd_qpair_process_completion()
457 LOG_ERR("cpl (cid = %u) does not map to cmd", cpl.cid); in nvme_cmd_qpair_process_completion()
499 qpair->cpl_bus_addr = (uintptr_t)qpair->cpl; in nvme_cmd_qpair_setup()
536 memset(qpair->cpl, 0, in nvme_cmd_qpair_reset()
671 nvme_completion_poll_cb(void *arg, const struct nvme_completion *cpl) in nvme_completion_poll_cb() argument
675 if (cpl != NULL) { in nvme_completion_poll_cb()
676 memcpy(&status->cpl, cpl, sizeof(*cpl)); in nvme_completion_poll_cb()