Home | History | Annotate | Download | only in UefiDevicePathLib

Lines Matching refs:Node

3   nodes. The device path is terminated by an end node that is length

25 // Template for an end-of-device path node.
44 @retval FALSE The length of any node node in the DevicePath is less
48 @retval FALSE If PcdMaximumDevicePathNodeCount is not zero, the node
86 // Only return TRUE when the End Device Path node is valid.
92 Returns the Type field of a device path node.
94 Returns the Type field of the device path node specified by Node.
96 If Node is NULL, then ASSERT().
98 @param Node A pointer to a device path node data structure.
100 @return The Type field of the device path node specified by Node.
106 IN CONST VOID *Node
109 ASSERT (Node != NULL);
110 return ((EFI_DEVICE_PATH_PROTOCOL *)(Node))->Type;
114 Returns the SubType field of a device path node.
116 Returns the SubType field of the device path node specified by Node.
118 If Node is NULL, then ASSERT().
120 @param Node A pointer to a device path node data structure.
122 @return The SubType field of the device path node specified by Node.
128 IN CONST VOID *Node
131 ASSERT (Node != NULL);
132 return ((EFI_DEVICE_PATH_PROTOCOL *)(Node))->SubType;
136 Returns the 16-bit Length field of a device path node.
138 Returns the 16-bit Length field of the device path node specified by Node.
139 Node is not required to be aligned on a 16-bit boundary, so it is recommended
143 If Node is NULL, then ASSERT().
145 @param Node A pointer to a device path node data structure.
147 @return The 16-bit Length field of the device path node specified by Node.
153 IN CONST VOID *Node
156 ASSERT (Node != NULL);
157 return ReadUnaligned16 ((UINT16 *)&((EFI_DEVICE_PATH_PROTOCOL *)(Node))->Length[0]);
161 Returns a pointer to the next node in a device path.
163 Returns a pointer to the device path node that follows the device path node
164 specified by Node.
166 If Node is NULL, then ASSERT().
168 @param Node A pointer to a device path node data structure.
170 @return a pointer to the device path node that follows the device path node
171 specified by Node.
177 IN CONST VOID *Node
180 ASSERT (Node != NULL);
181 return (EFI_DEVICE_PATH_PROTOCOL *)((UINT8 *)(Node) + DevicePathNodeLength(Node));
185 Determines if a device path node is an end node of a device path.
189 Determines if the device path node specified by Node is an end node of a device path.
191 end of an entire device path. If Node represents an end node of a device path,
194 If Node is NULL, then ASSERT().
196 @param Node A pointer to a device path node data structure.
198 @retval TRUE The device path node specified by Node is an end node of a
200 @retval FALSE The device path node specified by Node is not an end node of
207 IN CONST VOID *Node
210 ASSERT (Node != NULL);
211 return (BOOLEAN) (DevicePathType (Node) == END_DEVICE_PATH_TYPE);
215 Determines if a device path node is an end node of an entire device path.
217 Determines if a device path node specified by Node is an end node of an entire
218 device path. If Node represents the end of an entire device path, then TRUE is
221 If Node is NULL, then ASSERT().
223 @param Node A pointer to a device path node data structure.
225 @retval TRUE The device path node specified by Node is the end of an entire
227 @retval FALSE The device path node specified by Node is not the end of an
234 IN CONST VOID *Node
237 ASSERT (Node != NULL);
238 return (BOOLEAN) (IsDevicePathEndType (Node) && DevicePathSubType(Node) == END_ENTIRE_DEVICE_PATH_SUBTYPE);
242 Determines if a device path node is an end node of a device path instance.
244 Determines if a device path node specified by Node is an end node of a device
245 path instance. If Node represents the end of a device path instance, then TRUE
248 If Node is NULL, then ASSERT().
250 @param Node A pointer to a device path node data structure.
252 @retval TRUE The device path node specified by Node is the end of a device
254 @retval FALSE The device path node specified by Node is not the end of a
261 IN CONST VOID *Node
264 ASSERT (Node != NULL);
265 return (BOOLEAN) (IsDevicePathEndType (Node) && DevicePathSubType(Node) == END_INSTANCE_DEVICE_PATH_SUBTYPE);
269 Sets the length, in bytes, of a device path node.
271 Sets the length of the device path node specified by Node to the value specified
272 by NodeLength. NodeLength is returned. Node is not required to be aligned on
276 If Node is NULL, then ASSERT().
280 @param Node A pointer to a device path node data structure.
281 @param Length The length, in bytes, of the device path node.
289 IN OUT VOID *Node,
293 ASSERT (Node != NULL);
295 return WriteUnaligned16 ((UINT16 *)&((EFI_DEVICE_PATH_PROTOCOL *)(Node))->Length[0], (UINT16)(Length));
299 Fills in all the fields of a device path node that is the end of an entire device path.
301 Fills in all the fields of a device path node specified by Node so Node represents
302 the end of an entire device path. The Type field of Node is set to
303 END_DEVICE_PATH_TYPE, the SubType field of Node is set to
304 END_ENTIRE_DEVICE_PATH_SUBTYPE, and the Length field of Node is set to
305 END_DEVICE_PATH_LENGTH. Node is not required to be aligned on a 16-bit boundary,
309 If Node is NULL, then ASSERT().
311 @param Node A pointer to a device path node data structure.
317 OUT VOID *Node
320 ASSERT (Node != NULL);
321 CopyMem (Node, &mUefiDevicePathLibEndDevicePath, sizeof (mUefiDevicePathLibEndDevicePath));
328 specified by DevicePath including the end of device path node.
411 device node from SecondDevicePath is retained. The newly created device path is
459 // Allocate space for the combined device path. It only has one end node of
482 Creates a new path by appending the device node to the device path.
484 This function creates a new device path by appending a copy of the device node
486 in an allocated buffer. The end-of-device-path device node is moved after the
487 end of the appended device node.
490 path device node is returned.
492 device node is returned.
499 @param DevicePathNode A pointer to a single device path node.
503 A copy of DevicePathNode followed by an end-of-device-path node
505 A copy of an end-of-device-path node if both FirstDevicePath
525 // Build a Node that has a terminator on it
535 // Add and end device path node to convert Node to device path
556 The end-of-device-path device node is moved after the end of the appended device
557 path instance and a new end-of-device-path-instance node is inserted between.
701 Creates a device node.
703 This function creates a new device node in a newly allocated buffer of size
704 NodeLength and initializes the device path node header with NodeType and NodeSubType.
705 The new device path node is returned.
712 @param NodeType The device node type for the new device node.
713 @param NodeSubType The device node sub-type for the new device node.
714 @param NodeLength The length of the new device node.
767 CONST EFI_DEVICE_PATH_PROTOCOL *Node;
777 Node = DevicePath;
778 while (!IsDevicePathEnd (Node)) {
779 if (IsDevicePathEndInstance (Node)) {
783 Node = NextDevicePathNode (Node);
830 path node for the file specified by FileName is allocated and returned.