/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/Library/FlashDeviceLib/ |
D | FlashDeviceLib.c | 36 UINTN NumBytes in SpiFlashErase() argument 45 while ( (NumBytes > 0) && (NumBytes <= MAX_FWH_SIZE) ) { in SpiFlashErase() 62 NumBytes -= SectorSize; in SpiFlashErase() 72 UINTN NumBytes in SpiFlashBlockErase() argument 81 while ( (NumBytes > 0) && (NumBytes <= MAX_FWH_SIZE) ) { in SpiFlashBlockErase() 98 NumBytes -= SectorSize; in SpiFlashBlockErase() 114 UINT32 NumBytes = (UINT32)Length; in SpiFlashWrite() local 127 NumBytes, in SpiFlashWrite() 170 IN UINTN NumBytes, in SpiFlashLock() argument 235 IN OUT UINTN *NumBytes, in LibFvbFlashDeviceRead() argument [all …]
|
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/Include/Library/ |
D | Fd.h | 216 IN UINTN NumBytes 222 IN UINTN NumBytes 229 IN UINTN NumBytes 236 IN UINTN NumBytes 243 IN UINTN NumBytes 250 IN UINTN NumBytes 256 IN UINTN NumBytes, 263 IN UINTN NumBytes, 270 IN UINTN NumBytes 277 IN UINTN NumBytes
|
D | FlashDeviceLib.h | 64 IN OUT UINTN *NumBytes, 85 IN OUT UINTN *NumBytes,
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/SnpDxe/ |
D | Callback.c | 97 IN UINT8 NumBytes, in SnpUndi32CallbackMemio() argument 108 switch (NumBytes) { in SnpUndi32CallbackMemio() 191 IN UINT32 NumBytes, in SnpUndi32CallbackMap() argument 203 BuffSize = (UINTN) NumBytes; in SnpUndi32CallbackMap() 285 IN UINT32 NumBytes, in SnpUndi32CallbackUnmap() argument 339 IN UINT32 NumBytes, in SnpUndi32CallbackSync() argument 344 if ((CpuAddr == 0) || (DeviceAddr == 0) || (NumBytes == 0)) { in SnpUndi32CallbackSync() 351 CopyMem ((UINT8 *) (UINTN) CpuAddr, (UINT8 *) (UINTN) DeviceAddr, NumBytes); in SnpUndi32CallbackSync() 355 CopyMem ((UINT8 *) (UINTN) DeviceAddr, (UINT8 *) (UINTN) CpuAddr, NumBytes); in SnpUndi32CallbackSync()
|
/device/linaro/bootloader/OpenPlatformPkg/Platforms/AMD/Styx/Drivers/StyxSpiFvDxe/ |
D | StyxSpiFvDxe.c | 253 IN OUT UINTN *NumBytes, in StyxSpiFvDxeRead() argument 259 if (Offset + *NumBytes > BLOCK_SIZE) { in StyxSpiFvDxeRead() 268 CopyMem (Buffer, Base, *NumBytes); in StyxSpiFvDxeRead() 276 Lba * BLOCK_SIZE + Offset, Buffer, *NumBytes); in StyxSpiFvDxeRead() 279 ASSERT (CompareMem (Base, Buffer, *NumBytes) == 0); in StyxSpiFvDxeRead() 351 IN OUT UINTN *NumBytes, in StyxSpiFvDxeWrite() argument 358 if (Offset + *NumBytes > BLOCK_SIZE) { in StyxSpiFvDxeWrite() 366 Lba * BLOCK_SIZE + Offset, Buffer, *NumBytes); in StyxSpiFvDxeWrite() 372 CopyMem (Base, Buffer, *NumBytes); in StyxSpiFvDxeWrite()
|
/device/linaro/bootloader/edk2/OvmfPkg/EmuVariableFvbRuntimeDxe/ |
D | Fvb.c | 457 IN OUT UINTN *NumBytes, in FvbProtocolWrite() argument 471 if ((Offset + *NumBytes) > FvbDevice->BlockSize) { in FvbProtocolWrite() 472 *NumBytes = FvbDevice->BlockSize - Offset; in FvbProtocolWrite() 480 if (*NumBytes > 0) { in FvbProtocolWrite() 481 CopyMem (FvbDataPtr, Buffer, *NumBytes); in FvbProtocolWrite() 482 PlatformFvbDataWritten (This, Lba, Offset, *NumBytes, Buffer); in FvbProtocolWrite() 542 IN OUT UINTN *NumBytes, in FvbProtocolRead() argument 555 if ((Offset + *NumBytes) > FvbDevice->BlockSize) { in FvbProtocolRead() 556 *NumBytes = FvbDevice->BlockSize - Offset; in FvbProtocolRead() 564 if (*NumBytes > 0) { in FvbProtocolRead() [all …]
|
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/FvbRuntimeDxe/ |
D | FvbService.c | 293 IN OUT UINTN *NumBytes, in FvbReadBlock() 302 if ( (NumBytes == NULL) || (Buffer == NULL)) { in FvbReadBlock() 305 if (*NumBytes == 0) { in FvbReadBlock() 324 if (LbaLength < ( *NumBytes + BlockOffset ) ) { in FvbReadBlock() 325 *NumBytes = (UINT32) (LbaLength - BlockOffset); in FvbReadBlock() 329 LibFvbFlashDeviceRead (LbaAddress + BlockOffset, NumBytes, Buffer); in FvbReadBlock() 361 IN OUT UINTN *NumBytes, in FvbWriteBlock() 371 if ( (NumBytes == NULL) || (Buffer == NULL)) { in FvbWriteBlock() 374 if (*NumBytes == 0) { in FvbWriteBlock() 398 if ( LbaLength < ( *NumBytes + BlockOffset ) ) { in FvbWriteBlock() [all …]
|
D | FvbSmmDxe.c | 493 IN OUT UINTN *NumBytes, in FvbRead() 504 if ((NumBytes == NULL) || (Buffer == NULL)) { in FvbRead() 514 PayloadSize = sizeof (SMM_FVB_READ_WRITE_HEADER) + *NumBytes; in FvbRead() 527 SmmFvbReadWriteHeader->NumBytes = *NumBytes; in FvbRead() 537 *NumBytes = SmmFvbReadWriteHeader->NumBytes; in FvbRead() 539 CopyMem (Buffer, (UINT8 *)(SmmFvbReadWriteHeader + 1), *NumBytes); in FvbRead() 578 IN OUT UINTN *NumBytes, in FvbWrite() 589 if ((NumBytes == NULL) || (Buffer == NULL)) { in FvbWrite() 599 PayloadSize = sizeof (SMM_FVB_READ_WRITE_HEADER) + *NumBytes; in FvbWrite() 613 SmmFvbReadWriteHeader->NumBytes = *NumBytes; in FvbWrite() [all …]
|
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/Application/FirmwareUpdate/ |
D | FirmwareUpdate.c | 516 UINTN NumBytes; 518 NumBytes = BLOCK_SIZE; 520 Status = SpiFlashBlockErase ((UINTN) BaseAddress, &NumBytes); 553 UINT32 NumBytes; 556 NumBytes = BLOCK_SIZE; 557 CompareBuffer = AllocatePool (NumBytes); 563 Status = SpiFlashRead ((UINTN) BaseAddress, &NumBytes, CompareBuffer); 743 IN OUT UINT32 *NumBytes, in SpiFlashRead() 750 ASSERT ((NumBytes != NULL) && (Buffer != NULL)); in SpiFlashRead() 787 IN OUT UINT32 *NumBytes, in SpiFlashWrite() [all …]
|
D | FirmwareUpdate.h | 106 IN OUT UINT32 *NumBytes, 115 IN OUT UINT32 *NumBytes, 124 IN UINTN *NumBytes
|
/device/linaro/bootloader/edk2/StdLib/LibC/Locale/ |
D | multibyte_Utf8.c | 253 ssize_t NumBytes; in OneWcToMcLen() local 256 NumBytes = 0; in OneWcToMcLen() 259 NumBytes = 1; in OneWcToMcLen() 262 NumBytes = 2; in OneWcToMcLen() 265 NumBytes = -1; in OneWcToMcLen() 268 NumBytes = 3; // Otherwise, it must be a 3-byte character. in OneWcToMcLen() 270 return (int)NumBytes; // Return extimate of required bytes. in OneWcToMcLen() 305 ssize_t NumBytes; in EstimateWtoM() local 311 while(((NumBytes = OneWcToMcLen(EChar)) > 0) && in EstimateWtoM() 312 ((size_t)(Estimate + NumBytes) < Limit)) in EstimateWtoM() [all …]
|
/device/linaro/bootloader/edk2/QuarkPlatformPkg/Feature/Capsule/Library/PlatformFlashAccessLib/ |
D | PlatformFlashAccessLibDxe.c | 54 IN OUT UINTN *NumBytes, in FlashFdWrite() argument 70 (UINT32) (*NumBytes), // Data Number in FlashFdWrite() 141 UINTN NumBytes; in PerformFlashWrite() local 168 NumBytes = SPI_ERASE_SECTOR_SIZE; in PerformFlashWrite() 171 &NumBytes, in PerformFlashWrite()
|
/device/linaro/bootloader/edk2/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/ |
D | QemuFlash.c | 131 IN UINTN *NumBytes, in QemuFlashRead() argument 150 CopyMem (Buffer, Ptr, *NumBytes); in QemuFlashRead() 170 IN UINTN *NumBytes, in QemuFlashWrite() argument 189 for (Loop = 0; Loop < *NumBytes; Loop++) { in QemuFlashWrite() 198 if (*NumBytes > 0) { in QemuFlashWrite()
|
D | QemuFlash.h | 37 IN UINTN *NumBytes, 56 IN UINTN *NumBytes,
|
/device/linaro/bootloader/edk2/ArmPlatformPkg/Drivers/NorFlashDxe/ |
D | NorFlashFvbDxe.c | 422 IN OUT UINTN *NumBytes, in FvbRead() argument 432 …t=0x%x, *NumBytes=0x%x, Buffer @ 0x%08x)\n", Instance->StartLba + Lba, Offset, *NumBytes, Buffer)); in FvbRead() 443 …Read: Check if (Offset=0x%x + NumBytes=0x%x) <= BlockSize=0x%x\n", Offset, *NumBytes, BlockSize )); in FvbRead() 448 (*NumBytes > BlockSize) || in FvbRead() 449 ((Offset + *NumBytes) > BlockSize)) { in FvbRead() 450 …AD_BUFFER_SIZE: (Offset=0x%x + NumBytes=0x%x) > BlockSize=0x%x\n", Offset, *NumBytes, BlockSize )); in FvbRead() 455 if (*NumBytes == 0) { in FvbRead() 460 if (*NumBytes % BlockSize != 0) { in FvbRead() 461 TempStatus = NorFlashRead (Instance, Instance->StartLba + Lba, Offset, *NumBytes, Buffer); in FvbRead() 536 IN OUT UINTN *NumBytes, in FvbWrite() argument [all …]
|
/device/linaro/bootloader/edk2/EmulatorPkg/FvbServicesRuntimeDxe/ |
D | FWBlockService.c | 357 IN OUT UINTN *NumBytes, in FvbReadBlock() argument 401 if ((NumBytes == NULL) || (Buffer == NULL)) { in FvbReadBlock() 405 if (*NumBytes == 0) { in FvbReadBlock() 428 if (LbaLength < (*NumBytes + BlockOffset)) { in FvbReadBlock() 429 *NumBytes = (UINT32) (LbaLength - BlockOffset); in FvbReadBlock() 433 CopyMem (Buffer, (UINT8 *) (LbaAddress + BlockOffset), (UINTN) (*NumBytes)); in FvbReadBlock() 443 IN OUT UINTN *NumBytes, in FvbWriteBlock() argument 486 if ((NumBytes == NULL) || (Buffer == NULL)) { in FvbWriteBlock() 490 if (*NumBytes == 0) { in FvbWriteBlock() 513 if (LbaLength < (*NumBytes + BlockOffset)) { in FvbWriteBlock() [all …]
|
/device/linaro/bootloader/edk2/Nt32Pkg/FvbServicesRuntimeDxe/ |
D | FWBlockService.c | 398 IN OUT UINTN *NumBytes, in FvbReadBlock() argument 442 if ((NumBytes == NULL) || (Buffer == NULL)) { in FvbReadBlock() 446 if (*NumBytes == 0) { in FvbReadBlock() 469 if (LbaLength < (*NumBytes + BlockOffset)) { in FvbReadBlock() 470 *NumBytes = (UINT32) (LbaLength - BlockOffset); in FvbReadBlock() 474 CopyMem (Buffer, (UINT8 *) (LbaAddress + BlockOffset), (UINTN) (*NumBytes)); in FvbReadBlock() 484 IN OUT UINTN *NumBytes, in FvbWriteBlock() argument 527 if ((NumBytes == NULL) || (Buffer == NULL)) { in FvbWriteBlock() 531 if (*NumBytes == 0) { in FvbWriteBlock() 554 if (LbaLength < (*NumBytes + BlockOffset)) { in FvbWriteBlock() [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/Ipf/ |
D | Fvb.c | 65 IN OUT UINTN *NumBytes, in EfiFvbReadBlock() argument 90 …return EfiCallEsalService (&Guid, Read, Instance, Lba, Offset, (UINT64) NumBytes, (UINT64) Buffer,… in EfiFvbReadBlock() 98 IN OUT UINTN *NumBytes, in EfiFvbWriteBlock() argument 123 …return EfiCallEsalService (&Guid, Write, Instance, Lba, Offset, (UINT64) NumBytes, (UINT64) Buffer… in EfiFvbWriteBlock()
|
/device/linaro/bootloader/edk2/OvmfPkg/Library/PlatformFvbLibNull/ |
D | PlatformFvbLibNull.c | 38 IN UINTN NumBytes, in PlatformFvbDataRead() argument 62 IN UINTN NumBytes, in PlatformFvbDataWritten() argument
|
/device/linaro/bootloader/edk2/EmbeddedPkg/Drivers/Isp1761UsbDxe/ |
D | Isp1761UsbDxe.c | 390 UINTN NumBytes; in CheckInterrupts() local 413 NumBytes = 512; in CheckInterrupts() 414 ReadEndpointBuffer (0x20, &NumBytes, &Packet); in CheckInterrupts() 415 ASSERT (NumBytes == 8); in CheckInterrupts() 434 NumBytes = 512; in CheckInterrupts() 435 DataPacket = AllocatePool (NumBytes); in CheckInterrupts() 436 Status = ReadEndpointBuffer (ISP1761_EP1RX, &NumBytes, DataPacket); in CheckInterrupts() 437 if (EFI_ERROR (Status) || NumBytes == 0) { in CheckInterrupts() 445 mDataReceivedCallback (NumBytes, DataPacket); in CheckInterrupts()
|
/device/linaro/bootloader/edk2/OvmfPkg/Include/Library/ |
D | PlatformFvbLib.h | 40 IN UINTN NumBytes, 62 IN UINTN NumBytes,
|
/device/linaro/bootloader/edk2/DuetPkg/FvbRuntimeService/ |
D | FWBlockService.c | 72 IN OUT UINTN *NumBytes, in FlashFdWrite() argument 93 CopyMem ((VOID *) Address, Buffer, *NumBytes); in FlashFdWrite() 102 Length = *NumBytes - (FwhInstance->Offset - (Address - FwhInstance->FvBase[FVB_PHYSICAL])); in FlashFdWrite() 106 Length = *NumBytes; in FlashFdWrite() 441 IN OUT UINTN *NumBytes, in FvbReadBlock() argument 485 if ((NumBytes == NULL) || (Buffer == NULL)) { in FvbReadBlock() 489 if (*NumBytes == 0) { in FvbReadBlock() 512 if (LbaLength < (*NumBytes + BlockOffset)) { in FvbReadBlock() 513 *NumBytes = (UINT32) (LbaLength - BlockOffset); in FvbReadBlock() 517 CopyMem (Buffer, (VOID *) (LbaAddress + BlockOffset), (UINTN) *NumBytes); in FvbReadBlock() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/FwVolBlock/ |
D | FwVolBlock.c | 206 IN OUT UINTN *NumBytes, in FwVolBlockReadBlock() argument 231 *NumBytes = 0; in FwVolBlockReadBlock() 239 *NumBytes = 0; in FwVolBlockReadBlock() 243 NumOfBytesRead = *NumBytes; in FwVolBlockReadBlock() 260 if (NumOfBytesRead == *NumBytes) { in FwVolBlockReadBlock() 264 *NumBytes = NumOfBytesRead; in FwVolBlockReadBlock() 300 IN OUT UINTN *NumBytes, in FwVolBlockWriteBlock() argument
|
/device/linaro/bootloader/edk2/OvmfPkg/Library/EmuVariableFvbLib/ |
D | EmuVariableFvbLib.c | 42 IN UINTN NumBytes, in PlatformFvbDataRead() argument 66 IN UINTN NumBytes, in PlatformFvbDataWritten() argument
|
/device/linaro/bootloader/OpenPlatformPkg/Chips/Hisilicon/Drivers/FlashFvbDxe/ |
D | FlashFvbDxe.c | 494 IN OUT UINTN* NumBytes, in FvbRead() argument 525 (*NumBytes > BlockSize) || in FvbRead() 526 ((Offset + *NumBytes) > BlockSize)) in FvbRead() 528 …0x%x + NumBytes=0x%x) > BlockSize=0x%x\n", __FUNCTION__, __LINE__, Offset, *NumBytes, BlockSize )); in FvbRead() 533 if (*NumBytes == 0) in FvbRead() 545 Status = mFlash->Read(mFlash, (UINT32)ReadAddress, Buffer, *NumBytes); in FvbRead() 617 IN OUT UINTN* NumBytes, in FvbWrite() argument 660 ( *NumBytes > BlockSize ) || in FvbWrite() 661 ( (Offset + *NumBytes) > BlockSize ) ) in FvbWrite() 663 …AD_BUFFER_SIZE: (Offset=0x%x + NumBytes=0x%x) > BlockSize=0x%x\n", Offset, *NumBytes, BlockSize )); in FvbWrite() [all …]
|