Lines Matching refs:Asl
287 Op->Asl.EndLine = Neighbor->Asl.EndLine; in TrAmlInitLineNumbers()
288 Op->Asl.EndLogicalLine = Neighbor->Asl.EndLogicalLine; in TrAmlInitLineNumbers()
289 Op->Asl.LineNumber = Neighbor->Asl.LineNumber; in TrAmlInitLineNumbers()
290 Op->Asl.LogicalByteOffset = Neighbor->Asl.LogicalByteOffset; in TrAmlInitLineNumbers()
291 Op->Asl.LogicalLineNumber = Neighbor->Asl.LogicalLineNumber; in TrAmlInitLineNumbers()
314 Op->Asl.ParseOpcode = ParseOpcode; in TrAmlInitNode()
343 Next->Asl.Parent = Parent; in TrAmlSetSubtreeParent()
344 Next = Next->Asl.Next; in TrAmlSetSubtreeParent()
368 NewPeer->Asl.Next = Op->Asl.Next; in TrAmlInsertPeer()
369 Op->Asl.Next = NewPeer; in TrAmlInsertPeer()
420 if (Op->Asl.ParseOpcode == PARSEOP_DEFINITION_BLOCK) in TrAmlTransformWalkEnd()
422 Op->Asl.Value.Arg = AslGbl_ExternalsListHead; in TrAmlTransformWalkEnd()
452 if (Op->Asl.AmlOpcode == AML_RAW_DATA_BYTE) in TrTransformSubtree()
457 switch (Op->Asl.ParseOpcode) in TrTransformSubtree()
483 Op->Asl.ParseOpcode = PARSEOP_STRING_LITERAL; in TrTransformSubtree()
491 if (MethodOp->Asl.ParseOpcode == PARSEOP_METHOD) in TrTransformSubtree()
495 MethodOp = MethodOp->Asl.Child; in TrTransformSubtree()
496 Op->Asl.Value.String = MethodOp->Asl.Value.String; in TrTransformSubtree()
500 MethodOp = MethodOp->Asl.Parent; in TrTransformSubtree()
505 Op->Asl.Value.String = "\\"; in TrTransformSubtree()
515 Info.ExternalName = Op->Asl.Value.String; in TrTransformSubtree()
533 if (Op->Asl.Child->Asl.Value.Integer > 1000) in TrTransformSubtree()
541 AslError (ASL_WARNING, ASL_MSG_LEGACY_PROCESSOR_OP, Op, Op->Asl.ExternalName); in TrTransformSubtree()
546 AslError (ASL_WARNING, ASL_MSG_LEGACY_DDB_TYPE, Op, Op->Asl.ExternalName); in TrTransformSubtree()
584 Next = Op->Asl.Child; in TrDoDefinitionBlock()
587 Next = Next->Asl.Next; in TrDoDefinitionBlock()
595 if (!ACPI_COMPARE_NAMESEG (Next->Asl.Value.String, ACPI_SIG_DSDT)) in TrDoDefinitionBlock()
656 Next = StartNode->Asl.Child; in TrDoSwitch()
662 Index = (UINT16) (Next->Asl.ParseOpcode - ASL_PARSE_OPCODE_BASE); in TrDoSwitch()
674 Peer = Next->Asl.Next; in TrDoSwitch()
678 Peer = Next->Asl.Next; in TrDoSwitch()
680 if (Next->Asl.ParseOpcode == PARSEOP_CASE) in TrDoSwitch()
682 TrCheckForDuplicateCase (Next, Next->Asl.Child); in TrDoSwitch()
689 NewOp->Asl.Parent = Conditional->Asl.Parent; in TrDoSwitch()
690 TrAmlInitLineNumbers (NewOp, NewOp->Asl.Parent); in TrDoSwitch()
700 CaseBlock = CaseOp->Asl.Child->Asl.Next; in TrDoSwitch()
701 Conditional->Asl.Child->Asl.Next = NULL; in TrDoSwitch()
702 Predicate = CaseOp->Asl.Child; in TrDoSwitch()
704 if ((Predicate->Asl.ParseOpcode == PARSEOP_PACKAGE) || in TrDoSwitch()
705 (Predicate->Asl.ParseOpcode == PARSEOP_VAR_PACKAGE)) in TrDoSwitch()
714 Predicate->Asl.Next = NewOp2; in TrDoSwitch()
720 NewOp->Asl.Next = NewOp2; in TrDoSwitch()
725 NewOp->Asl.Next = NewOp2; in TrDoSwitch()
730 NewOp->Asl.Next = NewOp2; in TrDoSwitch()
735 NewOp->Asl.Next = NewOp2; in TrDoSwitch()
739 NewOp2->Asl.Child = Predicate; /* PARSEOP_PACKAGE */ in TrDoSwitch()
745 NewOp->Asl.Next = NewOp2; in TrDoSwitch()
749 NewOp2->Asl.Child = NewOp; in TrDoSwitch()
750 NewOp->Asl.Parent = NewOp2; in TrDoSwitch()
756 NewOp2->Asl.Child = NewOp; in TrDoSwitch()
757 NewOp2->Asl.Parent = Conditional; in TrDoSwitch()
758 NewOp->Asl.Parent = NewOp2; in TrDoSwitch()
761 Conditional->Asl.Child = NewOp2; in TrDoSwitch()
762 NewOp2->Asl.Next = CaseBlock; in TrDoSwitch()
778 NewOp->Asl.Next = Predicate; in TrDoSwitch()
782 NewOp2->Asl.Parent = Conditional; in TrDoSwitch()
783 NewOp2->Asl.Child = NewOp; in TrDoSwitch()
789 Predicate->Asl.Next = CaseBlock; in TrDoSwitch()
792 Conditional->Asl.Child = Predicate; in TrDoSwitch()
805 Conditional->Asl.Next = NULL; in TrDoSwitch()
813 CurrentParentNode->Asl.Child = Conditional; in TrDoSwitch()
814 Conditional->Asl.Parent = CurrentParentNode; in TrDoSwitch()
815 Conditional->Asl.Next = NULL; in TrDoSwitch()
818 else if (Next->Asl.ParseOpcode == PARSEOP_DEFAULT) in TrDoSwitch()
840 Next->Asl.ParseOpName, Next->Asl.ParseOpcode); in TrDoSwitch()
855 DefaultOp->Asl.Parent = Conditional->Asl.Parent; in TrDoSwitch()
877 Predicate = StartNode->Asl.Child; in TrDoSwitch()
884 while ((Next->Asl.ParseOpcode != PARSEOP_METHOD) && in TrDoSwitch()
885 (Next->Asl.ParseOpcode != PARSEOP_DEFINITION_BLOCK)) in TrDoSwitch()
887 Next = Next->Asl.Parent; in TrDoSwitch()
891 NewOp->Asl.CompileFlags |= OP_COMPILER_EMITTED; in TrDoSwitch()
892 NewOp->Asl.Parent = Next; in TrDoSwitch()
896 Next = Next->Asl.Child; /* Name */ in TrDoSwitch()
897 Next = Next->Asl.Next; /* NumArgs */ in TrDoSwitch()
898 Next = Next->Asl.Next; /* SerializeRule */ in TrDoSwitch()
906 if (Next->Asl.ParseOpcode != PARSEOP_SERIALIZERULE_SERIAL) in TrDoSwitch()
910 Next->Asl.ParseOpcode = PARSEOP_SERIALIZERULE_SERIAL; in TrDoSwitch()
913 Next = Next->Asl.Next; /* SyncLevel */ in TrDoSwitch()
914 Next = Next->Asl.Next; /* ReturnType */ in TrDoSwitch()
915 Next = Next->Asl.Next; /* ParameterTypes */ in TrDoSwitch()
925 NewOp2->Asl.CompileFlags |= OP_IS_NAME_DECLARATION; in TrDoSwitch()
926 NewOp->Asl.Child = NewOp2; in TrDoSwitch()
934 NewOp2->Asl.Next = TrCreateValuedLeafOp (PARSEOP_ZERO, in TrDoSwitch()
936 TrAmlInitLineNumbers (NewOp2->Asl.Next, NewOp); in TrDoSwitch()
941 NewOp2->Asl.Next = TrCreateValuedLeafOp (PARSEOP_STRING_LITERAL, in TrDoSwitch()
943 TrAmlInitLineNumbers (NewOp2->Asl.Next, NewOp); in TrDoSwitch()
950 Next = NewOp2->Asl.Next; in TrDoSwitch()
955 TrAmlInitLineNumbers (Next->Asl.Child, Next); in TrDoSwitch()
958 TrAmlInitLineNumbers (BufferOp, Next->Asl.Child); in TrDoSwitch()
959 (void) TrLinkPeerOp (Next->Asl.Child, BufferOp); in TrDoSwitch()
961 TrAmlSetSubtreeParent (Next->Asl.Child, Next); in TrDoSwitch()
980 NewOp->Asl.Next = Predicate->Asl.Next; in TrDoSwitch()
981 NewOp->Asl.Parent = StartNode; in TrDoSwitch()
982 StartNode->Asl.Child = NewOp; in TrDoSwitch()
988 StoreOp->Asl.Parent = StartNode; in TrDoSwitch()
993 StoreOp->Asl.Child = Predicate; in TrDoSwitch()
994 Predicate->Asl.Parent = StoreOp; in TrDoSwitch()
999 NewOp->Asl.Parent = StoreOp; in TrDoSwitch()
1000 Predicate->Asl.Next = NewOp; in TrDoSwitch()
1004 Conditional = StartNode->Asl.Child; in TrDoSwitch()
1005 while (Conditional->Asl.Next) in TrDoSwitch()
1007 Conditional = Conditional->Asl.Next; in TrDoSwitch()
1012 BreakOp->Asl.Parent = StartNode; in TrDoSwitch()
1042 Next = CaseOp->Asl.Next; in TrCheckForDuplicateCase()
1045 if (Next->Asl.ParseOpcode == PARSEOP_CASE) in TrCheckForDuplicateCase()
1049 if (Next->Asl.CompileFlags & OP_IS_DUPLICATE) in TrCheckForDuplicateCase()
1056 Predicate2 = Next->Asl.Child; in TrCheckForDuplicateCase()
1057 if ((Predicate1->Asl.ParseOpcode == PARSEOP_INTEGER) && in TrCheckForDuplicateCase()
1058 (Predicate2->Asl.ParseOpcode == PARSEOP_INTEGER)) in TrCheckForDuplicateCase()
1060 if (Predicate1->Asl.Value.Integer == Predicate2->Asl.Value.Integer) in TrCheckForDuplicateCase()
1068 else if (((Predicate1->Asl.ParseOpcode == PARSEOP_ZERO) && in TrCheckForDuplicateCase()
1069 (Predicate2->Asl.ParseOpcode == PARSEOP_ZERO)) || in TrCheckForDuplicateCase()
1070 ((Predicate1->Asl.ParseOpcode == PARSEOP_ONE) && in TrCheckForDuplicateCase()
1071 (Predicate2->Asl.ParseOpcode == PARSEOP_ONE)) || in TrCheckForDuplicateCase()
1072 ((Predicate1->Asl.ParseOpcode == PARSEOP_ONES) && in TrCheckForDuplicateCase()
1073 (Predicate2->Asl.ParseOpcode == PARSEOP_ONES))) in TrCheckForDuplicateCase()
1080 else if ((Predicate1->Asl.ParseOpcode == PARSEOP_STRING_LITERAL) && in TrCheckForDuplicateCase()
1081 (Predicate2->Asl.ParseOpcode == PARSEOP_STRING_LITERAL)) in TrCheckForDuplicateCase()
1083 if (!strcmp (Predicate1->Asl.Value.String, in TrCheckForDuplicateCase()
1084 Predicate2->Asl.Value.String)) in TrCheckForDuplicateCase()
1092 else if ((Predicate1->Asl.ParseOpcode == PARSEOP_BUFFER) && in TrCheckForDuplicateCase()
1093 (Predicate2->Asl.ParseOpcode == PARSEOP_BUFFER)) in TrCheckForDuplicateCase()
1095 if (TrCheckForBufferMatch (Predicate1->Asl.Child, in TrCheckForDuplicateCase()
1096 Predicate2->Asl.Child)) in TrCheckForDuplicateCase()
1107 Next->Asl.CompileFlags |= OP_IS_DUPLICATE; in TrCheckForDuplicateCase()
1110 Next->Asl.Value.String, ASL_MSG_CASE_FOUND_HERE, CaseOp, in TrCheckForDuplicateCase()
1111 CaseOp->Asl.ExternalName); in TrCheckForDuplicateCase()
1114 Next = Next->Asl.Next; in TrCheckForDuplicateCase()
1137 if (Op->Asl.ParseOpcode == PARSEOP_DEFAULT_ARG) in TrBufferIsAllZero()
1141 else if (Op->Asl.Value.Integer != 0) in TrBufferIsAllZero()
1146 Op = Op->Asl.Next; in TrBufferIsAllZero()
1179 if ((NextOp1->Asl.ParseOpcode == PARSEOP_INTEGER && in TrCheckForBufferMatch()
1180 NextOp2->Asl.ParseOpcode == PARSEOP_INTEGER) && in TrCheckForBufferMatch()
1181 NextOp1->Asl.Value.Integer != NextOp2->Asl.Value.Integer) in TrCheckForBufferMatch()
1199 if (NextOp1->Asl.ParseOpcode != NextOp2->Asl.ParseOpcode && in TrCheckForBufferMatch()
1200 TrBufferIsAllZero (NextOp1->Asl.Next) && in TrCheckForBufferMatch()
1201 TrBufferIsAllZero (NextOp2->Asl.Next)) in TrCheckForBufferMatch()
1208 NextOp1 = NextOp1->Asl.Next; in TrCheckForBufferMatch()
1209 NextOp2 = NextOp2->Asl.Next; in TrCheckForBufferMatch()
1217 if ((NextOp1->Asl.ParseOpcode == PARSEOP_STRING_LITERAL) && in TrCheckForBufferMatch()
1218 (NextOp2->Asl.ParseOpcode == PARSEOP_STRING_LITERAL)) in TrCheckForBufferMatch()
1220 if (!strcmp (NextOp1->Asl.Value.String, NextOp2->Asl.Value.String)) in TrCheckForBufferMatch()
1229 if ((UINT8) NextOp1->Asl.Value.Integer != (UINT8) NextOp2->Asl.Value.Integer) in TrCheckForBufferMatch()
1234 NextOp1 = NextOp1->Asl.Next; in TrCheckForBufferMatch()
1235 NextOp2 = NextOp2->Asl.Next; in TrCheckForBufferMatch()
1280 ArgCountOp = Op->Asl.Child->Asl.Next; in TrDoMethod()
1281 if (ArgCountOp->Asl.ParseOpcode == PARSEOP_BYTECONST) in TrDoMethod()
1294 ParameterOp = ArgCountOp->Asl.Next->Asl.Next->Asl.Next->Asl.Next; in TrDoMethod()
1295 if (ParameterOp->Asl.ParseOpcode == PARSEOP_DEFAULT_ARG) in TrDoMethod()
1298 ParameterOp = ParameterOp->Asl.Child; in TrDoMethod()
1302 ParameterOp = ParameterOp->Asl.Next; in TrDoMethod()
1306 ArgCountOp->Asl.Value.Integer = ArgCount; in TrDoMethod()
1307 ArgCountOp->Asl.ParseOpcode = PARSEOP_BYTECONST; in TrDoMethod()
1318 ArgCountOp->Asl.Value.Integer = 1; in TrDoMethod()
1319 ArgCountOp->Asl.ParseOpcode = PARSEOP_BYTECONST; in TrDoMethod()