Lines Matching defs:Node

77   Returns the Type field of the device path node specified by Node.
79 If Node is NULL, then ASSERT().
81 @param Node A pointer to a device path node data structure.
83 @return The Type field of the device path node specified by Node.
89 IN CONST VOID *Node
92 ASSERT (Node != NULL);
93 return ((EFI_DEVICE_PATH_PROTOCOL *)(Node))->Type;
99 Returns the SubType field of the device path node specified by Node.
101 If Node is NULL, then ASSERT().
103 @param Node A pointer to a device path node data structure.
105 @return The SubType field of the device path node specified by Node.
111 IN CONST VOID *Node
114 ASSERT (Node != NULL);
115 return ((EFI_DEVICE_PATH_PROTOCOL *)(Node))->SubType;
121 Returns the 16-bit Length field of the device path node specified by Node.
122 Node is not required to be aligned on a 16-bit boundary, so it is recommended
126 If Node is NULL, then ASSERT().
128 @param Node A pointer to a device path node data structure.
130 @return The 16-bit Length field of the device path node specified by Node.
136 IN CONST VOID *Node
139 ASSERT (Node != NULL);
140 return ReadUnaligned16 ((UINT16 *)&((EFI_DEVICE_PATH_PROTOCOL *)(Node))->Length[0]);
147 specified by Node.
149 If Node is NULL, then ASSERT().
151 @param Node A pointer to a device path node data structure.
154 specified by Node.
160 IN CONST VOID *Node
163 ASSERT (Node != NULL);
164 return (EFI_DEVICE_PATH_PROTOCOL *)((UINT8 *)(Node) + DevicePathNodeLength(Node));
172 Determines if the device path node specified by Node is an end node of a device path.
174 end of an entire device path. If Node represents an end node of a device path,
177 If Node is NULL, then ASSERT().
179 @param Node A pointer to a device path node data structure.
181 @retval TRUE The device path node specified by Node is an end node of a device path.
182 @retval FALSE The device path node specified by Node is not an end node of
189 IN CONST VOID *Node
192 ASSERT (Node != NULL);
193 return (BOOLEAN) (DevicePathType (Node) == END_DEVICE_PATH_TYPE);
199 Determines if a device path node specified by Node is an end node of an entire
201 If Node represents the end of an entire device path, then TRUE is returned.
204 If Node is NULL, then ASSERT().
206 @param Node A pointer to a device path node data structure.
208 @retval TRUE The device path node specified by Node is the end of an entire device path.
209 @retval FALSE The device path node specified by Node is not the end of an entire device path.
215 IN CONST VOID *Node
218 ASSERT (Node != NULL);
219 return (BOOLEAN) (IsDevicePathEndType (Node) && DevicePathSubType(Node) == END_ENTIRE_DEVICE_PATH_SUBTYPE);
225 Determines if a device path node specified by Node is an end node of a device
227 If Node represents the end of a device path instance, then TRUE is returned.
230 If Node is NULL, then ASSERT().
232 @param Node A pointer to a device path node data structure.
234 @retval TRUE The device path node specified by Node is the end of a device
236 @retval FALSE The device path node specified by Node is not the end of a
243 IN CONST VOID *Node
246 ASSERT (Node != NULL);
247 return (BOOLEAN) (IsDevicePathEndType (Node) && DevicePathSubType(Node) == END_INSTANCE_DEVICE_PATH_SUBTYPE);
253 Sets the length of the device path node specified by Node to the value specified
254 by NodeLength. NodeLength is returned. Node is not required to be aligned on
258 If Node is NULL, then ASSERT().
261 @param Node A pointer to a device path node data structure.
270 IN OUT VOID *Node,
274 ASSERT (Node != NULL);
276 return WriteUnaligned16 ((UINT16 *)&((EFI_DEVICE_PATH_PROTOCOL *)(Node))->Length[0], (UINT16)(Length));
282 Fills in all the fields of a device path node specified by Node so Node represents
283 the end of an entire device path. The Type field of Node is set to
284 END_DEVICE_PATH_TYPE, the SubType field of Node is set to
285 END_ENTIRE_DEVICE_PATH_SUBTYPE, and the Length field of Node is set to
286 END_DEVICE_PATH_LENGTH. Node is not required to be aligned on a 16-bit boundary,
290 If Node is NULL, then ASSERT().
292 @param Node A pointer to a device path node data structure.
298 OUT VOID *Node
301 ASSERT (Node != NULL);
302 CopyMem (Node, &mUefiDevicePathLibEndDevicePath, sizeof (mUefiDevicePathLibEndDevicePath));