Home | History | Annotate | Download | only in sdmmc

Lines Matching defs:ocr

150 	uint32_t ocr = 0;
169 SET(ocr, MMC_OCR_HCS);
173 * Read the SD/MMC memory OCR value by issuing CMD55 followed
174 * by ACMD41 to read the OCR value from memory-only SD cards.
180 ISSET(sc->sc_caps, SMC_CAPS_SPI_MODE) ? ocr : 0, &card_ocr);
190 DPRINTF(("%s: couldn't read memory OCR\n",
201 /* get card OCR */
202 error = sdmmc_mem_spi_read_ocr(sc, ocr, &card_ocr);
204 DPRINTF(("%s: couldn't read SPI memory OCR\n",
230 SET(ocr, MMC_OCR_HCS);
233 SET(ocr, MMC_OCR_S18A);
235 SET(ocr, MMC_OCR_ACCESS_MODE_SECTOR);
238 host_ocr |= ocr;
240 /* Send the new OCR value until all cards are ready. */
243 DPRINTF(("%s: couldn't send memory OCR\n", SDMMCDEVNAME(sc)));
615 * Get or set the card's memory OCR value (SD or MMC).
618 sdmmc_mem_send_op_cond(struct sdmmc_softc *sc, uint32_t ocr, uint32_t *ocrp)
626 DPRINTF(("%s: sdmmc_mem_send_op_cond: ocr=%#x\n",
627 SDMMCDEVNAME(sc), ocr));
630 * If we change the OCR value, retry the command until the OCR
637 ocr : (ocr & MMC_OCR_HCS);
656 ocr == 0)
668 *ocrp = ocr;
671 DPRINTF(("%s: sdmmc_mem_send_op_cond: error=%d, ocr=%#x\n",
677 sdmmc_mem_send_if_cond(struct sdmmc_softc *sc, uint32_t ocr, uint32_t *ocrp)
685 cmd.c_arg = ocr;
696 DPRINTF(("%s: sdmmc_mem_send_if_cond: error=%d, ocr=%#x\n",
2005 DPRINTF(("%s: sdmmc_mem_spi_read_ocr: error=%d, ocr=%#x\n",