• Home
  • Raw
  • Download

Lines Matching refs:stat

341 static void mxcmci_cmd_done(struct mxcmci_host *host, unsigned int stat);
342 static void mxcmci_data_done(struct mxcmci_host *host, unsigned int stat);
347 u32 stat; in mxcmci_dma_callback() local
351 stat = mxcmci_readl(host, MMC_REG_STATUS); in mxcmci_dma_callback()
353 dev_dbg(mmc_dev(host->mmc), "%s: 0x%08x\n", __func__, stat); in mxcmci_dma_callback()
355 mxcmci_data_done(host, stat); in mxcmci_dma_callback()
430 static int mxcmci_finish_data(struct mxcmci_host *host, unsigned int stat) in mxcmci_finish_data() argument
441 if (stat & STATUS_ERR_MASK) { in mxcmci_finish_data()
443 stat); in mxcmci_finish_data()
444 if (stat & STATUS_CRC_READ_ERR) { in mxcmci_finish_data()
447 } else if (stat & STATUS_CRC_WRITE_ERR) { in mxcmci_finish_data()
448 u32 err_code = (stat >> 9) & 0x3; in mxcmci_finish_data()
458 } else if (stat & STATUS_TIME_OUT_READ) { in mxcmci_finish_data()
477 static void mxcmci_read_response(struct mxcmci_host *host, unsigned int stat) in mxcmci_read_response() argument
486 if (stat & STATUS_TIME_OUT_RESP) { in mxcmci_read_response()
489 } else if (stat & STATUS_RESP_CRC_ERR && cmd->flags & MMC_RSP_CRC) { in mxcmci_read_response()
512 u32 stat; in mxcmci_poll_status() local
516 stat = mxcmci_readl(host, MMC_REG_STATUS); in mxcmci_poll_status()
517 if (stat & STATUS_ERR_MASK) in mxcmci_poll_status()
518 return stat; in mxcmci_poll_status()
524 if (stat & mask) in mxcmci_poll_status()
532 unsigned int stat; in mxcmci_pull() local
536 stat = mxcmci_poll_status(host, in mxcmci_pull()
538 if (stat) in mxcmci_pull()
539 return stat; in mxcmci_pull()
548 stat = mxcmci_poll_status(host, in mxcmci_pull()
550 if (stat) in mxcmci_pull()
551 return stat; in mxcmci_pull()
561 unsigned int stat; in mxcmci_push() local
565 stat = mxcmci_poll_status(host, STATUS_BUF_WRITE_RDY); in mxcmci_push()
566 if (stat) in mxcmci_push()
567 return stat; in mxcmci_push()
576 stat = mxcmci_poll_status(host, STATUS_BUF_WRITE_RDY); in mxcmci_push()
577 if (stat) in mxcmci_push()
578 return stat; in mxcmci_push()
591 int stat, i; in mxcmci_transfer_data() local
598 stat = mxcmci_pull(host, sg_virt(sg), sg->length); in mxcmci_transfer_data()
599 if (stat) in mxcmci_transfer_data()
600 return stat; in mxcmci_transfer_data()
605 stat = mxcmci_push(host, sg_virt(sg), sg->length); in mxcmci_transfer_data()
606 if (stat) in mxcmci_transfer_data()
607 return stat; in mxcmci_transfer_data()
610 stat = mxcmci_poll_status(host, STATUS_WRITE_OP_DONE); in mxcmci_transfer_data()
611 if (stat) in mxcmci_transfer_data()
612 return stat; in mxcmci_transfer_data()
637 static void mxcmci_data_done(struct mxcmci_host *host, unsigned int stat) in mxcmci_data_done() argument
659 data_error = mxcmci_finish_data(host, stat); in mxcmci_data_done()
666 mxcmci_read_response(host, stat); in mxcmci_data_done()
679 static void mxcmci_cmd_done(struct mxcmci_host *host, unsigned int stat) in mxcmci_cmd_done() argument
681 mxcmci_read_response(host, stat); in mxcmci_cmd_done()
702 u32 stat; in mxcmci_irq() local
704 stat = mxcmci_readl(host, MMC_REG_STATUS); in mxcmci_irq()
706 stat & ~(STATUS_SDIO_INT_ACTIVE | STATUS_DATA_TRANS_DONE | in mxcmci_irq()
710 dev_dbg(mmc_dev(host->mmc), "%s: 0x%08x\n", __func__, stat); in mxcmci_irq()
713 sdio_irq = (stat & STATUS_SDIO_INT_ACTIVE) && host->use_sdio; in mxcmci_irq()
716 if (mxcmci_use_dma(host) && (stat & (STATUS_WRITE_OP_DONE))) in mxcmci_irq()
724 if (stat & STATUS_END_CMD_RESP) in mxcmci_irq()
725 mxcmci_cmd_done(host, stat); in mxcmci_irq()
727 if (mxcmci_use_dma(host) && (stat & STATUS_WRITE_OP_DONE)) { in mxcmci_irq()
729 mxcmci_data_done(host, stat); in mxcmci_irq()
733 (stat & (STATUS_CARD_INSERTION | STATUS_CARD_REMOVAL))) in mxcmci_irq()
948 unsigned int stat = mxcmci_readl(host, MMC_REG_STATUS); in mxcmci_watchdog() local
954 __func__, stat); in mxcmci_watchdog()
958 __func__, stat); in mxcmci_watchdog()