Lines Matching refs:stat

340 static void mxcmci_cmd_done(struct mxcmci_host *host, unsigned int stat);
341 static void mxcmci_data_done(struct mxcmci_host *host, unsigned int stat);
346 u32 stat;
350 stat = mxcmci_readl(host, MMC_REG_STATUS);
352 dev_dbg(mmc_dev(host->mmc), "%s: 0x%08x\n", __func__, stat);
354 mxcmci_data_done(host, stat);
429 static int mxcmci_finish_data(struct mxcmci_host *host, unsigned int stat)
440 if (stat & STATUS_ERR_MASK) {
442 stat);
443 if (stat & STATUS_CRC_READ_ERR) {
446 } else if (stat & STATUS_CRC_WRITE_ERR) {
447 u32 err_code = (stat >> 9) & 0x3;
457 } else if (stat & STATUS_TIME_OUT_READ) {
476 static void mxcmci_read_response(struct mxcmci_host *host, unsigned int stat)
485 if (stat & STATUS_TIME_OUT_RESP) {
488 } else if (stat & STATUS_RESP_CRC_ERR && cmd->flags & MMC_RSP_CRC) {
511 u32 stat;
515 stat = mxcmci_readl(host, MMC_REG_STATUS);
516 if (stat & STATUS_ERR_MASK)
517 return stat;
523 if (stat & mask)
531 unsigned int stat;
535 stat = mxcmci_poll_status(host,
537 if (stat)
538 return stat;
547 stat = mxcmci_poll_status(host,
549 if (stat)
550 return stat;
560 unsigned int stat;
564 stat = mxcmci_poll_status(host, STATUS_BUF_WRITE_RDY);
565 if (stat)
566 return stat;
575 stat = mxcmci_poll_status(host, STATUS_BUF_WRITE_RDY);
576 if (stat)
577 return stat;
590 int stat, i;
597 stat = mxcmci_pull(host, sg_virt(sg), sg->length);
598 if (stat)
599 return stat;
604 stat = mxcmci_push(host, sg_virt(sg), sg->length);
605 if (stat)
606 return stat;
609 stat = mxcmci_poll_status(host, STATUS_WRITE_OP_DONE);
610 if (stat)
611 return stat;
636 static void mxcmci_data_done(struct mxcmci_host *host, unsigned int stat)
658 data_error = mxcmci_finish_data(host, stat);
665 mxcmci_read_response(host, stat);
678 static void mxcmci_cmd_done(struct mxcmci_host *host, unsigned int stat)
680 mxcmci_read_response(host, stat);
701 u32 stat;
703 stat = mxcmci_readl(host, MMC_REG_STATUS);
705 stat & ~(STATUS_SDIO_INT_ACTIVE | STATUS_DATA_TRANS_DONE |
709 dev_dbg(mmc_dev(host->mmc), "%s: 0x%08x\n", __func__, stat);
712 sdio_irq = (stat & STATUS_SDIO_INT_ACTIVE) && host->use_sdio;
715 if (mxcmci_use_dma(host) && (stat & (STATUS_WRITE_OP_DONE)))
723 if (stat & STATUS_END_CMD_RESP)
724 mxcmci_cmd_done(host, stat);
726 if (mxcmci_use_dma(host) && (stat & STATUS_WRITE_OP_DONE)) {
728 mxcmci_data_done(host, stat);
732 (stat & (STATUS_CARD_INSERTION | STATUS_CARD_REMOVAL)))
947 unsigned int stat = mxcmci_readl(host, MMC_REG_STATUS);
953 __func__, stat);
957 __func__, stat);