• Home
  • Raw
  • Download

Lines Matching refs:stat

391 static void mxcmci_cmd_done(struct mxcmci_host *host, unsigned int stat);
392 static void mxcmci_data_done(struct mxcmci_host *host, unsigned int stat);
397 u32 stat; in mxcmci_dma_callback() local
401 stat = mxcmci_readl(host, MMC_REG_STATUS); in mxcmci_dma_callback()
402 mxcmci_writel(host, stat & ~STATUS_DATA_TRANS_DONE, MMC_REG_STATUS); in mxcmci_dma_callback()
404 dev_dbg(mmc_dev(host->mmc), "%s: 0x%08x\n", __func__, stat); in mxcmci_dma_callback()
406 if (stat & STATUS_READ_OP_DONE) in mxcmci_dma_callback()
409 mxcmci_data_done(host, stat); in mxcmci_dma_callback()
484 static int mxcmci_finish_data(struct mxcmci_host *host, unsigned int stat) in mxcmci_finish_data() argument
495 if (stat & STATUS_ERR_MASK) { in mxcmci_finish_data()
497 stat); in mxcmci_finish_data()
498 if (stat & STATUS_CRC_READ_ERR) { in mxcmci_finish_data()
501 } else if (stat & STATUS_CRC_WRITE_ERR) { in mxcmci_finish_data()
502 u32 err_code = (stat >> 9) & 0x3; in mxcmci_finish_data()
512 } else if (stat & STATUS_TIME_OUT_READ) { in mxcmci_finish_data()
531 static void mxcmci_read_response(struct mxcmci_host *host, unsigned int stat) in mxcmci_read_response() argument
540 if (stat & STATUS_TIME_OUT_RESP) { in mxcmci_read_response()
543 } else if (stat & STATUS_RESP_CRC_ERR && cmd->flags & MMC_RSP_CRC) { in mxcmci_read_response()
566 u32 stat; in mxcmci_poll_status() local
570 stat = mxcmci_readl(host, MMC_REG_STATUS); in mxcmci_poll_status()
571 if (stat & STATUS_ERR_MASK) in mxcmci_poll_status()
572 return stat; in mxcmci_poll_status()
578 if (stat & mask) in mxcmci_poll_status()
586 unsigned int stat; in mxcmci_pull() local
590 stat = mxcmci_poll_status(host, in mxcmci_pull()
592 if (stat) in mxcmci_pull()
593 return stat; in mxcmci_pull()
602 stat = mxcmci_poll_status(host, in mxcmci_pull()
604 if (stat) in mxcmci_pull()
605 return stat; in mxcmci_pull()
615 unsigned int stat; in mxcmci_push() local
619 stat = mxcmci_poll_status(host, STATUS_BUF_WRITE_RDY); in mxcmci_push()
620 if (stat) in mxcmci_push()
621 return stat; in mxcmci_push()
630 stat = mxcmci_poll_status(host, STATUS_BUF_WRITE_RDY); in mxcmci_push()
631 if (stat) in mxcmci_push()
632 return stat; in mxcmci_push()
638 stat = mxcmci_poll_status(host, STATUS_BUF_WRITE_RDY); in mxcmci_push()
639 if (stat) in mxcmci_push()
640 return stat; in mxcmci_push()
649 int stat, i; in mxcmci_transfer_data() local
656 stat = mxcmci_pull(host, sg_virt(sg), sg->length); in mxcmci_transfer_data()
657 if (stat) in mxcmci_transfer_data()
658 return stat; in mxcmci_transfer_data()
663 stat = mxcmci_push(host, sg_virt(sg), sg->length); in mxcmci_transfer_data()
664 if (stat) in mxcmci_transfer_data()
665 return stat; in mxcmci_transfer_data()
668 stat = mxcmci_poll_status(host, STATUS_WRITE_OP_DONE); in mxcmci_transfer_data()
669 if (stat) in mxcmci_transfer_data()
670 return stat; in mxcmci_transfer_data()
695 static void mxcmci_data_done(struct mxcmci_host *host, unsigned int stat) in mxcmci_data_done() argument
717 data_error = mxcmci_finish_data(host, stat); in mxcmci_data_done()
721 mxcmci_read_response(host, stat); in mxcmci_data_done()
734 static void mxcmci_cmd_done(struct mxcmci_host *host, unsigned int stat) in mxcmci_cmd_done() argument
736 mxcmci_read_response(host, stat); in mxcmci_cmd_done()
758 u32 stat; in mxcmci_irq() local
760 stat = mxcmci_readl(host, MMC_REG_STATUS); in mxcmci_irq()
762 stat & ~(STATUS_SDIO_INT_ACTIVE | STATUS_DATA_TRANS_DONE | in mxcmci_irq()
766 dev_dbg(mmc_dev(host->mmc), "%s: 0x%08x\n", __func__, stat); in mxcmci_irq()
769 sdio_irq = (stat & STATUS_SDIO_INT_ACTIVE) && host->use_sdio; in mxcmci_irq()
773 (stat & (STATUS_READ_OP_DONE | STATUS_WRITE_OP_DONE))) in mxcmci_irq()
782 if (stat & STATUS_END_CMD_RESP) in mxcmci_irq()
783 mxcmci_cmd_done(host, stat); in mxcmci_irq()
786 (stat & (STATUS_DATA_TRANS_DONE | STATUS_WRITE_OP_DONE))) { in mxcmci_irq()
788 mxcmci_data_done(host, stat); in mxcmci_irq()
792 (stat & (STATUS_CARD_INSERTION | STATUS_CARD_REMOVAL))) in mxcmci_irq()
1008 unsigned int stat = mxcmci_readl(host, MMC_REG_STATUS); in mxcmci_watchdog() local
1014 __func__, stat); in mxcmci_watchdog()
1018 __func__, stat); in mxcmci_watchdog()