Lines Matching full:node
50 nodes. The device path is terminated by an end node that is length
70 // Template for an end-of-device path node.
86 specified by DevicePath including the end of device path node.
133 @retval FALSE The length of any node in the DevicePath is less
137 @retval FALSE If PcdMaximumDevicePathNodeCount is not zero, the node
158 // Validate the input size big enough to touch the first node. in IsDevicePathValid()
176 // Validate next node before touch it. in IsDevicePathValid()
191 // Only return TRUE when the End Device Path node is valid. in IsDevicePathValid()
197 Returns the Type field of a device path node.
199 Returns the Type field of the device path node specified by Node.
201 If Node is NULL, then ASSERT().
203 @param Node A pointer to a device path node data structure.
205 @return The Type field of the device path node specified by Node.
211 IN CONST VOID *Node in DevicePathType() argument
214 ASSERT (Node != NULL); in DevicePathType()
215 return ((const EFI_DEVICE_PATH_PROTOCOL *)(Node))->Type; in DevicePathType()
220 Returns the SubType field of a device path node.
222 Returns the SubType field of the device path node specified by Node.
224 If Node is NULL, then ASSERT().
226 @param Node A pointer to a device path node data structure.
228 @return The SubType field of the device path node specified by Node.
234 IN CONST VOID *Node in DevicePathSubType() argument
237 ASSERT (Node != NULL); in DevicePathSubType()
238 return ((const EFI_DEVICE_PATH_PROTOCOL *)(Node))->SubType; in DevicePathSubType()
242 Returns the 16-bit Length field of a device path node.
244 Returns the 16-bit Length field of the device path node specified by Node.
245 Node is not required to be aligned on a 16-bit boundary, so it is recommended
249 If Node is NULL, then ASSERT().
251 @param Node A pointer to a device path node data structure.
253 @return The 16-bit Length field of the device path node specified by Node.
259 IN CONST VOID *Node in DevicePathNodeLength() argument
262 ASSERT (Node != NULL); in DevicePathNodeLength()
263 return ((const EFI_DEVICE_PATH_PROTOCOL *)Node)->Length[0] | in DevicePathNodeLength()
264 (((const EFI_DEVICE_PATH_PROTOCOL *)Node)->Length[1] << 8); in DevicePathNodeLength()
268 Returns a pointer to the next node in a device path.
270 Returns a pointer to the device path node that follows the device path node
271 specified by Node.
273 If Node is NULL, then ASSERT().
275 @param Node A pointer to a device path node data structure.
277 @return a pointer to the device path node that follows the device path node
278 specified by Node.
284 IN CONST VOID *Node in NextDevicePathNode() argument
287 ASSERT (Node != NULL); in NextDevicePathNode()
288 return ((EFI_DEVICE_PATH_PROTOCOL *)(__DECONST(UINT8 *, Node) + DevicePathNodeLength(Node))); in NextDevicePathNode()
292 Determines if a device path node is an end node of a device path.
296 Determines if the device path node specified by Node is an end node of a device path.
298 end of an entire device path. If Node represents an end node of a device path,
301 If Node is NULL, then ASSERT().
303 @param Node A pointer to a device path node data structure.
305 @retval TRUE The device path node specified by Node is an end node of a
307 @retval FALSE The device path node specified by Node is not an end node of
314 IN CONST VOID *Node in IsDevicePathEndType() argument
317 ASSERT (Node != NULL); in IsDevicePathEndType()
318 return (BOOLEAN) (DevicePathType (Node) == END_DEVICE_PATH_TYPE); in IsDevicePathEndType()
322 Determines if a device path node is an end node of an entire device path.
324 Determines if a device path node specified by Node is an end node of an entire
325 device path. If Node represents the end of an entire device path, then TRUE is
328 If Node is NULL, then ASSERT().
330 @param Node A pointer to a device path node data structure.
332 @retval TRUE The device path node specified by Node is the end of an entire
334 @retval FALSE The device path node specified by Node is not the end of an
341 IN CONST VOID *Node in IsDevicePathEnd() argument
344 ASSERT (Node != NULL); in IsDevicePathEnd()
345 …return (BOOLEAN) (IsDevicePathEndType (Node) && DevicePathSubType(Node) == END_ENTIRE_DEVICE_PATH_… in IsDevicePathEnd()
349 Fills in all the fields of a device path node that is the end of an entire device path.
351 Fills in all the fields of a device path node specified by Node so Node represents
352 the end of an entire device path. The Type field of Node is set to
353 END_DEVICE_PATH_TYPE, the SubType field of Node is set to
354 END_ENTIRE_DEVICE_PATH_SUBTYPE, and the Length field of Node is set to
355 END_DEVICE_PATH_LENGTH. Node is not required to be aligned on a 16-bit boundary,
359 If Node is NULL, then ASSERT().
361 @param Node A pointer to a device path node data structure.
367 OUT VOID *Node in SetDevicePathEndNode() argument
370 ASSERT (Node != NULL); in SetDevicePathEndNode()
371 memcpy (Node, &mUefiDevicePathLibEndDevicePath, sizeof (mUefiDevicePathLibEndDevicePath)); in SetDevicePathEndNode()
375 Sets the length, in bytes, of a device path node.
377 Sets the length of the device path node specified by Node to the value specified
378 by NodeLength. NodeLength is returned. Node is not required to be aligned on
382 If Node is NULL, then ASSERT().
386 @param Node A pointer to a device path node data structure.
387 @param Length The length, in bytes, of the device path node.
395 IN OUT VOID *Node, in SetDevicePathNodeLength() argument
399 ASSERT (Node != NULL); in SetDevicePathNodeLength()
401 // return WriteUnaligned16 ((UINT16 *)&((EFI_DEVICE_PATH_PROTOCOL *)(Node))->Length[0], (UINT16)(L… in SetDevicePathNodeLength()
402 le16enc(&((EFI_DEVICE_PATH_PROTOCOL *)(Node))->Length[0], (UINT16)(Length)); in SetDevicePathNodeLength()
407 Creates a device node.
409 This function creates a new device node in a newly allocated buffer of size
410 NodeLength and initializes the device path node header with NodeType and NodeSubType.
411 The new device path node is returned.
418 @param NodeType The device node type for the new device node.
419 @param NodeSubType The device node sub-type for the new device node.
420 @param NodeLength The length of the new device node.
496 device node from SecondDevicePath is retained. The newly created device path is
544 // Allocate space for the combined device path. It only has one end node of in AppendDevicePath()
567 Creates a new path by appending the device node to the device path.
569 This function creates a new device path by appending a copy of the device node
571 in an allocated buffer. The end-of-device-path device node is moved after the
572 end of the appended device node.
575 path device node is returned.
577 device node is returned.
584 @param DevicePathNode A pointer to a single device path node.
588 A copy of DevicePathNode followed by an end-of-device-path node
590 A copy of an end-of-device-path node if both FirstDevicePath
610 // Build a Node that has a terminator on it in AppendDevicePathNode()
620 // Add and end device path node to convert Node to device path in AppendDevicePathNode()