Lines Matching refs:cmd

281 		int opc = host->mrq ? host->mrq->cmd->opcode : -1;  in usdhi6_error_code()
299 err, host->wait, host->mrq ? host->mrq->cmd->opcode : -1); in usdhi6_error_code()
321 __func__, host->mrq->cmd->opcode, data->sg_len, in usdhi6_blk_bounce()
389 sg->offset, host->mrq->cmd->opcode, host->mrq); in usdhi6_sg_map()
512 host->mrq->cmd->opcode, host->mrq); in usdhi6_sg_advance()
560 mrq->cmd->opcode); in usdhi6_dma_complete()
879 ticks = host->rate / 1000 * mrq->cmd->busy_timeout; in usdhi6_timeout_set()
908 host->pg.page, host->head_pg.page, host->wait, mrq->cmd->opcode, in usdhi6_request_done()
914 if (mrq->cmd->error || in usdhi6_request_done()
918 __func__, mrq->cmd->opcode, data ? data->blocks : 0, in usdhi6_request_done()
920 mrq->cmd->error, in usdhi6_request_done()
935 struct mmc_command *cmd = mrq->cmd; in usdhi6_cmd_flags() local
936 u16 opc = cmd->opcode; in usdhi6_cmd_flags()
949 if (cmd->opcode == MMC_READ_MULTIPLE_BLOCK || in usdhi6_cmd_flags()
950 cmd->opcode == MMC_WRITE_MULTIPLE_BLOCK || in usdhi6_cmd_flags()
951 (cmd->opcode == SD_IO_RW_EXTENDED && in usdhi6_cmd_flags()
958 switch (mmc_resp_type(cmd)) { in usdhi6_cmd_flags()
977 mmc_resp_type(cmd)); in usdhi6_cmd_flags()
988 struct mmc_command *cmd = mrq->cmd; in usdhi6_rq_start() local
1013 if (cmd->opcode == SD_IO_RW_EXTENDED && data->blocks > 1) { in usdhi6_rq_start()
1027 } else if ((cmd->opcode == MMC_READ_MULTIPLE_BLOCK || in usdhi6_rq_start()
1028 cmd->opcode == MMC_WRITE_MULTIPLE_BLOCK) && in usdhi6_rq_start()
1039 if (cmd->opcode == MMC_READ_MULTIPLE_BLOCK || in usdhi6_rq_start()
1040 cmd->opcode == MMC_WRITE_MULTIPLE_BLOCK || in usdhi6_rq_start()
1041 (cmd->opcode == SD_IO_RW_EXTENDED && in usdhi6_rq_start()
1065 __func__, cmd->opcode, data->blocks, data->blksz, in usdhi6_rq_start()
1071 __func__, cmd->opcode); in usdhi6_rq_start()
1083 usdhi6_write(host, USDHI6_SD_ARG, cmd->arg); in usdhi6_rq_start()
1104 mrq->cmd->error = ret; in usdhi6_request()
1212 struct mmc_command *cmd = host->mrq->stop; in usdhi6_resp_cmd12() local
1213 cmd->resp[0] = usdhi6_read(host, USDHI6_SD_RSP10); in usdhi6_resp_cmd12()
1218 struct mmc_command *cmd = host->mrq->cmd; in usdhi6_resp_read() local
1219 u32 *rsp = cmd->resp, tmp = 0; in usdhi6_resp_read()
1236 if (mmc_resp_type(cmd) == MMC_RSP_NONE) in usdhi6_resp_read()
1241 "CMD%d: response expected but is missing!\n", cmd->opcode); in usdhi6_resp_read()
1245 if (mmc_resp_type(cmd) & MMC_RSP_136) in usdhi6_resp_read()
1252 else if (cmd->opcode == MMC_READ_MULTIPLE_BLOCK || in usdhi6_resp_read()
1253 cmd->opcode == MMC_WRITE_MULTIPLE_BLOCK) in usdhi6_resp_read()
1349 switch (mrq->cmd->opcode) { in usdhi6_stop_cmd()
1360 mrq->stop->opcode, mrq->cmd->opcode); in usdhi6_stop_cmd()
1370 struct mmc_command *cmd = mrq->cmd; in usdhi6_end_cmd() local
1373 cmd->error = usdhi6_error_code(host); in usdhi6_end_cmd()
1389 if (cmd->opcode == MMC_READ_MULTIPLE_BLOCK || in usdhi6_end_cmd()
1390 (cmd->opcode == SD_IO_RW_EXTENDED && in usdhi6_end_cmd()
1396 if (cmd->opcode == MMC_WRITE_MULTIPLE_BLOCK || in usdhi6_end_cmd()
1397 (cmd->opcode == SD_IO_RW_EXTENDED && in usdhi6_end_cmd()
1472 struct mmc_command *cmd; in usdhi6_sd_bh() local
1482 cmd = mrq->cmd; in usdhi6_sd_bh()
1534 cmd->error = -EFAULT; in usdhi6_sd_bh()
1548 if (!cmd->error) { in usdhi6_sd_bh()
1571 } else if (cmd->opcode == MMC_APP_CMD) { in usdhi6_sd_bh()
1692 host->wait, mrq ? mrq->cmd->opcode : -1, in usdhi6_timeout_work()
1708 mrq->cmd->error = -ETIMEDOUT; in usdhi6_timeout_work()