Lines Matching refs:Op

58     ACPI_PARSE_OBJECT       *Op,
64 ACPI_PARSE_OBJECT *Op,
70 ACPI_PARSE_OBJECT *Op,
76 ACPI_PARSE_OBJECT *Op,
81 ACPI_PARSE_OBJECT *Op,
86 ACPI_PARSE_OBJECT *Op,
91 ACPI_PARSE_OBJECT *Op,
103 * DESCRIPTION: Reduce an Op and its subtree to a constant if possible.
110 ACPI_PARSE_OBJECT *Op,
118 if (Op->Asl.CompileFlags == 0)
127 if ((!(Op->Asl.CompileFlags & OP_COMPILE_TIME_CONST)) ||
128 (Op->Asl.CompileFlags & OP_IS_TARGET))
148 Status = TrWalkParseTree (Op, ASL_WALK_VISIT_DOWNWARD,
161 Status = TrSimpleConstantReduction (Op, WalkState);
168 Status = TrTransformToStoreOp (Op, WalkState);
188 AslError (ASL_ERROR, ASL_MSG_CONSTANT_EVALUATION, Op,
193 OpcUpdateIntegerNode (Op, 0);
208 * DESCRIPTION: Check one Op for a reducible type 3/4/5 AML opcode.
215 ACPI_PARSE_OBJECT *Op,
225 WalkState->Op = Op;
226 WalkState->Opcode = Op->Common.AmlOpcode;
227 WalkState->OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode);
230 Op->Asl.LogicalLineNumber, Op->Asl.ParseOpName);
251 NextOp = Op->Asl.Parent;
307 if (Op->Asl.CompileFlags & OP_IS_TARGET)
309 AslError (ASL_ERROR, ASL_MSG_INVALID_TARGET, Op, NULL);
323 AslError (ASL_ERROR, ASL_MSG_CONSTANT_REQUIRED, Op,
336 if (Op->Asl.CompileFlags & OP_IS_TARGET)
347 Op->Asl.ParseOpName);
367 AslError (ASL_ERROR, ASL_MSG_UNSUPPORTED, Op,
379 if (Op->Asl.CompileFlags & OP_IS_TARGET)
381 if (Op->Asl.ParseOpcode == PARSEOP_ZERO)
391 if (Op->Asl.CompileFlags & OP_IS_TERM_ARG)
400 TrPrintOpFlags (Op->Asl.CompileFlags, ASL_PARSE_OUTPUT);
410 * PARAMETERS: Op - Parent operator to be transformed
424 ACPI_PARSE_OBJECT *Op,
446 OriginalParentOp = Op->Common.Parent;
447 Op->Common.Parent = RootOp;
453 Status = TrWalkParseTree (Op, ASL_WALK_VISIT_TWICE,
458 Op->Common.Parent = OriginalParentOp;
481 Op->Asl.Child = NULL;
482 TrInstallReducedConstant (Op, ObjDesc);
484 UtSetParseOpName (Op);
493 * PARAMETERS: Op - Parent operator to be transformed
507 ACPI_PARSE_OBJECT *Op,
524 Child1 = Op->Asl.Child;
532 if (Op->Asl.ParseOpcode == PARSEOP_DIVIDE)
543 switch (Op->Asl.ParseOpcode)
606 OriginalParent = Op->Common.Parent;
607 Op->Common.Parent = NewParent;
613 Status = TrWalkParseTree (Op, ASL_WALK_VISIT_TWICE,
644 Op->Asl.ParseOpcode = NewParseOpcode;
645 Op->Asl.AmlOpcode = NewAmlOpcode;
646 UtSetParseOpName (Op);
647 Op->Common.Parent = OriginalParent;
661 Op->Common.Parent = OriginalParent;
671 * PARAMETERS: Op - Parent operator to be transformed
683 ACPI_PARSE_OBJECT *Op,
691 AslError (ASL_OPTIMIZATION, ASL_MSG_CONSTANT_FOLDED, Op,
692 Op->Asl.ParseOpName);
702 OpcUpdateIntegerNode (Op, ObjDesc->Integer.Value);
706 Op->Asl.ParseOpName,
707 ACPI_FORMAT_UINT64 (Op->Common.Value.Integer));
712 Op->Asl.ParseOpcode = PARSEOP_STRING_LITERAL;
713 Op->Common.AmlOpcode = AML_STRING_OP;
714 Op->Asl.AmlLength = strlen (ObjDesc->String.Pointer) + 1;
715 Op->Common.Value.String = ObjDesc->String.Pointer;
719 Op->Common.Value.String);
730 Op->Asl.ParseOpcode = PARSEOP_BUFFER;
731 Op->Common.AmlOpcode = AML_BUFFER_OP;
732 Op->Asl.CompileFlags = OP_AML_PACKAGE;
733 UtSetParseOpName (Op);
741 LengthOp->Asl.Parent = Op;
744 Op->Asl.Child = LengthOp;
752 DataOp->Asl.Parent = Op;
771 * PARAMETERS: Op - Current parse object
782 ACPI_PARSE_OBJECT *Op,
786 Op->Common.Value.Integer = Value;
792 switch (Op->Asl.AmlLength)
796 TrSetOpIntegerValue (PARSEOP_BYTECONST, Op);
797 Op->Asl.AmlOpcode = AML_RAW_DATA_BYTE;
802 TrSetOpIntegerValue (PARSEOP_WORDCONST, Op);
803 Op->Asl.AmlOpcode = AML_RAW_DATA_WORD;
808 TrSetOpIntegerValue (PARSEOP_DWORDCONST, Op);
809 Op->Asl.AmlOpcode = AML_RAW_DATA_DWORD;
814 TrSetOpIntegerValue (PARSEOP_QWORDCONST, Op);
815 Op->Asl.AmlOpcode = AML_RAW_DATA_QWORD;
821 OpcSetOptimalIntegerSize (Op);
822 TrSetOpIntegerValue (PARSEOP_INTEGER, Op);
826 Op->Asl.AmlLength = 0;
844 ACPI_PARSE_OBJECT *Op,
853 WalkState->Op = Op;
854 WalkState->Opcode = Op->Common.AmlOpcode;
855 WalkState->OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode);
859 if (Op->Asl.Child)
861 Op->Common.Value.Arg = Op->Asl.Child;
871 Op->Asl.ParseOpName, AcpiFormatException (Status));
892 ACPI_PARSE_OBJECT *Op,
900 WalkState->Op = Op;
901 WalkState->Opcode = Op->Common.AmlOpcode;
902 WalkState->OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode);
906 if (Op->Asl.Child)
908 Op->Common.Value.Arg = Op->Asl.Child;
918 Op->Asl.ParseOpName, AcpiFormatException (Status));