Lines Matching refs:mrq
319 if ((!host->mrq) || (!host->mrq->data)) in get_data_buffer()
322 if (host->pio_sgptr >= host->mrq->data->sg_len) { in get_data_buffer()
324 host->pio_sgptr, host->mrq->data->sg_len); in get_data_buffer()
327 sg = &host->mrq->data->sg[host->pio_sgptr]; in get_data_buffer()
335 host->pio_sgptr, host->mrq->data->sg_len); in get_data_buffer()
563 if (host->mrq->data) in pio_tasklet()
564 host->mrq->data->error = -EINVAL; in pio_tasklet()
635 if (!host->mrq) { in s3cmci_irq()
641 cmd = host->cmd_is_stop ? host->mrq->stop : host->mrq->cmd; in s3cmci_irq()
688 if (host->mrq->cmd->flags & MMC_RSP_136) { in s3cmci_irq()
728 host->mrq->data->error = -EILSEQ; in s3cmci_irq()
806 BUG_ON(!host->mrq); in s3cmci_dma_done_callback()
807 BUG_ON(!host->mrq->data); in s3cmci_dma_done_callback()
823 struct mmc_request *mrq = host->mrq; in finalize_request() local
830 if (!mrq) in finalize_request()
832 cmd = host->cmd_is_stop ? mrq->stop : mrq->cmd; in finalize_request()
875 if (!mrq->data) in finalize_request()
879 if (mrq->data->error == 0) { in finalize_request()
880 mrq->data->bytes_xfered = in finalize_request()
881 (mrq->data->blocks * mrq->data->blksz); in finalize_request()
883 mrq->data->bytes_xfered = 0; in finalize_request()
888 if (mrq->data->error != 0) { in finalize_request()
910 host->mrq = NULL; in finalize_request()
913 mmc_request_done(host->mmc, mrq); in finalize_request()
1100 struct mmc_request *mrq = host->mrq; in s3cmci_send_request() local
1101 struct mmc_command *cmd = host->cmd_is_stop ? mrq->stop : mrq->cmd; in s3cmci_send_request()
1123 mmc_request_done(mmc, mrq); in s3cmci_send_request()
1137 mmc_request_done(mmc, mrq); in s3cmci_send_request()
1149 static void s3cmci_request(struct mmc_host *mmc, struct mmc_request *mrq) in s3cmci_request() argument
1155 host->mrq = mrq; in s3cmci_request()
1159 host->mrq->cmd->error = -ENOMEDIUM; in s3cmci_request()
1160 mmc_request_done(mmc, mrq); in s3cmci_request()