Lines Matching refs:command

86 static status_t USDHC_ReceiveCommandResponse(USDHC_Type *base, usdhc_command_t *command);
147 static status_t USDHC_WaitCommandDone(USDHC_Type *base, usdhc_command_t *command, bool pollingCmdDo…
361 static status_t USDHC_ReceiveCommandResponse(USDHC_Type *base, usdhc_command_t *command) in USDHC_ReceiveCommandResponse() argument
363 assert(command != NULL); in USDHC_ReceiveCommandResponse()
369 if (command->responseType != kCARD_ResponseTypeNone) in USDHC_ReceiveCommandResponse()
371 command->response[0U] = response0; in USDHC_ReceiveCommandResponse()
372 if (command->responseType == kCARD_ResponseTypeR2) in USDHC_ReceiveCommandResponse()
376 command->response[0U] <<= 8U; in USDHC_ReceiveCommandResponse()
377 command->response[1U] = (response1 << 8U) | ((response0 & 0xFF000000U) >> 24U); in USDHC_ReceiveCommandResponse()
378 command->response[2U] = (response2 << 8U) | ((response1 & 0xFF000000U) >> 24U); in USDHC_ReceiveCommandResponse()
379 command->response[3U] = (base->CMD_RSP3 << 8U) | ((response2 & 0xFF000000U) >> 24U); in USDHC_ReceiveCommandResponse()
384 if ((command->responseErrorFlags != 0U) && in USDHC_ReceiveCommandResponse()
385 …((command->responseType == kCARD_ResponseTypeR1) || (command->responseType == kCARD_ResponseTypeR1… in USDHC_ReceiveCommandResponse()
386 …(command->responseType == kCARD_ResponseTypeR6) || (command->responseType == kCARD_ResponseTypeR5)… in USDHC_ReceiveCommandResponse()
388 if (((command->responseErrorFlags) & (command->response[0U])) != 0U) in USDHC_ReceiveCommandResponse()
659 void USDHC_SendCommand(USDHC_Type *base, usdhc_command_t *command) in USDHC_SendCommand() argument
661 assert(NULL != command); in USDHC_SendCommand()
663 uint32_t xferType = base->CMD_XFR_TYP, flags = command->flags; in USDHC_SendCommand()
665 …if (((base->PRES_STATE & (uint32_t)kUSDHC_CommandInhibitFlag) == 0U) && (command->type != kCARD_Co… in USDHC_SendCommand()
667 …if ((command->responseType == kCARD_ResponseTypeR1) || (command->responseType == kCARD_ResponseTyp… in USDHC_SendCommand()
668 …(command->responseType == kCARD_ResponseTypeR6) || (command->responseType == kCARD_ResponseTypeR7)) in USDHC_SendCommand()
673 …else if ((command->responseType == kCARD_ResponseTypeR1b) || (command->responseType == kCARD_Respo… in USDHC_SendCommand()
678 else if (command->responseType == kCARD_ResponseTypeR2) in USDHC_SendCommand()
682 …else if ((command->responseType == kCARD_ResponseTypeR3) || (command->responseType == kCARD_Respon… in USDHC_SendCommand()
691 if (command->type == kCARD_CommandTypeAbort) in USDHC_SendCommand()
701 (((command->index << USDHC_CMD_XFR_TYP_CMDINX_SHIFT) & USDHC_CMD_XFR_TYP_CMDINX_MASK) | in USDHC_SendCommand()
706 base->CMD_ARG = command->argument; in USDHC_SendCommand()
710 if (command->type == kCARD_CommandTypeEmpty) in USDHC_SendCommand()
717 static status_t USDHC_WaitCommandDone(USDHC_Type *base, usdhc_command_t *command, bool pollingCmdDo… in USDHC_WaitCommandDone() argument
719 assert(NULL != command); in USDHC_WaitCommandDone()
740 error = USDHC_ReceiveCommandResponse(base, command); in USDHC_WaitCommandDone()
1554 usdhc_command_t *command = transfer->command; in USDHC_TransferBlocking() local
1590 command->flags |= (uint32_t)kUSDHC_DataPresentFlag; in USDHC_TransferBlocking()
1623 USDHC_SendCommand(base, command); in USDHC_TransferBlocking()
1626 …USDHC_WaitCommandDone(base, command, (data == NULL) || (data->dataType == (uint32_t)kUSDHC_Transfe… in USDHC_TransferBlocking()
1765 usdhc_command_t *command = transfer->command; in USDHC_TransferScatterGatherADMANonBlocking() local
1779 handle->command = command; in USDHC_TransferScatterGatherADMANonBlocking()
1808 command->flags |= kUSDHC_DataPresentFlag; in USDHC_TransferScatterGatherADMANonBlocking()
1834 USDHC_SendCommand(base, command); in USDHC_TransferScatterGatherADMANonBlocking()
1867 usdhc_command_t *command = transfer->command; in USDHC_TransferNonBlocking() local
1885 handle->command = command; in USDHC_TransferNonBlocking()
1911 command->flags |= (uint32_t)kUSDHC_DataPresentFlag; in USDHC_TransferNonBlocking()
1965 USDHC_SendCommand(base, command); in USDHC_TransferNonBlocking()
2192 assert(handle->command != NULL); in USDHC_TransferHandleCommand()
2204 if (kStatus_Success != USDHC_ReceiveCommandResponse(base, handle->command)) in USDHC_TransferHandleCommand()
2221 handle->command = NULL; in USDHC_TransferHandleCommand()