Lines Matching refs:mrq
264 if ((!host->mrq) || (!host->mrq->data)) in get_data_buffer()
267 if (host->pio_sgptr >= host->mrq->data->sg_len) { in get_data_buffer()
269 host->pio_sgptr, host->mrq->data->sg_len); in get_data_buffer()
272 sg = &host->mrq->data->sg[host->pio_sgptr]; in get_data_buffer()
280 host->pio_sgptr, host->mrq->data->sg_len); in get_data_buffer()
511 if (host->mrq->data) in pio_tasklet()
512 host->mrq->data->error = -EINVAL; in pio_tasklet()
583 if (!host->mrq) { in s3cmci_irq()
589 cmd = host->cmd_is_stop ? host->mrq->stop : host->mrq->cmd; in s3cmci_irq()
636 if (host->mrq->cmd->flags & MMC_RSP_136) { in s3cmci_irq()
676 host->mrq->data->error = -EILSEQ; in s3cmci_irq()
777 BUG_ON(!host->mrq); in s3cmci_dma_done_callback()
778 BUG_ON(!host->mrq->data); in s3cmci_dma_done_callback()
813 host->mrq->data->error = -EINVAL; in s3cmci_dma_done_callback()
822 struct mmc_request *mrq = host->mrq; in finalize_request() local
829 if (!mrq) in finalize_request()
831 cmd = host->cmd_is_stop ? mrq->stop : mrq->cmd; in finalize_request()
874 if (!mrq->data) in finalize_request()
878 if (mrq->data->error == 0) { in finalize_request()
879 mrq->data->bytes_xfered = in finalize_request()
880 (mrq->data->blocks * mrq->data->blksz); in finalize_request()
882 mrq->data->bytes_xfered = 0; in finalize_request()
887 if (mrq->data->error != 0) { in finalize_request()
909 host->mrq = NULL; in finalize_request()
912 mmc_request_done(host->mmc, mrq); in finalize_request()
1127 struct mmc_request *mrq = host->mrq; in s3cmci_send_request() local
1128 struct mmc_command *cmd = host->cmd_is_stop ? mrq->stop : mrq->cmd; in s3cmci_send_request()
1150 mmc_request_done(mmc, mrq); in s3cmci_send_request()
1164 mmc_request_done(mmc, mrq); in s3cmci_send_request()
1189 static void s3cmci_request(struct mmc_host *mmc, struct mmc_request *mrq) in s3cmci_request() argument
1195 host->mrq = mrq; in s3cmci_request()
1199 host->mrq->cmd->error = -ENOMEDIUM; in s3cmci_request()
1200 mmc_request_done(mmc, mrq); in s3cmci_request()