Lines Matching refs:cmd
117 struct mmc_command *cmd; member
174 struct mmc_command *cmd, in owl_mmc_send_cmd() argument
183 switch (mmc_resp_type(cmd)) { in owl_mmc_send_cmd()
218 cmd->error = -EINVAL; in owl_mmc_send_cmd()
226 writel(cmd->arg, owl_host->base + OWL_REG_SD_ARG); in owl_mmc_send_cmd()
227 writel(cmd->opcode, owl_host->base + OWL_REG_SD_CMD); in owl_mmc_send_cmd()
237 owl_host->cmd = cmd; in owl_mmc_send_cmd()
245 timeout = msecs_to_jiffies(cmd->busy_timeout ? cmd->busy_timeout : in owl_mmc_send_cmd()
250 cmd->error = -ETIMEDOUT; in owl_mmc_send_cmd()
255 if (mmc_resp_type(cmd) & MMC_RSP_PRESENT) { in owl_mmc_send_cmd()
259 cmd->error = -EILSEQ; in owl_mmc_send_cmd()
265 cmd->error = -EILSEQ; in owl_mmc_send_cmd()
270 if (mmc_resp_type(cmd) & MMC_RSP_136) { in owl_mmc_send_cmd()
271 cmd->resp[3] = readl(owl_host->base + OWL_REG_SD_RSPBUF0); in owl_mmc_send_cmd()
272 cmd->resp[2] = readl(owl_host->base + OWL_REG_SD_RSPBUF1); in owl_mmc_send_cmd()
273 cmd->resp[1] = readl(owl_host->base + OWL_REG_SD_RSPBUF2); in owl_mmc_send_cmd()
274 cmd->resp[0] = readl(owl_host->base + OWL_REG_SD_RSPBUF3); in owl_mmc_send_cmd()
278 cmd->resp[0] = resp[1] << 24 | resp[0] >> 8; in owl_mmc_send_cmd()
279 cmd->resp[1] = resp[1] >> 8; in owl_mmc_send_cmd()
359 owl_mmc_send_cmd(owl_host, mrq->cmd, data); in owl_mmc_request()
365 mrq->cmd->error = -ETIMEDOUT; in owl_mmc_request()
373 mrq->cmd->error = -ETIMEDOUT; in owl_mmc_request()