Lines Matching refs:rsp_sts
203 u64 rsp_sts;
219 rsp_sts = readq(host->base + MIO_EMM_RSP_STS(host));
220 if (!(rsp_sts & MIO_EMM_RSP_STS_SWITCH_VAL))
341 u64 rsp_sts)
345 if (!(rsp_sts & MIO_EMM_RSP_STS_RSP_VAL))
350 switch (FIELD_GET(MIO_EMM_RSP_STS_RSP_TYPE, rsp_sts)) {
409 static int check_status(u64 rsp_sts)
411 if (rsp_sts & MIO_EMM_RSP_STS_RSP_BAD_STS ||
412 rsp_sts & MIO_EMM_RSP_STS_RSP_CRC_ERR ||
413 rsp_sts & MIO_EMM_RSP_STS_BLK_CRC_ERR)
415 if (rsp_sts & MIO_EMM_RSP_STS_RSP_TIMEOUT ||
416 rsp_sts & MIO_EMM_RSP_STS_BLK_TIMEOUT)
418 if (rsp_sts & MIO_EMM_RSP_STS_DBUF_ERR)
424 static void cleanup_dma(struct cvm_mmc_host *host, u64 rsp_sts)
431 set_bus_id(&emm_dma, get_bus_id(rsp_sts));
439 u64 emm_int, rsp_sts;
458 rsp_sts = readq(host->base + MIO_EMM_RSP_STS(host));
464 if ((rsp_sts & MIO_EMM_RSP_STS_DMA_VAL) && host->dma_active)
469 unsigned int type = (rsp_sts >> 7) & 3;
472 do_read(host, req, rsp_sts & MIO_EMM_RSP_STS_DBUF);
485 req->cmd->error = check_status(rsp_sts);
491 set_cmd_response(host, req, rsp_sts);
493 (rsp_sts & MIO_EMM_RSP_STS_DMA_PEND))
494 cleanup_dma(host, rsp_sts);
756 u64 emm_cmd, rsp_sts;
808 rsp_sts = readq(host->base + MIO_EMM_RSP_STS(host));
809 if (rsp_sts & MIO_EMM_RSP_STS_DMA_VAL ||
810 rsp_sts & MIO_EMM_RSP_STS_CMD_VAL ||
811 rsp_sts & MIO_EMM_RSP_STS_SWITCH_VAL ||
812 rsp_sts & MIO_EMM_RSP_STS_DMA_PEND) {
818 dev_err(host->dev, "Bad status: %llx before command write\n", rsp_sts);