Lines Matching refs:mrq
178 struct mmc_request *mrq; member
807 if (cmd == host->mrq->stop) in omap_hsmmc_start_command()
813 host->mrq->sbc) { in omap_hsmmc_start_command()
815 OMAP_HSMMC_WRITE(host->base, SDMASA, host->mrq->sbc->arg); in omap_hsmmc_start_command()
849 static void omap_hsmmc_request_done(struct omap_hsmmc_host *host, struct mmc_request *mrq) in omap_hsmmc_request_done() argument
861 if (mrq->data && host->use_dma && dma_ch != -1) in omap_hsmmc_request_done()
863 host->mrq = NULL; in omap_hsmmc_request_done()
864 mmc_request_done(host->mmc, mrq); in omap_hsmmc_request_done()
876 struct mmc_request *mrq = host->mrq; in omap_hsmmc_xfer_done() local
885 omap_hsmmc_request_done(host, mrq); in omap_hsmmc_xfer_done()
896 if (data->stop && (data->error || !host->mrq->sbc)) in omap_hsmmc_xfer_done()
899 omap_hsmmc_request_done(host, data->mrq); in omap_hsmmc_xfer_done()
908 if (host->mrq->sbc && (host->cmd == host->mrq->sbc) && in omap_hsmmc_cmd_done()
909 !host->mrq->sbc->error && !(host->flags & AUTO_CMD23)) { in omap_hsmmc_cmd_done()
912 omap_hsmmc_start_command(host, host->mrq->cmd, in omap_hsmmc_cmd_done()
913 host->mrq->data); in omap_hsmmc_cmd_done()
932 omap_hsmmc_request_done(host, host->mrq); in omap_hsmmc_cmd_done()
1047 } else if (host->mrq && host->mrq->cmd) in hsmmc_command_incomplete()
1048 host->mrq->cmd->error = err; in hsmmc_command_incomplete()
1077 if (!(ac12 & ACNE) && host->mrq->sbc) { in omap_hsmmc_do_irq()
1083 host->mrq->sbc->error = error; in omap_hsmmc_do_irq()
1093 if ((end_trans || (status & TC_EN)) && host->mrq) in omap_hsmmc_do_irq()
1263 data = host->mrq->data; in omap_hsmmc_dma_callback()
1276 struct mmc_request *mrq = host->mrq; in omap_hsmmc_dma_callback() local
1278 host->mrq = NULL; in omap_hsmmc_dma_callback()
1279 mmc_request_done(host->mmc, mrq); in omap_hsmmc_dma_callback()
1427 struct mmc_request *req = host->mrq; in omap_hsmmc_start_dma_transfer()
1470 static void omap_hsmmc_post_req(struct mmc_host *mmc, struct mmc_request *mrq, in omap_hsmmc_post_req() argument
1474 struct mmc_data *data = mrq->data; in omap_hsmmc_post_req()
1485 static void omap_hsmmc_pre_req(struct mmc_host *mmc, struct mmc_request *mrq, in omap_hsmmc_pre_req() argument
1490 if (mrq->data->host_cookie) { in omap_hsmmc_pre_req()
1491 mrq->data->host_cookie = 0; in omap_hsmmc_pre_req()
1496 struct dma_chan *c = omap_hsmmc_get_dma_chan(host, mrq->data); in omap_hsmmc_pre_req()
1498 if (omap_hsmmc_pre_dma_transfer(host, mrq->data, in omap_hsmmc_pre_req()
1500 mrq->data->host_cookie = 0; in omap_hsmmc_pre_req()
1536 WARN_ON(host->mrq != NULL); in omap_hsmmc_request()
1537 host->mrq = req; in omap_hsmmc_request()
1544 host->mrq = NULL; in omap_hsmmc_request()