Home
last modified time | relevance | path

Searched refs:Buf (Results 1 – 25 of 85) sorted by relevance

1234

/device/linaro/bootloader/edk2/ArmPkg/Library/ArmDisassemblerLib/
DThumbDisassembler.c485 OUT CHAR8 *Buf, in DisassembleThumbInstruction() argument
534 Offset = AsciiSPrint (Buf, Size, "0x%04x %-6a", OpCode, gOpThumb[Index].Start); in DisassembleThumbInstruction()
536 Offset = AsciiSPrint (Buf, Size, "%-6a", gOpThumb[Index].Start); in DisassembleThumbInstruction()
541 … AsciiSPrint (&Buf[Offset], Size - Offset, " r%d, [r%d #0x%x]", Rd, Rn, (OpCode >> 4) & 0x7c); in DisassembleThumbInstruction()
545 … AsciiSPrint (&Buf[Offset], Size - Offset, " r%d, [r%d #0x%x]", Rd, Rn, (OpCode >> 5) & 0x3e); in DisassembleThumbInstruction()
549 … AsciiSPrint (&Buf[Offset], Size - Offset, " r%d, [r%d #0x%x]", Rd, Rn, (OpCode >> 6) & 0x1f); in DisassembleThumbInstruction()
554 AsciiSPrint (&Buf[Offset], Size - Offset, " r%d, [r%d, r%d]", Rd, Rn, Rm); in DisassembleThumbInstruction()
559 …AsciiSPrint (&Buf[Offset], Size - Offset, " r%d, [pc, #0x%x] ;0x%08x", (OpCode >> 8) & 7, Target, … in DisassembleThumbInstruction()
564 AsciiSPrint (&Buf[Offset], Size - Offset, " r%d, [sp, #0x%x]", (OpCode >> 8) & 7, Target); in DisassembleThumbInstruction()
569 …AsciiSPrint (&Buf[Offset], Size - Offset, " r%d!, %a", (OpCode >> 8) & 7, ThumbMRegList (OpCode & … in DisassembleThumbInstruction()
[all …]
DArmDisassembler.c163 OUT CHAR8 *Buf, in DisassembleArmInstruction() argument
190 Index = AsciiSPrint (Buf, Size, "0x%08x ", OpCode); in DisassembleArmInstruction()
191 Buf += Index; in DisassembleArmInstruction()
199 AsciiSPrint (Buf, Size, "LDREX%a %a, [%a]", COND (OpCode), gReg[Rd], gReg[Rn]); in DisassembleArmInstruction()
202 AsciiSPrint (Buf, Size, "STREX%a %a, %a, [%a]", COND (OpCode), gReg[Rd], gReg[Rn], gReg[Rn]); in DisassembleArmInstruction()
213 …AsciiSPrint (Buf, Size, "LDM%a%a, %a%a, %a", COND (OpCode), LDM_EXT (Rn ,(OpCode >> 23) & 3), gReg… in DisassembleArmInstruction()
217 …AsciiSPrint (Buf, Size, "STM%a%a, %a%a, %a", COND (OpCode), LDM_EXT (Rn ,(OpCode >> 23) & 3), gReg… in DisassembleArmInstruction()
226 Index = AsciiSPrint (Buf, Size, "PLD"); in DisassembleArmInstruction()
228 …Index = AsciiSPrint (Buf, Size, "%a%a%a%a %a, ", L ? "LDR" : "STR", COND (OpCode), BYTE (B), (!(P)… in DisassembleArmInstruction()
234 …AsciiSPrint (&Buf[Index], Size - Index, "[%a, #%a0x%x]%a", gReg[Rn], SIGN (U), offset_12, WRITE (W… in DisassembleArmInstruction()
[all …]
DAarch64Disassembler.c39 OUT CHAR8 *Buf, in DisassembleInstruction() argument
46 AsciiSPrint (Buf, Size, "AArch64 not supported"); in DisassembleInstruction()
/device/linaro/bootloader/edk2/NetworkPkg/Dhcp6Dxe/
DDhcp6Utility.c622 IN OUT UINT8 *Buf, in Dhcp6AppendOption() argument
642 WriteUnaligned16 ((UINT16 *) Buf, OptType); in Dhcp6AppendOption()
643 Buf += 2; in Dhcp6AppendOption()
644 WriteUnaligned16 ((UINT16 *) Buf, OptLen); in Dhcp6AppendOption()
645 Buf += 2; in Dhcp6AppendOption()
646 CopyMem (Buf, Data, NTOHS (OptLen)); in Dhcp6AppendOption()
647 Buf += NTOHS (OptLen); in Dhcp6AppendOption()
649 return Buf; in Dhcp6AppendOption()
664 IN OUT UINT8 *Buf, in Dhcp6AppendIaAddrOption() argument
694 WriteUnaligned16 ((UINT16 *) Buf, HTONS (Dhcp6OptIaAddr)); in Dhcp6AppendIaAddrOption()
[all …]
DDhcp6Utility.h182 IN OUT UINT8 *Buf,
202 IN OUT UINT8 *Buf,
222 IN OUT UINT8 *Buf,
253 IN UINT8 *Buf,
271 IN UINT8 *Buf,
/device/linaro/bootloader/edk2/SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3/
DDebugCommunicationLibUsb3Dxe.c33 VOID *Buf; in AllocateAlignBuffer() local
35 Buf = NULL; in AllocateAlignBuffer()
38 Buf = (VOID *)(UINTN)0xFFFFFFFF; in AllocateAlignBuffer()
43 (EFI_PHYSICAL_ADDRESS *) &Buf in AllocateAlignBuffer()
47 return Buf; in AllocateAlignBuffer()
DDebugCommunicationLibUsb3Pei.c32 VOID *Buf; in AllocateAlignBuffer() local
36 Buf = NULL; in AllocateAlignBuffer()
39 Buf = NULL; in AllocateAlignBuffer()
41 Buf = (VOID *)(UINTN) Address; in AllocateAlignBuffer()
43 return Buf; in AllocateAlignBuffer()
DDebugCommunicationLibUsb3Common.c347 VOID *Buf; in CreateEventRing() local
355 Buf = AllocateAlignBuffer (sizeof (TRB_TEMPLATE) * EVENT_RING_TRB_NUMBER); in CreateEventRing()
356 ASSERT (Buf != NULL); in CreateEventRing()
357 ASSERT (((UINTN) Buf & 0x3F) == 0); in CreateEventRing()
358 ZeroMem (Buf, sizeof (TRB_TEMPLATE) * EVENT_RING_TRB_NUMBER); in CreateEventRing()
360 EventRing->EventRingSeg0 = (EFI_PHYSICAL_ADDRESS)(UINTN) Buf; in CreateEventRing()
374 Buf = AllocateAlignBuffer (sizeof (EVENT_RING_SEG_TABLE_ENTRY) * ERST_NUMBER); in CreateEventRing()
375 ASSERT (Buf != NULL); in CreateEventRing()
376 ASSERT (((UINTN) Buf & 0x3F) == 0); in CreateEventRing()
377 ZeroMem (Buf, sizeof (EVENT_RING_SEG_TABLE_ENTRY) * ERST_NUMBER); in CreateEventRing()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Dhcp4Dxe/
DDhcp4Option.c500 UINT8 *Buf; in DhcpFillOption() local
508 Buf = OptContext->Buf; in DhcpFillOption()
512 Options[Index].Data = Buf + OptCount[Tag].Offset; in DhcpFillOption()
515 CopyMem (Buf + OptCount[Tag].Offset, Data, Len); in DhcpFillOption()
623 Context.Buf = (UINT8 *) (Options + OptNum); in DhcpParseOption()
741 OUT UINT8 *Buf, in DhcpAppendOption() argument
755 *(Buf++) = Tag; in DhcpAppendOption()
756 *(Buf++) = (UINT8) Len; in DhcpAppendOption()
757 CopyMem (Buf, Data + Index * 255, (UINTN) Len); in DhcpAppendOption()
759 Buf += Len; in DhcpAppendOption()
[all …]
DDhcp4Io.c1182 UINT8 *Buf; in DhcpSendMessage() local
1242 Buf = Packet->Dhcp4.Option; in DhcpSendMessage()
1243 Buf = DhcpAppendOption (Buf, DHCP_TAG_TYPE, 1, &Type); in DhcpSendMessage()
1258 Buf = DhcpAppendOption (Buf, DHCP_TAG_SERVER_ID, 4, (UINT8 *) &IpAddr); in DhcpSendMessage()
1284 Buf = DhcpAppendOption (Buf, DHCP_TAG_REQUEST_IP, 4, (UINT8 *) &IpAddr); in DhcpSendMessage()
1294 Buf = DhcpAppendOption (Buf, DHCP_TAG_MAXMSG, 2, (UINT8 *) &MaxMsg); in DhcpSendMessage()
1302 Buf = DhcpAppendOption (Buf, DHCP_TAG_MESSAGE, (UINT16) Len, Msg); in DhcpSendMessage()
1319 Buf = DhcpAppendOption ( in DhcpSendMessage()
1320 Buf, in DhcpSendMessage()
1328 *(Buf++) = DHCP_TAG_EOP; in DhcpSendMessage()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Usb/UsbBusDxe/
DUsbDesc.c434 IN OUT VOID *Buf, in UsbCtrlRequest() argument
459 Buf, in UsbCtrlRequest()
491 OUT VOID *Buf, in UsbCtrlGetDesc() argument
505 Buf, in UsbCtrlGetDesc()
620 UINT8 *Buf; in UsbGetOneString() local
631 Buf = AllocateZeroPool (Desc.Length); in UsbGetOneString()
633 if (Buf == NULL) { in UsbGetOneString()
642 Buf, in UsbGetOneString()
647 FreePool (Buf); in UsbGetOneString()
651 return (EFI_USB_STRING_DESCRIPTOR *) Buf; in UsbGetOneString()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Ip4Dxe/
DIp4Option.c124 IN OUT UINT8 *Buf, OPTIONAL in Ip4CopyOption() argument
197 if ((Buf == NULL) || (*BufLen < Len)) { in Ip4CopyOption()
206 ZeroMem (Buf, Len); in Ip4CopyOption()
207 CopyMem (Buf, OptBuf, Next); in Ip4CopyOption()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/
DUsbMouseAbsolutePointer.c556 VOID *Buf; in InitializeUsbMouseDevice() local
579 Buf = AllocateZeroPool (ConfigDesc.TotalLength); in InitializeUsbMouseDevice()
580 if (Buf == NULL) { in InitializeUsbMouseDevice()
589 Buf, in InitializeUsbMouseDevice()
593 FreePool (Buf); in InitializeUsbMouseDevice()
599 Head = (USB_DESC_HEAD *)Buf; in InitializeUsbMouseDevice()
622 Head = (USB_DESC_HEAD*)((UINT8 *)Buf + Total); in InitializeUsbMouseDevice()
626 FreePool (Buf); in InitializeUsbMouseDevice()
634 FreePool (Buf); in InitializeUsbMouseDevice()
649 FreePool (Buf); in InitializeUsbMouseDevice()
[all …]
/device/linaro/bootloader/edk2/NetworkPkg/TcpDxe/
DTcpOption.c28 IN UINT8 *Buf in TcpGetUint16() argument
32 CopyMem (&Value, Buf, sizeof (UINT16)); in TcpGetUint16()
46 IN UINT8 *Buf in TcpGetUint32() argument
50 CopyMem (&Value, Buf, sizeof (UINT32)); in TcpGetUint32()
63 OUT UINT8 *Buf, in TcpPutUint32() argument
68 CopyMem (Buf, &Data, sizeof (UINT32)); in TcpPutUint32()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Tcp4Dxe/
DTcp4Option.c27 IN UINT8 *Buf in TcpGetUint16() argument
31 CopyMem (&Value, Buf, sizeof (UINT16)); in TcpGetUint16()
45 IN UINT8 *Buf in TcpGetUint32() argument
49 CopyMem (&Value, Buf, sizeof (UINT32)); in TcpGetUint32()
62 OUT UINT8 *Buf, in TcpPutUint32() argument
67 CopyMem (Buf, &Data, sizeof (UINT32)); in TcpPutUint32()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Usb/UsbMouseDxe/
DUsbMouse.c556 VOID *Buf; in InitializeUsbMouseDevice() local
579 Buf = AllocateZeroPool (ConfigDesc.TotalLength); in InitializeUsbMouseDevice()
580 if (Buf == NULL) { in InitializeUsbMouseDevice()
589 Buf, in InitializeUsbMouseDevice()
593 FreePool (Buf); in InitializeUsbMouseDevice()
599 Head = (USB_DESC_HEAD *)Buf; in InitializeUsbMouseDevice()
622 Head = (USB_DESC_HEAD*)((UINT8 *)Buf + Total); in InitializeUsbMouseDevice()
626 FreePool (Buf); in InitializeUsbMouseDevice()
634 FreePool (Buf); in InitializeUsbMouseDevice()
649 FreePool (Buf); in InitializeUsbMouseDevice()
[all …]
/device/linaro/bootloader/edk2/ArmPlatformPkg/Library/ArmShellCmdRunAxf/
DElfLoader.c34 IN CONST VOID *Buf in IsArmElf() argument
37 Elf32_Ehdr *Hdr = (Elf32_Ehdr*)Buf; in IsArmElf()
57 IN CONST VOID *Buf in IsAarch64Elf() argument
60 Elf64_Ehdr *Hdr = (Elf64_Ehdr*)Buf; in IsAarch64Elf()
86 IN CONST VOID *Buf in ElfCheckHeader() argument
89 Elf32_Ehdr *Hdr32 = (Elf32_Ehdr*)Buf; in ElfCheckHeader()
116 Elf64_Ehdr *Hdr64 = (Elf64_Ehdr*)Buf; in ElfCheckHeader()
/device/linaro/bootloader/edk2/CryptoPkg/Library/BaseCryptLib/Pem/
DCryptPem.c31 OUT CHAR8 *Buf, in PasswordCallback() argument
39 ZeroMem ((VOID *) Buf, (UINTN) Size); in PasswordCallback()
46 CopyMem (Buf, Key, (UINTN) KeyLength); in PasswordCallback()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Ufs/UfsBlockIoPei/
DUfsHcMem.c76 Block->Buf = (UINT8*)((UINTN)Address); in UfsPeimAllocMemBlock()
168 return Block->Buf + (StartByte * 8 + StartBit) * UFS_PEIM_MEM_UNIT; in UfsPeimAllocMemFromBlock()
419 if ((Block->Buf <= ToFree) && ((ToFree + AllocSize) <= (Block->Buf + Block->BufLen))) { in UfsPeimFreeMem()
423 Byte = ((ToFree - Block->Buf) / UFS_PEIM_MEM_UNIT) / 8; in UfsPeimFreeMem()
424 Bit = ((ToFree - Block->Buf) / UFS_PEIM_MEM_UNIT) % 8; in UfsPeimFreeMem()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/UhciDxe/
DUsbHcMem.c105 Block->Buf = (UINT8 *) ((UINTN) MappedAddr); in UsbHcAllocMemBlock()
220 return Block->Buf + (StartByte * 8 + StartBit) * USBHC_MEM_UNIT; in UsbHcAllocMemFromBlock()
267 PhyAddr = (EFI_PHYSICAL_ADDRESS)(UINTN) (Block->Buf + Offset); in UsbHcGetPciAddressForHostMem()
527 if ((Block->Buf <= ToFree) && ((ToFree + AllocSize) <= (Block->Buf + Block->BufLen))) { in UsbHcFreeMem()
531 Byte = ((ToFree - Block->Buf) / USBHC_MEM_UNIT) / 8; in UsbHcFreeMem()
532 Bit = ((ToFree - Block->Buf) / USBHC_MEM_UNIT) % 8; in UsbHcFreeMem()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/EhciPei/
DUsbHcMem.c101 Block->Buf = (UINT8 *) ((UINTN) MappedAddr); in UsbHcAllocMemBlock()
195 return Block->Buf + (StartByte * 8 + StartBit) * USBHC_MEM_UNIT; in UsbHcAllocMemFromBlock()
457 if ((Block->Buf <= ToFree) && ((ToFree + AllocSize) <= (Block->Buf + Block->BufLen))) { in UsbHcFreeMem()
461 Byte = ((ToFree - Block->Buf) / USBHC_MEM_UNIT) / 8; in UsbHcFreeMem()
462 Bit = ((ToFree - Block->Buf) / USBHC_MEM_UNIT) % 8; in UsbHcFreeMem()
/device/linaro/bootloader/edk2/StdLibPrivateInternalFiles/Include/
Dkfile.h112 ssize_t (EFIAPI *fo_read) (struct __filedes *filp, off_t *Offset, size_t Len, void *Buf);
113 …ssize_t (EFIAPI *fo_write) (struct __filedes *filp, off_t *Offset, size_t Len, const void *Buf);
121 int (EFIAPI *fo_stat) (struct __filedes *filp, struct stat *StatBuf, void *Buf);
176 int EFIAPI fbadop_stat (struct __filedes *filp, struct stat *StatBuf, void *Buf);
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/
DString.c525 IN OUT UINT8 *Buf, in HexStringToBuf() argument
594 Byte = Buf[Idx / 2]; in HexStringToBuf()
599 Buf[Idx / 2] = Byte; in HexStringToBuf()
613 IN UINT8 *Buf, in BufToHexString() argument
659 Byte = Buf[Idx]; in BufToHexString()
/device/linaro/bootloader/edk2/MdeModulePkg/Library/PiDxeS3BootScriptLib/
DBootScriptExecute.c199 Out.Buf = (UINT8 *) Buffer; in ScriptIoRead()
212 for (; Count > 0; Count--, Address += AddressStride, Out.Buf += BufferStride) { in ScriptIoRead()
305 In.Buf = (UINT8 *) Buffer; in ScriptIoWrite()
319 OriginalIn.Buf = In.Buf; in ScriptIoWrite()
320 for (; Count > 0; Count--, Address += AddressStride, In.Buf += BufferStride) { in ScriptIoWrite()
439 Out.Buf = Buffer; in ScriptMemoryRead()
448 for (; Count > 0; Count--, Address += AddressStride, Out.Buf += BufferStride) { in ScriptMemoryRead()
540 In.Buf = Buffer; in ScriptMemoryWrite()
550 OriginalIn.Buf = In.Buf; in ScriptMemoryWrite()
551 for (; Count > 0; Count--, Address += AddressStride, In.Buf += BufferStride) { in ScriptMemoryWrite()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciPei/
DUsbHcMem.c85 Block->Buf = (UINT8 *) (UINTN) TempPtr; in UsbHcAllocMemBlock()
227 PhyAddr = (EFI_PHYSICAL_ADDRESS) (UINTN) (Block->Buf + Offset); in UsbHcGetPciAddrForHostAddr()
266 …if ((Block->Buf <= (UINT8 *) Mem) && (((UINT8 *) Mem + AllocSize) <= (Block->Buf + Block->BufLen))… in UsbHcGetHostAddrForPciAddr()
275 Offset = (UINT8 *) Mem - Block->Buf; in UsbHcGetHostAddrForPciAddr()

1234