50 #define _COMPONENT ACPI_NAMESPACE 108 "Invalid/cached reference target node: %p, descriptor type %d",
139 const char *NodeName;
265 char c, *Left, *Right;
272 #define ACPI_PATH_PUT8(Path, Size, Byte, Length) \ 274 if ((Length) < (Size)) \ 276 (Path)[(Length)] = (Byte); \ 292 goto BuildTrailingNull;
296 while (NextNode && NextNode != AcpiGbl_RootNode)
298 if (NextNode !=
Node)
304 DoNoTrailing = NoTrailing;
305 for (
i = 0;
i < 4;
i++)
308 if (DoNoTrailing &&
c !=
'_')
310 DoNoTrailing =
FALSE;
318 NextNode = NextNode->
Parent;
328 Right = FullPath+
Length - 1;
343 #undef ACPI_PATH_PUT8 392 "Could not allocate %u bytes", (
UINT32)
Size));
428 char *FullPath =
NULL;
429 char *ExternalPath =
NULL;
430 char *PrefixPath =
NULL;
431 ACPI_SIZE PrefixPathLength = 0;
436 if (PrefixScope && PrefixScope->
Scope.
Node)
441 PrefixPathLength =
strlen (PrefixPath);
446 NULL, &ExternalPath);
455 PrefixPathLength +
strlen (ExternalPath) + 2);
464 (*ExternalPath !=
'\\') &&
465 (*ExternalPath !=
'^'))
467 strcat (FullPath, PrefixPath);
475 strcat (FullPath, ExternalPath);
509 char *InputPath = OriginalPath;
518 NewPath = NewPathBuffer;
526 if (*InputPath ==
'\\')
528 *NewPath = *InputPath;
533 while (*InputPath ==
'^')
535 *NewPath = *InputPath;
548 if ((
i == 0) || (*InputPath !=
'_'))
550 *NewPath = *InputPath;
559 if (*InputPath ==
'.')
561 *NewPath = *InputPath;
568 strcpy (OriginalPath, NewPathBuffer);
#define ACPI_DEBUG_PRINT_RAW(pl)
#define ACPI_ALLOCATE_ZEROED(a)
ACPI_STATUS AcpiUtInitializeBuffer(ACPI_BUFFER *Buffer, ACPI_SIZE RequiredLength)
_In_ ULONG _In_ ULONG _In_ ULONG Length
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
char * strcat(char *DstString, const char *SrcString)
ACPI_SIZE strlen(const char *String)
IN PVOID IN PVOID IN USHORT IN USHORT Size
ACPI_STATUS AcpiNsHandleToPathname(ACPI_HANDLE TargetHandle, ACPI_BUFFER *Buffer, BOOLEAN NoTrailing)
struct acpi_namespace_node * Parent
#define ACPI_PATH_PUT8(Path, Size, Byte, Length)
UINT32 AcpiNsBuildNormalizedPath(ACPI_NAMESPACE_NODE *Node, char *FullPath, UINT32 PathSize, BOOLEAN NoTrailing)
#define ACPI_MODULE_NAME(Name)
#define AML_DUAL_NAME_PREFIX
ACPI_STATUS AcpiNsExternalizeName(UINT32 InternalNameLength, const char *InternalName, UINT32 *ConvertedNameLength, char **ConvertedName)
ACPI_STATUS AcpiNsHandleToName(ACPI_HANDLE TargetHandle, ACPI_BUFFER *Buffer)
#define ACPI_FUNCTION_TRACE_PTR(a, b)
#define ACPI_DEBUG_PRINT(pl)
ACPI_SIZE AcpiNsGetPathnameLength(ACPI_NAMESPACE_NODE *Node)
#define ACPI_MOVE_32_TO_32(d, s)
#define ACPI_COPY_NAMESEG(dest, src)
static const WCHAR Cleanup[]
#define ACPI_PATH_SEGMENT_LENGTH
#define ACPI_GET_FUNCTION_NAME
char * AcpiNsGetNormalizedPathname(ACPI_NAMESPACE_NODE *Node, BOOLEAN NoTrailing)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define return_ACPI_STATUS(s)
char * AcpiNsBuildPrefixedPathname(ACPI_GENERIC_STATE *PrefixScope, const char *InternalPath)
ACPI_STATE_COMMON ACPI_NAMESPACE_NODE * Node
char * AcpiNsGetExternalPathname(ACPI_NAMESPACE_NODE *Node)
#define ACPI_ERROR(plist)
const char * AcpiUtGetNodeName(void *Object)
char * strcpy(char *DstString, const char *SrcString)
ACPI_NAMESPACE_NODE * AcpiNsValidateHandle(ACPI_HANDLE Handle)
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ ULONG _Out_ PVOID _Out_ PULONG RequiredSize
#define ACPI_DESC_TYPE_NAMED
void AcpiNsNormalizePathname(char *OriginalPath)
#define ACPI_NAMESEG_SIZE
_In_ HANDLE _In_opt_ HANDLE _Out_opt_ PHANDLE TargetHandle
#define ACPI_GET_DESCRIPTOR_TYPE(d)