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