Lines Matching refs:ocr
190 static int mmc_highest_voltage(uint32_t ocr);
203 static uint32_t mmc_select_vdd(struct mmc_softc *sc, uint32_t ocr);
204 static int mmc_send_app_op_cond(struct mmc_softc *sc, uint32_t ocr,
208 static int mmc_send_op_cond(struct mmc_softc *sc, uint32_t ocr,
427 mmc_select_vdd(struct mmc_softc *sc, uint32_t ocr) in mmc_select_vdd() argument
430 return (ocr & MMC_OCR_VOLTAGE); in mmc_select_vdd()
434 mmc_highest_voltage(uint32_t ocr) in mmc_highest_voltage() argument
440 if (ocr & (1 << i)) in mmc_highest_voltage()
588 mmc_send_app_op_cond(struct mmc_softc *sc, uint32_t ocr, uint32_t *rocr) in mmc_send_app_op_cond() argument
595 cmd.arg = ocr; in mmc_send_app_op_cond()
605 (ocr & MMC_OCR_VOLTAGE) == 0) in mmc_send_app_op_cond()
616 mmc_send_op_cond(struct mmc_softc *sc, uint32_t ocr, uint32_t *rocr) in mmc_send_op_cond() argument
623 cmd.arg = ocr; in mmc_send_op_cond()
632 (ocr & MMC_OCR_VOLTAGE) == 0) in mmc_send_op_cond()
2030 uint32_t ocr; in mmc_go_discovery() local
2050 if (mmc_send_app_op_cond(sc, 0, &ocr) != MMC_ERR_NONE) { in mmc_go_discovery()
2057 if (mmc_send_op_cond(sc, 0, &ocr) != MMC_ERR_NONE) { in mmc_go_discovery()
2061 ocr = 0; /* Failed both, powerdown. */ in mmc_go_discovery()
2064 "MMC probe: OK (OCR: 0x%08x)\n", ocr); in mmc_go_discovery()
2067 ocr); in mmc_go_discovery()
2070 mmcbr_set_ocr(dev, mmc_select_vdd(sc, ocr)); in mmc_go_discovery()