/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeTpm2MeasureBootLib/ |
D | DxeTpm2MeasureBootLib.c | 307 UINT32 FilePathSize; in Tcg2MeasurePeImage() local 312 FilePathSize = (UINT32) GetDevicePathSize (FilePath); in Tcg2MeasurePeImage() 317 EventSize = sizeof (*ImageLoad) - sizeof (ImageLoad->DevicePath) + FilePathSize; in Tcg2MeasurePeImage() 353 ImageLoad->LengthOfDevicePath = FilePathSize; in Tcg2MeasurePeImage() 354 if ((FilePath != NULL) && (FilePathSize != 0)) { in Tcg2MeasurePeImage() 355 CopyMem (ImageLoad->DevicePath, FilePath, FilePathSize); in Tcg2MeasurePeImage()
|
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/GenericBdsLib/ |
D | BdsMisc.c | 512 UINT16 FilePathSize; in ValidateOption() local 530 FilePathSize = *(UINT16 *) TempPtr; in ValidateOption() 543 TempPtr += FilePathSize; in ValidateOption() 548 if ((FilePathSize == 0) || (TempSize == 0)) { in ValidateOption() 552 if (TempSize + FilePathSize + sizeof (UINT16) + sizeof (UINT32) > VariableSize) { in ValidateOption() 556 return (BOOLEAN) (GetDevicePathSizeEx (DevicePath, FilePathSize) != 0); in ValidateOption() 604 UINT16 FilePathSize; in BdsLibVariableToOption() local 649 FilePathSize = *(UINT16 *) TempPtr; in BdsLibVariableToOption() 666 TempPtr += FilePathSize; in BdsLibVariableToOption()
|
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/Override/IntelFrameworkModulePkg/Library/GenericBdsLib/ |
D | BdsMisc.c | 512 UINT16 FilePathSize; in ValidateOption() local 530 FilePathSize = *(UINT16 *) TempPtr; in ValidateOption() 543 TempPtr += FilePathSize; in ValidateOption() 548 if ((FilePathSize == 0) || (TempSize == 0)) { in ValidateOption() 552 if (TempSize + FilePathSize + sizeof (UINT16) + sizeof (UINT32) > VariableSize) { in ValidateOption() 556 return (BOOLEAN) (GetDevicePathSizeEx (DevicePath, FilePathSize) != 0); in ValidateOption() 604 UINT16 FilePathSize; in BdsLibVariableToOption() local 649 FilePathSize = *(UINT16 *) TempPtr; in BdsLibVariableToOption() 666 TempPtr += FilePathSize; in BdsLibVariableToOption()
|
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeTpmMeasureBootLib/ |
D | DxeTpmMeasureBootLib.c | 311 UINT32 FilePathSize; in TcgMeasurePeImage() local 336 FilePathSize = (UINT32) GetDevicePathSize (FilePath); in TcgMeasurePeImage() 341 EventSize = sizeof (*ImageLoad) - sizeof (ImageLoad->DevicePath) + FilePathSize; in TcgMeasurePeImage() 375 ImageLoad->LengthOfDevicePath = FilePathSize; in TcgMeasurePeImage() 376 if ((FilePath != NULL) && (FilePathSize != 0)) { in TcgMeasurePeImage() 377 CopyMem (ImageLoad->DevicePath, FilePath, FilePathSize); in TcgMeasurePeImage()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Library/UefiBootManagerLib/ |
D | BmLoadOption.c | 721 UINT16 FilePathSize; in BmValidateOption() local 737 FilePathSize = ReadUnaligned16 ((UINT16 *) Variable); in BmValidateOption() 754 if ((FilePathSize == 0) || (DescriptionSize == 0)) { in BmValidateOption() 758 if (sizeof (UINT32) + sizeof (UINT16) + DescriptionSize + FilePathSize > VariableSize) { in BmValidateOption() 762 return (BOOLEAN) (BmGetDevicePathSizeEx (DevicePath, FilePathSize) != 0); in BmValidateOption() 851 UINT16 FilePathSize; in EfiBootManagerVariableToLoadOptionEx() local 896 FilePathSize = ReadUnaligned16 ((UINT16 *) VariablePtr); in EfiBootManagerVariableToLoadOptionEx() 913 VariablePtr += FilePathSize; in EfiBootManagerVariableToLoadOptionEx()
|
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellTftpCommandLib/ |
D | Tftp.c | 275 UINTN FilePathSize; in ShellCommandRunTftp() local 362 FilePathSize = StrLen (RemoteFilePath) + 1; in ShellCommandRunTftp() 363 AsciiRemoteFilePath = AllocatePool (FilePathSize); in ShellCommandRunTftp() 368 UnicodeStrToAsciiStrS (RemoteFilePath, AsciiRemoteFilePath, FilePathSize); in ShellCommandRunTftp()
|
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellBcfgCommandLib/ |
D | UefiShellBcfgCommandLib.c | 316 UINTN DescSize, FilePathSize; in BcfgAdd() local 518 FilePathSize = GetDevicePathSize (FilePath); in BcfgAdd() 520 TempByteBuffer = AllocateZeroPool(sizeof(UINT32) + sizeof(UINT16) + DescSize + FilePathSize); in BcfgAdd() 526 *((UINT16 *) TempByteBuffer) = (UINT16)FilePathSize; // FilePathListLength in BcfgAdd() 532 CopyMem (TempByteBuffer, FilePath, FilePathSize); in BcfgAdd() 539 sizeof(UINT32) + sizeof(UINT16) + DescSize + FilePathSize, in BcfgAdd()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Core/PiSmmCore/ |
D | Dispatcher.c | 312 UINTN FilePathSize; in SmmLoadImage() local 374 FilePathSize = GetDevicePathSize (HandleFilePath) - sizeof(EFI_DEVICE_PATH_PROTOCOL); in SmmLoadImage() 375 FilePath = (EFI_DEVICE_PATH_PROTOCOL *) (((UINT8 *)FilePath) + FilePathSize ); in SmmLoadImage()
|
D | SmramProfileRecord.c | 589 UINTN FilePathSize; in NeedRecordThisDriver() local 601 FilePathSize = GetDevicePathSize (DriverFilePath) - sizeof(EFI_DEVICE_PATH_PROTOCOL); in NeedRecordThisDriver() 617 if ((FilePathSize == DevicePathSize) && in NeedRecordThisDriver()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/Image/ |
D | Image.c | 1060 UINTN FilePathSize; in CoreLoadImageCommon() local 1236 FilePathSize = GetDevicePathSize (HandleFilePath) - sizeof(EFI_DEVICE_PATH_PROTOCOL); in CoreLoadImageCommon() 1237 FilePath = (EFI_DEVICE_PATH_PROTOCOL *) (((UINT8 *)FilePath) + FilePathSize ); in CoreLoadImageCommon()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/Mem/ |
D | MemoryProfileRecord.c | 509 UINTN FilePathSize; in NeedRecordThisDriver() local 521 FilePathSize = GetDevicePathSize (DriverFilePath) - sizeof(EFI_DEVICE_PATH_PROTOCOL); in NeedRecordThisDriver() 537 if ((FilePathSize == DevicePathSize) && in NeedRecordThisDriver()
|