Lines Matching refs:cmd
98 struct mmc_cmd *cmd) in meson_mmc_setup_cmd() argument
102 meson_mmc_cmd |= cmd->cmdidx << CMD_CFG_CMD_INDEX_SHIFT; in meson_mmc_setup_cmd()
104 if (cmd->resp_type & MMC_RSP_PRESENT) { in meson_mmc_setup_cmd()
105 if (cmd->resp_type & MMC_RSP_136) in meson_mmc_setup_cmd()
108 if (cmd->resp_type & MMC_RSP_BUSY) in meson_mmc_setup_cmd()
111 if (!(cmd->resp_type & MMC_RSP_CRC)) in meson_mmc_setup_cmd()
160 static void meson_mmc_read_response(struct mmc *mmc, struct mmc_cmd *cmd) in meson_mmc_read_response() argument
162 if (cmd->resp_type & MMC_RSP_136) { in meson_mmc_read_response()
163 cmd->response[0] = meson_read(mmc, MESON_SD_EMMC_CMD_RSP3); in meson_mmc_read_response()
164 cmd->response[1] = meson_read(mmc, MESON_SD_EMMC_CMD_RSP2); in meson_mmc_read_response()
165 cmd->response[2] = meson_read(mmc, MESON_SD_EMMC_CMD_RSP1); in meson_mmc_read_response()
166 cmd->response[3] = meson_read(mmc, MESON_SD_EMMC_CMD_RSP); in meson_mmc_read_response()
168 cmd->response[0] = meson_read(mmc, MESON_SD_EMMC_CMD_RSP); in meson_mmc_read_response()
172 static int meson_dm_mmc_send_cmd(struct udevice *dev, struct mmc_cmd *cmd, in meson_dm_mmc_send_cmd() argument
185 meson_mmc_setup_cmd(mmc, data, cmd); in meson_dm_mmc_send_cmd()
188 meson_write(mmc, cmd->cmdarg, MESON_SD_EMMC_CMD_ARG); in meson_dm_mmc_send_cmd()
203 meson_mmc_read_response(mmc, cmd); in meson_dm_mmc_send_cmd()