Lines Matching refs:Node
36 // Template for an end-of-device path node.
86 @retval FALSE The length of any node node in the DevicePath is less
90 @retval FALSE If PcdMaximumDevicePathNodeCount is not zero, the node
111 // Validate the input size big enough to touch the first node.
129 // Validate next node before touch it.
144 // Only return TRUE when the End Device Path node is valid.
150 Returns the Type field of a device path node.
152 Returns the Type field of the device path node specified by Node.
154 If Node is NULL, then ASSERT().
156 @param Node A pointer to a device path node data structure.
158 @return The Type field of the device path node specified by Node.
164 IN CONST VOID *Node
167 ASSERT (Node != NULL);
168 return ((EFI_DEVICE_PATH_PROTOCOL *)(Node))->Type;
172 Returns the SubType field of a device path node.
174 Returns the SubType field of the device path node specified by Node.
176 If Node is NULL, then ASSERT().
178 @param Node A pointer to a device path node data structure.
180 @return The SubType field of the device path node specified by Node.
186 IN CONST VOID *Node
189 ASSERT (Node != NULL);
190 return ((EFI_DEVICE_PATH_PROTOCOL *)(Node))->SubType;
194 Returns the 16-bit Length field of a device path node.
196 Returns the 16-bit Length field of the device path node specified by Node.
197 Node is not required to be aligned on a 16-bit boundary, so it is recommended
201 If Node is NULL, then ASSERT().
203 @param Node A pointer to a device path node data structure.
205 @return The 16-bit Length field of the device path node specified by Node.
211 IN CONST VOID *Node
214 ASSERT (Node != NULL);
215 return ReadUnaligned16 ((UINT16 *)&((EFI_DEVICE_PATH_PROTOCOL *)(Node))->Length[0]);
219 Returns a pointer to the next node in a device path.
221 Returns a pointer to the device path node that follows the device path node
222 specified by Node.
224 If Node is NULL, then ASSERT().
226 @param Node A pointer to a device path node data structure.
228 @return a pointer to the device path node that follows the device path node
229 specified by Node.
235 IN CONST VOID *Node
238 ASSERT (Node != NULL);
239 return (EFI_DEVICE_PATH_PROTOCOL *)((UINT8 *)(Node) + DevicePathNodeLength(Node));
243 Determines if a device path node is an end node of a device path.
247 Determines if the device path node specified by Node is an end node of a device path.
249 end of an entire device path. If Node represents an end node of a device path,
252 If Node is NULL, then ASSERT().
254 @param Node A pointer to a device path node data structure.
256 @retval TRUE The device path node specified by Node is an end node of a device path.
257 @retval FALSE The device path node specified by Node is not an end node of
264 IN CONST VOID *Node
267 ASSERT (Node != NULL);
268 return (BOOLEAN) (DevicePathType (Node) == END_DEVICE_PATH_TYPE);
272 Determines if a device path node is an end node of an entire device path.
274 Determines if a device path node specified by Node is an end node of an entire
276 If Node represents the end of an entire device path, then TRUE is returned.
279 If Node is NULL, then ASSERT().
281 @param Node A pointer to a device path node data structure.
283 @retval TRUE The device path node specified by Node is the end of an entire device path.
284 @retval FALSE The device path node specified by Node is not the end of an entire device path.
290 IN CONST VOID *Node
293 ASSERT (Node != NULL);
294 return (BOOLEAN) (IsDevicePathEndType (Node) && DevicePathSubType(Node) == END_ENTIRE_DEVICE_PATH_SUBTYPE);
298 Determines if a device path node is an end node of a device path instance.
300 Determines if a device path node specified by Node is an end node of a device
302 If Node represents the end of a device path instance, then TRUE is returned.
305 If Node is NULL, then ASSERT().
307 @param Node A pointer to a device path node data structure.
309 @retval TRUE The device path node specified by Node is the end of a device
311 @retval FALSE The device path node specified by Node is not the end of a
318 IN CONST VOID *Node
321 ASSERT (Node != NULL);
322 return (BOOLEAN) (IsDevicePathEndType (Node) && DevicePathSubType(Node) == END_INSTANCE_DEVICE_PATH_SUBTYPE);
326 Sets the length, in bytes, of a device path node.
328 Sets the length of the device path node specified by Node to the value specified
329 by NodeLength. NodeLength is returned. Node is not required to be aligned on
333 If Node is NULL, then ASSERT().
337 @param Node A pointer to a device path node data structure.
338 @param Length The length, in bytes, of the device path node.
346 IN OUT VOID *Node,
350 ASSERT (Node != NULL);
352 return WriteUnaligned16 ((UINT16 *)&((EFI_DEVICE_PATH_PROTOCOL *)(Node))->Length[0], (UINT16)(Length));
356 Fills in all the fields of a device path node that is the end of an entire device path.
358 Fills in all the fields of a device path node specified by Node so Node represents
359 the end of an entire device path. The Type field of Node is set to
360 END_DEVICE_PATH_TYPE, the SubType field of Node is set to
361 END_ENTIRE_DEVICE_PATH_SUBTYPE, and the Length field of Node is set to
362 END_DEVICE_PATH_LENGTH. Node is not required to be aligned on a 16-bit boundary,
366 If Node is NULL, then ASSERT().
368 @param Node A pointer to a device path node data structure.
374 OUT VOID *Node
377 ASSERT (Node != NULL);
378 CopyMem (Node, &mUefiDevicePathLibEndDevicePath, sizeof (mUefiDevicePathLibEndDevicePath));
385 specified by DevicePath including the end of device path node.
433 FirstDevicePath in a newly allocated buffer. Only the end-of-device-path device node from
464 Creates a new path by appending the device node to the device path.
466 This function creates a new device path by appending a copy of the device node
469 The end-of-device-path device node is moved after the end of the appended device node.
472 path device node is returned.
474 device node is returned.
481 @param DevicePathNode A pointer to a single device path node.
485 A copy of DevicePathNode followed by an end-of-device-path node
487 A copy of an end-of-device-path node if both FirstDevicePath
508 The end-of-device-path device node is moved after the end of the appended device
509 path instance and a new end-of-device-path-instance node is inserted between.
573 Creates a device node.
575 This function creates a new device node in a newly allocated buffer of size
576 NodeLength and initializes the device path node header with NodeType and NodeSubType.
577 The new device path node is returned.
584 @param NodeType The device node type for the new device node.
585 @param NodeSubType The device node sub-type for the new device node.
586 @param NodeLength The length of the new device node.
666 device path protocol, then a device path containing a single device path node
743 Converts a device node to its string representation.
745 @param DeviceNode A Pointer to the device node to be converted.
747 of the display node is used, where applicable. If DisplayOnly
748 is FALSE, then the longer text representation of the display node
751 representation for a device node can be used, where applicable.
753 @return A pointer to the allocated text representation of the device node or NULL if DeviceNode
780 of the display node is used, where applicable. If DisplayOnly
781 is FALSE, then the longer text representation of the display node
784 representation for a device node can be used, where applicable.
809 Convert text to the binary representation of a device node.
812 node. Conversion starts with the first character and continues
813 until the first non-device node character.
815 @return A pointer to the EFI device node or NULL if TextDeviceNode is NULL or there was
841 until the first non-device node character.