Lines Matching refs:mrq
179 struct mmc_request *mrq; member
910 if (cmd == host->mrq->stop) in omap_hsmmc_start_command()
916 host->mrq->sbc) { in omap_hsmmc_start_command()
918 OMAP_HSMMC_WRITE(host->base, SDMASA, host->mrq->sbc->arg); in omap_hsmmc_start_command()
952 static void omap_hsmmc_request_done(struct omap_hsmmc_host *host, struct mmc_request *mrq) in omap_hsmmc_request_done() argument
964 if (mrq->data && host->use_dma && dma_ch != -1) in omap_hsmmc_request_done()
966 host->mrq = NULL; in omap_hsmmc_request_done()
967 mmc_request_done(host->mmc, mrq); in omap_hsmmc_request_done()
979 struct mmc_request *mrq = host->mrq; in omap_hsmmc_xfer_done() local
988 omap_hsmmc_request_done(host, mrq); in omap_hsmmc_xfer_done()
999 if (data->stop && (data->error || !host->mrq->sbc)) in omap_hsmmc_xfer_done()
1002 omap_hsmmc_request_done(host, data->mrq); in omap_hsmmc_xfer_done()
1011 if (host->mrq->sbc && (host->cmd == host->mrq->sbc) && in omap_hsmmc_cmd_done()
1012 !host->mrq->sbc->error && !(host->flags & AUTO_CMD23)) { in omap_hsmmc_cmd_done()
1015 omap_hsmmc_start_command(host, host->mrq->cmd, in omap_hsmmc_cmd_done()
1016 host->mrq->data); in omap_hsmmc_cmd_done()
1035 omap_hsmmc_request_done(host, host->mrq); in omap_hsmmc_cmd_done()
1150 } else if (host->mrq && host->mrq->cmd) in hsmmc_command_incomplete()
1151 host->mrq->cmd->error = err; in hsmmc_command_incomplete()
1181 if (!(ac12 & ACNE) && host->mrq->sbc) { in omap_hsmmc_do_irq()
1187 host->mrq->sbc->error = error; in omap_hsmmc_do_irq()
1197 if ((end_trans || (status & TC_EN)) && host->mrq) in omap_hsmmc_do_irq()
1351 data = host->mrq->data; in omap_hsmmc_dma_callback()
1364 struct mmc_request *mrq = host->mrq; in omap_hsmmc_dma_callback() local
1366 host->mrq = NULL; in omap_hsmmc_dma_callback()
1367 mmc_request_done(host->mmc, mrq); in omap_hsmmc_dma_callback()
1515 struct mmc_request *req = host->mrq; in omap_hsmmc_start_dma_transfer()
1558 static void omap_hsmmc_post_req(struct mmc_host *mmc, struct mmc_request *mrq, in omap_hsmmc_post_req() argument
1562 struct mmc_data *data = mrq->data; in omap_hsmmc_post_req()
1573 static void omap_hsmmc_pre_req(struct mmc_host *mmc, struct mmc_request *mrq, in omap_hsmmc_pre_req() argument
1578 if (mrq->data->host_cookie) { in omap_hsmmc_pre_req()
1579 mrq->data->host_cookie = 0; in omap_hsmmc_pre_req()
1584 struct dma_chan *c = omap_hsmmc_get_dma_chan(host, mrq->data); in omap_hsmmc_pre_req()
1586 if (omap_hsmmc_pre_dma_transfer(host, mrq->data, in omap_hsmmc_pre_req()
1588 mrq->data->host_cookie = 0; in omap_hsmmc_pre_req()
1624 WARN_ON(host->mrq != NULL); in omap_hsmmc_request()
1625 host->mrq = req; in omap_hsmmc_request()
1632 host->mrq = NULL; in omap_hsmmc_request()