Lines Matching defs:Op

166     ACPI_PARSE_OBJECT       *Op,
172 ACPI_PARSE_OBJECT *Op,
178 ACPI_PARSE_OBJECT *Op,
184 ACPI_PARSE_OBJECT *Op,
189 ACPI_PARSE_OBJECT *Op,
194 ACPI_PARSE_OBJECT *Op,
199 ACPI_PARSE_OBJECT *Op,
211 * DESCRIPTION: Reduce an Op and its subtree to a constant if possible.
218 ACPI_PARSE_OBJECT *Op,
226 if (Op->Asl.CompileFlags == 0)
235 if ((!(Op->Asl.CompileFlags & OP_COMPILE_TIME_CONST)) ||
236 (Op->Asl.CompileFlags & OP_IS_TARGET))
256 Status = TrWalkParseTree (Op, ASL_WALK_VISIT_DOWNWARD,
269 Status = TrSimpleConstantReduction (Op, WalkState);
276 Status = TrTransformToStoreOp (Op, WalkState);
296 AslError (ASL_ERROR, ASL_MSG_CONSTANT_EVALUATION, Op,
301 OpcUpdateIntegerNode (Op, 0);
316 * DESCRIPTION: Check one Op for a reducible type 3/4/5 AML opcode.
323 ACPI_PARSE_OBJECT *Op,
333 WalkState->Op = Op;
334 WalkState->Opcode = Op->Common.AmlOpcode;
335 WalkState->OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode);
338 Op->Asl.LogicalLineNumber, Op->Asl.ParseOpName);
359 NextOp = Op->Asl.Parent;
415 if (Op->Asl.CompileFlags & OP_IS_TARGET)
417 AslError (ASL_ERROR, ASL_MSG_INVALID_TARGET, Op, NULL);
431 AslError (ASL_ERROR, ASL_MSG_CONSTANT_REQUIRED, Op,
444 if (Op->Asl.CompileFlags & OP_IS_TARGET)
455 Op->Asl.ParseOpName);
475 AslError (ASL_ERROR, ASL_MSG_UNSUPPORTED, Op,
487 if (Op->Asl.CompileFlags & OP_IS_TARGET)
489 if (Op->Asl.ParseOpcode == PARSEOP_ZERO)
499 if (Op->Asl.CompileFlags & OP_IS_TERM_ARG)
508 TrPrintOpFlags (Op->Asl.CompileFlags, ASL_PARSE_OUTPUT);
518 * PARAMETERS: Op - Parent operator to be transformed
532 ACPI_PARSE_OBJECT *Op,
554 OriginalParentOp = Op->Common.Parent;
555 Op->Common.Parent = RootOp;
561 Status = TrWalkParseTree (Op, ASL_WALK_VISIT_TWICE,
566 Op->Common.Parent = OriginalParentOp;
589 Op->Asl.Child = NULL;
590 TrInstallReducedConstant (Op, ObjDesc);
592 UtSetParseOpName (Op);
601 * PARAMETERS: Op - Parent operator to be transformed
615 ACPI_PARSE_OBJECT *Op,
632 Child1 = Op->Asl.Child;
640 if (Op->Asl.ParseOpcode == PARSEOP_DIVIDE)
651 switch (Op->Asl.ParseOpcode)
714 OriginalParent = Op->Common.Parent;
715 Op->Common.Parent = NewParent;
721 Status = TrWalkParseTree (Op, ASL_WALK_VISIT_TWICE,
752 Op->Asl.ParseOpcode = NewParseOpcode;
753 Op->Asl.AmlOpcode = NewAmlOpcode;
754 UtSetParseOpName (Op);
755 Op->Common.Parent = OriginalParent;
769 Op->Common.Parent = OriginalParent;
779 * PARAMETERS: Op - Parent operator to be transformed
791 ACPI_PARSE_OBJECT *Op,
799 AslError (ASL_OPTIMIZATION, ASL_MSG_CONSTANT_FOLDED, Op,
800 Op->Asl.ParseOpName);
810 OpcUpdateIntegerNode (Op, ObjDesc->Integer.Value);
814 Op->Asl.ParseOpName,
815 ACPI_FORMAT_UINT64 (Op->Common.Value.Integer));
820 Op->Asl.ParseOpcode = PARSEOP_STRING_LITERAL;
821 Op->Common.AmlOpcode = AML_STRING_OP;
822 Op->Asl.AmlLength = strlen (ObjDesc->String.Pointer) + 1;
823 Op->Common.Value.String = ObjDesc->String.Pointer;
827 Op->Common.Value.String);
838 Op->Asl.ParseOpcode = PARSEOP_BUFFER;
839 Op->Common.AmlOpcode = AML_BUFFER_OP;
840 Op->Asl.CompileFlags = OP_AML_PACKAGE;
841 UtSetParseOpName (Op);
849 LengthOp->Asl.Parent = Op;
852 Op->Asl.Child = LengthOp;
860 DataOp->Asl.Parent = Op;
879 * PARAMETERS: Op - Current parse object
890 ACPI_PARSE_OBJECT *Op,
894 Op->Common.Value.Integer = Value;
900 switch (Op->Asl.AmlLength)
904 TrSetOpIntegerValue (PARSEOP_BYTECONST, Op);
905 Op->Asl.AmlOpcode = AML_RAW_DATA_BYTE;
910 TrSetOpIntegerValue (PARSEOP_WORDCONST, Op);
911 Op->Asl.AmlOpcode = AML_RAW_DATA_WORD;
916 TrSetOpIntegerValue (PARSEOP_DWORDCONST, Op);
917 Op->Asl.AmlOpcode = AML_RAW_DATA_DWORD;
922 TrSetOpIntegerValue (PARSEOP_QWORDCONST, Op);
923 Op->Asl.AmlOpcode = AML_RAW_DATA_QWORD;
929 OpcSetOptimalIntegerSize (Op);
930 TrSetOpIntegerValue (PARSEOP_INTEGER, Op);
934 Op->Asl.AmlLength = 0;
952 ACPI_PARSE_OBJECT *Op,
961 WalkState->Op = Op;
962 WalkState->Opcode = Op->Common.AmlOpcode;
963 WalkState->OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode);
967 if (Op->Asl.Child)
969 Op->Common.Value.Arg = Op->Asl.Child;
979 Op->Asl.ParseOpName, AcpiFormatException (Status));
1000 ACPI_PARSE_OBJECT *Op,
1008 WalkState->Op = Op;
1009 WalkState->Opcode = Op->Common.AmlOpcode;
1010 WalkState->OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode);
1014 if (Op->Asl.Child)
1016 Op->Common.Value.Arg = Op->Asl.Child;
1026 Op->Asl.ParseOpName, AcpiFormatException (Status));