Lines Matching refs:cmd
183 static int esdhc_send_cmd(struct mmc *mmc, uint32_t cmd, uint32_t args) in esdhc_send_cmd() argument
206 cmd); in esdhc_send_cmd()
210 if (cmd == CMD2 || cmd == CMD9) { in esdhc_send_cmd()
212 } else if (cmd == CMD7 || (cmd == CMD6 && mmc->card.type == MMC_CARD)) { in esdhc_send_cmd()
214 } else if (cmd != CMD0) { in esdhc_send_cmd()
218 if (cmd == CMD2 || cmd == CMD9) { in esdhc_send_cmd()
220 } else if ((cmd != CMD0) && (cmd != ACMD41) && (cmd != CMD1)) { in esdhc_send_cmd()
224 if ((cmd == CMD8 || cmd == CMD14 || cmd == CMD19) && in esdhc_send_cmd()
227 if (cmd != CMD19) { in esdhc_send_cmd()
232 if (cmd == CMD6 || cmd == CMD17 || cmd == CMD18 || cmd == CMD24 || in esdhc_send_cmd()
233 cmd == ACMD51) { in esdhc_send_cmd()
234 if (!(mmc->card.type == MMC_CARD && cmd == CMD6)) { in esdhc_send_cmd()
235 if (cmd == CMD24) { in esdhc_send_cmd()
243 if (cmd == CMD18) { in esdhc_send_cmd()
251 if ((cmd == CMD17 || cmd == CMD24) && (mmc->dma_support != 0)) { in esdhc_send_cmd()
256 xfertyp |= ((cmd & 0x3F) << 24); in esdhc_send_cmd()
261 INFO("cmd = %d\n", cmd); in esdhc_send_cmd()