Lines Matching refs:cmd

102 		priv->desc->cmd.data = MXS_DMA_DESC_COMMAND_DMA_WRITE;  in mxsmmc_send_cmd_dma()
106 priv->desc->cmd.data = MXS_DMA_DESC_COMMAND_DMA_READ; in mxsmmc_send_cmd_dma()
113 priv->desc->cmd.address = (dma_addr_t)bbstate.bounce_buffer; in mxsmmc_send_cmd_dma()
115 priv->desc->cmd.data |= MXS_DMA_DESC_IRQ | MXS_DMA_DESC_DEC_SEM | in mxsmmc_send_cmd_dma()
135 mxsmmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data) in mxsmmc_send_cmd() argument
144 debug("MMC%d: CMD%d\n", mmc->block_dev.devnum, cmd->cmdidx); in mxsmmc_send_cmd()
173 if (!(cmd->resp_type & MMC_RSP_CRC)) in mxsmmc_send_cmd()
175 if (cmd->resp_type & MMC_RSP_PRESENT) /* Need to get response */ in mxsmmc_send_cmd()
177 if (cmd->resp_type & MMC_RSP_136) /* It's a 136 bits response */ in mxsmmc_send_cmd()
188 reg |= cmd->cmdidx << SSP_CMD0_CMD_OFFSET; in mxsmmc_send_cmd()
189 if (cmd->cmdidx == MMC_CMD_STOP_TRANSMISSION) in mxsmmc_send_cmd()
194 writel(cmd->cmdarg, &ssp_regs->hw_ssp_cmd1); in mxsmmc_send_cmd()
245 mmc->block_dev.devnum, cmd->cmdidx); in mxsmmc_send_cmd()
252 mmc->block_dev.devnum, cmd->cmdidx, reg); in mxsmmc_send_cmd()
259 mmc->block_dev.devnum, cmd->cmdidx, reg); in mxsmmc_send_cmd()
264 if (cmd->resp_type & MMC_RSP_136) { in mxsmmc_send_cmd()
265 cmd->response[3] = readl(&ssp_regs->hw_ssp_sdresp0); in mxsmmc_send_cmd()
266 cmd->response[2] = readl(&ssp_regs->hw_ssp_sdresp1); in mxsmmc_send_cmd()
267 cmd->response[1] = readl(&ssp_regs->hw_ssp_sdresp2); in mxsmmc_send_cmd()
268 cmd->response[0] = readl(&ssp_regs->hw_ssp_sdresp3); in mxsmmc_send_cmd()
270 cmd->response[0] = readl(&ssp_regs->hw_ssp_sdresp0); in mxsmmc_send_cmd()
281 mmc->block_dev.devnum, cmd->cmdidx, reg); in mxsmmc_send_cmd()
299 mmc->block_dev.devnum, cmd->cmdidx, reg); in mxsmmc_send_cmd()