Home
last modified time | relevance | path

Searched refs:Ptr (Results 1 – 25 of 167) sorted by relevance

1234567

/device/linaro/bootloader/edk2/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/
DQemuFlash.c63 volatile UINT8 *Ptr; in QemuFlashDetected() local
70 Ptr = QemuFlashPtr (0, 0); in QemuFlashDetected()
73 Ptr = QemuFlashPtr (0, Offset); in QemuFlashDetected()
74 ProbeUint8 = *Ptr; in QemuFlashDetected()
87 DEBUG ((EFI_D_INFO, "QEMU Flash: Attempting flash detection at %p\n", Ptr)); in QemuFlashDetected()
89 OriginalUint8 = *Ptr; in QemuFlashDetected()
90 *Ptr = CLEAR_STATUS_CMD; in QemuFlashDetected()
91 ProbeUint8 = *Ptr; in QemuFlashDetected()
95 *Ptr = OriginalUint8; in QemuFlashDetected()
97 *Ptr = READ_STATUS_CMD; in QemuFlashDetected()
[all …]
/device/linaro/bootloader/edk2/OvmfPkg/QemuVideoDxe/
DVbeShim.c72 UINT8 *Ptr; in InstallVbeShim() local
151 Ptr = VbeInfoFull->Buffer; in InstallVbeShim()
156 VbeInfo->OemNameAddress = (UINT32)SegmentC << 12 | (UINT16)(UINTN)Ptr; in InstallVbeShim()
157 CopyMem (Ptr, "QEMU", 5); in InstallVbeShim()
158 Ptr += 5; in InstallVbeShim()
162 VbeInfo->ModeListAddress = (UINT32)SegmentC << 12 | (UINT16)(UINTN)Ptr; in InstallVbeShim()
163 *(UINT16*)Ptr = 0x00f1; // mode number in InstallVbeShim()
164 Ptr += 2; in InstallVbeShim()
165 *(UINT16*)Ptr = 0xFFFF; // mode list terminator in InstallVbeShim()
166 Ptr += 2; in InstallVbeShim()
[all …]
/device/linaro/bootloader/OpenPlatformPkg/Chips/Hisilicon/Drivers/PciHostBridgeDxe/
DPciHostBridge.c1162 UINT8 *Ptr; in SetBusNumbers() local
1171 Ptr = Configuration; in SetBusNumbers()
1176 if(*Ptr != ACPI_ADDRESS_SPACE_DESCRIPTOR) { in SetBusNumbers()
1180 if (((EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR *)Ptr)->ResType != 2) { in SetBusNumbers()
1184 Ptr += sizeof(EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR); in SetBusNumbers()
1185 if (*Ptr != ACPI_END_TAG_DESCRIPTOR) { in SetBusNumbers()
1192 Ptr = Configuration; in SetBusNumbers()
1197 BusStart = (UINTN)((EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR *)Ptr)->AddrRangeMin; in SetBusNumbers()
1198 BusLen = (UINTN)((EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR *)Ptr)->AddrLen; in SetBusNumbers()
1232 IN EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR *Ptr, in SubmitGetResourceType() argument
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/ModifyInf/
DModifyInf.c141 char *Ptr; in ApplyPattern() local
151 Ptr = Line; in ApplyPattern()
152 if (*Ptr == '[') { in ApplyPattern()
153 while (*Ptr != ']') { in ApplyPattern()
154 if (!(*Ptr++)) { in ApplyPattern()
158 SectionLength = Ptr - Line + 1; in ApplyPattern()
215 Ptr = strstr (Line, "="); in ApplyPattern()
216 if (!Ptr) { in ApplyPattern()
220 while (*(++Ptr) == ' ') in ApplyPattern()
222 *Ptr = 0; in ApplyPattern()
[all …]
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/FirmwareVolume/FwVolDxe/
DFwVol.c326 UINT8 *Ptr; in FvCheck() local
382 Ptr = NULL; in FvCheck()
394 Ptr = (UINT8 *) ((UINTN) BaseAddress); in FvCheck()
420 CopyMem (LbaStart, Ptr, BlockMap->Length); in FvCheck()
421 Ptr += BlockMap->Length; in FvCheck()
479 Ptr = (UINT8 *) FwVolExtHeader + FwVolExtHeader->ExtHeaderSize; in FvCheck()
480 Ptr = (UINT8 *) ALIGN_POINTER (Ptr, 8); in FvCheck()
482 Ptr = (UINT8 *) (UINTN) (FvDevice->CachedFv + FvDevice->FwVolHeader->HeaderLength); in FvCheck()
489 while (Ptr < TopFvAddress) { in FvCheck()
490 TestLength = TopFvAddress - Ptr; in FvCheck()
[all …]
/device/linaro/bootloader/edk2/ArmPkg/Library/RvdPeCoffExtraActionLib/
DRvdPeCoffExtraActionLib.c74 CHAR8 *Ptr; in DeCygwinPathIfNeeded() local
78 Ptr = AsciiStrStr (Name, "/cygdrive/"); in DeCygwinPathIfNeeded()
79 if (Ptr == NULL) { in DeCygwinPathIfNeeded()
83 Len = AsciiStrLen (Ptr); in DeCygwinPathIfNeeded()
87 Ptr[Index] = ' '; in DeCygwinPathIfNeeded()
91 Ptr[9] = Ptr[10]; in DeCygwinPathIfNeeded()
92 Ptr[10] = ':'; in DeCygwinPathIfNeeded()
96 if (Ptr[Index] == '/') { in DeCygwinPathIfNeeded()
97 Ptr[Index] = '\\' ; in DeCygwinPathIfNeeded()
/device/linaro/bootloader/edk2/StdLib/LibC/StdLib/
DMalloc.c169 free(void *Ptr) in free() argument
173 Head = BASE_CR(Ptr, CPOOL_HEAD, Data); in free()
175 DEBUG((DEBUG_POOL, "free(%p): Head: %p\n", Ptr, Head)); in free()
177 if(Ptr != NULL) { in free()
185 Ptr, Head->Signature, CPOOL_HEAD_SIGNATURE)); in free()
234 realloc(void *Ptr, size_t ReqSize) in realloc() argument
243 if( Ptr != NULL) { in realloc()
244 Head = BASE_CR (Ptr, CPOOL_HEAD, Data); in realloc()
249 Ptr, Head->Signature, CPOOL_HEAD_SIGNATURE)); in realloc()
260 if( Ptr != NULL) { // If there is an OLD region... in realloc()
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/
DLinkedList.c53 CONST LIST_ENTRY *Ptr; in IsNodeInList() local
66 Ptr = List; in IsNodeInList()
68 Ptr = Ptr->ForwardLink; in IsNodeInList()
70 } while ((Ptr != List) && (Ptr != Node) && (Count > 0)); in IsNodeInList()
71 Found = (BOOLEAN)(Ptr == Node); in IsNodeInList()
74 while ((Count > 0) && (Ptr != List)) { in IsNodeInList()
75 Ptr = Ptr->ForwardLink; in IsNodeInList()
399 LIST_ENTRY *Ptr; in GlueSwapListEntries() local
413 Ptr = RemoveEntryList (FirstEntry); in GlueSwapListEntries()
419 if (Ptr->BackLink == SecondEntry) { in GlueSwapListEntries()
[all …]
/device/linaro/bootloader/edk2/MdePkg/Library/BaseLib/
DLinkedList.c55 CONST LIST_ENTRY *Ptr; in InternalBaseLibIsNodeInList() local
66 Ptr = List; in InternalBaseLibIsNodeInList()
74 Ptr = Ptr->ForwardLink; in InternalBaseLibIsNodeInList()
86 return (BOOLEAN)(Ptr == Node); in InternalBaseLibIsNodeInList()
89 } while ((Ptr != List) && (Ptr != Node)); in InternalBaseLibIsNodeInList()
91 if (Ptr != Node) { in InternalBaseLibIsNodeInList()
102 Ptr = Ptr->ForwardLink; in InternalBaseLibIsNodeInList()
104 } while ((Ptr != List) && (Count < PcdGet32 (PcdMaximumLinkedListLength))); in InternalBaseLibIsNodeInList()
478 LIST_ENTRY *Ptr; in SwapListEntries() local
492 Ptr = RemoveEntryList (FirstEntry); in SwapListEntries()
[all …]
/device/linaro/bootloader/edk2/ArmPlatformPkg/ArmJunoPkg/Drivers/PciHostBridgeDxe/
DPciHostBridgeResourceAllocation.c284 UINT8 *Ptr; in PciHbRaStartBusEnumeration() local
298 Ptr = (UINT8 *)Buffer; in PciHbRaStartBusEnumeration()
300 …((EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR *)Ptr)->Desc = ACPI_ADDRESS_SPACE_DESCRIPTOR; // QWORD Addr… in PciHbRaStartBusEnumeration()
301 …((EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR *)Ptr)->Len = 0x2B; // Length of this descriptor in bytes … in PciHbRaStartBusEnumeration()
302 …((EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR *)Ptr)->ResType = ACPI_ADDRESS_SPACE_TYPE_BUS; // Resource Ty… in PciHbRaStartBusEnumeration()
303 ((EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR *)Ptr)->GenFlag = 0; in PciHbRaStartBusEnumeration()
304 ((EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR *)Ptr)->SpecificFlag = 0; in PciHbRaStartBusEnumeration()
305 ((EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR *)Ptr)->AddrSpaceGranularity = 0; in PciHbRaStartBusEnumeration()
306 …((EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR *)Ptr)->AddrRangeMin = HostBridgeInstance->RootBridge->BusStar… in PciHbRaStartBusEnumeration()
307 ((EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR *)Ptr)->AddrRangeMax = 0; // Bus Max in PciHbRaStartBusEnumeration()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/FaultTolerantWriteDxe/
DUpdateWorkingBlock.c153 UINT8 *Ptr; in ReadWorkSpaceData() local
164 Ptr = Buffer; in ReadWorkSpaceData()
177 Ptr in ReadWorkSpaceData()
184 Ptr += MyLength; in ReadWorkSpaceData()
216 UINT8 *Ptr; in WriteWorkSpaceData() local
227 Ptr = Buffer; in WriteWorkSpaceData()
240 Ptr in WriteWorkSpaceData()
247 Ptr += MyLength; in WriteWorkSpaceData()
382 UINT8 *Ptr; in FtwReclaimWorkSpace() local
398 Ptr = TempBuffer; in FtwReclaimWorkSpace()
[all …]
/device/linaro/bootloader/edk2/OvmfPkg/Library/PlatformDebugLibIoPort/
DDebugLib.c72 UINT8 *Ptr; in DebugPrint() local
96 for (Ptr = (UINT8 *) Buffer; *Ptr; Ptr++) { in DebugPrint()
97 IoWrite8 (PcdGet16(PcdDebugIoPort), *Ptr); in DebugPrint()
132 UINT8 *Ptr; in DebugAssert() local
143 for (Ptr = (UINT8 *) Buffer; *Ptr; Ptr++) { in DebugAssert()
144 IoWrite8 (PcdGet16(PcdDebugIoPort), *Ptr); in DebugAssert()
/device/linaro/bootloader/edk2/MdeModulePkg/Library/VarCheckHiiLib/
DVarCheckHiiLibNullClass.c93 UINT8 *Ptr; in VarCheckHiiQuestion() local
107 Ptr = (UINT8 *) ((VAR_CHECK_HII_QUESTION_ONEOF *) HiiQuestion + 1); in VarCheckHiiQuestion()
108 while ((UINTN) Ptr < (UINTN) HiiQuestion + HiiQuestion->Length) { in VarCheckHiiQuestion()
110 CopyMem (&OneValue, Ptr, HiiQuestion->StorageWidth); in VarCheckHiiQuestion()
117 Ptr += HiiQuestion->StorageWidth; in VarCheckHiiQuestion()
119 if ((UINTN) Ptr >= ((UINTN) HiiQuestion + HiiQuestion->Length)) { in VarCheckHiiQuestion()
140 Ptr = (UINT8 *) ((VAR_CHECK_HII_QUESTION_NUMERIC *) HiiQuestion + 1); in VarCheckHiiQuestion()
141 CopyMem (&Minimum, Ptr, HiiQuestion->StorageWidth); in VarCheckHiiQuestion()
142 Ptr += HiiQuestion->StorageWidth; in VarCheckHiiQuestion()
143 CopyMem (&Maximum, Ptr, HiiQuestion->StorageWidth); in VarCheckHiiQuestion()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Library/VarCheckPcdLib/
DVarCheckPcdLibNullClass.c102 UINT8 *Ptr; in VarCheckPcdValidData() local
109 Ptr = (UINT8 *) ((VAR_CHECK_PCD_VALID_LIST *) PcdValidData + 1); in VarCheckPcdValidData()
110 while ((UINTN) Ptr < (UINTN) PcdValidData + PcdValidData->Length) { in VarCheckPcdValidData()
112 CopyMem (&OneValue, Ptr, PcdValidData->StorageWidth); in VarCheckPcdValidData()
119 Ptr += PcdValidData->StorageWidth; in VarCheckPcdValidData()
121 if ((UINTN) Ptr >= ((UINTN) PcdValidData + PcdValidData->Length)) { in VarCheckPcdValidData()
134 Ptr = (UINT8 *) ((VAR_CHECK_PCD_VALID_RANGE *) PcdValidData + 1); in VarCheckPcdValidData()
135 while ((UINTN) Ptr < (UINTN) PcdValidData + PcdValidData->Length) { in VarCheckPcdValidData()
136 CopyMem (&Minimum, Ptr, PcdValidData->StorageWidth); in VarCheckPcdValidData()
137 Ptr += PcdValidData->StorageWidth; in VarCheckPcdValidData()
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/C/Common/
DMyAlloc.c293 VOID *Ptr, in MyRealloc() argument
332 Ptr, in MyRealloc()
344 Ptr, in MyRealloc()
357 Ptr, in MyRealloc()
368 if (Ptr == NULL) { in MyRealloc()
370 } else if (&MyAllocData->Buffer[sizeof (UINT32)] == Ptr) { in MyRealloc()
378 Ptr, in MyRealloc()
402 MyFree (Ptr, (UINT8 *)__FILE__, __LINE__); in MyRealloc()
413 VOID *Ptr, in MyFree() argument
449 Ptr, in MyFree()
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/Common/
DMyAlloc.c278 VOID *Ptr, in MyRealloc() argument
317 Ptr, in MyRealloc()
330 Ptr, in MyRealloc()
341 if (Ptr == NULL) { in MyRealloc()
343 } else if (&MyAllocData->Buffer[sizeof (UINT32)] == Ptr) { in MyRealloc()
351 Ptr, in MyRealloc()
375 MyFree (Ptr, __FILE__, __LINE__); in MyRealloc()
386 VOID *Ptr, in MyFree() argument
422 Ptr, in MyFree()
434 Ptr, in MyFree()
[all …]
/device/linaro/bootloader/edk2/OvmfPkg/VirtioNetDxe/
DSnpTransmit.c122 UINT8 *Ptr; in VirtioNetTransmit() local
129 Ptr = Buffer; in VirtioNetTransmit()
132 CopyMem (Ptr, DestAddr, SIZE_OF_VNET (Mac)); in VirtioNetTransmit()
133 Ptr += SIZE_OF_VNET (Mac); in VirtioNetTransmit()
135 CopyMem (Ptr, in VirtioNetTransmit()
138 Ptr += SIZE_OF_VNET (Mac); in VirtioNetTransmit()
140 *Ptr++ = (UINT8) (*Protocol >> 8); in VirtioNetTransmit()
141 *Ptr++ = (UINT8) *Protocol; in VirtioNetTransmit()
143 ASSERT ((UINTN) (Ptr - (UINT8 *) Buffer) == Dev->Snm.MediaHeaderSize); in VirtioNetTransmit()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/PciBusDxe/
DPciEnumerator.c1123 EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR *Ptr; in ConstructAcpiResourceRequestor() local
1182 Ptr = (EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR *) Configuration; in ConstructAcpiResourceRequestor()
1188 Ptr->Desc = ACPI_ADDRESS_SPACE_DESCRIPTOR; in ConstructAcpiResourceRequestor()
1189 Ptr->Len = (UINT16) (sizeof (EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR) - 3); in ConstructAcpiResourceRequestor()
1193 Ptr->ResType = ACPI_ADDRESS_SPACE_TYPE_IO; in ConstructAcpiResourceRequestor()
1197 Ptr->SpecificFlag = 1; in ConstructAcpiResourceRequestor()
1198 Ptr->AddrLen = IoNode->Length; in ConstructAcpiResourceRequestor()
1199 Ptr->AddrRangeMax = IoNode->Alignment; in ConstructAcpiResourceRequestor()
1201 Ptr++; in ConstructAcpiResourceRequestor()
1207 Ptr->Desc = ACPI_ADDRESS_SPACE_DESCRIPTOR; in ConstructAcpiResourceRequestor()
[all …]
/device/linaro/bootloader/edk2/EmbeddedPkg/Ebl/
DScript.c56 CHAR8 *Ptr; in EblScriptCmd() local
76 …for (Ptr = (CHAR8 *)Address; (Ptr < (((CHAR8 *)Address) + Size)) && !EFI_ERROR (Status); Ptr += Cm… in EblScriptCmd()
77 for (CmdLineSize = 0, ScanPtr = Ptr; ; CmdLineSize++, ScanPtr++) { in EblScriptCmd()
93 Status = ProcessCmdLine (Ptr, CmdLineSize); in EblScriptCmd()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/ProcessDsc/
DFWVolume.c313 FILE_LIST *Ptr; in CFVAddFVFile() local
380 Ptr = mFileList; in CFVAddFVFile()
381 while (Ptr != NULL) { in CFVAddFVFile()
382 … if ((Ptr->BaseName != NULL) && (BaseName != NULL) && (_stricmp (BaseName, Ptr->BaseName) == 0)) { in CFVAddFVFile()
383 …if ((Ptr->Processor != NULL) && (Processor != NULL) && (_stricmp (Processor, Ptr->Processor) == 0)… in CFVAddFVFile()
389 if ((Ptr->Guid != NULL) && (Guid != NULL) && (_stricmp (Guid, Ptr->Guid) == 0)) { in CFVAddFVFile()
390 if ((Ptr->FVs != NULL) && (FVs != NULL) && (InSameFv (FVs, Ptr->FVs))) { in CFVAddFVFile()
392 (Ptr->BaseName==NULL)?"Unknown":Ptr->BaseName, in CFVAddFVFile()
398 Ptr = Ptr->Next; in CFVAddFVFile()
404 Ptr = (FILE_LIST *) malloc (sizeof (FILE_LIST)); in CFVAddFVFile()
[all …]
/device/linaro/bootloader/edk2/ArmVirtPkg/Library/QemuFwCfgLib/
DQemuFwCfgLib.c213 UINT8 *Ptr; in MmioReadBytes() local
223 Ptr = Buffer; in MmioReadBytes()
224 End = Ptr + Size; in MmioReadBytes()
227 while (Ptr < End) { in MmioReadBytes()
228 *(UINT64 *)Ptr = MmioRead64 (mFwCfgDataAddress); in MmioReadBytes()
229 Ptr += 8; in MmioReadBytes()
232 *(UINT32 *)Ptr = MmioRead32 (mFwCfgDataAddress); in MmioReadBytes()
233 Ptr += 4; in MmioReadBytes()
236 while (Ptr < End) { in MmioReadBytes()
237 *(UINT32 *)Ptr = MmioRead32 (mFwCfgDataAddress); in MmioReadBytes()
[all …]
/device/linaro/bootloader/edk2/OvmfPkg/EmuVariableFvbRuntimeDxe/
DFvb.c625 IN VOID *Ptr in InitializeFvAndVariableStoreHeaders() argument
772 CopyMem (Ptr, (VOID*)&FvAndVarTemplate, sizeof (FvAndVarTemplate)); in InitializeFvAndVariableStoreHeaders()
774 CopyMem (Ptr, (VOID*)&FvAndAuthenticatedVarTemplate, sizeof (FvAndAuthenticatedVarTemplate)); in InitializeFvAndVariableStoreHeaders()
780 Fv = (EFI_FIRMWARE_VOLUME_HEADER*) Ptr; in InitializeFvAndVariableStoreHeaders()
781 Fv->Checksum = CalculateCheckSum16 (Ptr, Fv->HeaderLength); in InitializeFvAndVariableStoreHeaders()
801 VOID *Ptr; in FvbInitialize() local
839 Ptr = (VOID*)(UINTN) PcdGet64 (PcdEmuVariableNvStoreReserved); in FvbInitialize()
843 Ptr in FvbInitialize()
845 Status = ValidateFvHeader (Ptr); in FvbInitialize()
851 Ptr = AllocateAlignedRuntimePages ( in FvbInitialize()
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/CompilerStub/
Dmemset.c37 volatile UINT8 *Ptr; in memset() local
39 for (Ptr = Dest; Count > 0; Count--, Ptr++) { in memset()
40 *Ptr = (UINT8) Char; in memset()
Dmemcpy.c37 volatile UINT8 *Ptr; in memcpy() local
40 for (Ptr = Dest, Source = Src; Count > 0; Count--, Source++, Ptr++) { in memcpy()
41 *Ptr = *Source; in memcpy()
/device/linaro/bootloader/edk2/OvmfPkg/Library/QemuBootOrderLib/
DQemuBootOrderLib.c95 CONST CHAR8 *Ptr; // not necessarily NUL-terminated member
128 while (Pos < Substring.Len && Substring.Ptr[Pos] == *Chr) { in SubstringEq()
198 Chr = UnitAddress.Ptr[Pos]; in ParseUnitAddressHexList()
439 IN OUT CONST CHAR8 **Ptr, in ParseOfwNode() argument
447 switch (**Ptr) { in ParseOfwNode()
452 ++*Ptr; in ParseOfwNode()
462 OfwNode->DriverName.Ptr = *Ptr; in ParseOfwNode()
465 (IsAlnum (**Ptr) || IsDriverNamePunct (**Ptr)) in ParseOfwNode()
467 ++*Ptr; in ParseOfwNode()
479 if (**Ptr != '@') { in ParseOfwNode()
[all …]

1234567