Lines Matching refs:ctrl

196 	handle->device->ctrl.argReg = 0;  in abort_err()
197 handle->device->ctrl.cmdIndex = SD_CMD_STOP_TRANSMISSION; in abort_err()
205 handle->device->ctrl.cmdIndex, in abort_err()
206 handle->device->ctrl.argReg, options); in abort_err()
223 process_cmd_response(handle, handle->device->ctrl.cmdIndex, in abort_err()
270 if (handle->device->ctrl.cmdStatus == SD_OK) in process_data_xfer()
273 check_error(handle, handle->device->ctrl.cmdStatus); in process_data_xfer()
299 if (handle->device->ctrl.cmdStatus == SD_OK) in process_data_xfer()
302 check_error(handle, handle->device->ctrl.cmdStatus); in process_data_xfer()
338 handle->device->ctrl.present = 0; /* init card present to be no card */ in init_card()
342 handle->device->ctrl.present = 1; /* card is detected */ in init_card()
425 handle->device->ctrl.ocr = ocr; in init_mmc_card()
453 rc = sd_cmd7(handle, handle->device->ctrl.rca); in init_mmc_card()
478 handle->device->ctrl.ocr |= SD_CARD_HIGH_CAPACITY; in init_mmc_card()
482 if (handle->device->ctrl.ocr & SD_CARD_HIGH_CAPACITY) in init_mmc_card()
505 handle->device->ctrl.rca = 0; in reset_card()
671 if (handle->device->ctrl.cmdStatus) { in write_buffer()
672 check_error(handle, handle->device->ctrl.cmdStatus); in write_buffer()
699 if (handle->device->ctrl.cmdStatus != SD_OK) { in write_buffer()
700 check_error(handle, handle->device->ctrl.cmdStatus); in write_buffer()
704 handle->device->ctrl.eventList &= ~SD4_EMMC_TOP_INTR_TXDONE_MASK; in write_buffer()
734 if (handle->device->ctrl.cmdStatus) { in read_buffer()
735 check_error(handle, handle->device->ctrl.cmdStatus); in read_buffer()
763 if (handle->device->ctrl.cmdStatus) { in read_buffer()
764 check_error(handle, handle->device->ctrl.cmdStatus); in read_buffer()
768 handle->device->ctrl.eventList &= ~SD4_EMMC_TOP_INTR_TXDONE_MASK; in read_buffer()
834 if ((handle->device->ctrl.cmdIndex == 18) || in err_recovery()
835 (handle->device->ctrl.cmdIndex == 25)) in err_recovery()
952 (handle->device->ctrl.sdRegBaseAddr + in pstate_log()
955 (handle->device->ctrl.sdRegBaseAddr + in pstate_log()
973 handle->device->ctrl.cmdStatus = 0; /* no error */ in wait_for_event()
993 handle->device->ctrl.cmdIndex, in wait_for_event()
995 handle->device->ctrl.cmdStatus = SD_CMD_MISSING; in wait_for_event()
1003 handle->device->ctrl.cmdIndex, regval); in wait_for_event()
1004 handle->device->ctrl.cmdStatus = in wait_for_event()
1011 handle->device->ctrl.cmdIndex, regval); in wait_for_event()
1012 handle->device->ctrl.cmdStatus = SD_CMD_ERROR_FLAGS; in wait_for_event()
1020 handle->device->ctrl.cmdIndex, cmd12); in wait_for_event()
1021 handle->device->ctrl.cmdStatus = cmd12; in wait_for_event()
1028 handle->device->ctrl.cmdIndex, regval); in wait_for_event()
1029 handle->device->ctrl.cmdStatus = in wait_for_event()
1078 handle->device->ctrl.present = 0; /* init card present to be no card */ in mmc_cmd1()