Lines Matching refs:cmd
192 struct mmc_cmd *cmd, struct mmc_data *data) in jz_mmc_send_cmd() argument
207 writel(cmd->cmdidx, priv->regs + MSC_CMD); in jz_mmc_send_cmd()
208 writel(cmd->cmdarg, priv->regs + MSC_ARG); in jz_mmc_send_cmd()
224 switch (cmd->resp_type) { in jz_mmc_send_cmd()
241 if (cmd->resp_type & MMC_RSP_BUSY) in jz_mmc_send_cmd()
287 if (cmd->resp_type & MMC_RSP_PRESENT) { in jz_mmc_send_cmd()
289 if (cmd->resp_type & MMC_RSP_136) { in jz_mmc_send_cmd()
296 cmd->response[i] = in jz_mmc_send_cmd()
301 cmd->response[0] = readw(priv->regs + MSC_RES) << 24; in jz_mmc_send_cmd()
302 cmd->response[0] |= readw(priv->regs + MSC_RES) << 8; in jz_mmc_send_cmd()
303 cmd->response[0] |= readw(priv->regs + MSC_RES) & 0xff; in jz_mmc_send_cmd()
367 static int jz_mmc_legacy_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, in jz_mmc_legacy_send_cmd() argument
372 return jz_mmc_send_cmd(mmc, priv, cmd, data); in jz_mmc_legacy_send_cmd()
421 static int jz_mmc_dm_send_cmd(struct udevice *dev, struct mmc_cmd *cmd, in jz_mmc_dm_send_cmd() argument
427 return jz_mmc_send_cmd(mmc, priv, cmd, data); in jz_mmc_dm_send_cmd()