Home
last modified time | relevance | path

Searched refs:Offset (Results 1 – 25 of 581) sorted by relevance

12345678910>>...24

/device/linaro/bootloader/edk2/ArmPkg/Library/ArmDisassemblerLib/
DThumbDisassembler.c493 UINT32 Offset; in DisassembleThumbInstruction() local
532 Offset = AsciiSPrint (Buf, Size, "0x%04x %-6a", OpCode, gOpThumb[Index].Start); in DisassembleThumbInstruction()
534 Offset = AsciiSPrint (Buf, Size, "%-6a", gOpThumb[Index].Start); in DisassembleThumbInstruction()
539 … AsciiSPrint (&Buf[Offset], Size - Offset, " r%d, [r%d #0x%x]", Rd, Rn, (OpCode >> 4) & 0x7c); in DisassembleThumbInstruction()
543 … AsciiSPrint (&Buf[Offset], Size - Offset, " r%d, [r%d #0x%x]", Rd, Rn, (OpCode >> 5) & 0x3e); in DisassembleThumbInstruction()
547 … AsciiSPrint (&Buf[Offset], Size - Offset, " r%d, [r%d #0x%x]", Rd, Rn, (OpCode >> 6) & 0x1f); in DisassembleThumbInstruction()
552 AsciiSPrint (&Buf[Offset], Size - Offset, " r%d, [r%d, r%d]", Rd, Rn, Rm); in DisassembleThumbInstruction()
557 …AsciiSPrint (&Buf[Offset], Size - Offset, " r%d, [pc, #0x%x] ;0x%08x", (OpCode >> 8) & 7, Target, … in DisassembleThumbInstruction()
562 AsciiSPrint (&Buf[Offset], Size - Offset, " r%d, [sp, #0x%x]", (OpCode >> 8) & 7, Target); in DisassembleThumbInstruction()
567 …AsciiSPrint (&Buf[Offset], Size - Offset, " r%d!, %a", (OpCode >> 8) & 7, ThumbMRegList (OpCode & … in DisassembleThumbInstruction()
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/C/Common/
DOsPath.c63 INTN Offset;
92 for (Offset = Length; Offset > 0; Offset--) {
93 if ((Return[Offset] == '/') || (Return[Offset] == '\\')) {
94 Return[Offset] = '\0';
133 INTN Offset;
143 for (Offset = 0; Offset < Length; Offset++) {
144 Remaining = Length - Offset;
151 ((Offset > 0) || (Path[0] != '\\')) &&
152 IsDirSep (Path[Offset]) && IsDirSep (Path[Offset + 1])
154 memmove (&Path[Offset], &Path[Offset + 1], Remaining);
[all …]
/device/linaro/bootloader/edk2/NetworkPkg/Ip6Dxe/
DIp6Option.c44 UINT8 Offset; in Ip6IsOptionValid() local
47 Offset = 0; in Ip6IsOptionValid()
49 while (Offset < OptionLen) { in Ip6IsOptionValid()
50 OptionType = *(Option + Offset); in Ip6IsOptionValid()
57 Offset++; in Ip6IsOptionValid()
63 Offset = (UINT8) (Offset + *(Option + Offset + 1) + 2); in Ip6IsOptionValid()
69 Offset += 4; in Ip6IsOptionValid()
78 Offset = (UINT8) (Offset + *(Option + Offset + 1)); in Ip6IsOptionValid()
83 Pointer = Pointer + Offset + sizeof (EFI_IP6_HEADER); in Ip6IsOptionValid()
96 Pointer = Pointer + Offset + sizeof (EFI_IP6_HEADER); in Ip6IsOptionValid()
[all …]
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/Opal/OpalPasswordSmm/
DOpalAhciMode.c67 IN UINT32 Offset in AhciReadReg() argument
74 Data = MmioRead32 (mAhciBar + Offset); in AhciReadReg()
89 IN UINT32 Offset, in AhciWriteReg() argument
93 MmioWrite32 (mAhciBar + Offset, Data); in AhciWriteReg()
108 IN UINT32 Offset, in AhciAndReg() argument
114 Data = AhciReadReg (Offset); in AhciAndReg()
118 AhciWriteReg (Offset, Data); in AhciAndReg()
131 IN UINT32 Offset, in AhciOrReg() argument
137 Data = AhciReadReg (Offset); in AhciOrReg()
141 AhciWriteReg (Offset, Data); in AhciOrReg()
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/Python/GenFds/
DFd.py56 Offset = 0x00
58 Offset = Offset + item[0] * item[1]
59 if Offset != self.Size:
75 if RegionObj.Offset + RegionObj.Size <= PreviousRegionStart:
77 …elif RegionObj.Offset <= PreviousRegionStart or (RegionObj.Offset >=PreviousRegionStart and Region…
79 elif RegionObj.Offset > PreviousRegionStart + PreviousRegionSize:
80 …X, with size 0x%X' %(PreviousRegionStart + PreviousRegionSize, RegionObj.Offset - (PreviousRegionS…
82 PadRegion.Offset = PreviousRegionStart + PreviousRegionSize
83 PadRegion.Size = RegionObj.Offset - PadRegion.Offset
85 PreviousRegionStart = RegionObj.Offset
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciDxe/
DXhciReg.c31 IN UINT32 Offset in XhcReadCapReg8() argument
41 (UINT64) Offset, in XhcReadCapReg8()
47 DEBUG ((EFI_D_ERROR, "XhcReadCapReg: Pci Io read error - %r at %d\n", Status, Offset)); in XhcReadCapReg8()
67 IN UINT32 Offset in XhcReadCapReg() argument
77 (UINT64) Offset, in XhcReadCapReg()
83 DEBUG ((EFI_D_ERROR, "XhcReadCapReg: Pci Io read error - %r at %d\n", Status, Offset)); in XhcReadCapReg()
103 IN UINT32 Offset in XhcReadOpReg() argument
115 (UINT64) (Xhc->CapLength + Offset), in XhcReadOpReg()
121 DEBUG ((EFI_D_ERROR, "XhcReadOpReg: Pci Io Read error - %r at %d\n", Status, Offset)); in XhcReadOpReg()
139 IN UINT32 Offset, in XhcWriteOpReg() argument
[all …]
DXhciReg.h239 IN UINT32 Offset
255 IN UINT32 Offset
271 IN UINT32 Offset
285 IN UINT32 Offset,
300 IN UINT32 Offset,
316 IN UINT32 Offset
330 IN UINT32 Offset,
346 IN UINT32 Offset
360 IN UINT32 Offset,
375 IN UINT32 Offset,
[all …]
/device/linaro/bootloader/OpenPlatformPkg/Chips/Hisilicon/Drivers/NorFlashDxe/
DNorFlashDxe.c30 IN UINT32 Offset,
36 IN UINT32 Offset,
43 IN UINT32 Offset,
58 IN UINT32 Offset, in Read() argument
71 …if (Offset + ulLen > (gFlashInfo[gIndex.InfIndex].SingleChipSize * gFlashInfo[gIndex.InfIndex].Par… in Read()
88 ullAddr = gIndex.Base + Offset; in Read()
104 ullCnt = Offset % FOUR_BYTE_UNIT; in Read()
139 IN const UINT32 Offset, in WriteAfterErase_Fill() argument
158 if ((Offset % FlashUnitLength + Length) > FlashUnitLength) in WriteAfterErase_Fill()
173 NewOffset = Offset - (Offset % FlashUnitLength); in WriteAfterErase_Fill()
[all …]
/device/linaro/bootloader/OpenPlatformPkg/Chips/Hisilicon/Hi1610/Hi1610AcpiTables/Dsdt/
DD03Sas.asl73 Offset (0x338),
76 Offset (0xa60),
79 Offset (0x5a30),
85 Offset (0x0014),
87 Offset (0x0414),
89 Offset (0x0814),
91 Offset (0x0c14),
93 Offset (0x1014),
95 Offset (0x1414),
97 Offset (0x1814),
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Compatibility/PiSmbiosRecordOnDataHubSmbiosRecordThunk/
DThunk.h71 IN UINT32 Offset OPTIONAL,
105 UINT32 Offset; member
302 IN UINT32 Offset,
366 IN UINT32 Offset,
386 IN UINT32 Offset,
406 IN UINT32 Offset,
425 IN UINT32 Offset,
444 IN UINT32 Offset,
462 IN UINT32 Offset,
482 IN UINT32 Offset,
[all …]
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkNorthCluster/MemoryInit/Pei/
Dhte.c158 UINT32 Offset; in HteMemInit() local
170 for (Offset = 0x80; Offset <= 0x8F; Offset++) in HteMemInit()
172 isbW32m(HTE, Offset, ((Offset & 1) ? 0xA55A : 0x5AA5)); in HteMemInit()
279 UINT32 Offset; in BasicDataCompareHte() local
301 for (Offset = 0x80; Offset <= 0x8F; Offset++) in BasicDataCompareHte()
303 isbW32m(HTE, Offset, Pattern); in BasicDataCompareHte()
351 UINT32 Offset; in ReadWriteDataCompareHte() local
370 for (Offset = 0x80; Offset <= 0x8F; Offset++) in ReadWriteDataCompareHte()
372 if ((Offset % 8) == VictimBit) in ReadWriteDataCompareHte()
374 isbW32m(HTE, Offset, 0x55555555); in ReadWriteDataCompareHte()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/
DAhciMode.c31 IN UINT32 Offset in AhciReadReg() argument
44 (UINT64) Offset, in AhciReadReg()
64 IN UINT32 Offset, in AhciWriteReg() argument
74 (UINT64) Offset, in AhciWriteReg()
94 IN UINT32 Offset, in AhciAndReg() argument
102 Data = AhciReadReg (PciIo, Offset); in AhciAndReg()
106 AhciWriteReg (PciIo, Offset, Data); in AhciAndReg()
121 IN UINT32 Offset, in AhciOrReg() argument
129 Data = AhciReadReg (PciIo, Offset); in AhciOrReg()
133 AhciWriteReg (PciIo, Offset, Data); in AhciOrReg()
[all …]
/device/linaro/bootloader/edk2/SecurityPkg/UserIdentification/UserProfileManagerDxe/
DModifyIdentityPolicy.c33 UINTN Offset; in ProviderAlreadyInPolicy() local
37 Offset = 0; in ProviderAlreadyInPolicy()
38 while (Offset < mUserInfo.NewIdentityPolicyLen) { in ProviderAlreadyInPolicy()
39 Identity = (EFI_USER_INFO_IDENTITY_POLICY *) (mUserInfo.NewIdentityPolicy + Offset); in ProviderAlreadyInPolicy()
53 Offset += Identity->Length; in ProviderAlreadyInPolicy()
142 UINTN Offset; in DeleteCredentialFromProviders() local
144 Offset = 0; in DeleteCredentialFromProviders()
145 while (Offset < IdentityPolicyLen) { in DeleteCredentialFromProviders()
146 Identity = (EFI_USER_INFO_IDENTITY_POLICY *) (IdentityPolicy + Offset); in DeleteCredentialFromProviders()
153 Offset += Identity->Length; in DeleteCredentialFromProviders()
[all …]
/device/linaro/bootloader/edk2/EmbeddedPkg/Drivers/Isp1761UsbDxe/
DIsp1761UsbDxe.h20 #define READ_REG32(Offset) MmioRead32 (ISP1761_USB_BASE + Offset) argument
21 #define READ_REG16(Offset) (UINT16) READ_REG32 (Offset) argument
22 #define WRITE_REG32(Offset, Val) MmioWrite32 (ISP1761_USB_BASE + Offset, Val) argument
23 #define WRITE_REG16(Offset, Val) MmioWrite32 (ISP1761_USB_BASE + Offset, (UINT32) Val) argument
24 #define WRITE_REG8(Offset, Val) MmioWrite32 (ISP1761_USB_BASE + Offset, (UINT32) Val) argument
/device/linaro/bootloader/edk2/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/
DQemuFlash.c42 IN UINTN Offset in QemuFlashPtr() argument
45 return mFlashBase + ((UINTN)Lba * mFdBlockSize) + Offset; in QemuFlashPtr()
65 UINTN Offset; in QemuFlashDetected() local
72 for (Offset = 0; Offset < mFdBlockSize; Offset++) { in QemuFlashDetected()
73 Ptr = QemuFlashPtr (0, Offset); in QemuFlashDetected()
82 if (Offset >= mFdBlockSize) { in QemuFlashDetected()
130 IN UINTN Offset, in QemuFlashRead() argument
148 Ptr = (UINT8*) QemuFlashPtr (Lba, Offset); in QemuFlashRead()
169 IN UINTN Offset, in QemuFlashWrite() argument
188 Ptr = QemuFlashPtr (Lba, Offset); in QemuFlashWrite()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/UhciDxe/
DUhciReg.c31 IN UINT32 Offset in UhciReadReg() argument
41 Offset, in UhciReadReg()
47 DEBUG ((EFI_D_ERROR, "UhciReadReg: PciIo Io.Read error: %r at offset %d\n", Status, Offset)); in UhciReadReg()
67 IN UINT32 Offset, in UhciWriteReg() argument
77 Offset, in UhciWriteReg()
83 DEBUG ((EFI_D_ERROR, "UhciWriteReg: PciIo Io.Write error: %r at offset %d\n", Status, Offset)); in UhciWriteReg()
99 IN UINT32 Offset, in UhciSetRegBit() argument
105 Data = UhciReadReg (PciIo, Offset); in UhciSetRegBit()
107 UhciWriteReg (PciIo, Offset, Data); in UhciSetRegBit()
122 IN UINT32 Offset, in UhciClearRegBit() argument
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/PciBusDxe/
DPciCommand.c33 IN UINT8 Offset, in PciOperateRegister() argument
49 Offset, in PciOperateRegister()
71 Offset, in PciOperateRegister()
115 IN OUT UINT8 *Offset, in LocateCapabilityRegBlock() argument
130 if (*Offset != 0) { in LocateCapabilityRegBlock()
131 CapabilityPtr = *Offset; in LocateCapabilityRegBlock()
168 *Offset = CapabilityPtr; in LocateCapabilityRegBlock()
207 IN OUT UINT32 *Offset, in LocatePciExpressCapabilityRegBlock() argument
223 if (*Offset != 0) { in LocatePciExpressCapabilityRegBlock()
224 CapabilityPtr = *Offset; in LocatePciExpressCapabilityRegBlock()
[all …]
/device/linaro/bootloader/edk2/OvmfPkg/Library/SerializeVariablesLib/
DSerializeVariablesLib.c70 UINTN Offset; in UnpackVariableFromBuffer() local
73 Offset = 0; in UnpackVariableFromBuffer()
75 *NameSize = *(UINT32*) (BytePtr + Offset); in UnpackVariableFromBuffer()
76 Offset = Offset + sizeof (UINT32); in UnpackVariableFromBuffer()
78 if (Offset > MaxSize) { in UnpackVariableFromBuffer()
82 *Name = (CHAR16*) (BytePtr + Offset); in UnpackVariableFromBuffer()
83 Offset = Offset + *(UINT32*)BytePtr; in UnpackVariableFromBuffer()
84 if (Offset > MaxSize) { in UnpackVariableFromBuffer()
88 *Guid = (EFI_GUID*) (BytePtr + Offset); in UnpackVariableFromBuffer()
89 Offset = Offset + sizeof (EFI_GUID); in UnpackVariableFromBuffer()
[all …]
/device/linaro/bootloader/edk2/OptionRomPkg/Library/FrameBufferBltLib/
DFrameBufferBltLib.c246 UINTN Offset; in BltLibVideoFill() local
309 Offset = DestinationY * mBltLibWidthInPixels; in BltLibVideoFill()
310 Offset = mBltLibBytesPerPixel * Offset; in BltLibVideoFill()
311 BltMemDst = (VOID*) (mBltLibFrameBuffer + Offset); in BltLibVideoFill()
323 Offset = (DstY * mBltLibWidthInPixels) + DestinationX; in BltLibVideoFill()
324 Offset = mBltLibBytesPerPixel * Offset; in BltLibVideoFill()
325 BltMemDst = (VOID*) (mBltLibFrameBuffer + Offset); in BltLibVideoFill()
435 UINTN Offset; in BltLibVideoToBltBufferEx() local
469 Offset = (SrcY * mBltLibWidthInPixels) + SourceX; in BltLibVideoToBltBufferEx()
470 Offset = mBltLibBytesPerPixel * Offset; in BltLibVideoToBltBufferEx()
[all …]
/device/linaro/bootloader/edk2/QuarkPlatformPkg/Library/PlatformHelperLib/
DPlatformHelperLib.c44 UINT32 Offset; in WriteFirstFreeSpiProtect() local
49 Offset = 0; in WriteFirstFreeSpiProtect()
51 *OffsetPtr = Offset; in WriteFirstFreeSpiProtect()
54 Offset = R_QNC_RCRB_SPIPBR0; in WriteFirstFreeSpiProtect()
57 Offset = R_QNC_RCRB_SPIPBR1; in WriteFirstFreeSpiProtect()
60 Offset = R_QNC_RCRB_SPIPBR2; in WriteFirstFreeSpiProtect()
64 if (Offset != 0) { in WriteFirstFreeSpiProtect()
77 MmioWrite32 (PchRootComplexBar + Offset, RegVal); in WriteFirstFreeSpiProtect()
78 if (RegVal == MmioRead32 (PchRootComplexBar + Offset)) { in WriteFirstFreeSpiProtect()
80 *OffsetPtr = Offset; in WriteFirstFreeSpiProtect()
[all …]
/device/linaro/bootloader/OpenPlatformPkg/Drivers/Net/Pp2Dxe/
DPp2Dxe.h367 IN UINT32 Offset, in Mvpp2Write() argument
372 MmioWrite32 (Priv->Base + Offset, data); in Mvpp2Write()
380 IN UINT32 Offset in Mvpp2Read() argument
384 return MmioRead32 (Priv->Base + Offset); in Mvpp2Read()
392 UINT32 Offset in Mvpp2Rfu1Read() argument
396 return MmioRead32 (Priv->Rfu1Base + Offset); in Mvpp2Rfu1Read()
404 IN UINT32 Offset, in Mvpp2Rfu1Write() argument
409 return MmioWrite32 (Priv->Rfu1Base + Offset, Data); in Mvpp2Rfu1Write()
417 IN UINT32 Offset in Mvpp2SmiRead() argument
421 return MmioRead32 (Priv->SmiBase + Offset); in Mvpp2SmiRead()
[all …]
/device/linaro/bootloader/edk2/ArmPlatformPkg/Drivers/PL061GpioDxe/
DPL061Gpio.c180 UINTN Index, Offset, RegisterBase; in Get() local
182 Status = PL061Locate (Gpio, &Index, &Offset, &RegisterBase); in Get()
189 if (PL061GetPins (RegisterBase + PL061_GPIO_DATA_REG, GPIO_PIN_MASK (Offset))) { in Get()
225 UINTN Index, Offset, RegisterBase; in Set() local
227 Status = PL061Locate (Gpio, &Index, &Offset, &RegisterBase); in Set()
235 ~GPIO_PIN_MASK(Offset) & 0xFF); in Set()
240 MmioOr8 (RegisterBase + PL061_GPIO_DIR_REG, GPIO_PIN_MASK(Offset)); in Set()
242 PL061SetPins (RegisterBase + PL061_GPIO_DATA_REG, GPIO_PIN_MASK(Offset), 0); in Set()
247 MmioOr8 (RegisterBase + PL061_GPIO_DIR_REG, GPIO_PIN_MASK(Offset)); in Set()
249 PL061SetPins (RegisterBase + PL061_GPIO_DATA_REG, GPIO_PIN_MASK(Offset), 0xff); in Set()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/EhciDxe/
DEhciReg.c33 IN UINT32 Offset in EhcReadCapRegister() argument
43 (UINT64) Offset, in EhcReadCapRegister()
49 DEBUG ((EFI_D_ERROR, "EhcReadCapRegister: Pci Io read error - %r at %d\n", Status, Offset)); in EhcReadCapRegister()
69 IN UINT32 Offset in EhcReadDbgRegister() argument
79 (UINT64) (Ehc->DebugPortOffset + Offset), in EhcReadDbgRegister()
85 DEBUG ((EFI_D_ERROR, "EhcReadDbgRegister: Pci Io read error - %r at %d\n", Status, Offset)); in EhcReadDbgRegister()
106 IN UINT32 Offset in EhcReadOpReg() argument
118 (UINT64) (Ehc->CapLen + Offset), in EhcReadOpReg()
124 DEBUG ((EFI_D_ERROR, "EhcReadOpReg: Pci Io Read error - %r at %d\n", Status, Offset)); in EhcReadOpReg()
143 IN UINT32 Offset, in EhcWriteOpReg() argument
[all …]
/device/linaro/bootloader/edk2/DuetPkg/EfiLdr/
DEfiLoader.c93 (UINTN) (EFILDR_HEADER_ADDRESS + EFILDRImage->Offset), in EfiLoader()
94 (UINTN) EFILDRImage->Offset in EfiLoader()
97 (VOID *)(UINTN)(EFILDR_HEADER_ADDRESS + EFILDRImage->Offset), in EfiLoader()
109 (VOID *)(UINTN)(EFILDR_HEADER_ADDRESS + EFILDRImage->Offset), in EfiLoader()
141 (UINTN) (EFILDR_HEADER_ADDRESS + EFILDRImage->Offset), in EfiLoader()
142 (UINTN) EFILDRImage->Offset in EfiLoader()
146 (VOID *)(UINTN)(EFILDR_HEADER_ADDRESS + EFILDRImage->Offset), in EfiLoader()
156 (VOID *)(UINTN)(EFILDR_HEADER_ADDRESS + EFILDRImage->Offset), in EfiLoader()
197 (UINTN)(EFILDR_HEADER_ADDRESS + EFILDRImage->Offset), in EfiLoader()
198 (UINTN) EFILDRImage->Offset in EfiLoader()
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Dxe/UefiEfiIfrSupportLib/
DUefiIfrOpCodeCreation.c83 if (Data->Offset + sizeof (EFI_IFR_END) > Data->BufferSize) { in CreateEndOpCode()
91 LocalBuffer = (UINT8 *) Data->Data + Data->Offset; in CreateEndOpCode()
93 Data->Offset += sizeof (EFI_IFR_END); in CreateEndOpCode()
114 if (Data->Offset + sizeof (EFI_IFR_DEFAULT) > Data->BufferSize) { in CreateDefaultOpCode()
125 LocalBuffer = (UINT8 *) Data->Data + Data->Offset; in CreateDefaultOpCode()
127 Data->Offset += sizeof (EFI_IFR_DEFAULT); in CreateDefaultOpCode()
151 if (Data->Offset + sizeof (EFI_IFR_ACTION) > Data->BufferSize) { in CreateActionOpCode()
165 LocalBuffer = (UINT8 *) Data->Data + Data->Offset; in CreateActionOpCode()
167 Data->Offset += sizeof (EFI_IFR_ACTION); in CreateActionOpCode()
186 if (Data->Offset + sizeof (EFI_IFR_SUBTITLE) > Data->BufferSize) { in CreateSubTitleOpCode()
[all …]

12345678910>>...24