Lines Matching refs:cmd

149 	host->cmd = NULL;  in toshsd_finish_request()
167 if (host->cmd) { in toshsd_thread_irq()
168 host->cmd->error = -EIO; in toshsd_thread_irq()
207 struct mmc_command *cmd = host->cmd; in toshsd_cmd_irq() local
211 if (!host->cmd) { in toshsd_cmd_irq()
215 buf = (u8 *)cmd->resp; in toshsd_cmd_irq()
216 host->cmd = NULL; in toshsd_cmd_irq()
218 if (cmd->flags & MMC_RSP_PRESENT && cmd->flags & MMC_RSP_136) { in toshsd_cmd_irq()
244 } else if (cmd->flags & MMC_RSP_PRESENT) { in toshsd_cmd_irq()
255 cmd->opcode, cmd->error, cmd->flags); in toshsd_cmd_irq()
348 if (host->cmd) in toshsd_irq()
349 host->cmd->error = error; in toshsd_irq()
402 static void toshsd_start_cmd(struct toshsd_host *host, struct mmc_command *cmd) in toshsd_start_cmd() argument
405 int c = cmd->opcode; in toshsd_start_cmd()
407 dev_dbg(&host->pdev->dev, "Command opcode: %d\n", cmd->opcode); in toshsd_start_cmd()
409 if (cmd->opcode == MMC_STOP_TRANSMISSION) { in toshsd_start_cmd()
413 cmd->resp[0] = cmd->opcode; in toshsd_start_cmd()
414 cmd->resp[1] = 0; in toshsd_start_cmd()
415 cmd->resp[2] = 0; in toshsd_start_cmd()
416 cmd->resp[3] = 0; in toshsd_start_cmd()
422 switch (mmc_resp_type(cmd)) { in toshsd_start_cmd()
442 mmc_resp_type(cmd)); in toshsd_start_cmd()
446 host->cmd = cmd; in toshsd_start_cmd()
448 if (cmd->opcode == MMC_APP_CMD) in toshsd_start_cmd()
451 if (cmd->opcode == MMC_GO_IDLE_STATE) in toshsd_start_cmd()
470 iowrite32(cmd->arg, host->ioaddr + SD_ARG0); in toshsd_start_cmd()
503 mrq->cmd->error = -ENOMEDIUM; in toshsd_request()
519 toshsd_start_cmd(host, mrq->cmd); in toshsd_request()