Lines Matching refs:cmd
198 writel(MMC_CMD0, &mmc_base->cmd); in mmc_init_stream()
208 writel(MMC_CMD0, &mmc_base->cmd) in mmc_init_stream()
330 static int omap_hsmmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, argument
335 static int omap_hsmmc_send_cmd(struct udevice *dev, struct mmc_cmd *cmd,
377 if (cmd->cmdidx == SD_CMD_APP_SEND_SCR)
380 if (!(cmd->resp_type & MMC_RSP_PRESENT))
382 else if (cmd->resp_type & MMC_RSP_136)
384 else if (cmd->resp_type & MMC_RSP_BUSY)
393 if (cmd->resp_type & MMC_RSP_CRC)
395 if (cmd->resp_type & MMC_RSP_OPCODE)
399 if ((cmd->cmdidx == MMC_CMD_READ_MULTIPLE_BLOCK) ||
400 (cmd->cmdidx == MMC_CMD_WRITE_MULTIPLE_BLOCK)) {
414 writel(cmd->cmdarg, &mmc_base->arg);
416 writel((cmd->cmdidx << 24) | flags, &mmc_base->cmd);
435 if (cmd->resp_type & MMC_RSP_PRESENT) {
436 if (cmd->resp_type & MMC_RSP_136) {
438 cmd->response[3] = readl(&mmc_base->rsp10);
439 cmd->response[2] = readl(&mmc_base->rsp32);
440 cmd->response[1] = readl(&mmc_base->rsp54);
441 cmd->response[0] = readl(&mmc_base->rsp76);
444 cmd->response[0] = readl(&mmc_base->rsp10);