Lines Matching defs:ocr
192 static int mmc_highest_voltage(uint32_t ocr);
205 static uint32_t mmc_select_vdd(struct mmc_softc *sc, uint32_t ocr);
206 static int mmc_send_app_op_cond(struct mmc_softc *sc, uint32_t ocr,
210 static int mmc_send_op_cond(struct mmc_softc *sc, uint32_t ocr,
434 mmc_select_vdd(struct mmc_softc *sc, uint32_t ocr)
437 return (ocr & MMC_OCR_VOLTAGE);
441 mmc_highest_voltage(uint32_t ocr)
447 if (ocr & (1 << i))
595 mmc_send_app_op_cond(struct mmc_softc *sc, uint32_t ocr, uint32_t *rocr)
602 cmd.arg = ocr;
612 (ocr & MMC_OCR_VOLTAGE) == 0)
623 mmc_send_op_cond(struct mmc_softc *sc, uint32_t ocr, uint32_t *rocr)
630 cmd.arg = ocr;
639 (ocr & MMC_OCR_VOLTAGE) == 0)
2035 uint32_t ocr;
2055 if (mmc_send_app_op_cond(sc, 0, &ocr) != MMC_ERR_NONE) {
2062 if (mmc_send_op_cond(sc, 0, &ocr) != MMC_ERR_NONE) {
2066 ocr = 0; /* Failed both, powerdown. */
2069 "MMC probe: OK (OCR: 0x%08x)\n", ocr);
2072 ocr);
2075 mmcbr_set_ocr(dev, mmc_select_vdd(sc, ocr));