Lines Matching refs:mrq
293 struct mmc_request *mrq; member
480 struct mmc_command *cmd = host->mrq->cmd; in sunxi_mmc_dump_errinfo()
481 struct mmc_data *data = host->mrq->data; in sunxi_mmc_dump_errinfo()
508 struct mmc_request *mrq = host->mrq; in sunxi_mmc_finalize_request() local
509 struct mmc_data *data = mrq->data; in sunxi_mmc_finalize_request()
517 mrq->cmd->error = -ETIMEDOUT; in sunxi_mmc_finalize_request()
521 host->manual_stop_mrq = mrq; in sunxi_mmc_finalize_request()
524 if (mrq->stop) in sunxi_mmc_finalize_request()
525 mrq->stop->error = -ETIMEDOUT; in sunxi_mmc_finalize_request()
527 if (mrq->cmd->flags & MMC_RSP_136) { in sunxi_mmc_finalize_request()
528 mrq->cmd->resp[0] = mmc_readl(host, REG_RESP3); in sunxi_mmc_finalize_request()
529 mrq->cmd->resp[1] = mmc_readl(host, REG_RESP2); in sunxi_mmc_finalize_request()
530 mrq->cmd->resp[2] = mmc_readl(host, REG_RESP1); in sunxi_mmc_finalize_request()
531 mrq->cmd->resp[3] = mmc_readl(host, REG_RESP0); in sunxi_mmc_finalize_request()
533 mrq->cmd->resp[0] = mmc_readl(host, REG_RESP0); in sunxi_mmc_finalize_request()
556 host->mrq = NULL; in sunxi_mmc_finalize_request()
566 struct mmc_request *mrq; in sunxi_mmc_irq() local
578 host->mrq, msk_int, idma_int); in sunxi_mmc_irq()
580 mrq = host->mrq; in sunxi_mmc_irq()
581 if (mrq) { in sunxi_mmc_irq()
612 mmc_request_done(host->mmc, mrq); in sunxi_mmc_irq()
623 struct mmc_request *mrq; in sunxi_mmc_handle_manual_stop() local
627 mrq = host->manual_stop_mrq; in sunxi_mmc_handle_manual_stop()
630 if (!mrq) { in sunxi_mmc_handle_manual_stop()
645 sunxi_mmc_send_manual_stop(host, mrq); in sunxi_mmc_handle_manual_stop()
651 mmc_request_done(host->mmc, mrq); in sunxi_mmc_handle_manual_stop()
1004 static void sunxi_mmc_request(struct mmc_host *mmc, struct mmc_request *mrq) in sunxi_mmc_request() argument
1007 struct mmc_command *cmd = mrq->cmd; in sunxi_mmc_request()
1008 struct mmc_data *data = mrq->data; in sunxi_mmc_request()
1017 mrq->cmd->error = host->ferror; in sunxi_mmc_request()
1018 mmc_request_done(mmc, mrq); in sunxi_mmc_request()
1028 mmc_request_done(mmc, mrq); in sunxi_mmc_request()
1068 mrq->data ? mrq->data->blksz * mrq->data->blocks : 0); in sunxi_mmc_request()
1072 if (host->mrq || host->manual_stop_mrq) { in sunxi_mmc_request()
1080 mrq->cmd->error = -EBUSY; in sunxi_mmc_request()
1081 mmc_request_done(mmc, mrq); in sunxi_mmc_request()
1091 host->mrq = mrq; in sunxi_mmc_request()