• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/mmc/host/

Lines Matching defs:stat

406 static int imxmci_finish_data(struct imxmci_host *host, unsigned int stat)
417 if (stat & STATUS_ERR_MASK) {
418 dev_dbg(mmc_dev(host->mmc), "request failed. status: 0x%08x\n", stat);
419 if (stat & (STATUS_CRC_READ_ERR | STATUS_CRC_WRITE_ERR))
421 else if (stat & STATUS_TIME_OUT_READ)
436 static int imxmci_cmd_done(struct imxmci_host *host, unsigned int stat)
448 if (stat & STATUS_TIME_OUT_RESP) {
451 } else if (stat & STATUS_RESP_CRC_ERR && cmd->flags & MMC_RSP_CRC) {
474 if (data && !cmd->error && !(stat & STATUS_ERR_MASK)) {
479 stat = readw(host->base + MMC_REG_STATUS);
480 if (imxmci_busy_wait_for_status(host, &stat,
484 imxmci_finish_data(host, stat);
488 stat);
501 imxmci_finish_data(host, stat);
512 static int imxmci_data_done(struct imxmci_host *host, unsigned int stat)
520 data_error = imxmci_finish_data(host, stat);
542 unsigned int stat = *pstat;
551 stat);
556 imxmci_busy_wait_for_status(host, &stat,
561 while ((stat & (STATUS_APPL_BUFF_FF | STATUS_DATA_TRANS_DONE)) &&
562 !(stat & STATUS_TIME_OUT_READ) &&
580 stat = readw(host->base + MMC_REG_STATUS);
583 host->data_cnt, burst_len, stat);
586 if ((stat & STATUS_DATA_TRANS_DONE) && (host->data_cnt >= 512))
590 stat &= ~STATUS_CRC_READ_ERR;
592 if (stat & STATUS_TIME_OUT_READ) {
594 stat);
599 imxmci_busy_wait_for_status(host, &stat,
603 while ((stat & STATUS_APPL_BUFF_FE) &&
616 stat = readw(host->base + MMC_REG_STATUS);
619 burst_len, stat);
623 *pstat = stat;
631 u32 stat = readw(host->base + MMC_REG_STATUS);
634 host->status_reg = stat;
642 u32 stat = readw(host->base + MMC_REG_STATUS);
649 host->status_reg = stat;
660 u32 stat;
667 stat = readw(host->base + MMC_REG_STATUS);
668 host->status_reg = stat;
685 what, stat,
706 stat = readw(host->base + MMC_REG_STATUS);
710 * stat from IRQ time so do I
712 stat |= host->status_reg;
715 stat &= ~STATUS_CRC_READ_ERR;
718 imxmci_busy_wait_for_status(host, &stat,
723 if (stat & (STATUS_END_CMD_RESP | STATUS_ERR_MASK)) {
725 imxmci_cmd_done(host, stat);
726 if (host->data && (stat & STATUS_ERR_MASK))
727 imxmci_data_done(host, stat);
731 stat |= readw(host->base + MMC_REG_STATUS);
732 if (imxmci_cpu_driven_data(host, &stat)) {
734 imxmci_cmd_done(host, stat);
737 imxmci_data_done(host, stat);
745 stat = readw(host->base + MMC_REG_STATUS);
747 stat |= host->status_reg;
754 if (stat & data_dir_mask) {
756 imxmci_data_done(host, stat);