Lines Matching refs:cmd

124 				  struct mmc_cmd *cmd,  in tegra_mmc_wait_inhibit()  argument
139 if ((data == NULL) && (cmd->resp_type & MMC_RSP_BUSY)) in tegra_mmc_wait_inhibit()
154 static int tegra_mmc_send_cmd_bounced(struct udevice *dev, struct mmc_cmd *cmd, in tegra_mmc_send_cmd_bounced() argument
165 result = tegra_mmc_wait_inhibit(priv, cmd, data, 10 /* ms */); in tegra_mmc_send_cmd_bounced()
173 debug("cmd->arg: %08x\n", cmd->cmdarg); in tegra_mmc_send_cmd_bounced()
174 writel(cmd->cmdarg, &priv->reg->argument); in tegra_mmc_send_cmd_bounced()
179 if ((cmd->resp_type & MMC_RSP_136) && (cmd->resp_type & MMC_RSP_BUSY)) in tegra_mmc_send_cmd_bounced()
194 if (!(cmd->resp_type & MMC_RSP_PRESENT)) in tegra_mmc_send_cmd_bounced()
196 else if (cmd->resp_type & MMC_RSP_136) in tegra_mmc_send_cmd_bounced()
198 else if (cmd->resp_type & MMC_RSP_BUSY) in tegra_mmc_send_cmd_bounced()
203 if (cmd->resp_type & MMC_RSP_CRC) in tegra_mmc_send_cmd_bounced()
205 if (cmd->resp_type & MMC_RSP_OPCODE) in tegra_mmc_send_cmd_bounced()
210 debug("cmd: %d\n", cmd->cmdidx); in tegra_mmc_send_cmd_bounced()
212 writew((cmd->cmdidx << 8) | flags, &priv->reg->cmdreg); in tegra_mmc_send_cmd_bounced()
232 debug("timeout: %08x cmd %d\n", mask, cmd->cmdidx); in tegra_mmc_send_cmd_bounced()
237 debug("error: %08x cmd %d\n", mask, cmd->cmdidx); in tegra_mmc_send_cmd_bounced()
242 if (cmd->resp_type & MMC_RSP_PRESENT) { in tegra_mmc_send_cmd_bounced()
243 if (cmd->resp_type & MMC_RSP_136) { in tegra_mmc_send_cmd_bounced()
248 cmd->response[i] = readl(offset) << 8; in tegra_mmc_send_cmd_bounced()
251 cmd->response[i] |= in tegra_mmc_send_cmd_bounced()
255 i, cmd->response[i]); in tegra_mmc_send_cmd_bounced()
257 } else if (cmd->resp_type & MMC_RSP_BUSY) { in tegra_mmc_send_cmd_bounced()
271 cmd->response[0] = readl(&priv->reg->rspreg0); in tegra_mmc_send_cmd_bounced()
272 debug("cmd->resp[0]: %08x\n", cmd->response[0]); in tegra_mmc_send_cmd_bounced()
274 cmd->response[0] = readl(&priv->reg->rspreg0); in tegra_mmc_send_cmd_bounced()
275 debug("cmd->resp[0]: %08x\n", cmd->response[0]); in tegra_mmc_send_cmd_bounced()
327 static int tegra_mmc_send_cmd(struct udevice *dev, struct mmc_cmd *cmd, in tegra_mmc_send_cmd() argument
349 ret = tegra_mmc_send_cmd_bounced(dev, cmd, data, &bbstate); in tegra_mmc_send_cmd()