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
69 // Validate the input size big enough to touch the first node.
87 // Validate next node before touch it.
102 // Only return TRUE when the End Device Path node is valid.
109 Returns the Type field of a device path node.
111 Returns the Type field of the device path node specified by Node.
113 If Node is NULL, then ASSERT().
115 @param Node A pointer to a device path node data structure.
117 @return The Type field of the device path node specified by Node.
123 IN CONST VOID *Node
126 ASSERT (Node != NULL);
127 return ((EFI_DEVICE_PATH_PROTOCOL *)(Node))->Type;
131 Returns the SubType field of a device path node.
133 Returns the SubType field of the device path node specified by Node.
135 If Node is NULL, then ASSERT().
137 @param Node A pointer to a device path node data structure.
139 @return The SubType field of the device path node specified by Node.
145 IN CONST VOID *Node
148 ASSERT (Node != NULL);
149 return ((EFI_DEVICE_PATH_PROTOCOL *)(Node))->SubType;
153 Returns the 16-bit Length field of a device path node.
155 Returns the 16-bit Length field of the device path node specified by Node.
156 Node is not required to be aligned on a 16-bit boundary, so it is recommended
160 If Node is NULL, then ASSERT().
162 @param Node A pointer to a device path node data structure.
164 @return The 16-bit Length field of the device path node specified by Node.
170 IN CONST VOID *Node
173 ASSERT (Node != NULL);
174 return ReadUnaligned16 ((UINT16 *)&((EFI_DEVICE_PATH_PROTOCOL *)(Node))->Length[0]);
178 Returns a pointer to the next node in a device path.
180 Returns a pointer to the device path node that follows the device path node
181 specified by Node.
183 If Node is NULL, then ASSERT().
185 @param Node A pointer to a device path node data structure.
187 @return a pointer to the device path node that follows the device path node
188 specified by Node.
194 IN CONST VOID *Node
197 ASSERT (Node != NULL);
198 return (EFI_DEVICE_PATH_PROTOCOL *)((UINT8 *)(Node) + DevicePathNodeLength(Node));
202 Determines if a device path node is an end node of a device path.
206 Determines if the device path node specified by Node is an end node of a device path.
208 end of an entire device path. If Node represents an end node of a device path,
211 If Node is NULL, then ASSERT().
213 @param Node A pointer to a device path node data structure.
215 @retval TRUE The device path node specified by Node is an end node of a
217 @retval FALSE The device path node specified by Node is not an end node of
224 IN CONST VOID *Node
227 ASSERT (Node != NULL);
228 return (BOOLEAN) (DevicePathType (Node) == END_DEVICE_PATH_TYPE);
232 Determines if a device path node is an end node of an entire device path.
234 Determines if a device path node specified by Node is an end node of an entire
235 device path. If Node represents the end of an entire device path, then TRUE is
238 If Node is NULL, then ASSERT().
240 @param Node A pointer to a device path node data structure.
242 @retval TRUE The device path node specified by Node is the end of an entire
244 @retval FALSE The device path node specified by Node is not the end of an
251 IN CONST VOID *Node
254 ASSERT (Node != NULL);
255 return (BOOLEAN) (IsDevicePathEndType (Node) && DevicePathSubType(Node) == END_ENTIRE_DEVICE_PATH_SUBTYPE);
259 Determines if a device path node is an end node of a device path instance.
261 Determines if a device path node specified by Node is an end node of a device
262 path instance. If Node represents the end of a device path instance, then TRUE
265 If Node is NULL, then ASSERT().
267 @param Node A pointer to a device path node data structure.
269 @retval TRUE The device path node specified by Node is the end of a device
271 @retval FALSE The device path node specified by Node is not the end of a
278 IN CONST VOID *Node
281 ASSERT (Node != NULL);
282 return (BOOLEAN) (IsDevicePathEndType (Node) && DevicePathSubType(Node) == END_INSTANCE_DEVICE_PATH_SUBTYPE);
286 Sets the length, in bytes, of a device path node.
288 Sets the length of the device path node specified by Node to the value specified
289 by NodeLength. NodeLength is returned. Node is not required to be aligned on
293 If Node is NULL, then ASSERT().
297 @param Node A pointer to a device path node data structure.
298 @param Length The length, in bytes, of the device path node.
306 IN OUT VOID *Node,
310 ASSERT (Node != NULL);
312 return WriteUnaligned16 ((UINT16 *)&((EFI_DEVICE_PATH_PROTOCOL *)(Node))->Length[0], (UINT16)(Length));
316 Fills in all the fields of a device path node that is the end of an entire device path.
318 Fills in all the fields of a device path node specified by Node so Node represents
319 the end of an entire device path. The Type field of Node is set to
320 END_DEVICE_PATH_TYPE, the SubType field of Node is set to
321 END_ENTIRE_DEVICE_PATH_SUBTYPE, and the Length field of Node is set to
322 END_DEVICE_PATH_LENGTH. Node is not required to be aligned on a 16-bit boundary,
326 If Node is NULL, then ASSERT().
328 @param Node A pointer to a device path node data structure.
334 OUT VOID *Node
337 ASSERT (Node != NULL);
338 CopyMem (Node, &mUefiDevicePathLibEndDevicePath, sizeof (mUefiDevicePathLibEndDevicePath));
345 specified by DevicePath including the end of device path node.
428 device node from SecondDevicePath is retained. The newly created device path is
476 // Allocate space for the combined device path. It only has one end node of
499 Creates a new path by appending the device node to the device path.
501 This function creates a new device path by appending a copy of the device node
503 in an allocated buffer. The end-of-device-path device node is moved after the
504 end of the appended device node.
507 path device node is returned.
509 device node is returned.
516 @param DevicePathNode A pointer to a single device path node.
520 A copy of DevicePathNode followed by an end-of-device-path node
522 A copy of an end-of-device-path node if both FirstDevicePath
542 // Build a Node that has a terminator on it
552 // Add and end device path node to convert Node to device path
573 The end-of-device-path device node is moved after the end of the appended device
574 path instance and a new end-of-device-path-instance node is inserted between.
718 Creates a device node.
720 This function creates a new device node in a newly allocated buffer of size
721 NodeLength and initializes the device path node header with NodeType and NodeSubType.
722 The new device path node is returned.
729 @param NodeType The device node type for the new device node.
730 @param NodeSubType The device node sub-type for the new device node.
731 @param NodeLength The length of the new device node.
784 CONST EFI_DEVICE_PATH_PROTOCOL *Node;
794 Node = DevicePath;
795 while (!IsDevicePathEnd (Node)) {
796 if (IsDevicePathEndInstance (Node)) {
800 Node = NextDevicePathNode (Node);
847 path node for the file specified by FileName is allocated and returned.