Home | History | Annotate | Download | only in compiler

Lines Matching refs:Op

164  * PARAMETERS:  ParseOpcode         - New opcode to be assigned to the op
165 * Op - An existing parse op
167 * RETURN: The updated op
169 * DESCRIPTION: Used to set the integer value of a op,
177 ACPI_PARSE_OBJECT *Op)
180 if (!Op)
187 UtGetOpName (Op->Asl.ParseOpcode),
192 if (Op->Asl.ParseOpcode == PARSEOP_ONES)
198 Op->Asl.Value.Integer = ACPI_UINT8_MAX;
203 Op->Asl.Value.Integer = ACPI_UINT16_MAX;
208 Op->Asl.Value.Integer = ACPI_UINT32_MAX;
220 Op->Asl.ParseOpcode = (UINT16) ParseOpcode;
221 UtSetParseOpName (Op);
231 UtCheckIntegerRange (Op, 0x00, ACPI_UINT8_MAX);
232 Op->Asl.Value.Integer &= ACPI_UINT8_MAX;
237 UtCheckIntegerRange (Op, 0x00, ACPI_UINT16_MAX);
238 Op->Asl.Value.Integer &= ACPI_UINT16_MAX;
243 UtCheckIntegerRange (Op, 0x00, ACPI_UINT32_MAX);
244 Op->Asl.Value.Integer &= ACPI_UINT32_MAX;
262 return (Op);
270 * PARAMETERS: Op - An existing parse op
273 * RETURN: The updated parser op
275 * DESCRIPTION: Set bits in the op flags word. Will not clear bits, only set
281 ACPI_PARSE_OBJECT *Op,
285 if (!Op)
291 "\nSetOpFlags: %s Op %p, %8.8X", Op->Asl.ParseOpName, Op, Flags);
296 Op->Asl.CompileFlags |= Flags;
297 return (Op);
305 * PARAMETERS: Op - An existing parse op
308 * RETURN: The updated parser op
310 * DESCRIPTION: Set the AML Length in a op. Used by the parser to indicate
311 * the presence of a op that must be reduced to a fixed length
318 ACPI_PARSE_OBJECT *Op,
323 "\nSetOpAmlLength: Op %p, %8.8X\n", Op, Length);
325 if (!Op)
330 Op->Asl.AmlLength = Length;
331 return (Op);
339 * PARAMETERS: Op - To be set to new parent
342 * RETURN: None, sets Op parent directly
344 * DESCRIPTION: Change the parent of a parse op.
350 ACPI_PARSE_OBJECT *Op,
354 Op->Asl.Parent = ParentOp;
362 * PARAMETERS: Op - An existing parse op
372 ACPI_PARSE_OBJECT *Op)
375 Op->Asl.Filename = AslGbl_PreviousIncludeFilename;
383 * PARAMETERS: Op - An existing parse op
416 * PARAMETERS: Op - An existing parse op
421 * parse op to the current line numbers.
427 ACPI_PARSE_OBJECT *Op)
432 if (Op->Asl.EndLine)
437 Op->Asl.EndLine = AslGbl_CurrentLineNumber;
438 Op->Asl.EndLogicalLine = AslGbl_LogicalLineNumber;
446 * PARAMETERS: Op - An existing parse op
449 * op. NumChildren long.
451 * RETURN: The updated (linked) op
453 * DESCRIPTION: Link a group of ops to an existing parse op
459 ACPI_PARSE_OBJECT *Op,
474 TrSetOpEndLineNumber (Op);
477 "\nLinkChildren Line [%u to %u] NewParent %p Child %u Op %s ",
478 Op->Asl.LineNumber, Op->Asl.EndLine,
479 Op, NumChildren, UtGetOpName(Op->Asl.ParseOpcode));
481 switch (Op
488 AslGbl_ParseTreeRoot = Op;
489 Op->Asl.ParseOpcode = PARSEOP_DEFAULT_ARG;
494 Op = AslGbl_ParseTreeRoot;
529 * all regular comments to this parse op.
533 Op->Asl.EndBlkComment = AslGbl_CommentListHead;
535 Op->Asl.ParseOpName, AslGbl_CommentListHead->Comment);
541 /* Link the new op to it's children */
552 "Child op list invalid");
554 return (Op);
582 if (Op->Asl.Child &&
583 (Op->Asl.Child->Asl.ParseOpcode == PARSEOP_DEFINITION_BLOCK))
585 LastSibling = Op->Asl.Child;
594 Op->Asl.Child = Child;
600 Child->Asl.Parent = Op;
616 Child->Asl.Parent = Op;
627 AslGbl_CommentState.LatestParseOp = Op;
628 CvDbgPrint ("%s=====Set latest parse op to this op.\n", ACPI_GET_FUNCTION_NAME);
631 return (Op);
642 * RETURN: Op1 or the non-null op.
668 /* If one of the ops is null, just return the non-null op */
683 "\n************* Internal error, linking op to itself %p\n",
686 "Linking op to itself");
693 * Op 1 may already have a peer list (such as an IF/ELSE pair),
715 * RETURN: The first op in the list (head of the peer list)
752 /* Get another peer op */
760 /* link new op to the current op */
776 * PARAMETERS: Op1 - Parent op
777 * Op2 - Op to become a child
779 * RETURN: The parent op
836 * PARAMETERS: Op - Walk starting point
850 ACPI_PARSE_OBJECT *Op,
858 ACPI_PARSE_OBJECT *StartOp = Op;
872 if (Op->Asl.ParseOpcode == PARSEOP_DEFINITION_BLOCK &&
875 Restore = Op->Asl.Next;
876 Op->Asl.Next = NULL;
882 while (Op)
886 /* Let the callback process the op. */
888 Status = DescendingCallback (Op, Level, Context);
893 if (Op->Asl.Child)
896 Op = Op->Asl.Child;
908 /* Terminate walk at start op */
910 if (Op == StartOp)
917 if (Op->Asl.Next)
919 Op = Op->Asl.Next;
930 Op = Op->Asl.Parent;
938 while (Op)
940 /* Visit leaf op (no children) or parent op on return trip */
942 if ((!Op->Asl.Child) ||
945 /* Let the callback process the op. */
947 Status = AscendingCallback (Op, Level, Context);
958 Op = Op->Asl.Child;
962 /* Terminate walk at start op */
964 if (Op == StartOp)
971 if (Op->Asl.Next)
973 Op = Op->Asl.Next;
984 Op = Op->Asl.Parent;
992 while (Op)
996 Status = AscendingCallback (Op, Level, Context);
1004 /* Let the callback process the op. */
1006 Status = DescendingCallback (Op, Level, Context);
1011 if (Op->Asl.Child)
1014 Op = Op->Asl.Child;
1026 /* Terminate walk at start op */
1028 if (Op == StartOp)
1035 if (Op->Asl.Next)
1037 Op = Op->Asl.Next;
1048 Op = Op->Asl.Parent;
1061 if (Op->Asl.ParseOpcode == PARSEOP_DEFINITION_BLOCK &&
1064 Op->Asl.Next = Restore;
1071 if (Op->Asl.ParseOpcode == PARSEOP_DEFINITION_BLOCK &&
1074 Op->Asl.Next = Restore;