Lines Matching refs:NumBytes
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()
796 ASSERT ((NumBytes != NULL) && (Buffer != NULL)); in SpiFlashWrite()
801 ASSERT ((*NumBytes + Offset) <= (UINTN)PcdGet32 (PcdFlashChipSize)); in SpiFlashWrite()
804 RemainingBytes = *NumBytes; in SpiFlashWrite()
835 *NumBytes -= RemainingBytes; in SpiFlashWrite()
857 IN UINTN *NumBytes in SpiFlashBlockErase()
864 ASSERT (NumBytes != NULL); in SpiFlashBlockErase()
869 ASSERT ((*NumBytes % SIZE_4KB) == 0); in SpiFlashBlockErase()
870 ASSERT ((*NumBytes + Offset) <= (UINTN)PcdGet32 (PcdFlashChipSize)); in SpiFlashBlockErase()
873 RemainingBytes = *NumBytes; in SpiFlashBlockErase()
898 *NumBytes -= RemainingBytes; in SpiFlashBlockErase()