• Home
  • Raw
  • Download

Lines Matching refs:mrq

158 	struct mmc_request *mrq;  member
280 int opc = host->mrq ? host->mrq->cmd->opcode : -1; in usdhi6_error_code()
298 err, host->wait, host->mrq ? host->mrq->cmd->opcode : -1); in usdhi6_error_code()
316 struct mmc_data *data = host->mrq->data; in usdhi6_blk_bounce()
320 __func__, host->mrq->cmd->opcode, data->sg_len, in usdhi6_blk_bounce()
343 struct mmc_request *mrq = host->mrq; in usdhi6_sg_prep() local
344 struct mmc_data *data = mrq->data; in usdhi6_sg_prep()
356 struct mmc_data *data = host->mrq->data; in usdhi6_sg_map()
388 sg->offset, host->mrq->cmd->opcode, host->mrq); in usdhi6_sg_map()
396 struct mmc_data *data = host->mrq->data; in usdhi6_sg_unmap()
436 struct mmc_data *data = host->mrq->data; in usdhi6_sg_advance()
511 host->mrq->cmd->opcode, host->mrq); in usdhi6_sg_advance()
533 struct mmc_data *data = host->mrq->data; in usdhi6_dma_stop_unmap()
552 struct mmc_request *mrq = host->mrq; in usdhi6_dma_complete() local
554 if (WARN(!mrq || !mrq->data, "%s: NULL data in DMA completion for %p!\n", in usdhi6_dma_complete()
555 dev_name(mmc_dev(host->mmc)), mrq)) in usdhi6_dma_complete()
559 mrq->cmd->opcode); in usdhi6_dma_complete()
562 usdhi6_wait_for_brwe(host, mrq->data->flags & MMC_DATA_READ); in usdhi6_dma_complete()
568 struct mmc_data *data = host->mrq->data; in usdhi6_dma_setup()
619 if (host->mrq->data->flags & MMC_DATA_READ) in usdhi6_dma_start()
627 struct mmc_data *data = host->mrq->data; in usdhi6_dma_kill()
640 struct mmc_data *data = host->mrq->data; in usdhi6_dma_check_error()
666 if (host->mrq->data->flags & MMC_DATA_READ) in usdhi6_dma_kick()
869 struct mmc_request *mrq = host->mrq; in usdhi6_timeout_set() local
873 if (!mrq->data) in usdhi6_timeout_set()
874 ticks = host->rate / 1000 * mrq->cmd->busy_timeout; in usdhi6_timeout_set()
876 ticks = host->rate / 1000000 * (mrq->data->timeout_ns / 1000) + in usdhi6_timeout_set()
877 mrq->data->timeout_clks; in usdhi6_timeout_set()
889 mrq->data ? "data" : "cmd", ticks, host->rate); in usdhi6_timeout_set()
898 struct mmc_request *mrq = host->mrq; in usdhi6_request_done() local
899 struct mmc_data *data = mrq->data; in usdhi6_request_done()
903 host->pg.page, host->head_pg.page, host->wait, mrq->cmd->opcode, in usdhi6_request_done()
909 if (mrq->cmd->error || in usdhi6_request_done()
911 (mrq->stop && mrq->stop->error)) in usdhi6_request_done()
913 __func__, mrq->cmd->opcode, data ? data->blocks : 0, in usdhi6_request_done()
915 mrq->cmd->error, in usdhi6_request_done()
917 mrq->stop ? mrq->stop->error : 1); in usdhi6_request_done()
922 host->mrq = NULL; in usdhi6_request_done()
924 mmc_request_done(host->mmc, mrq); in usdhi6_request_done()
929 struct mmc_request *mrq = host->mrq; in usdhi6_cmd_flags() local
930 struct mmc_command *cmd = mrq->cmd; in usdhi6_cmd_flags()
938 if (mrq->data) { in usdhi6_cmd_flags()
941 if (mrq->data->flags & MMC_DATA_READ) in usdhi6_cmd_flags()
947 mrq->data->blocks > 1)) { in usdhi6_cmd_flags()
949 if (!mrq->stop) in usdhi6_cmd_flags()
982 struct mmc_request *mrq = host->mrq; in usdhi6_rq_start() local
983 struct mmc_command *cmd = mrq->cmd; in usdhi6_rq_start()
984 struct mmc_data *data = mrq->data; in usdhi6_rq_start()
1016 if (mrq->stop) in usdhi6_rq_start()
1063 data->sg->offset, mrq->stop ? " + stop" : ""); in usdhi6_rq_start()
1086 static void usdhi6_request(struct mmc_host *mmc, struct mmc_request *mrq) in usdhi6_request() argument
1093 host->mrq = mrq; in usdhi6_request()
1099 mrq->cmd->error = ret; in usdhi6_request()
1198 struct mmc_command *cmd = host->mrq->stop; in usdhi6_resp_cmd12()
1204 struct mmc_command *cmd = host->mrq->cmd; in usdhi6_resp_read()
1250 struct mmc_data *data = host->mrq->data; in usdhi6_blk_read()
1290 struct mmc_data *data = host->mrq->data; in usdhi6_blk_write()
1333 struct mmc_request *mrq = host->mrq; in usdhi6_stop_cmd() local
1335 switch (mrq->cmd->opcode) { in usdhi6_stop_cmd()
1338 if (mrq->stop->opcode == MMC_STOP_TRANSMISSION) { in usdhi6_stop_cmd()
1346 mrq->stop->opcode, mrq->cmd->opcode); in usdhi6_stop_cmd()
1347 mrq->stop->error = -EOPNOTSUPP; in usdhi6_stop_cmd()
1355 struct mmc_request *mrq = host->mrq; in usdhi6_end_cmd() local
1356 struct mmc_command *cmd = mrq->cmd; in usdhi6_end_cmd()
1365 if (!mrq->data) in usdhi6_end_cmd()
1370 if (!mrq->stop) in usdhi6_end_cmd()
1374 } else if (mrq->data->flags & MMC_DATA_READ) { in usdhi6_end_cmd()
1377 mrq->data->blocks > 1)) in usdhi6_end_cmd()
1384 mrq->data->blocks > 1)) in usdhi6_end_cmd()
1421 return !host->mrq->data->error && in usdhi6_mread_block()
1422 (host->wait != USDHI6_WAIT_FOR_DATA_END || !host->mrq->stop); in usdhi6_mread_block()
1448 return !host->mrq->data->error && in usdhi6_mwrite_block()
1449 (host->wait != USDHI6_WAIT_FOR_DATA_END || !host->mrq->stop); in usdhi6_mwrite_block()
1457 struct mmc_request *mrq; in usdhi6_sd_bh() local
1464 mrq = host->mrq; in usdhi6_sd_bh()
1465 if (!mrq) in usdhi6_sd_bh()
1468 cmd = mrq->cmd; in usdhi6_sd_bh()
1469 data = mrq->data; in usdhi6_sd_bh()
1502 if (mrq->stop) in usdhi6_sd_bh()
1503 mrq->stop->error = ret; in usdhi6_sd_bh()
1505 mrq->data->error = ret; in usdhi6_sd_bh()
1510 mrq->stop->error = 0; in usdhi6_sd_bh()
1514 mrq->data->error = usdhi6_error_code(host); in usdhi6_sd_bh()
1516 mrq->data->error); in usdhi6_sd_bh()
1530 usdhi6_wait_for_brwe(host, mrq->data->flags & MMC_DATA_READ); in usdhi6_sd_bh()
1538 host->mrq->stop && in usdhi6_sd_bh()
1539 !host->mrq->stop->error && in usdhi6_sd_bh()
1671 struct mmc_request *mrq = host->mrq; in usdhi6_timeout_work() local
1672 struct mmc_data *data = mrq ? mrq->data : NULL; in usdhi6_timeout_work()
1678 host->wait, mrq ? mrq->cmd->opcode : -1, in usdhi6_timeout_work()
1693 if (mrq) in usdhi6_timeout_work()
1694 mrq->cmd->error = -ETIMEDOUT; in usdhi6_timeout_work()
1698 mrq->stop->error = -ETIMEDOUT; in usdhi6_timeout_work()
1718 if (mrq) in usdhi6_timeout_work()