Lines Matching refs:MmcHost
26 return MmcHostInstance->MmcHost->NotifyState (MmcHostInstance->MmcHost, State); in MmcNotifyState()
38 EFI_MMC_HOST_PROTOCOL *MmcHost; in MmcGetCardStatus() local
41 MmcHost = MmcHostInstance->MmcHost; in MmcGetCardStatus()
44 if (MmcHost == NULL) { in MmcGetCardStatus()
50 Status = MmcHost->SendCommand (MmcHost, MMC_CMD13, CmdArg); in MmcGetCardStatus()
57 MmcHost->ReceiveResponse (MmcHost, MMC_RESPONSE_TYPE_R1, Response); in MmcGetCardStatus()
75 if (MmcHostInstance->MmcHost == NULL) { in MmcReset()
81 if (!MmcHostInstance->MmcHost->IsCardPresent (MmcHostInstance->MmcHost)) { in MmcReset()
100 EFI_MMC_HOST_PROTOCOL *MmcHost in MmcDetectCard() argument
103 if (!MmcHost->IsCardPresent (MmcHost)) { in MmcDetectCard()
112 EFI_MMC_HOST_PROTOCOL *MmcHost in MmcStopTransmission() argument
119 Status = MmcHost->SendCommand (MmcHost, MMC_CMD12, 0); in MmcStopTransmission()
121 MmcHost->ReceiveResponse (MmcHost, MMC_RESPONSE_TYPE_R1b, Response); in MmcStopTransmission()
146 EFI_MMC_HOST_PROTOCOL *MmcHost; in MmcTransferBlock() local
149 MmcHost = MmcHostInstance->MmcHost; in MmcTransferBlock()
159 Status = MmcHost->SendCommand (MmcHost, Cmd, CmdArg); in MmcTransferBlock()
167 Status = MmcHost->ReadBlockData (MmcHost, Lba, BufferSize, Buffer); in MmcTransferBlock()
170 MmcStopTransmission (MmcHost); in MmcTransferBlock()
180 Status = MmcHost->WriteBlockData (MmcHost, Lba, BufferSize, Buffer); in MmcTransferBlock()
183 MmcStopTransmission (MmcHost); in MmcTransferBlock()
195 Status = MmcHost->SendCommand (MmcHost, MMC_CMD13, CmdArg); in MmcTransferBlock()
197 MmcHost->ReceiveResponse (MmcHost, MMC_RESPONSE_TYPE_R1, Response); in MmcTransferBlock()
205 Status = MmcHost->SendCommand (MmcHost, MMC_CMD12, 0); in MmcTransferBlock()
235 EFI_MMC_HOST_PROTOCOL *MmcHost; in MmcIoBlocks() local
243 MmcHost = MmcHostInstance->MmcHost; in MmcIoBlocks()
244 ASSERT (MmcHost); in MmcIoBlocks()
250 if ((MmcHost == NULL) || (Buffer == NULL)) { in MmcIoBlocks()
259 if (MMC_HOST_HAS_ISMULTIBLOCK(MmcHost) && MmcHost->IsMultiBlock(MmcHost)) { in MmcIoBlocks()
297 Status = MmcHost->SendCommand (MmcHost, MMC_CMD13, CmdArg); in MmcIoBlocks()
299 MmcHost->ReceiveResponse (MmcHost, MMC_RESPONSE_TYPE_R1, Response); in MmcIoBlocks()
392 EFI_MMC_HOST_PROTOCOL *MmcHost; in MmcEraseBlocks() local
398 MmcHost = MmcHostInstance->MmcHost; in MmcEraseBlocks()
399 ASSERT (MmcHost); in MmcEraseBlocks()
413 Status = MmcHost->SendCommand (MmcHost, MMC_CMD35, CmdArg); in MmcEraseBlocks()
415 MmcHost->ReceiveResponse (MmcHost, MMC_RESPONSE_TYPE_R1, Response); in MmcEraseBlocks()
419 Status = MmcHost->SendCommand (MmcHost, MMC_CMD36, CmdArg); in MmcEraseBlocks()
421 MmcHost->ReceiveResponse (MmcHost, MMC_RESPONSE_TYPE_R1, Response); in MmcEraseBlocks()
425 Status = MmcHost->SendCommand (MmcHost, MMC_CMD38, CmdArg); in MmcEraseBlocks()
427 MmcHost->ReceiveResponse (MmcHost, MMC_RESPONSE_TYPE_R1b, Response); in MmcEraseBlocks()