Lines Matching refs:cmd

354 static int dwmci_send_cmd(struct udevice *dev, struct mmc_cmd *cmd,  argument
359 static int dwmci_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd,
408 dwmci_writel(host, DWMCI_CMDARG, cmd->cmdarg);
413 if ((cmd->resp_type & MMC_RSP_136) && (cmd->resp_type & MMC_RSP_BUSY))
416 if (cmd->cmdidx == MMC_CMD_STOP_TRANSMISSION)
418 else if (cmd->cmdidx == MMC_CMD_GO_IDLE_STATE)
423 if (cmd->resp_type & MMC_RSP_PRESENT) {
425 if (cmd->resp_type & MMC_RSP_136)
429 if (cmd->resp_type & MMC_RSP_CRC)
432 flags |= (cmd->cmdidx | DWMCI_CMD_START | DWMCI_CMD_USE_HOLD_REG);
434 debug("Sending CMD%d\n",cmd->cmdidx);
471 if (cmd->resp_type & MMC_RSP_PRESENT) {
472 if (cmd->resp_type & MMC_RSP_136) {
473 cmd->response[0] = dwmci_readl(host, DWMCI_RESP3);
474 cmd->response[1] = dwmci_readl(host, DWMCI_RESP2);
475 cmd->response[2] = dwmci_readl(host, DWMCI_RESP1);
476 cmd->response[3] = dwmci_readl(host, DWMCI_RESP0);
478 cmd->response[0] = dwmci_readl(host, DWMCI_RESP0);
499 static int dwmci_send_cmd_prepare(struct udevice *dev, struct mmc_cmd *cmd, argument
504 static int dwmci_send_cmd_prepare(struct mmc *mmc, struct mmc_cmd *cmd,
558 dwmci_writel(host, DWMCI_CMDARG, cmd->cmdarg);
563 if ((cmd->resp_type & MMC_RSP_136) && (cmd->resp_type & MMC_RSP_BUSY))
566 if (cmd->cmdidx == MMC_CMD_STOP_TRANSMISSION)
571 if (cmd->resp_type & MMC_RSP_PRESENT) {
573 if (cmd->resp_type & MMC_RSP_136)
577 if (cmd->resp_type & MMC_RSP_CRC)
580 flags |= (cmd->cmdidx | DWMCI_CMD_START | DWMCI_CMD_USE_HOLD_REG);
582 debug("Sending CMD%d\n", cmd->cmdidx);
618 if (cmd->resp_type & MMC_RSP_PRESENT) {
619 if (cmd->resp_type & MMC_RSP_136) {
620 cmd->response[0] = dwmci_readl(host, DWMCI_RESP3);
621 cmd->response[1] = dwmci_readl(host, DWMCI_RESP2);
622 cmd->response[2] = dwmci_readl(host, DWMCI_RESP1);
623 cmd->response[3] = dwmci_readl(host, DWMCI_RESP0);
625 cmd->response[0] = dwmci_readl(host, DWMCI_RESP0);