Lines Matching refs:mrq
72 BUG_ON(host->curr.mrq); in msmsdcc_disable_clocks()
166 msmsdcc_request_end(struct msmsdcc_host *host, struct mmc_request *mrq) in msmsdcc_request_end() argument
170 host->curr.mrq = NULL; in msmsdcc_request_end()
173 if (mrq->data) in msmsdcc_request_end()
174 mrq->data->bytes_xfered = host->curr.data_xfered; in msmsdcc_request_end()
175 if (mrq->cmd->error == -ETIMEDOUT) in msmsdcc_request_end()
186 mmc_request_done(host->mmc, mrq); in msmsdcc_request_end()
232 struct mmc_request *mrq; in msmsdcc_dma_complete_tlet() local
239 mrq = host->curr.mrq; in msmsdcc_dma_complete_tlet()
240 BUG_ON(!mrq); in msmsdcc_dma_complete_tlet()
241 WARN_ON(!mrq->data); in msmsdcc_dma_complete_tlet()
264 if (!mrq->data->error) in msmsdcc_dma_complete_tlet()
265 mrq->data->error = -EIO; in msmsdcc_dma_complete_tlet()
273 if (host->curr.got_dataend || mrq->data->error) { in msmsdcc_dma_complete_tlet()
281 if (!mrq->data->error) in msmsdcc_dma_complete_tlet()
283 if (!mrq->data->stop || mrq->cmd->error) { in msmsdcc_dma_complete_tlet()
284 host->curr.mrq = NULL; in msmsdcc_dma_complete_tlet()
286 mrq->data->bytes_xfered = host->curr.data_xfered; in msmsdcc_dma_complete_tlet()
292 mmc_request_done(host->mmc, mrq); in msmsdcc_dma_complete_tlet()
295 msmsdcc_start_command(host, mrq->data->stop, 0); in msmsdcc_dma_complete_tlet()
470 if (cmd == cmd->mrq->stop) in msmsdcc_start_command_deferred()
559 if (cmd == cmd->mrq->stop) in msmsdcc_start_command()
575 data->mrq->cmd->opcode); in msmsdcc_data_err()
755 msmsdcc_request_end(host, cmd->mrq); in msmsdcc_do_cmdirq()
761 msmsdcc_request_end(host, cmd->mrq); in msmsdcc_do_cmdirq()
770 msmsdcc_request_end(host, cmd->mrq); in msmsdcc_do_cmdirq()
806 msmsdcc_request_end(host, data->mrq); in msmsdcc_handle_irq_data()
837 msmsdcc_request_end(host, data->mrq); in msmsdcc_handle_irq_data()
887 msmsdcc_request(struct mmc_host *mmc, struct mmc_request *mrq) in msmsdcc_request() argument
892 WARN_ON(host->curr.mrq != NULL); in msmsdcc_request()
900 if (mrq->data && !(mrq->data->flags & MMC_DATA_READ)) { in msmsdcc_request()
901 mrq->cmd->error = 0; in msmsdcc_request()
902 mrq->data->bytes_xfered = mrq->data->blksz * in msmsdcc_request()
903 mrq->data->blocks; in msmsdcc_request()
905 mrq->cmd->error = -ENOMEDIUM; in msmsdcc_request()
908 mmc_request_done(mmc, mrq); in msmsdcc_request()
914 host->curr.mrq = mrq; in msmsdcc_request()
916 if (mrq->data && mrq->data->flags & MMC_DATA_READ) in msmsdcc_request()
918 msmsdcc_start_data(host, mrq->data, mrq->cmd, 0); in msmsdcc_request()
920 msmsdcc_start_command(host, mrq->cmd, 0); in msmsdcc_request()