• Home
  • Raw
  • Download

Lines Matching refs:stat

357 static void mxcmci_cmd_done(struct mxcmci_host *host, unsigned int stat);
358 static void mxcmci_data_done(struct mxcmci_host *host, unsigned int stat);
363 u32 stat; in mxcmci_dma_callback() local
367 stat = mxcmci_readl(host, MMC_REG_STATUS); in mxcmci_dma_callback()
369 dev_dbg(mmc_dev(host->mmc), "%s: 0x%08x\n", __func__, stat); in mxcmci_dma_callback()
371 mxcmci_data_done(host, stat); in mxcmci_dma_callback()
446 static int mxcmci_finish_data(struct mxcmci_host *host, unsigned int stat) in mxcmci_finish_data() argument
457 if (stat & STATUS_ERR_MASK) { in mxcmci_finish_data()
459 stat); in mxcmci_finish_data()
460 if (stat & STATUS_CRC_READ_ERR) { in mxcmci_finish_data()
463 } else if (stat & STATUS_CRC_WRITE_ERR) { in mxcmci_finish_data()
464 u32 err_code = (stat >> 9) & 0x3; in mxcmci_finish_data()
474 } else if (stat & STATUS_TIME_OUT_READ) { in mxcmci_finish_data()
493 static void mxcmci_read_response(struct mxcmci_host *host, unsigned int stat) in mxcmci_read_response() argument
502 if (stat & STATUS_TIME_OUT_RESP) { in mxcmci_read_response()
505 } else if (stat & STATUS_RESP_CRC_ERR && cmd->flags & MMC_RSP_CRC) { in mxcmci_read_response()
528 u32 stat; in mxcmci_poll_status() local
532 stat = mxcmci_readl(host, MMC_REG_STATUS); in mxcmci_poll_status()
533 if (stat & STATUS_ERR_MASK) in mxcmci_poll_status()
534 return stat; in mxcmci_poll_status()
540 if (stat & mask) in mxcmci_poll_status()
548 unsigned int stat; in mxcmci_pull() local
552 stat = mxcmci_poll_status(host, in mxcmci_pull()
554 if (stat) in mxcmci_pull()
555 return stat; in mxcmci_pull()
564 stat = mxcmci_poll_status(host, in mxcmci_pull()
566 if (stat) in mxcmci_pull()
567 return stat; in mxcmci_pull()
577 unsigned int stat; in mxcmci_push() local
581 stat = mxcmci_poll_status(host, STATUS_BUF_WRITE_RDY); in mxcmci_push()
582 if (stat) in mxcmci_push()
583 return stat; in mxcmci_push()
592 stat = mxcmci_poll_status(host, STATUS_BUF_WRITE_RDY); in mxcmci_push()
593 if (stat) in mxcmci_push()
594 return stat; in mxcmci_push()
607 int stat, i; in mxcmci_transfer_data() local
614 stat = mxcmci_pull(host, sg_virt(sg), sg->length); in mxcmci_transfer_data()
615 if (stat) in mxcmci_transfer_data()
616 return stat; in mxcmci_transfer_data()
621 stat = mxcmci_push(host, sg_virt(sg), sg->length); in mxcmci_transfer_data()
622 if (stat) in mxcmci_transfer_data()
623 return stat; in mxcmci_transfer_data()
626 stat = mxcmci_poll_status(host, STATUS_WRITE_OP_DONE); in mxcmci_transfer_data()
627 if (stat) in mxcmci_transfer_data()
628 return stat; in mxcmci_transfer_data()
653 static void mxcmci_data_done(struct mxcmci_host *host, unsigned int stat) in mxcmci_data_done() argument
675 data_error = mxcmci_finish_data(host, stat); in mxcmci_data_done()
682 mxcmci_read_response(host, stat); in mxcmci_data_done()
695 static void mxcmci_cmd_done(struct mxcmci_host *host, unsigned int stat) in mxcmci_cmd_done() argument
697 mxcmci_read_response(host, stat); in mxcmci_cmd_done()
718 u32 stat; in mxcmci_irq() local
720 stat = mxcmci_readl(host, MMC_REG_STATUS); in mxcmci_irq()
722 stat & ~(STATUS_SDIO_INT_ACTIVE | STATUS_DATA_TRANS_DONE | in mxcmci_irq()
726 dev_dbg(mmc_dev(host->mmc), "%s: 0x%08x\n", __func__, stat); in mxcmci_irq()
729 sdio_irq = (stat & STATUS_SDIO_INT_ACTIVE) && host->use_sdio; in mxcmci_irq()
732 if (mxcmci_use_dma(host) && (stat & (STATUS_WRITE_OP_DONE))) in mxcmci_irq()
740 if (stat & STATUS_END_CMD_RESP) in mxcmci_irq()
741 mxcmci_cmd_done(host, stat); in mxcmci_irq()
743 if (mxcmci_use_dma(host) && (stat & STATUS_WRITE_OP_DONE)) { in mxcmci_irq()
745 mxcmci_data_done(host, stat); in mxcmci_irq()
749 (stat & (STATUS_CARD_INSERTION | STATUS_CARD_REMOVAL))) in mxcmci_irq()
964 unsigned int stat = mxcmci_readl(host, MMC_REG_STATUS); in mxcmci_watchdog() local
970 __func__, stat); in mxcmci_watchdog()
974 __func__, stat); in mxcmci_watchdog()