Lines Matching refs:ocr
715 MMC_DEV_ATTR(ocr, "0x%08x\n", card->ocr);
815 int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr) in mmc_sd_get_cid() argument
820 u32 pocr = ocr; in mmc_sd_get_cid()
824 ocr &= ~SD_OCR_S18R; in mmc_sd_get_cid()
842 err = mmc_send_if_cond(host, ocr); in mmc_sd_get_cid()
844 ocr |= SD_OCR_CCS; in mmc_sd_get_cid()
852 ocr |= SD_OCR_S18R; in mmc_sd_get_cid()
860 ocr |= SD_OCR_XPC; in mmc_sd_get_cid()
862 err = mmc_send_app_op_cond(host, ocr, rocr); in mmc_sd_get_cid()
873 if (!mmc_host_is_spi(host) && (ocr & SD_OCR_S18R) && in mmc_sd_get_cid()
1403 static int mmc_sd_init_card(struct mmc_host *host, u32 ocr, in mmc_sd_init_card() argument
1414 err = mmc_sd_get_cid(host, ocr, cid, &rocr); in mmc_sd_init_card()
1434 card->ocr = ocr; in mmc_sd_init_card()
1493 mmc_power_cycle(host, ocr); in mmc_sd_init_card()
1739 mmc_power_up(host, host->card->ocr); in _mmc_sd_resume()
1740 err = mmc_sd_init_card(host, host->card->ocr, host->card); in _mmc_sd_resume()
1792 mmc_power_cycle(host, host->card->ocr); in mmc_sd_hw_reset()
1793 return mmc_sd_init_card(host, host->card->ocr, host->card); in mmc_sd_hw_reset()
1816 u32 ocr, rocr; in mmc_attach_sd() local
1820 err = mmc_send_app_op_cond(host, 0, &ocr); in mmc_attach_sd()
1834 err = mmc_spi_read_ocr(host, 0, &ocr); in mmc_attach_sd()
1843 ocr &= ~0x7FFF; in mmc_attach_sd()
1845 rocr = mmc_select_voltage(host, ocr); in mmc_attach_sd()