Lines Matching refs:rsp_sts
203 u64 rsp_sts; in do_switch() local
219 rsp_sts = readq(host->base + MIO_EMM_RSP_STS(host)); in do_switch()
220 if (!(rsp_sts & MIO_EMM_RSP_STS_SWITCH_VAL)) in do_switch()
341 u64 rsp_sts) in set_cmd_response() argument
345 if (!(rsp_sts & MIO_EMM_RSP_STS_RSP_VAL)) in set_cmd_response()
350 switch (FIELD_GET(MIO_EMM_RSP_STS_RSP_TYPE, rsp_sts)) { in set_cmd_response()
409 static int check_status(u64 rsp_sts) in check_status() argument
411 if (rsp_sts & MIO_EMM_RSP_STS_RSP_BAD_STS || in check_status()
412 rsp_sts & MIO_EMM_RSP_STS_RSP_CRC_ERR || in check_status()
413 rsp_sts & MIO_EMM_RSP_STS_BLK_CRC_ERR) in check_status()
415 if (rsp_sts & MIO_EMM_RSP_STS_RSP_TIMEOUT || in check_status()
416 rsp_sts & MIO_EMM_RSP_STS_BLK_TIMEOUT) in check_status()
418 if (rsp_sts & MIO_EMM_RSP_STS_DBUF_ERR) in check_status()
424 static void cleanup_dma(struct cvm_mmc_host *host, u64 rsp_sts) in cleanup_dma() argument
431 set_bus_id(&emm_dma, get_bus_id(rsp_sts)); in cleanup_dma()
440 u64 emm_int, rsp_sts; in cvm_mmc_interrupt() local
459 rsp_sts = readq(host->base + MIO_EMM_RSP_STS(host)); in cvm_mmc_interrupt()
465 if ((rsp_sts & MIO_EMM_RSP_STS_DMA_VAL) && host->dma_active) in cvm_mmc_interrupt()
470 unsigned int type = (rsp_sts >> 7) & 3; in cvm_mmc_interrupt()
473 do_read(host, req, rsp_sts & MIO_EMM_RSP_STS_DBUF); in cvm_mmc_interrupt()
486 req->cmd->error = check_status(rsp_sts); in cvm_mmc_interrupt()
492 set_cmd_response(host, req, rsp_sts); in cvm_mmc_interrupt()
494 (rsp_sts & MIO_EMM_RSP_STS_DMA_PEND)) in cvm_mmc_interrupt()
495 cleanup_dma(host, rsp_sts); in cvm_mmc_interrupt()
758 u64 emm_cmd, rsp_sts; in cvm_mmc_request() local
810 rsp_sts = readq(host->base + MIO_EMM_RSP_STS(host)); in cvm_mmc_request()
811 if (rsp_sts & MIO_EMM_RSP_STS_DMA_VAL || in cvm_mmc_request()
812 rsp_sts & MIO_EMM_RSP_STS_CMD_VAL || in cvm_mmc_request()
813 rsp_sts & MIO_EMM_RSP_STS_SWITCH_VAL || in cvm_mmc_request()
814 rsp_sts & MIO_EMM_RSP_STS_DMA_PEND) { in cvm_mmc_request()
820 dev_err(host->dev, "Bad status: %llx before command write\n", rsp_sts); in cvm_mmc_request()