Lines Matching refs:mrq

209 	struct mmc_request *mrq;  in tmio_mmc_reset_work()  local
213 mrq = host->mrq; in tmio_mmc_reset_work()
220 if (IS_ERR_OR_NULL(mrq) in tmio_mmc_reset_work()
229 mrq->cmd->opcode); in tmio_mmc_reset_work()
236 mrq->cmd->error = -ETIMEDOUT; in tmio_mmc_reset_work()
247 host->mrq = NULL; in tmio_mmc_reset_work()
250 mmc_request_done(host->mmc, mrq); in tmio_mmc_reset_work()
256 struct mmc_request *mrq; in tmio_mmc_finish_request() local
261 mrq = host->mrq; in tmio_mmc_finish_request()
262 if (IS_ERR_OR_NULL(mrq)) { in tmio_mmc_finish_request()
273 host->mrq = NULL; in tmio_mmc_finish_request()
276 if (mrq->cmd->error || (mrq->data && mrq->data->error)) in tmio_mmc_finish_request()
279 mmc_request_done(host->mmc, mrq); in tmio_mmc_finish_request()
445 host->mrq); in tmio_mmc_do_data_irq()
448 host->mrq); in tmio_mmc_do_data_irq()
710 static void tmio_mmc_request(struct mmc_host *mmc, struct mmc_request *mrq) in tmio_mmc_request() argument
718 if (host->mrq) { in tmio_mmc_request()
720 if (IS_ERR(host->mrq)) { in tmio_mmc_request()
722 mrq->cmd->error = -EAGAIN; in tmio_mmc_request()
723 mmc_request_done(mmc, mrq); in tmio_mmc_request()
730 host->mrq = mrq; in tmio_mmc_request()
734 if (mrq->data) { in tmio_mmc_request()
735 ret = tmio_mmc_start_data(host, mrq->data); in tmio_mmc_request()
740 ret = tmio_mmc_start_command(host, mrq->cmd); in tmio_mmc_request()
749 host->mrq = NULL; in tmio_mmc_request()
750 mrq->cmd->error = ret; in tmio_mmc_request()
751 mmc_request_done(mmc, mrq); in tmio_mmc_request()
769 if (host->mrq) { in tmio_mmc_set_ios()
770 if (IS_ERR(host->mrq)) { in tmio_mmc_set_ios()
775 host->mrq = ERR_PTR(-EINTR); in tmio_mmc_set_ios()
780 host->mrq->cmd->opcode, host->last_req_ts, jiffies); in tmio_mmc_set_ios()
788 host->mrq = ERR_PTR(-EBUSY); in tmio_mmc_set_ios()
830 if (PTR_ERR(host->mrq) == -EINTR) in tmio_mmc_set_ios()
835 host->mrq = NULL; in tmio_mmc_set_ios()