Home
last modified time | relevance | path

Searched refs:Cmd (Results 1 – 25 of 47) sorted by relevance

12

/device/linaro/bootloader/edk2/SecurityPkg/Library/Tpm2CommandLib/
DTpm2Hierarchy.c229 TPM2_CLEAR_COMMAND Cmd; in Tpm2Clear() local
237 Cmd.Header.tag = SwapBytes16(TPM_ST_SESSIONS); in Tpm2Clear()
238 Cmd.Header.commandCode = SwapBytes32(TPM_CC_Clear); in Tpm2Clear()
239 Cmd.AuthHandle = SwapBytes32(AuthHandle); in Tpm2Clear()
244 Buffer = (UINT8 *)&Cmd.AuthSession; in Tpm2Clear()
249 Cmd.AuthorizationSize = SwapBytes32(SessionInfoSize); in Tpm2Clear()
251 CmdSize = (UINT32)(Buffer - (UINT8 *)&Cmd); in Tpm2Clear()
252 Cmd.Header.paramSize = SwapBytes32(CmdSize); in Tpm2Clear()
255 Status = Tpm2SubmitCommand (CmdSize, (UINT8 *)&Cmd, &ResultBufSize, (UINT8 *)&Res); in Tpm2Clear()
294 ZeroMem (&Cmd, sizeof(Cmd)); in Tpm2Clear()
[all …]
DTpm2Startup.c60 TPM2_STARTUP_COMMAND Cmd; in Tpm2Startup() local
65 Cmd.Header.tag = SwapBytes16(TPM_ST_NO_SESSIONS); in Tpm2Startup()
66 Cmd.Header.paramSize = SwapBytes32(sizeof(Cmd)); in Tpm2Startup()
67 Cmd.Header.commandCode = SwapBytes32(TPM_CC_Startup); in Tpm2Startup()
68 Cmd.StartupType = SwapBytes16(StartupType); in Tpm2Startup()
71 Status = Tpm2SubmitCommand (sizeof(Cmd), (UINT8 *)&Cmd, &ResultBufSize, (UINT8 *)&Res); in Tpm2Startup()
106 TPM2_SHUTDOWN_COMMAND Cmd; in Tpm2Shutdown() local
110 Cmd.Header.tag = SwapBytes16(TPM_ST_NO_SESSIONS); in Tpm2Shutdown()
111 Cmd.Header.paramSize = SwapBytes32(sizeof(Cmd)); in Tpm2Shutdown()
112 Cmd.Header.commandCode = SwapBytes32(TPM_CC_Shutdown); in Tpm2Shutdown()
[all …]
DTpm2Sequences.c105 TPM2_HASH_SEQUENCE_START_COMMAND Cmd; in Tpm2HashSequenceStart() local
112 ZeroMem(&Cmd, sizeof(Cmd)); in Tpm2HashSequenceStart()
117 Cmd.Header.tag = SwapBytes16(TPM_ST_NO_SESSIONS); in Tpm2HashSequenceStart()
118 Cmd.Header.commandCode = SwapBytes32(TPM_CC_HashSequenceStart); in Tpm2HashSequenceStart()
120 Buffer = (UINT8 *)&Cmd.Auth; in Tpm2HashSequenceStart()
130 CmdSize = (UINT32)(Buffer - (UINT8 *)&Cmd); in Tpm2HashSequenceStart()
131 Cmd.Header.paramSize = SwapBytes32(CmdSize); in Tpm2HashSequenceStart()
137 Status = Tpm2SubmitCommand (CmdSize, (UINT8 *)&Cmd, &ResultBufSize, (UINT8 *)&Res); in Tpm2HashSequenceStart()
193 TPM2_SEQUENCE_UPDATE_COMMAND Cmd; in Tpm2SequenceUpdate() local
201 ZeroMem(&Cmd, sizeof(Cmd)); in Tpm2SequenceUpdate()
[all …]
DTpm2Test.c53 TPM2_SELF_TEST_COMMAND Cmd; in Tpm2SelfTest() local
57 Cmd.Header.tag = SwapBytes16(TPM_ST_NO_SESSIONS); in Tpm2SelfTest()
58 Cmd.Header.paramSize = SwapBytes32(sizeof(Cmd)); in Tpm2SelfTest()
59 Cmd.Header.commandCode = SwapBytes32(TPM_CC_SelfTest); in Tpm2SelfTest()
60 Cmd.FullTest = FullTest; in Tpm2SelfTest()
63 Status = Tpm2SubmitCommand (sizeof(Cmd), (UINT8 *)&Cmd, &ResultBufSize, (UINT8 *)&Res); in Tpm2SelfTest()
DTpm2Integrity.c104 TPM2_PCR_EXTEND_COMMAND Cmd; in Tpm2PcrExtend() local
114 Cmd.Header.tag = SwapBytes16(TPM_ST_SESSIONS); in Tpm2PcrExtend()
115 Cmd.Header.commandCode = SwapBytes32(TPM_CC_PCR_Extend); in Tpm2PcrExtend()
116 Cmd.PcrHandle = SwapBytes32(PcrHandle); in Tpm2PcrExtend()
122 Buffer = (UINT8 *)&Cmd.AuthSessionPcr; in Tpm2PcrExtend()
127 Cmd.AuthorizationSize = SwapBytes32(SessionInfoSize); in Tpm2PcrExtend()
150 CmdSize = (UINT32)((UINTN)Buffer - (UINTN)&Cmd); in Tpm2PcrExtend()
151 Cmd.Header.paramSize = SwapBytes32(CmdSize); in Tpm2PcrExtend()
154 Status = Tpm2SubmitCommand (CmdSize, (UINT8 *)&Cmd, &ResultBufSize, (UINT8 *)&Res); in Tpm2PcrExtend()
214 TPM2_PCR_EVENT_COMMAND Cmd; in Tpm2PcrEvent() local
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/Python/GenFds/
DGenFdsGlobalVariable.py367 Cmd = ["GenSec"]
369 Cmd += ["-s", Type]
371 Cmd += ["-c", CompressionType]
373 Cmd += ["-g", Guid]
375 Cmd += ["-l", GuidHdrLen]
379 Cmd += ["-r", Attr]
383 Cmd += ["--sectionalign", SecAlign]
396 Cmd += ["-n", Ver]
398 Cmd += ["-j", BuildNumber]
399 Cmd += ["-o", Output]
[all …]
DVtf.py50 Cmd = (
56 GenFdsGlobalVariable.CallExternalTool(Cmd, "GenFv -Vtf Failed!")
/device/linaro/bootloader/OpenPlatformPkg/Drivers/Spi/Devices/
DMvSpiFlash.c44 IN OUT UINT8 *Cmd in SpiFlashFormatAddress() argument
48 Cmd[1] = Address >> 24; in SpiFlashFormatAddress()
49 Cmd[2] = Address >> 16; in SpiFlashFormatAddress()
50 Cmd[3] = Address >> 8; in SpiFlashFormatAddress()
51 Cmd[4] = Address; in SpiFlashFormatAddress()
53 Cmd[1] = Address >> 16; in SpiFlashFormatAddress()
54 Cmd[2] = Address >> 8; in SpiFlashFormatAddress()
55 Cmd[3] = Address; in SpiFlashFormatAddress()
63 IN UINT8 *Cmd, in MvSpiFlashReadCmd() argument
72 Status = SpiMasterProtocol->ReadWrite (SpiMasterProtocol, Slave, Cmd, in MvSpiFlashReadCmd()
[all …]
/device/linaro/bootloader/OpenPlatformPkg/Drivers/Mmc/DwEmmcDxe/
DDwEmmcDxe.c314 UINT32 Cmd = 0; in DwEmmcSendCommand() local
319 Cmd = BIT_CMD_SEND_INIT; in DwEmmcSendCommand()
322 Cmd = BIT_CMD_RESPONSE_EXPECT; in DwEmmcSendCommand()
325 Cmd = BIT_CMD_RESPONSE_EXPECT | BIT_CMD_LONG_RESPONSE | in DwEmmcSendCommand()
329 Cmd = BIT_CMD_RESPONSE_EXPECT | BIT_CMD_CHECK_RESPONSE_CRC | in DwEmmcSendCommand()
334 Cmd = BIT_CMD_RESPONSE_EXPECT | BIT_CMD_CHECK_RESPONSE_CRC; in DwEmmcSendCommand()
336 Cmd = 0; in DwEmmcSendCommand()
339 Cmd = BIT_CMD_RESPONSE_EXPECT | BIT_CMD_CHECK_RESPONSE_CRC | in DwEmmcSendCommand()
344 Cmd = BIT_CMD_RESPONSE_EXPECT | BIT_CMD_CHECK_RESPONSE_CRC | in DwEmmcSendCommand()
348 Cmd = BIT_CMD_RESPONSE_EXPECT | BIT_CMD_CHECK_RESPONSE_CRC | in DwEmmcSendCommand()
[all …]
/device/linaro/bootloader/edk2/EmbeddedPkg/Ebl/
DMain.c70 IN CHAR8 *Cmd in SetCmdHistory() argument
74 if (AsciiStrLen(Cmd) != 0) { in SetCmdHistory()
91 AsciiStrnCpyS (&mCmdHistory[mCmdHistoryStart][0], MAX_CMD_LINE, Cmd, MAX_CMD_LINE); in SetCmdHistory()
391 IN OUT CHAR8 *Cmd, in GetCmd() argument
405 Cmd[Index] = '\0'; in GetCmd()
412 Cmd[Index] = '\0'; in GetCmd()
435 AsciiStrnCpyS (Cmd, CmdMaxSize, History, CmdMaxSize); in GetCmd()
437 Cmd[Index++] = Char; in GetCmd()
539 EBL_COMMAND_TABLE *Cmd; in ProcessCmdLine() local
548 Cmd = EblGetCommand (Argv[0]); in ProcessCmdLine()
[all …]
DCmdTemplate.c35 Ebl%CommandName%Cmd (
50 Ebl%CommandName%Cmd
59 EblInitialize%CommandName%Cmd (
/device/linaro/bootloader/OpenPlatformPkg/Drivers/SdMmc/DwMmcHcDxe/
DDwMmcHci.c558 UINT32 Cmd; in DwMmcHcUpdateClock() local
561 Cmd = BIT_CMD_WAIT_PRVDATA_COMPLETE | BIT_CMD_UPDATE_CLOCK_ONLY | in DwMmcHcUpdateClock()
563 Status = DwMmcHcRwMmio (PciIo, Slot, DW_MMC_CMD, FALSE, sizeof (Cmd), &Cmd); in DwMmcHcUpdateClock()
568 Status = DwMmcHcRwMmio (PciIo, Slot, DW_MMC_CMD, TRUE, sizeof (Cmd), &Cmd); in DwMmcHcUpdateClock()
572 if (!(Cmd & CMD_START_BIT)) { in DwMmcHcUpdateClock()
1520 UINT32 Cmd; local
1545 Cmd = CMD_INDEX (Packet->SdMmcCmdBlk->CommandIndex);
1550 Cmd |= BIT_CMD_SEND_INIT;
1553 Cmd |= BIT_CMD_WAIT_PRVDATA_COMPLETE;
1556 Cmd |= BIT_CMD_STOP_ABORT_CMD;
[all …]
/device/linaro/bootloader/edk2/EmbeddedPkg/Universal/MmcDxe/
DMmcBlockIo.c133 IN UINTN Cmd, in MmcTransferBlock() argument
159 Status = MmcHost->SendCommand (MmcHost, Cmd, CmdArg); in MmcTransferBlock()
161 DEBUG ((EFI_D_ERROR, "%a(MMC_CMD%d): Error %r\n", __func__, Cmd, Status)); in MmcTransferBlock()
233 UINTN Cmd; in MmcIoBlocks() local
311 Cmd = MMC_CMD17; in MmcIoBlocks()
314 Cmd = MMC_CMD18; in MmcIoBlocks()
319 Cmd = MMC_CMD24; in MmcIoBlocks()
322 Cmd = MMC_CMD25; in MmcIoBlocks()
330 Status = MmcTransferBlock (This, Cmd, Transfer, MediaId, Lba, ConsumeSize, Buffer); in MmcIoBlocks()
/device/linaro/bootloader/edk2/StdLibPrivateInternalFiles/Include/
Dkfile.h116 int (EFIAPI *fo_fcntl) (struct __filedes *filp, UINT32 Cmd, void *p3, void *p4);
122 int (EFIAPI *fo_ioctl) (struct __filedes *filp, ULONGN Cmd, va_list argp);
172 int EFIAPI fnullop_fcntl (struct __filedes *filp, UINT32 Cmd, void *p3, void *p4);
177 int EFIAPI fbadop_ioctl (struct __filedes *filp, ULONGN Cmd, va_list argp);
/device/linaro/bootloader/edk2/ArmPlatformPkg/Drivers/NorFlashDxe/
DNorFlashDxe.h51 #define CREATE_DUAL_CMD(Cmd) ( ( Cmd << 16) | ( Cmd & LOW_16_BITS) ) argument
52 …efine SEND_NOR_COMMAND(BaseAddr,Offset,Cmd) MmioWrite32 (CREATE_NOR_ADDRESS(BaseAddr,Offset), CREA… argument
/device/linaro/bootloader/edk2/ArmPlatformPkg/Drivers/PL180MciDxe/
DPL180Mci.c112 UINT32 Cmd; in MciSendCommand() local
143 Cmd = (MMC_GET_INDX (MmcCmd) & INDX_MASK) | MCI_CPSM_ENABLE; in MciSendCommand()
145 Cmd |= MCI_CPSM_WAIT_RESPONSE; in MciSendCommand()
149 Cmd |= MCI_CPSM_LONG_RESPONSE; in MciSendCommand()
159 MmioWrite32 (MCI_COMMAND_REG, Cmd); in MciSendCommand()
161 DoneMask = (Cmd & MCI_CPSM_WAIT_RESPONSE) in MciSendCommand()
173 …ciSendCommand(CmdIndex:%d) Start bit Error! Response:0x%X Status:0x%x\n", (Cmd & 0x3F), MmioRead32… in MciSendCommand()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_cmd.py15 class samplecmdclass(cmd.Cmd):
177 class simplecmd(cmd.Cmd):
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/
DUsbMassCbi.c176 IN UINT8 *Cmd, in UsbCbiSendCommand() argument
212 Cmd, in UsbCbiSendCommand()
435 IN VOID *Cmd, in UsbCbiExecCommand() argument
457 Status = UsbCbiSendCommand (UsbCbi, Cmd, CmdLen, Timeout); in UsbCbiExecCommand()
492 if (Result.Type != 0 && *(UINT8*)Cmd != 0x03) { in UsbCbiExecCommand()
DUsbMassBot.c155 IN UINT8 *Cmd, in UsbBotSendCommand() argument
181 CopyMem (Cbw.CmdBlock, Cmd, CmdLen); in UsbBotSendCommand()
401 IN VOID *Cmd, in UsbBotExecCommand() argument
423 Status = UsbBotSendCommand (UsbBot, Cmd, CmdLen, DataDir, DataLen, Lun); in UsbBotExecCommand()
DUsbMassCbi.h96 IN VOID *Cmd,
/device/linaro/bootloader/edk2/StdLib/LibC/Uefi/Devices/Utility/
DDevGenisis.c35 int EFIAPI fnullop_fcntl (struct __filedes *filp, UINT32 Cmd, void *p3, void *p4) in fnullop_fcntl() argument
52 int EFIAPI fbadop_ioctl (struct __filedes *filp, ULONGN Cmd, va_list argp) in fbadop_ioctl() argument
/device/linaro/bootloader/edk2/Omap35xxPkg/MMCHSDxe/
DMMCHS.c115 UINTN Cmd, in SendCmd() argument
142 MmioWrite32 (MMCHS_CMD, Cmd); in SendCmd()
747 UINTN Cmd = 0; in DmaBlocks() local
789 Cmd = CMD18; //Multiple block read in DmaBlocks()
824 Cmd = CMD25; //Multiple block write in DmaBlocks()
874 Status = SendCmd (Cmd, CmdInterruptEnable, CmdArgument); in DmaBlocks()
931 UINTN Cmd = 0; in TransferBlock() local
938 Cmd = CMD17; //Single block read in TransferBlock()
941 Cmd = CMD24; //Single block write in TransferBlock()
953 Status = SendCmd (Cmd, CmdInterruptEnable, CmdArgument); in TransferBlock()
/device/linaro/bootloader/OpenPlatformPkg/Chips/Hisilicon/Include/Protocol/
DIpmiInterfaceProtocol.h30 UINT8 Cmd; member
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/ProcessDsc/
DMultiThread.c723 INT8 Cmd[MAX_PATH]; in StartMultiThreadBuild() local
887 sprintf (Cmd, "type %s\\%s_%s_%d.txt 2>NUL", mLogDir, mBuildingList->BaseName, in StartMultiThreadBuild()
890 if (system (Cmd)) { in StartMultiThreadBuild()
891 Error (NULL, 0, 0, NULL, "failed to run \"%s\"", Cmd); in StartMultiThreadBuild()
/device/linaro/bootloader/edk2/StdLib/Include/sys/
DEfiSysCall.h275 int fcntl (int Fd, int Cmd, ...);

12