Lines Matching refs: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,
435 mmc_select_vdd(struct mmc_softc *sc, uint32_t ocr) in mmc_select_vdd() argument
438 return (ocr & MMC_OCR_VOLTAGE); in mmc_select_vdd()
442 mmc_highest_voltage(uint32_t ocr) in mmc_highest_voltage() argument
448 if (ocr & (1 << i)) in mmc_highest_voltage()
596 mmc_send_app_op_cond(struct mmc_softc *sc, uint32_t ocr, uint32_t *rocr) in mmc_send_app_op_cond() argument
603 cmd.arg = ocr; in mmc_send_app_op_cond()
613 (ocr & MMC_OCR_VOLTAGE) == 0) in mmc_send_app_op_cond()
624 mmc_send_op_cond(struct mmc_softc *sc, uint32_t ocr, uint32_t *rocr) in mmc_send_op_cond() argument
631 cmd.arg = ocr; in mmc_send_op_cond()
640 (ocr & MMC_OCR_VOLTAGE) == 0) in mmc_send_op_cond()
2038 uint32_t ocr; in mmc_go_discovery() local
2058 if (mmc_send_app_op_cond(sc, 0, &ocr) != MMC_ERR_NONE) { in mmc_go_discovery()
2065 if (mmc_send_op_cond(sc, 0, &ocr) != MMC_ERR_NONE) { in mmc_go_discovery()
2069 ocr = 0; /* Failed both, powerdown. */ in mmc_go_discovery()
2072 "MMC probe: OK (OCR: 0x%08x)\n", ocr); in mmc_go_discovery()
2075 ocr); in mmc_go_discovery()
2078 mmcbr_set_ocr(dev, mmc_select_vdd(sc, ocr)); in mmc_go_discovery()