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,
434 mmc_select_vdd(struct mmc_softc *sc, uint32_t ocr) in mmc_select_vdd() argument
437 return (ocr & MMC_OCR_VOLTAGE); in mmc_select_vdd()
441 mmc_highest_voltage(uint32_t ocr) in mmc_highest_voltage() argument
447 if (ocr & (1 << i)) in mmc_highest_voltage()
595 mmc_send_app_op_cond(struct mmc_softc *sc, uint32_t ocr, uint32_t *rocr) in mmc_send_app_op_cond() argument
602 cmd.arg = ocr; in mmc_send_app_op_cond()
612 (ocr & MMC_OCR_VOLTAGE) == 0) in mmc_send_app_op_cond()
623 mmc_send_op_cond(struct mmc_softc *sc, uint32_t ocr, uint32_t *rocr) in mmc_send_op_cond() argument
630 cmd.arg = ocr; in mmc_send_op_cond()
639 (ocr & MMC_OCR_VOLTAGE) == 0) in mmc_send_op_cond()
2035 uint32_t ocr; in mmc_go_discovery() local
2055 if (mmc_send_app_op_cond(sc, 0, &ocr) != MMC_ERR_NONE) { in mmc_go_discovery()
2062 if (mmc_send_op_cond(sc, 0, &ocr) != MMC_ERR_NONE) { in mmc_go_discovery()
2066 ocr = 0; /* Failed both, powerdown. */ in mmc_go_discovery()
2069 "MMC probe: OK (OCR: 0x%08x)\n", ocr); in mmc_go_discovery()
2072 ocr); in mmc_go_discovery()
2075 mmcbr_set_ocr(dev, mmc_select_vdd(sc, ocr)); in mmc_go_discovery()