Lines Matching refs:mrq
120 struct mmc_request *mrq; member
147 return cmd->mrq->cmd; in meson_mx_mmc_get_next_cmd()
149 (!cmd->mrq->sbc || cmd->error || cmd->data->error)) in meson_mx_mmc_get_next_cmd()
150 return cmd->mrq->stop; in meson_mx_mmc_get_next_cmd()
245 struct mmc_request *mrq; in meson_mx_mmc_request_done() local
247 mrq = host->mrq; in meson_mx_mmc_request_done()
252 host->mrq = NULL; in meson_mx_mmc_request_done()
255 mmc_request_done(host->mmc, mrq); in meson_mx_mmc_request_done()
310 static int meson_mx_mmc_map_dma(struct mmc_host *mmc, struct mmc_request *mrq) in meson_mx_mmc_map_dma() argument
312 struct mmc_data *data = mrq->data; in meson_mx_mmc_map_dma()
337 static void meson_mx_mmc_request(struct mmc_host *mmc, struct mmc_request *mrq) in meson_mx_mmc_request() argument
340 struct mmc_command *cmd = mrq->cmd; in meson_mx_mmc_request()
343 host->error = meson_mx_mmc_map_dma(mmc, mrq); in meson_mx_mmc_request()
347 mmc_request_done(mmc, mrq); in meson_mx_mmc_request()
351 host->mrq = mrq; in meson_mx_mmc_request()
353 if (mrq->data) in meson_mx_mmc_request()
354 writel(sg_dma_address(mrq->data->sg), in meson_mx_mmc_request()
357 if (mrq->sbc) in meson_mx_mmc_request()
358 meson_mx_mmc_start_cmd(mmc, mrq->sbc); in meson_mx_mmc_request()
360 meson_mx_mmc_start_cmd(mmc, mrq->cmd); in meson_mx_mmc_request()