Lines Matching full:node

51   nodes. The device path is terminated by an end node that is length
71 // Template for an end-of-device path node.
87 specified by DevicePath including the end of device path node.
134 @retval FALSE The length of any node in the DevicePath is less
138 @retval FALSE If PcdMaximumDevicePathNodeCount is not zero, the node
159 // Validate the input size big enough to touch the first node. in IsDevicePathValid()
177 // Validate next node before touch it. in IsDevicePathValid()
192 // Only return TRUE when the End Device Path node is valid. in IsDevicePathValid()
198 Returns the Type field of a device path node.
200 Returns the Type field of the device path node specified by Node.
202 If Node is NULL, then ASSERT().
204 @param Node A pointer to a device path node data structure.
206 @return The Type field of the device path node specified by Node.
212 IN CONST VOID *Node in DevicePathType() argument
215 ASSERT (Node != NULL); in DevicePathType()
216 return ((const EFI_DEVICE_PATH_PROTOCOL *)(Node))->Type; in DevicePathType()
221 Returns the SubType field of a device path node.
223 Returns the SubType field of the device path node specified by Node.
225 If Node is NULL, then ASSERT().
227 @param Node A pointer to a device path node data structure.
229 @return The SubType field of the device path node specified by Node.
235 IN CONST VOID *Node in DevicePathSubType() argument
238 ASSERT (Node != NULL); in DevicePathSubType()
239 return ((const EFI_DEVICE_PATH_PROTOCOL *)(Node))->SubType; in DevicePathSubType()
243 Returns the 16-bit Length field of a device path node.
245 Returns the 16-bit Length field of the device path node specified by Node.
246 Node is not required to be aligned on a 16-bit boundary, so it is recommended
250 If Node is NULL, then ASSERT().
252 @param Node A pointer to a device path node data structure.
254 @return The 16-bit Length field of the device path node specified by Node.
260 IN CONST VOID *Node in DevicePathNodeLength() argument
263 ASSERT (Node != NULL); in DevicePathNodeLength()
264 return ((const EFI_DEVICE_PATH_PROTOCOL *)Node)->Length[0] | in DevicePathNodeLength()
265 (((const EFI_DEVICE_PATH_PROTOCOL *)Node)->Length[1] << 8); in DevicePathNodeLength()
269 Returns a pointer to the next node in a device path.
271 Returns a pointer to the device path node that follows the device path node
272 specified by Node.
274 If Node is NULL, then ASSERT().
276 @param Node A pointer to a device path node data structure.
278 @return a pointer to the device path node that follows the device path node
279 specified by Node.
285 IN CONST VOID *Node in NextDevicePathNode() argument
288 ASSERT (Node != NULL); in NextDevicePathNode()
289 return ((EFI_DEVICE_PATH_PROTOCOL *)(__DECONST(UINT8 *, Node) + DevicePathNodeLength(Node))); in NextDevicePathNode()
293 Determines if a device path node is an end node of a device path.
297 Determines if the device path node specified by Node is an end node of a device path.
299 end of an entire device path. If Node represents an end node of a device path,
302 If Node is NULL, then ASSERT().
304 @param Node A pointer to a device path node data structure.
306 @retval TRUE The device path node specified by Node is an end node of a
308 @retval FALSE The device path node specified by Node is not an end node of
315 IN CONST VOID *Node in IsDevicePathEndType() argument
318 ASSERT (Node != NULL); in IsDevicePathEndType()
319 return (BOOLEAN) (DevicePathType (Node) == END_DEVICE_PATH_TYPE); in IsDevicePathEndType()
323 Determines if a device path node is an end node of an entire device path.
325 Determines if a device path node specified by Node is an end node of an entire
326 device path. If Node represents the end of an entire device path, then TRUE is
329 If Node is NULL, then ASSERT().
331 @param Node A pointer to a device path node data structure.
333 @retval TRUE The device path node specified by Node is the end of an entire
335 @retval FALSE The device path node specified by Node is not the end of an
342 IN CONST VOID *Node in IsDevicePathEnd() argument
345 ASSERT (Node != NULL); in IsDevicePathEnd()
346 …return (BOOLEAN) (IsDevicePathEndType (Node) && DevicePathSubType(Node) == END_ENTIRE_DEVICE_PATH_… in IsDevicePathEnd()
350 Fills in all the fields of a device path node that is the end of an entire device path.
352 Fills in all the fields of a device path node specified by Node so Node represents
353 the end of an entire device path. The Type field of Node is set to
354 END_DEVICE_PATH_TYPE, the SubType field of Node is set to
355 END_ENTIRE_DEVICE_PATH_SUBTYPE, and the Length field of Node is set to
356 END_DEVICE_PATH_LENGTH. Node is not required to be aligned on a 16-bit boundary,
360 If Node is NULL, then ASSERT().
362 @param Node A pointer to a device path node data structure.
368 OUT VOID *Node in SetDevicePathEndNode() argument
371 ASSERT (Node != NULL); in SetDevicePathEndNode()
372 memcpy (Node, &mUefiDevicePathLibEndDevicePath, sizeof (mUefiDevicePathLibEndDevicePath)); in SetDevicePathEndNode()
376 Sets the length, in bytes, of a device path node.
378 Sets the length of the device path node specified by Node to the value specified
379 by NodeLength. NodeLength is returned. Node is not required to be aligned on
383 If Node is NULL, then ASSERT().
387 @param Node A pointer to a device path node data structure.
388 @param Length The length, in bytes, of the device path node.
396 IN OUT VOID *Node, in SetDevicePathNodeLength() argument
400 ASSERT (Node != NULL); in SetDevicePathNodeLength()
402 // return WriteUnaligned16 ((UINT16 *)&((EFI_DEVICE_PATH_PROTOCOL *)(Node))->Length[0], (UINT16)(L… in SetDevicePathNodeLength()
403 le16enc(&((EFI_DEVICE_PATH_PROTOCOL *)(Node))->Length[0], (UINT16)(Length)); in SetDevicePathNodeLength()
408 Creates a device node.
410 This function creates a new device node in a newly allocated buffer of size
411 NodeLength and initializes the device path node header with NodeType and NodeSubType.
412 The new device path node is returned.
419 @param NodeType The device node type for the new device node.
420 @param NodeSubType The device node sub-type for the new device node.
421 @param NodeLength The length of the new device node.
497 device node from SecondDevicePath is retained. The newly created device path is
545 // Allocate space for the combined device path. It only has one end node of in AppendDevicePath()
568 Creates a new path by appending the device node to the device path.
570 This function creates a new device path by appending a copy of the device node
572 in an allocated buffer. The end-of-device-path device node is moved after the
573 end of the appended device node.
576 path device node is returned.
578 device node is returned.
585 @param DevicePathNode A pointer to a single device path node.
589 A copy of DevicePathNode followed by an end-of-device-path node
591 A copy of an end-of-device-path node if both FirstDevicePath
611 // Build a Node that has a terminator on it in AppendDevicePathNode()
621 // Add and end device path node to convert Node to device path in AppendDevicePathNode()