Lines Matching refs:ocr
402 int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid)
417 * of the ocr to indicate that we can handle
420 err = mmc_send_if_cond(host, ocr);
422 ocr |= 1 << 30;
424 err = mmc_send_app_op_cond(host, ocr, NULL);
549 static int mmc_sd_init_card(struct mmc_host *host, u32 ocr,
559 err = mmc_sd_get_cid(host, ocr, cid);
719 err = mmc_sd_init_card(host, host->ocr, host->card);
729 mmc_sd_init_card(host, host->ocr, host->card);
763 int mmc_attach_sd(struct mmc_host *host, u32 ocr)
778 err = mmc_spi_read_ocr(host, 0, &ocr);
787 if (ocr & 0x7F) {
791 ocr &= ~0x7F;
794 if (ocr & MMC_VDD_165_195) {
798 ocr &= ~MMC_VDD_165_195;
801 host->ocr = mmc_select_voltage(host, ocr);
806 if (!host->ocr) {
814 err = mmc_sd_init_card(host, host->ocr, NULL);