Lines Matching refs:mrq

887 		if (!host->mrq->sbc && (host->flags & SDHCI_AUTO_CMD12))  in sdhci_set_transfer_mode()
889 else if (host->mrq->sbc && (host->flags & SDHCI_AUTO_CMD23)) { in sdhci_set_transfer_mode()
891 sdhci_writel(host, host->mrq->sbc->arg, SDHCI_ARGUMENT2); in sdhci_set_transfer_mode()
941 !host->mrq->sbc)) { in sdhci_finish_data()
974 if (host->mrq->data && (cmd == host->mrq->data->stop)) in sdhci_send_command()
1055 if (host->cmd == host->mrq->sbc) { in sdhci_finish_command()
1057 sdhci_send_command(host, host->mrq->cmd); in sdhci_finish_command()
1244 static void sdhci_request(struct mmc_host *mmc, struct mmc_request *mrq) in sdhci_request() argument
1257 WARN_ON(host->mrq != NULL); in sdhci_request()
1267 if (!mrq->sbc && (host->flags & SDHCI_AUTO_CMD12)) { in sdhci_request()
1268 if (mrq->stop) { in sdhci_request()
1269 mrq->data->stop = NULL; in sdhci_request()
1270 mrq->stop = NULL; in sdhci_request()
1274 host->mrq = mrq; in sdhci_request()
1284 host->mrq->cmd->error = -ENOMEDIUM; in sdhci_request()
1308 host->mrq = mrq; in sdhci_request()
1312 if (mrq->sbc && !(host->flags & SDHCI_AUTO_CMD23)) in sdhci_request()
1313 sdhci_send_command(host, mrq->sbc); in sdhci_request()
1315 sdhci_send_command(host, mrq->cmd); in sdhci_request()
1765 struct mmc_request mrq = {NULL}; in sdhci_execute_tuning() local
1777 mrq.cmd = &cmd; in sdhci_execute_tuning()
1778 host->mrq = &mrq; in sdhci_execute_tuning()
1808 host->mrq = NULL; in sdhci_execute_tuning()
1964 if (host->mrq && in sdhci_tasklet_card()
1974 host->mrq->cmd->error = -ENOMEDIUM; in sdhci_tasklet_card()
1987 struct mmc_request *mrq; in sdhci_tasklet_finish() local
1997 if (!host->mrq) { in sdhci_tasklet_finish()
2004 mrq = host->mrq; in sdhci_tasklet_finish()
2011 ((mrq->cmd && mrq->cmd->error) || in sdhci_tasklet_finish()
2012 (mrq->data && (mrq->data->error || in sdhci_tasklet_finish()
2013 (mrq->data->stop && mrq->data->stop->error))) || in sdhci_tasklet_finish()
2032 host->mrq = NULL; in sdhci_tasklet_finish()
2043 mmc_request_done(host->mmc, mrq); in sdhci_tasklet_finish()
2056 if (host->mrq) { in sdhci_timeout_timer()
2068 host->mrq->cmd->error = -ETIMEDOUT; in sdhci_timeout_timer()
3068 if (host->mrq) { in sdhci_remove_host()
3072 host->mrq->cmd->error = -ENOMEDIUM; in sdhci_remove_host()