Lines Matching +full:reference +full:- +full:buffer

3  * Module Name: exdump - Interpreter debug output routines
11 * Some or all of this work - Copyright (c) 1999 - 2025, Intel Corp.
28 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
104 * re-exports any such software from a foreign destination, Licensee shall
105 * ensure that the distribution and export/re-export of the software is in
108 * any of its subsidiaries will export/re-export any technical data, process,
130 * 3. Neither the names of the above-listed copyright holders nor the names
221 {ACPI_EXD_UINT32, ACPI_EXD_OFFSET (Buffer.Length), "Length"},
222 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (Buffer.Pointer), "Pointer"},
223 {ACPI_EXD_NODE, ACPI_EXD_OFFSET (Buffer.Node), "Parent Node"},
319 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (BufferField.BufferObj), "Buffer Object"}
352 {ACPI_EXD_UINT8, ACPI_EXD_OFFSET (Reference.Class), "Class"},
353 {ACPI_EXD_UINT8, ACPI_EXD_OFFSET (Reference.TargetType), "Target Type"},
354 {ACPI_EXD_UINT32, ACPI_EXD_OFFSET (Reference.Value), "Value"},
355 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (Reference.Object), "Object Desc"},
356 {ACPI_EXD_NODE, ACPI_EXD_OFFSET (Reference.Node), "Node"},
357 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (Reference.Where), "Where"},
358 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET (Reference.IndexPointer), "Index Pointer"},
406 {ACPI_EXD_UINT16, ACPI_EXD_OFFSET (Common.ReferenceCount), "Reference Count"},
475 * PARAMETERS: ObjDesc - Descriptor to dump
476 * Info - Info table corresponding to this object
509 Count = Info->Offset; in AcpiExDumpObject()
518 Target = ACPI_ADD_PTR (UINT8, ObjDesc, Info->Offset); in AcpiExDumpObject()
519 Name = Info->Name; in AcpiExDumpObject()
521 switch (Info->Opcode) in AcpiExDumpObject()
530 ObjDesc->Common.Type, in AcpiExDumpObject()
563 AcpiUtPrintString (ObjDesc->String.Pointer, ACPI_UINT8_MAX); in AcpiExDumpObject()
570 ObjDesc->Buffer.Pointer, ObjDesc->Buffer.Length); in AcpiExDumpObject()
601 AcpiUtGetObjectTypeName (Next), Next->Common.Type); in AcpiExDumpObject()
603 while (Next->Common.NextObject) in AcpiExDumpObject()
605 if ((Next->Common.Type == ACPI_TYPE_LOCAL_DATA) && in AcpiExDumpObject()
611 Next = Next->Common.NextObject; in AcpiExDumpObject()
612 AcpiOsPrintf ("->%p(%s %2.2X)", Next, in AcpiExDumpObject()
613 AcpiUtGetObjectTypeName (Next), Next->Common.Type); in AcpiExDumpObject()
625 AcpiOsPrintf ("- No attached objects"); in AcpiExDumpObject()
641 Next->AddressSpace.SpaceId); in AcpiExDumpObject()
643 while (Next->AddressSpace.Next) in AcpiExDumpObject()
645 if ((Next->Common.Type == ACPI_TYPE_LOCAL_DATA) && in AcpiExDumpObject()
651 Next = Next->AddressSpace.Next; in AcpiExDumpObject()
652 AcpiOsPrintf ("->%p(%s %2.2X)", Next, in AcpiExDumpObject()
654 Next->AddressSpace.SpaceId); in AcpiExDumpObject()
677 AcpiUtGetObjectTypeName (Next), Next->Common.Type); in AcpiExDumpObject()
679 while (Next->Region.Next) in AcpiExDumpObject()
681 if ((Next->Common.Type == ACPI_TYPE_LOCAL_DATA) && in AcpiExDumpObject()
687 Next = Next->Region.Next; in AcpiExDumpObject()
688 AcpiOsPrintf ("->%p(%s %2.2X)", Next, in AcpiExDumpObject()
689 AcpiUtGetObjectTypeName (Next), Next->Common.Type); in AcpiExDumpObject()
710 AcpiOsPrintf (" [%4.4s]", Node->Name.Ascii); in AcpiExDumpObject()
718 Info->Opcode); in AcpiExDumpObject()
723 Count--; in AcpiExDumpObject()
732 * PARAMETERS: *ObjDesc - Pointer to entry to be dumped
733 * Depth - Current nesting depth
789 Depth, " ", Depth, ObjDesc, ObjDesc->Common.ReferenceCount)); in AcpiExDumpOperand()
794 ObjDesc, ObjDesc->Common.ReferenceCount)); in AcpiExDumpOperand()
799 switch (ObjDesc->Common.Type) in AcpiExDumpOperand()
803 AcpiOsPrintf ("Reference: [%s] ", in AcpiExDumpOperand()
806 switch (ObjDesc->Reference.Class) in AcpiExDumpOperand()
815 AcpiOsPrintf ("%p\n", ObjDesc->Reference.Object); in AcpiExDumpOperand()
820 AcpiOsPrintf ("Table Index %X\n", ObjDesc->Reference.Value); in AcpiExDumpOperand()
825 AcpiOsPrintf ("%p [%s]\n", ObjDesc->Reference.Object, in AcpiExDumpOperand()
827 ObjDesc->Reference.Object)->Common.Type)); in AcpiExDumpOperand()
832 AcpiUtRepairName (ObjDesc->Reference.Node->Name.Ascii); in AcpiExDumpOperand()
833 AcpiOsPrintf ("- [%4.4s] (Node %p)\n", in AcpiExDumpOperand()
834 ObjDesc->Reference.Node->Name.Ascii, in AcpiExDumpOperand()
835 ObjDesc->Reference.Node); in AcpiExDumpOperand()
841 AcpiOsPrintf ("%X\n", ObjDesc->Reference.Value); in AcpiExDumpOperand()
844 default: /* Unknown reference class */ in AcpiExDumpOperand()
846 AcpiOsPrintf ("%2.2X\n", ObjDesc->Reference.Class); in AcpiExDumpOperand()
853 AcpiOsPrintf ("Buffer length %.2X @ %p\n", in AcpiExDumpOperand()
854 ObjDesc->Buffer.Length, ObjDesc->Buffer.Pointer); in AcpiExDumpOperand()
856 /* Debug only -- dump the buffer contents */ in AcpiExDumpOperand()
858 if (ObjDesc->Buffer.Pointer) in AcpiExDumpOperand()
860 Length = ObjDesc->Buffer.Length; in AcpiExDumpOperand()
867 "Buffer Contents: (displaying length 0x%.2X)\n", Length); in AcpiExDumpOperand()
868 ACPI_DUMP_BUFFER (ObjDesc->Buffer.Pointer, Length); in AcpiExDumpOperand()
875 ACPI_FORMAT_UINT64 (ObjDesc->Integer.Value)); in AcpiExDumpOperand()
881 ObjDesc->Package.Count, ObjDesc->Package.Elements); in AcpiExDumpOperand()
887 if (ObjDesc->Package.Count && in AcpiExDumpOperand()
888 ObjDesc->Package.Elements && in AcpiExDumpOperand()
891 for (Index = 0; Index < ObjDesc->Package.Count; Index++) in AcpiExDumpOperand()
894 ObjDesc->Package.Elements[Index], Depth + 1); in AcpiExDumpOperand()
902 AcpiUtGetRegionName (ObjDesc->Region.SpaceId), in AcpiExDumpOperand()
903 ObjDesc->Region.SpaceId); in AcpiExDumpOperand()
909 if (!(ObjDesc->Region.Flags & AOPOBJ_DATA_VALID)) in AcpiExDumpOperand()
916 ACPI_FORMAT_UINT64 (ObjDesc->Region.Address), in AcpiExDumpOperand()
917 ObjDesc->Region.Length); in AcpiExDumpOperand()
924 ObjDesc->String.Length, in AcpiExDumpOperand()
925 ObjDesc->String.Pointer); in AcpiExDumpOperand()
927 AcpiUtPrintString (ObjDesc->String.Pointer, ACPI_UINT8_MAX); in AcpiExDumpOperand()
940 ObjDesc->Field.BitLength, in AcpiExDumpOperand()
941 ObjDesc->Field.AccessByteWidth, in AcpiExDumpOperand()
942 ObjDesc->Field.FieldFlags & AML_FIELD_LOCK_RULE_MASK, in AcpiExDumpOperand()
943 ObjDesc->Field.FieldFlags & AML_FIELD_UPDATE_RULE_MASK, in AcpiExDumpOperand()
944 ObjDesc->Field.BaseByteOffset, in AcpiExDumpOperand()
945 ObjDesc->Field.StartFieldBitOffset); in AcpiExDumpOperand()
947 AcpiExDumpOperand (ObjDesc->Field.RegionObj, Depth + 1); in AcpiExDumpOperand()
958 ObjDesc->BufferField.BitLength, in AcpiExDumpOperand()
959 ObjDesc->BufferField.BaseByteOffset, in AcpiExDumpOperand()
960 ObjDesc->BufferField.StartFieldBitOffset); in AcpiExDumpOperand()
962 if (!ObjDesc->BufferField.BufferObj) in AcpiExDumpOperand()
966 else if ((ObjDesc->BufferField.BufferObj)->Common.Type != in AcpiExDumpOperand()
969 AcpiOsPrintf ("*not a Buffer*\n"); in AcpiExDumpOperand()
973 AcpiExDumpOperand (ObjDesc->BufferField.BufferObj, Depth + 1); in AcpiExDumpOperand()
985 ObjDesc->Method.ParamCount, in AcpiExDumpOperand()
986 ObjDesc->Method.AmlStart, in AcpiExDumpOperand()
987 ObjDesc->Method.AmlLength); in AcpiExDumpOperand()
1019 AcpiOsPrintf ("Unknown Type %X\n", ObjDesc->Common.Type); in AcpiExDumpOperand()
1031 * PARAMETERS: Operands - A list of Operand objects
1032 * OpcodeName - AML opcode name
1033 * NumOperands - Operand count for this opcode
1068 NumOperands--; in AcpiExDumpOperands()
1081 * PARAMETERS: Title - Descriptive text
1082 * Value - Value to be displayed
1111 * PARAMETERS: Node - Descriptor to dump
1112 * Flags - Force display if TRUE
1139 Node->Type, AcpiUtGetTypeName (Node->Type)); in AcpiExDumpNamespaceNode()
1150 * PARAMETERS: Object - Descriptor to dump
1152 * DESCRIPTION: Dumps a reference object
1166 if (ObjDesc->Reference.Class == ACPI_REFCLASS_NAME) in AcpiExDumpReferenceObj()
1168 AcpiOsPrintf (" %p ", ObjDesc->Reference.Node); in AcpiExDumpReferenceObj()
1170 Status = AcpiNsHandleToPathname (ObjDesc->Reference.Node, in AcpiExDumpReferenceObj()
1180 AcpiUtGetTypeName (ObjDesc->Reference.Node->Type), in AcpiExDumpReferenceObj()
1185 else if (ObjDesc->Reference.Object) in AcpiExDumpReferenceObj()
1190 ObjDesc->Reference.Object); in AcpiExDumpReferenceObj()
1191 if (ObjDesc->Reference.Class == ACPI_REFCLASS_TABLE) in AcpiExDumpReferenceObj()
1194 ObjDesc->Reference.Value); in AcpiExDumpReferenceObj()
1200 ObjDesc->Reference.Object)->Common.Type)); in AcpiExDumpReferenceObj()
1205 AcpiOsPrintf (" Target: %p\n", ObjDesc->Reference.Object); in AcpiExDumpReferenceObj()
1215 * PARAMETERS: ObjDesc - Descriptor to dump
1216 * Level - Indentation Level
1217 * Index - Package index for this object
1256 switch (ObjDesc->Common.Type) in AcpiExDumpPackageObj()
1261 ACPI_FORMAT_UINT64 (ObjDesc->Integer.Value)); in AcpiExDumpPackageObj()
1267 AcpiUtPrintString (ObjDesc->String.Pointer, ACPI_UINT8_MAX); in AcpiExDumpPackageObj()
1273 AcpiOsPrintf ("[Buffer] Length %.2X = ", ObjDesc->Buffer.Length); in AcpiExDumpPackageObj()
1274 if (ObjDesc->Buffer.Length) in AcpiExDumpPackageObj()
1277 ACPI_CAST_PTR (UINT8, ObjDesc->Buffer.Pointer), in AcpiExDumpPackageObj()
1278 ObjDesc->Buffer.Length, DB_DWORD_DISPLAY, _COMPONENT); in AcpiExDumpPackageObj()
1289 ObjDesc->Package.Count); in AcpiExDumpPackageObj()
1291 for (i = 0; i < ObjDesc->Package.Count; i++) in AcpiExDumpPackageObj()
1294 ObjDesc->Package.Elements[i], Level + 1, i); in AcpiExDumpPackageObj()
1300 AcpiOsPrintf ("[Object Reference] Class [%s]", in AcpiExDumpPackageObj()
1308 AcpiUtGetTypeName (ObjDesc->Common.Type), ObjDesc->Common.Type); in AcpiExDumpPackageObj()
1318 * PARAMETERS: ObjDesc - Descriptor to dump
1319 * Flags - Force display if TRUE
1352 ObjDesc = ((ACPI_NAMESPACE_NODE *) ObjDesc)->Object; in AcpiExDumpObjectDescriptor()
1361 AcpiOsPrintf (" - Namespace Node"); in AcpiExDumpObjectDescriptor()
1378 if (ObjDesc->Common.Type > ACPI_TYPE_LOCAL_MAX) in AcpiExDumpObjectDescriptor()
1381 ObjDesc->Common.Type); in AcpiExDumpObjectDescriptor()
1397 /* Object-specific fields */ in AcpiExDumpObjectDescriptor()
1399 AcpiExDumpObject (ObjDesc, AcpiExDumpInfo[ObjDesc->Common.Type]); in AcpiExDumpObjectDescriptor()
1401 if (ObjDesc->Common.Type == ACPI_TYPE_REGION) in AcpiExDumpObjectDescriptor()
1403 ObjDesc = ObjDesc->Common.NextObject; in AcpiExDumpObjectDescriptor()
1404 if (ObjDesc->Common.Type > ACPI_TYPE_LOCAL_MAX) in AcpiExDumpObjectDescriptor()
1408 ObjDesc->Common.Type); in AcpiExDumpObjectDescriptor()
1414 AcpiExDumpObject (ObjDesc, AcpiExDumpInfo[ObjDesc->Common.Type]); in AcpiExDumpObjectDescriptor()