Lines Matching refs:Position
641 @retval EFI_DEVICE_ERROR On entry, the current file position is beyond the end of the file.
709 if (*BufferSize + File->Position > FileSize) {
710 *BufferSize = (UINTN)(FileSize - File->Position);
713 CopyMem (Buffer, (UINT8*)FileBuffer + File->Position, *BufferSize);
714 File->Position += *BufferSize;
762 Returns a file's current position.
765 handle to get the current position on.
766 @param Position The address to return the file's current position value.
768 @retval EFI_SUCCESS The position was returned.
770 @retval EFI_DEVICE_ERROR An attempt was made to get the position from a deleted file.
777 OUT UINT64 *Position
789 *Position = File->Position;
795 Sets a file's current position.
798 file handle to set the requested position on.
799 @param Position The byte position from the start of the file to set.
801 @retval EFI_SUCCESS The position was set.
804 @retval EFI_DEVICE_ERROR An attempt was made to set the position of a deleted file.
811 IN UINT64 Position
821 if (Position != 0) {
825 // Reset directory position to first entry
830 } else if (Position == 0xFFFFFFFFFFFFFFFFull) {
831 File->Position = File->FvFileInfo->FileInfo.FileSize;
833 File->Position = Position;