Lines Matching refs:cpl

181 void nvme_completion_print(const struct nvme_completion *cpl)  in nvme_completion_print()  argument
185 sct = NVME_STATUS_GET_SCT(cpl->status); in nvme_completion_print()
186 sc = NVME_STATUS_GET_SC(cpl->status); in nvme_completion_print()
187 crd = NVME_STATUS_GET_CRD(cpl->status); in nvme_completion_print()
188 m = NVME_STATUS_GET_M(cpl->status); in nvme_completion_print()
189 dnr = NVME_STATUS_GET_DNR(cpl->status); in nvme_completion_print()
190 p = NVME_STATUS_GET_P(cpl->status); in nvme_completion_print()
195 cpl->sqid, cpl->cid, cpl->cdw0); in nvme_completion_print()
317 static bool nvme_completion_is_retry(const struct nvme_completion *cpl) in nvme_completion_is_retry() argument
321 sct = NVME_STATUS_GET_SCT(cpl->status); in nvme_completion_is_retry()
322 sc = NVME_STATUS_GET_SC(cpl->status); in nvme_completion_is_retry()
323 dnr = NVME_STATUS_GET_DNR(cpl->status); in nvme_completion_is_retry()
379 struct nvme_completion *cpl) in nvme_cmd_request_complete() argument
383 error = nvme_completion_is_error(cpl); in nvme_cmd_request_complete()
384 retriable = nvme_completion_is_retry(cpl); in nvme_cmd_request_complete()
399 if (cpl->cid != request->cmd.cdw0.cid) { in nvme_cmd_request_complete()
415 request->cb_fn(request->cb_arg, cpl); in nvme_cmd_request_complete()
425 struct nvme_completion cpl; in nvme_cmd_qpair_process_completion() local
437 status = sys_le16_to_cpu(qpair->cpl[qpair->cq_head].status); in nvme_cmd_qpair_process_completion()
442 cpl = qpair->cpl[qpair->cq_head]; in nvme_cmd_qpair_process_completion()
443 nvme_completion_swapbytes(&cpl); in nvme_cmd_qpair_process_completion()
445 if (NVME_STATUS_GET_P(status) != NVME_STATUS_GET_P(cpl.status)) { in nvme_cmd_qpair_process_completion()
449 if (cpl.cid < NVME_REQUEST_AMOUNT) { in nvme_cmd_qpair_process_completion()
450 request = &request_pool[cpl.cid]; in nvme_cmd_qpair_process_completion()
457 nvme_cmd_request_complete(request, &cpl); in nvme_cmd_qpair_process_completion()
458 qpair->sq_head = cpl.sqhd; in nvme_cmd_qpair_process_completion()
460 LOG_ERR("cpl (cid = %u) does not map to cmd", cpl.cid); in nvme_cmd_qpair_process_completion()
502 qpair->cpl_bus_addr = (uintptr_t)qpair->cpl; in nvme_cmd_qpair_setup()
539 memset(qpair->cpl, 0, in nvme_cmd_qpair_reset()
674 nvme_completion_poll_cb(void *arg, const struct nvme_completion *cpl) in nvme_completion_poll_cb() argument
678 if (cpl != NULL) { in nvme_completion_poll_cb()
679 memcpy(&status->cpl, cpl, sizeof(*cpl)); in nvme_completion_poll_cb()