#include "acpi.h"
#include "accommon.h"
#include "amlcode.h"
#include "acnamesp.h"
Go to the source code of this file.
◆ _COMPONENT
◆ ACPI_PATH_PUT8
Value:do { \
{ \
} \
} while (0)
_In_ ULONG _In_ ULONG _In_ ULONG Length
IN PVOID IN PVOID IN USHORT IN USHORT Size
PRTL_UNICODE_STRING_BUFFER Path
◆ AcpiNsBuildNormalizedPath()
Definition at line 256 of file nsnames.c.
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 _In_ ULONG _In_ ULONG _In_ ULONG Length
struct acpi_namespace_node * Parent
#define ACPI_PATH_PUT8(Path, Size, Byte, Length)
#define AML_DUAL_NAME_PREFIX
#define ACPI_FUNCTION_TRACE_PTR(a, b)
#define ACPI_MOVE_32_TO_32(d, s)
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 ACPI_NAMESEG_SIZE
Referenced by AcpiNsGetNormalizedPathname(), AcpiNsGetPathnameLength(), and AcpiNsHandleToPathname().
◆ AcpiNsBuildPrefixedPathname()
Definition at line 423 of file nsnames.c.
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);
#define ACPI_ALLOCATE_ZEROED(a)
char * strcat(char *DstString, const char *SrcString)
ACPI_SIZE strlen(const char *String)
ACPI_STATUS AcpiNsExternalizeName(UINT32 InternalNameLength, const char *InternalName, UINT32 *ConvertedNameLength, char **ConvertedName)
static const WCHAR Cleanup[]
char * AcpiNsGetNormalizedPathname(ACPI_NAMESPACE_NODE *Node, BOOLEAN NoTrailing)
ACPI_STATE_COMMON ACPI_NAMESPACE_NODE * Node
void AcpiNsNormalizePathname(char *OriginalPath)
Referenced by AcpiUtPrefixedNamespaceError().
◆ AcpiNsGetExternalPathname()
◆ AcpiNsGetNormalizedPathname()
Definition at line 367 of file nsnames.c.
392 "Could not allocate %u bytes", (
UINT32)
Size));
#define ACPI_DEBUG_PRINT_RAW(pl)
#define ACPI_ALLOCATE_ZEROED(a)
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
IN PVOID IN PVOID IN USHORT IN USHORT Size
UINT32 AcpiNsBuildNormalizedPath(ACPI_NAMESPACE_NODE *Node, char *FullPath, UINT32 PathSize, BOOLEAN NoTrailing)
#define ACPI_FUNCTION_TRACE_PTR(a, b)
#define ACPI_GET_FUNCTION_NAME
#define ACPI_ERROR(plist)
Referenced by AcpiDsCallControlMethod(), AcpiExStartTraceMethod(), AcpiExStopTraceMethod(), AcpiNsBuildPrefixedPathname(), AcpiNsEvaluate(), AcpiNsExecuteTable(), AcpiNsGetExternalPathname(), AcpiNsInitOneDevice(), AcpiNsSearchOneScope(), and AcpiUtCheckAddressRange().
◆ AcpiNsGetPathnameLength()
Definition at line 97 of file nsnames.c.
108 "Invalid/cached reference target node: %p, descriptor type %d",
IN PVOID IN PVOID IN USHORT IN USHORT Size
UINT32 AcpiNsBuildNormalizedPath(ACPI_NAMESPACE_NODE *Node, char *FullPath, UINT32 PathSize, BOOLEAN NoTrailing)
#define ACPI_ERROR(plist)
#define ACPI_DESC_TYPE_NAMED
#define ACPI_GET_DESCRIPTOR_TYPE(d)
Referenced by AcpiRsGetPciRoutingTableLength(), and AcpiUtGetSimpleObjectSize().
◆ AcpiNsHandleToName()
Definition at line 133 of file nsnames.c.
139 const char *NodeName;
ACPI_STATUS AcpiUtInitializeBuffer(ACPI_BUFFER *Buffer, ACPI_SIZE RequiredLength)
#define ACPI_FUNCTION_TRACE_PTR(a, b)
#define ACPI_DEBUG_PRINT(pl)
#define ACPI_COPY_NAMESEG(dest, src)
#define ACPI_PATH_SEGMENT_LENGTH
#define return_ACPI_STATUS(s)
const char * AcpiUtGetNodeName(void *Object)
ACPI_NAMESPACE_NODE * AcpiNsValidateHandle(ACPI_HANDLE Handle)
#define ACPI_NAMESEG_SIZE
_In_ HANDLE _In_opt_ HANDLE _Out_opt_ PHANDLE TargetHandle
Referenced by AcpiGetName().
◆ AcpiNsHandleToPathname()
Definition at line 187 of file nsnames.c.
ACPI_STATUS AcpiUtInitializeBuffer(ACPI_BUFFER *Buffer, ACPI_SIZE RequiredLength)
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
UINT32 AcpiNsBuildNormalizedPath(ACPI_NAMESPACE_NODE *Node, char *FullPath, UINT32 PathSize, BOOLEAN NoTrailing)
#define ACPI_FUNCTION_TRACE_PTR(a, b)
#define ACPI_DEBUG_PRINT(pl)
#define return_ACPI_STATUS(s)
ACPI_NAMESPACE_NODE * AcpiNsValidateHandle(ACPI_HANDLE Handle)
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ ULONG _Out_ PVOID _Out_ PULONG RequiredSize
_In_ HANDLE _In_opt_ HANDLE _Out_opt_ PHANDLE TargetHandle
Referenced by AcpiGetName(), AcpiNsPrintNodePathname(), and AcpiRsCreatePciRoutingTable().
◆ AcpiNsNormalizePathname()
void AcpiNsNormalizePathname |
( |
char * |
OriginalPath | ) |
|
Definition at line 506 of file nsnames.c.
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_ALLOCATE_ZEROED(a)
ACPI_SIZE strlen(const char *String)
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
char * strcpy(char *DstString, const char *SrcString)
#define ACPI_NAMESEG_SIZE
Referenced by AcpiNsBuildPrefixedPathname().