Lines Matching refs:cmd
168 struct mmc_command *cmd; member
268 struct mmc_command *cmd) in mmc_davinci_start_command() argument
274 cmd->opcode, cmd->arg, in mmc_davinci_start_command()
276 switch (mmc_resp_type(cmd)) { in mmc_davinci_start_command()
293 host->cmd = cmd; in mmc_davinci_start_command()
295 switch (mmc_resp_type(cmd)) { in mmc_davinci_start_command()
315 mmc_resp_type(cmd)); in mmc_davinci_start_command()
320 cmd_reg |= cmd->opcode; in mmc_davinci_start_command()
331 if (cmd->data) in mmc_davinci_start_command()
365 writel(cmd->arg, host->base + DAVINCI_MMCARGHL); in mmc_davinci_start_command()
601 req->cmd->error = -ETIMEDOUT; in mmc_davinci_request()
608 mmc_davinci_start_command(host, req->cmd); in mmc_davinci_request()
791 if (!data->stop || (host->cmd && host->cmd->error)) { in mmc_davinci_xfer_done()
800 struct mmc_command *cmd) in mmc_davinci_cmd_done() argument
802 host->cmd = NULL; in mmc_davinci_cmd_done()
804 if (cmd->flags & MMC_RSP_PRESENT) { in mmc_davinci_cmd_done()
805 if (cmd->flags & MMC_RSP_136) { in mmc_davinci_cmd_done()
807 cmd->resp[3] = readl(host->base + DAVINCI_MMCRSP01); in mmc_davinci_cmd_done()
808 cmd->resp[2] = readl(host->base + DAVINCI_MMCRSP23); in mmc_davinci_cmd_done()
809 cmd->resp[1] = readl(host->base + DAVINCI_MMCRSP45); in mmc_davinci_cmd_done()
810 cmd->resp[0] = readl(host->base + DAVINCI_MMCRSP67); in mmc_davinci_cmd_done()
813 cmd->resp[0] = readl(host->base + DAVINCI_MMCRSP67); in mmc_davinci_cmd_done()
817 if (host->data == NULL || cmd->error) { in mmc_davinci_cmd_done()
818 if (cmd->error == -ETIMEDOUT) in mmc_davinci_cmd_done()
819 cmd->mrq->cmd->retries = 0; in mmc_davinci_cmd_done()
820 mmc_request_done(host->mmc, cmd->mrq); in mmc_davinci_cmd_done()
871 if (host->cmd == NULL && host->data == NULL) { in mmc_davinci_irq()
974 if (host->cmd) { in mmc_davinci_irq()
977 host->cmd->opcode, qstatus); in mmc_davinci_irq()
978 host->cmd->error = -ETIMEDOUT; in mmc_davinci_irq()
990 if (host->cmd) { in mmc_davinci_irq()
991 host->cmd->error = -EILSEQ; in mmc_davinci_irq()
998 end_command = host->cmd ? 1 : 0; in mmc_davinci_irq()
1002 mmc_davinci_cmd_done(host, host->cmd); in mmc_davinci_irq()