Lines Matching refs:ocr
433 rt_uint32_t ocr, in mmcsd_send_app_op_cond() argument
444 cmd.arg = ocr & (1 << 30); /* SPI only defines one bit */ in mmcsd_send_app_op_cond()
446 cmd.arg = ocr; in mmcsd_send_app_op_cond()
456 if (ocr == 0) in mmcsd_send_app_op_cond()
487 rt_err_t mmcsd_send_if_cond(struct rt_mmcsd_host *host, rt_uint32_t ocr) in mmcsd_send_if_cond() argument
494 cmd.arg = ((ocr & 0xFF8000) != 0) << 8 | 0xAA; in mmcsd_send_if_cond()
658 rt_uint32_t ocr) in mmcsd_sd_init_card() argument
673 err = mmcsd_send_if_cond(host, ocr); in mmcsd_sd_init_card()
675 ocr |= 1 << 30; in mmcsd_sd_init_card()
680 ocr |= OCR_S18R; in mmcsd_sd_init_card()
682 err = mmcsd_send_app_op_cond(host, ocr, &ocr); in mmcsd_sd_init_card()
687 if (ocr & OCR_S18R) in mmcsd_sd_init_card()
689 ocr = VDD_165_195; in mmcsd_sd_init_card()
775 if ((sd_status.uhs_speed_grade > 0) && (ocr & VDD_165_195)) in mmcsd_sd_init_card()
816 rt_int32_t init_sd(struct rt_mmcsd_host *host, rt_uint32_t ocr) in init_sd() argument
827 err = mmcsd_spi_read_ocr(host, 0, &ocr); in init_sd()
832 current_ocr = mmcsd_select_voltage(host, ocr); in init_sd()