Lines Matching refs:cmd

52 	struct mmc_command		*cmd;  member
121 struct mmc_command *cmd);
125 struct mmc_command *cmd = host->cmd; in mxs_mmc_request_done() local
130 if (mmc_resp_type(cmd) & MMC_RSP_PRESENT) { in mxs_mmc_request_done()
131 if (mmc_resp_type(cmd) & MMC_RSP_136) { in mxs_mmc_request_done()
132 cmd->resp[3] = readl(ssp->base + HW_SSP_SDRESP0(ssp)); in mxs_mmc_request_done()
133 cmd->resp[2] = readl(ssp->base + HW_SSP_SDRESP1(ssp)); in mxs_mmc_request_done()
134 cmd->resp[1] = readl(ssp->base + HW_SSP_SDRESP2(ssp)); in mxs_mmc_request_done()
135 cmd->resp[0] = readl(ssp->base + HW_SSP_SDRESP3(ssp)); in mxs_mmc_request_done()
137 cmd->resp[0] = readl(ssp->base + HW_SSP_SDRESP0(ssp)); in mxs_mmc_request_done()
141 if (cmd == mrq->sbc) { in mxs_mmc_request_done()
143 mxs_mmc_start_cmd(host, mrq->cmd); in mxs_mmc_request_done()
178 struct mmc_command *cmd = host->cmd; in mxs_mmc_irq_handler() local
195 cmd->error = -ETIMEDOUT; in mxs_mmc_irq_handler()
197 cmd->error = -EIO; in mxs_mmc_irq_handler()
251 struct mmc_command *cmd = host->cmd; in mxs_mmc_bc() local
256 cmd0 = BF_SSP(cmd->opcode, CMD0_CMD) | BM_SSP_CMD0_APPEND_8CYC; in mxs_mmc_bc()
257 cmd1 = cmd->arg; in mxs_mmc_bc()
285 struct mmc_command *cmd = host->cmd; in mxs_mmc_ac() local
290 ignore_crc = (mmc_resp_type(cmd) & MMC_RSP_CRC) ? in mxs_mmc_ac()
292 get_resp = (mmc_resp_type(cmd) & MMC_RSP_PRESENT) ? in mxs_mmc_ac()
294 long_resp = (mmc_resp_type(cmd) & MMC_RSP_136) ? in mxs_mmc_ac()
298 cmd0 = BF_SSP(cmd->opcode, CMD0_CMD); in mxs_mmc_ac()
299 cmd1 = cmd->arg; in mxs_mmc_ac()
301 if (cmd->opcode == MMC_STOP_TRANSMISSION) in mxs_mmc_ac()
345 struct mmc_command *cmd = host->cmd; in mxs_mmc_adtc() local
346 struct mmc_data *data = cmd->data; in mxs_mmc_adtc()
362 ignore_crc = (mmc_resp_type(cmd) & MMC_RSP_CRC) ? in mxs_mmc_adtc()
364 get_resp = (mmc_resp_type(cmd) & MMC_RSP_PRESENT) ? in mxs_mmc_adtc()
366 long_resp = (mmc_resp_type(cmd) & MMC_RSP_136) ? in mxs_mmc_adtc()
385 cmd0 = BF_SSP(cmd->opcode, CMD0_CMD); in mxs_mmc_adtc()
412 if (cmd->opcode == SD_IO_RW_EXTENDED) in mxs_mmc_adtc()
415 cmd1 = cmd->arg; in mxs_mmc_adtc()
457 struct mmc_command *cmd) in mxs_mmc_start_cmd() argument
459 host->cmd = cmd; in mxs_mmc_start_cmd()
461 switch (mmc_cmd_type(cmd)) { in mxs_mmc_start_cmd()
491 mxs_mmc_start_cmd(host, mrq->cmd); in mxs_mmc_request()