Lines Matching refs:ocr
189 static int mmc_highest_voltage(uint32_t ocr);
202 static uint32_t mmc_select_vdd(struct mmc_softc *sc, uint32_t ocr);
203 static int mmc_send_app_op_cond(struct mmc_softc *sc, uint32_t ocr,
207 static int mmc_send_op_cond(struct mmc_softc *sc, uint32_t ocr,
426 mmc_select_vdd(struct mmc_softc *sc, uint32_t ocr) in mmc_select_vdd() argument
429 return (ocr & MMC_OCR_VOLTAGE); in mmc_select_vdd()
433 mmc_highest_voltage(uint32_t ocr) in mmc_highest_voltage() argument
439 if (ocr & (1 << i)) in mmc_highest_voltage()
587 mmc_send_app_op_cond(struct mmc_softc *sc, uint32_t ocr, uint32_t *rocr) in mmc_send_app_op_cond() argument
594 cmd.arg = ocr; in mmc_send_app_op_cond()
604 (ocr & MMC_OCR_VOLTAGE) == 0) in mmc_send_app_op_cond()
615 mmc_send_op_cond(struct mmc_softc *sc, uint32_t ocr, uint32_t *rocr) in mmc_send_op_cond() argument
622 cmd.arg = ocr; in mmc_send_op_cond()
631 (ocr & MMC_OCR_VOLTAGE) == 0) in mmc_send_op_cond()
2029 uint32_t ocr; in mmc_go_discovery() local
2049 if (mmc_send_app_op_cond(sc, 0, &ocr) != MMC_ERR_NONE) { in mmc_go_discovery()
2056 if (mmc_send_op_cond(sc, 0, &ocr) != MMC_ERR_NONE) { in mmc_go_discovery()
2060 ocr = 0; /* Failed both, powerdown. */ in mmc_go_discovery()
2063 "MMC probe: OK (OCR: 0x%08x)\n", ocr); in mmc_go_discovery()
2066 ocr); in mmc_go_discovery()
2069 mmcbr_set_ocr(dev, mmc_select_vdd(sc, ocr)); in mmc_go_discovery()