Lines Matching refs:cmd

298 	struct mmc_command *cmd;  member
510 struct mmc_command *cmd) in via_sdc_get_response() argument
518 if (cmd->flags & MMC_RSP_136) { in via_sdc_get_response()
519 cmd->resp[0] = ((u8) (dwdata1)) | in via_sdc_get_response()
524 cmd->resp[1] = ((u8) (dwdata2)) | in via_sdc_get_response()
529 cmd->resp[2] = ((u8) (dwdata3)) | in via_sdc_get_response()
534 cmd->resp[3] = 0xff | in via_sdc_get_response()
540 cmd->resp[0] = ((dwdata0 & 0xff) << 24) | in via_sdc_get_response()
545 cmd->resp[1] = ((dwdata1 & 0xff) << 24) | in via_sdc_get_response()
552 struct mmc_command *cmd) in via_sdc_send_command() argument
559 WARN_ON(host->cmd); in via_sdc_send_command()
561 data = cmd->data; in via_sdc_send_command()
562 host->cmd = cmd; in via_sdc_send_command()
564 timeout_ms = cmd->busy_timeout ? cmd->busy_timeout : VIA_CMD_TIMEOUT_MS; in via_sdc_send_command()
568 cmdctrl = cmd->opcode << 8; in via_sdc_send_command()
571 switch (mmc_resp_type(cmd)) { in via_sdc_send_command()
592 if (!(cmd->data)) in via_sdc_send_command()
615 if (cmd == host->mrq->stop) in via_sdc_send_command()
621 writel(cmd->arg, addrbase + VIA_CRDR_SDCARG); in via_sdc_send_command()
651 via_sdc_get_response(host, host->cmd); in via_sdc_finish_command()
653 host->cmd->error = 0; in via_sdc_finish_command()
655 if (!host->cmd->data) in via_sdc_finish_command()
658 host->cmd = NULL; in via_sdc_finish_command()
684 host->mrq->cmd->error = -ENOMEDIUM; in via_sdc_request()
687 via_sdc_send_command(host, mrq->cmd); in via_sdc_request()
838 if (!host->cmd) { in via_sdc_cmd_isr()
846 host->cmd->error = -ETIMEDOUT; in via_sdc_cmd_isr()
848 host->cmd->error = -EILSEQ; in via_sdc_cmd_isr()
850 if (host->cmd->error) in via_sdc_cmd_isr()
946 sdhost->mrq->cmd->opcode); in via_sdc_timeout()
954 if (sdhost->cmd) in via_sdc_timeout()
955 sdhost->cmd->error = -ETIMEDOUT; in via_sdc_timeout()
957 sdhost->mrq->cmd->error = -ETIMEDOUT; in via_sdc_timeout()
978 host->cmd = NULL; in via_sdc_tasklet_finish()
1009 host->mrq->cmd->error = -ENOMEDIUM; in via_sdc_card_detect()
1195 sdhost->mrq->cmd->error = -ENOMEDIUM; in via_sd_remove()