Lines Matching refs:mrq

222 	struct mmc_request *mrq;  member
275 struct mmc_request *mrq = host->mrq; in sh_mmcif_dma_complete() local
280 if (WARN(!mrq || !mrq->data, "%s: NULL data in DMA completion!\n", in sh_mmcif_dma_complete()
289 struct mmc_data *data = host->mrq->data; in sh_mmcif_start_dma_rx()
339 struct mmc_data *data = host->mrq->data; in sh_mmcif_start_dma_tx()
604 struct mmc_data *data = host->mrq->data; in sh_mmcif_next_block()
623 struct mmc_request *mrq) in sh_mmcif_single_read() argument
637 struct mmc_data *data = host->mrq->data; in sh_mmcif_read_block()
658 struct mmc_request *mrq) in sh_mmcif_multi_read() argument
660 struct mmc_data *data = mrq->data; in sh_mmcif_multi_read()
679 struct mmc_data *data = host->mrq->data; in sh_mmcif_mread_block()
703 struct mmc_request *mrq) in sh_mmcif_single_write() argument
717 struct mmc_data *data = host->mrq->data; in sh_mmcif_write_block()
738 struct mmc_request *mrq) in sh_mmcif_multi_write() argument
740 struct mmc_data *data = mrq->data; in sh_mmcif_multi_write()
759 struct mmc_data *data = host->mrq->data; in sh_mmcif_mwrite_block()
801 struct mmc_request *mrq) in sh_mmcif_set_cmd() argument
804 struct mmc_data *data = mrq->data; in sh_mmcif_set_cmd()
805 struct mmc_command *cmd = mrq->cmd; in sh_mmcif_set_cmd()
884 struct mmc_request *mrq, u32 opc) in sh_mmcif_data_trans() argument
890 sh_mmcif_multi_read(host, mrq); in sh_mmcif_data_trans()
893 sh_mmcif_multi_write(host, mrq); in sh_mmcif_data_trans()
896 sh_mmcif_single_write(host, mrq); in sh_mmcif_data_trans()
900 sh_mmcif_single_read(host, mrq); in sh_mmcif_data_trans()
909 struct mmc_request *mrq) in sh_mmcif_start_cmd() argument
911 struct mmc_command *cmd = mrq->cmd; in sh_mmcif_start_cmd()
924 if (mrq->data) { in sh_mmcif_start_cmd()
927 mrq->data->blksz); in sh_mmcif_start_cmd()
929 opc = sh_mmcif_set_cmd(host, mrq); in sh_mmcif_start_cmd()
948 struct mmc_request *mrq) in sh_mmcif_stop_cmd() argument
952 switch (mrq->cmd->opcode) { in sh_mmcif_stop_cmd()
961 mrq->stop->error = sh_mmcif_error_manage(host); in sh_mmcif_stop_cmd()
968 static void sh_mmcif_request(struct mmc_host *mmc, struct mmc_request *mrq) in sh_mmcif_request() argument
979 mrq->cmd->error = -EAGAIN; in sh_mmcif_request()
980 mmc_request_done(mmc, mrq); in sh_mmcif_request()
987 host->mrq = mrq; in sh_mmcif_request()
989 sh_mmcif_start_cmd(host, mrq); in sh_mmcif_request()
1083 struct mmc_command *cmd = host->mrq->cmd; in sh_mmcif_end_cmd()
1084 struct mmc_data *data = host->mrq->data; in sh_mmcif_end_cmd()
1129 data->error = sh_mmcif_data_trans(host, host->mrq, cmd->opcode); in sh_mmcif_end_cmd()
1178 struct mmc_request *mrq; in sh_mmcif_irqt() local
1192 mrq = host->mrq; in sh_mmcif_irqt()
1193 if (!mrq) { in sh_mmcif_irqt()
1231 mrq->stop->error = sh_mmcif_error_manage(host); in sh_mmcif_irqt()
1232 dev_dbg(dev, "%s(): %d\n", __func__, mrq->stop->error); in sh_mmcif_irqt()
1235 sh_mmcif_get_cmd12response(host, mrq->stop); in sh_mmcif_irqt()
1236 mrq->stop->error = 0; in sh_mmcif_irqt()
1241 mrq->data->error = sh_mmcif_error_manage(host); in sh_mmcif_irqt()
1242 dev_dbg(dev, "%s(): %d\n", __func__, mrq->data->error); in sh_mmcif_irqt()
1257 struct mmc_data *data = mrq->data; in sh_mmcif_irqt()
1258 if (!mrq->cmd->error && data && !data->error) in sh_mmcif_irqt()
1262 if (mrq->stop && !mrq->cmd->error && (!data || !data->error)) { in sh_mmcif_irqt()
1263 sh_mmcif_stop_cmd(host, mrq); in sh_mmcif_irqt()
1264 if (!mrq->stop->error) { in sh_mmcif_irqt()
1274 host->mrq = NULL; in sh_mmcif_irqt()
1275 mmc_request_done(host->mmc, mrq); in sh_mmcif_irqt()
1305 if (!host->mrq) in sh_mmcif_intr()
1322 struct mmc_request *mrq = host->mrq; in sh_mmcif_timeout_work() local
1337 host->wait_for, mrq->cmd->opcode); in sh_mmcif_timeout_work()
1348 mrq->cmd->error = sh_mmcif_error_manage(host); in sh_mmcif_timeout_work()
1351 mrq->stop->error = sh_mmcif_error_manage(host); in sh_mmcif_timeout_work()
1359 mrq->data->error = sh_mmcif_error_manage(host); in sh_mmcif_timeout_work()
1367 host->mrq = NULL; in sh_mmcif_timeout_work()
1368 mmc_request_done(host->mmc, mrq); in sh_mmcif_timeout_work()