Lines Matching refs:device
29 chal_sd_clear_irq((void *)handle->device, 0xffffffff); in sd_cmd0()
76 handle->device->ctrl.rca = 0x5; in sd_cmd3()
77 argument = handle->device->ctrl.rca << SD_CMD7_ARG_RCA_SHIFT; in sd_cmd3()
87 handle->device->ctrl.rca = 0; in sd_cmd3()
118 chal_sd_clear_irq((void *)handle->device, 0xffffffff); in sd_cmd7()
157 argument = handle->device->ctrl.rca << SD_CMD7_ARG_RCA_SHIFT; in sd_cmd9()
239 handle->device->cfg.blockSize = handle->card->maxRdBlkLen; in sd_cmd9()
250 argument = handle->device->ctrl.rca << SD_CMD7_ARG_RCA_SHIFT; in sd_cmd13()
284 handle->device->ctrl.rca, res, resp.cardStatus); in sd_cmd16()
293 if (ntry > handle->device->cfg.retryLimit) { in sd_cmd16()
295 handle->device->cfg.retryLimit); in sd_cmd16()
325 handle->device->ctrl.rca, res, resp.cardStatus); in sd_cmd17()
334 if (ntry > handle->device->cfg.retryLimit) { in sd_cmd17()
336 handle->device->cfg.retryLimit); in sd_cmd17()
379 handle->device->ctrl.rca, res, resp.cardStatus); in sd_cmd18()
388 if (ntry > handle->device->cfg.retryLimit) { in sd_cmd18()
390 handle->device->cfg.retryLimit); in sd_cmd18()
433 handle->device->ctrl.rca, res); in card_sts_resp()
442 if (ntry > handle->device->cfg.retryLimit) { in card_sts_resp()
444 handle->device->cfg.retryLimit); in card_sts_resp()
550 handle->device->ctrl.rca, res, &resp.cardStatus); in sd_cmd24()
559 if (ntry > handle->device->cfg.retryLimit) { in sd_cmd24()
561 handle->device->cfg.retryLimit); in sd_cmd24()
604 handle->device->ctrl.rca, res, &resp.cardStatus); in sd_cmd25()
613 if (ntry > handle->device->cfg.retryLimit) { in sd_cmd25()
615 handle->device->cfg.retryLimit); in sd_cmd25()
672 handle->device->cfg.wfe_retry); in mmc_cmd6()
689 handle->device->ctrl.rca, res, resp.cardStatus); in mmc_cmd6()
719 chal_sd_get_present_status((CHAL_HANDLE *) handle->device); in send_cmd()
738 handle->device->ctrl.argReg = argument; in send_cmd()
739 chal_sd_send_cmd((CHAL_HANDLE *) handle->device, cmdIndex, in send_cmd()
740 handle->device->ctrl.argReg, options); in send_cmd()
742 handle->device->ctrl.cmdIndex = cmdIndex; in send_cmd()
747 handle->device->cfg.wfe_retry); in send_cmd()
749 if (handle->device->ctrl.cmdStatus == SD_CMD_MISSING) { in send_cmd()
752 if (retry >= handle->device->cfg.retryLimit) { in send_cmd()
759 handle->device); in send_cmd()
768 handle->device)); in send_cmd()
773 if (handle->device->ctrl.cmdStatus == SD_OK) { in send_cmd()
776 chal_sd_get_response((CHAL_HANDLE *) handle->device, in send_cmd()
779 handle->device->ctrl.cmdIndex, in send_cmd()
792 handle->device); in send_cmd()
808 } else if (handle->device->ctrl.cmdStatus && in send_cmd()
809 handle->device->ctrl.cmdStatus != SD_CMD_MISSING) { in send_cmd()
811 status = check_error(handle, handle->device->ctrl.cmdStatus); in send_cmd()
815 cmdIndex, handle->device->ctrl.cmdStatus, status); in send_cmd()
817 if ((handle->device->ctrl.cmdIndex == 1) || in send_cmd()
818 (handle->device->ctrl.cmdIndex == 5)) { in send_cmd()
820 } else if ((handle->device->ctrl.cmdIndex == 7) || in send_cmd()
821 (handle->device->ctrl.cmdIndex == 41)) { in send_cmd()
824 (retry < handle->device->cfg.retryLimit)) { in send_cmd()
828 handle->device)); in send_cmd()
837 handle->device->ctrl.blkReg = 0; in send_cmd()
839 handle->device->ctrl.cmdStatus = 0; in send_cmd()