Lines Matching refs:mrq
220 return cmd->mrq->cmd; in meson_mmc_get_next_command()
222 (!cmd->mrq->sbc || cmd->error || cmd->data->error)) in meson_mmc_get_next_command()
223 return cmd->mrq->stop; in meson_mmc_get_next_command()
229 struct mmc_request *mrq) in meson_mmc_get_transfer_mode() argument
232 struct mmc_data *data = mrq->data; in meson_mmc_get_transfer_mode()
245 if (data->blocks > 1 || mrq->cmd->opcode == SD_IO_RW_EXTENDED) { in meson_mmc_get_transfer_mode()
288 static void meson_mmc_pre_req(struct mmc_host *mmc, struct mmc_request *mrq) in meson_mmc_pre_req() argument
290 struct mmc_data *data = mrq->data; in meson_mmc_pre_req()
295 meson_mmc_get_transfer_mode(mmc, mrq); in meson_mmc_pre_req()
307 static void meson_mmc_post_req(struct mmc_host *mmc, struct mmc_request *mrq, in meson_mmc_post_req() argument
310 struct mmc_data *data = mrq->data; in meson_mmc_post_req()
653 struct mmc_request *mrq) in meson_mmc_request_done() argument
659 meson_mmc_post_req(mmc, mrq, 0); in meson_mmc_request_done()
660 mmc_request_done(host->mmc, mrq); in meson_mmc_request_done()
873 static void meson_mmc_request(struct mmc_host *mmc, struct mmc_request *mrq) in meson_mmc_request() argument
876 host->needs_pre_post_req = mrq->data && in meson_mmc_request()
877 !(mrq->data->host_cookie & SD_EMMC_PRE_REQ_DONE); in meson_mmc_request()
884 if (host->dram_access_quirk && mrq->data) { in meson_mmc_request()
885 mrq->cmd->error = meson_mmc_validate_dram_access(mmc, mrq->data); in meson_mmc_request()
886 if (mrq->cmd->error) { in meson_mmc_request()
887 mmc_request_done(mmc, mrq); in meson_mmc_request()
893 meson_mmc_get_transfer_mode(mmc, mrq); in meson_mmc_request()
894 if (!meson_mmc_desc_chain_mode(mrq->data)) in meson_mmc_request()
899 meson_mmc_pre_req(mmc, mrq); in meson_mmc_request()
904 meson_mmc_start_cmd(mmc, mrq->sbc ?: mrq->cmd); in meson_mmc_request()
1035 meson_mmc_request_done(host->mmc, cmd->mrq); in meson_mmc_irq_thread()
1055 meson_mmc_request_done(host->mmc, cmd->mrq); in meson_mmc_irq_thread()