Lines Matching +full:data +full:- +full:path

1 /*-
19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 Definition for Device Path library.
33 Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>
34 SPDX-License-Identifier: BSD-2-Clause-Patent
57 #define IS_HYPHEN(a) ((a) == '-')
65 // Private Data structure
180 Returns the size of a device path in bytes.
182 This function returns the size, in bytes, of the device path data structure
183 specified by DevicePath including the end of device path node.
186 @param DevicePath A pointer to a device path data structure.
189 @retval Others The size of a device path in bytes.
199 Creates a new copy of an existing device path.
201 This function allocates space for a new copy of the device path specified by DevicePath.
205 The memory for the new device path is allocated from EFI boot services memory.
208 @param DevicePath A pointer to a device path data structure.
211 @retval Others A pointer to the duplicated device path.
221 Creates a new device path by appending a second device path to a first device path.
223 This function creates a new device path by appending a copy of SecondDevicePath
224 to a copy of FirstDevicePath in a newly allocated buffer. Only the end-of-device-path
225 device node from SecondDevicePath is retained. The newly created device path is
229 SecondDevicePath are NULL, then a copy of an end-of-device-path is returned.
232 The memory for the new device path is allocated from EFI boot services memory.
235 @param FirstDevicePath A pointer to a device path data structure.
236 @param SecondDevicePath A pointer to a device path data structure.
240 @retval Others A pointer to the new device path if success.
241 … Or a copy an end-of-device-path if both FirstDevicePath and SecondDevicePath are NULL.
252 Creates a new path by appending the device node to the device path.
254 This function creates a new device path by appending a copy of the device node
255 specified by DevicePathNode to a copy of the device path specified by DevicePath
256 in an allocated buffer. The end-of-device-path device node is moved after the
259 If DevicePath is NULL then a copy of DevicePathNode, followed by an end-of-device
260 path device node is returned.
261 If both DevicePathNode and DevicePath are NULL then a copy of an end-of-device-path
263 If there is not enough memory to allocate space for the new device path, then
268 @param DevicePath A pointer to a device path data structure.
269 @param DevicePathNode A pointer to a single device path node.
271 @retval NULL If there is not enough memory for the new device path.
272 @retval Others A pointer to the new device path if success.
273 A copy of DevicePathNode followed by an end-of-device-path node
275 A copy of an end-of-device-path node if both FirstDevicePath
287 Creates a new device path by appending the specified device path instance to the specified device
288 path.
290 This function creates a new device path by appending a copy of the device path
291 instance specified by DevicePathInstance to a copy of the device path specified
293 The end-of-device-path device node is moved after the end of the appended device
294 path instance and a new end-of-device-path-instance node is inserted between.
298 If there is not enough memory to allocate space for the new device path, then
303 @param DevicePath A pointer to a device path data structure.
304 @param DevicePathInstance A pointer to a device path instance.
306 @return A pointer to the new device path.
317 Creates a copy of the current device path instance and returns a pointer to the next device path
320 This function creates a copy of the current device path instance. It also updates
321 DevicePath to point to the next device path instance in the device path (or NULL
322 if no more) and updates Size to hold the size of the device path instance copy.
324 If DevicePath points to a invalid device path, then NULL is returned.
325 If there is not enough memory to allocate space for the new device path, then
332 device path instance. On output, this holds
333 the pointer to the next device path instance
334 or NULL if there are no more device path
335 instances in the device path pointer to a
336 device path data structure.
338 path instance, in bytes or zero, if DevicePath
341 @return A pointer to the current device path instance.
355 NodeLength and initializes the device path node header with NodeType and NodeSubType.
356 The new device path node is returned.
357 If NodeLength is smaller than a device path header, then NULL is returned.
358 If there is not enough memory to allocate space for the new device path, then
364 @param NodeSubType The device node sub-type for the new device node.
367 @return The new device path.
379 Determines if a device path is single or multi-instance.
381 This function returns TRUE if the device path specified by DevicePath is
382 multi-instance.
386 @param DevicePath A pointer to a device path data structure.
388 @retval TRUE DevicePath is multi-instance.
389 @retval FALSE DevicePath is not multi-instance, or DevicePath
400 Converts a device path to its text representation.
410 @return A pointer to the allocated text representation of the device path or
450 until the first non-device node character.
463 Convert text to the binary representation of a device path.
467 path. Conversion starts with the first character and continues
468 until the first non-device node character.
470 @return A pointer to the allocated device path or NULL if TextDeviceNode is NULL or
528 * previous non-static deifnition since we want these to be static
612 strlcpy(buf, "groot-cannot-decode-guid-groot-smash", in guid_str()