Lines Matching refs:mrq

92 	struct mmc_request	*mrq;  member
109 struct mmc_request *mrq; in dw_mci_req_show() local
116 mrq = slot->mrq; in dw_mci_req_show()
118 if (mrq) { in dw_mci_req_show()
119 cmd = mrq->cmd; in dw_mci_req_show()
120 data = mrq->data; in dw_mci_req_show()
121 stop = mrq->stop; in dw_mci_req_show()
481 struct mmc_request *mrq, in dw_mci_pre_req() argument
485 struct mmc_data *data = mrq->data; in dw_mci_pre_req()
495 if (dw_mci_pre_dma_transfer(slot->host, mrq->data, 1) < 0) in dw_mci_pre_req()
500 struct mmc_request *mrq, in dw_mci_post_req() argument
504 struct mmc_data *data = mrq->data; in dw_mci_post_req()
668 struct mmc_request *mrq; in __dw_mci_start_request() local
672 mrq = slot->mrq; in __dw_mci_start_request()
680 host->mrq = mrq; in __dw_mci_start_request()
706 if (mrq->stop) in __dw_mci_start_request()
707 host->stop_cmdr = dw_mci_prepare_command(slot->mmc, mrq->stop); in __dw_mci_start_request()
713 struct mmc_request *mrq = slot->mrq; in dw_mci_start_request() local
716 cmd = mrq->sbc ? mrq->sbc : mrq->cmd; in dw_mci_start_request()
722 struct mmc_request *mrq) in dw_mci_queue_request() argument
727 slot->mrq = mrq; in dw_mci_queue_request()
737 static void dw_mci_request(struct mmc_host *mmc, struct mmc_request *mrq) in dw_mci_request() argument
742 WARN_ON(slot->mrq); in dw_mci_request()
753 mrq->cmd->error = -ENOMEDIUM; in dw_mci_request()
754 mmc_request_done(mmc, mrq); in dw_mci_request()
758 dw_mci_queue_request(host, slot, mrq); in dw_mci_request()
879 static void dw_mci_request_end(struct dw_mci *host, struct mmc_request *mrq) in dw_mci_request_end() argument
888 host->cur_slot->mrq = NULL; in dw_mci_request_end()
889 host->mrq = NULL; in dw_mci_request_end()
904 mmc_request_done(prev_mmc, mrq); in dw_mci_request_end()
980 if (cmd == host->mrq->sbc && !cmd->error) { in dw_mci_tasklet_func()
983 host->mrq->cmd); in dw_mci_tasklet_func()
987 if (!host->mrq->data || cmd->error) { in dw_mci_tasklet_func()
988 dw_mci_request_end(host, host->mrq); in dw_mci_tasklet_func()
1061 dw_mci_request_end(host, host->mrq); in dw_mci_tasklet_func()
1065 if (host->mrq->sbc && !data->error) { in dw_mci_tasklet_func()
1067 dw_mci_request_end(host, host->mrq); in dw_mci_tasklet_func()
1082 dw_mci_command_complete(host, host->mrq->stop); in dw_mci_tasklet_func()
1083 dw_mci_request_end(host, host->mrq); in dw_mci_tasklet_func()
1644 struct mmc_request *mrq; in dw_mci_work_routine_card() local
1667 mrq = slot->mrq; in dw_mci_work_routine_card()
1668 if (mrq) { in dw_mci_work_routine_card()
1669 if (mrq == host->mrq) { in dw_mci_work_routine_card()
1677 mrq->cmd->error = -ENOMEDIUM; in dw_mci_work_routine_card()
1678 if (!mrq->data) in dw_mci_work_routine_card()
1682 mrq->data->error = -ENOMEDIUM; in dw_mci_work_routine_card()
1687 if (mrq->data->error == -EINPROGRESS) in dw_mci_work_routine_card()
1688 mrq->data->error = -ENOMEDIUM; in dw_mci_work_routine_card()
1689 if (!mrq->stop) in dw_mci_work_routine_card()
1693 mrq->stop->error = -ENOMEDIUM; in dw_mci_work_routine_card()
1697 dw_mci_request_end(host, mrq); in dw_mci_work_routine_card()
1700 mrq->cmd->error = -ENOMEDIUM; in dw_mci_work_routine_card()
1701 if (mrq->data) in dw_mci_work_routine_card()
1702 mrq->data->error = -ENOMEDIUM; in dw_mci_work_routine_card()
1703 if (mrq->stop) in dw_mci_work_routine_card()
1704 mrq->stop->error = -ENOMEDIUM; in dw_mci_work_routine_card()
1707 mmc_request_done(slot->mmc, mrq); in dw_mci_work_routine_card()