Lines Matching refs:DevicePath

98   IN CONST EFI_DEVICE_PATH_PROTOCOL  *DevicePath  in GetDevicePathSize()  argument
103 if (DevicePath == NULL) { in GetDevicePathSize()
107 if (!IsDevicePathValid (DevicePath, 0)) { in GetDevicePathSize()
114 Start = DevicePath; in GetDevicePathSize()
115 while (!IsDevicePathEnd (DevicePath)) { in GetDevicePathSize()
116 DevicePath = NextDevicePathNode (DevicePath); in GetDevicePathSize()
122 return ((UINTN) DevicePath - (UINTN) Start) + DevicePathNodeLength (DevicePath); in GetDevicePathSize()
143 IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath, in IsDevicePathValid() argument
151 ASSERT (DevicePath != NULL); in IsDevicePathValid()
164 …for (Count = 0, Size = 0; !IsDevicePathEnd (DevicePath); DevicePath = NextDevicePathNode (DevicePa… in IsDevicePathValid()
165 NodeLength = DevicePathNodeLength (DevicePath); in IsDevicePathValid()
193 return (BOOLEAN) (DevicePathNodeLength (DevicePath) == END_DEVICE_PATH_LENGTH); in IsDevicePathValid()
433 EFI_DEVICE_PATH_PROTOCOL *DevicePath; in CreateDeviceNode() local
442 DevicePath = AllocateZeroPool (NodeLength); in CreateDeviceNode()
443 if (DevicePath != NULL) { in CreateDeviceNode()
444 DevicePath->Type = NodeType; in CreateDeviceNode()
445 DevicePath->SubType = NodeSubType; in CreateDeviceNode()
446 SetDevicePathNodeLength (DevicePath, NodeLength); in CreateDeviceNode()
449 return DevicePath; in CreateDeviceNode()
471 IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath in DuplicateDevicePath() argument
479 Size = GetDevicePathSize (DevicePath); in DuplicateDevicePath()
488 return AllocateCopyPool (Size, DevicePath); in DuplicateDevicePath()
597 IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath, OPTIONAL in AppendDevicePathNode() argument
607 … return DuplicateDevicePath ((DevicePath != NULL) ? DevicePath : &mUefiDevicePathLibEndDevicePath); in AppendDevicePathNode()
627 NewDevicePath = AppendDevicePath (DevicePath, TempDevicePath); in AppendDevicePathNode()