Lines Matching refs:Op

167     ACPI_PARSE_OBJECT       *Op,
173 ACPI_PARSE_OBJECT *Op,
179 ACPI_PARSE_OBJECT *Op);
194 ACPI_PARSE_OBJECT *Op,
203 ACPI_PARSE_OBJECT *Op);
207 ACPI_PARSE_OBJECT *Op,
354 ACPI_PARSE_OBJECT *Op,
374 AslError (ASL_ERROR, ASL_MSG_FIELD_UNIT_OFFSET, Op, NULL);
388 AslError (ASL_ERROR, ASL_MSG_FIELD_UNIT_ACCESS_WIDTH, Op, NULL);
397 * PARAMETERS: Op - Parse Op to be checked
399 * RETURN: Control method Op if found. NULL otherwise
402 * the input Op is not within a control method.
408 ACPI_PARSE_OBJECT *Op)
413 NextOp = Op->Asl.Parent;
448 ACPI_PARSE_OBJECT *Op,
474 ACPI_FUNCTION_TRACE_PTR (XfNamespaceLocateBegin, Op);
477 if ((Op->Asl.AmlOpcode == AML_METHOD_OP) && Op->Asl.Node)
479 Node = Op->Asl.Node;
499 NextOp = Op->Asl.Child;
524 MethodArgs[i].Op = Op;
536 if (Op->Asl.CompileFlags & OP_IS_NAME_DECLARATION)
541 OpInfo = AcpiPsGetOpcodeInfo (Op->Asl.AmlOpcode);
547 /* Find parent method Op */
549 NextOp = XfGetParentMethod (Op);
559 RegisterNumber = Op->Asl.AmlOpcode & 0x0007; /* 0x60 through 0x67 */
562 if (Op->Asl.CompileFlags & OP_IS_TARGET)
567 MethodLocals[RegisterNumber].Op = Op;
575 MethodLocals[RegisterNumber].Op = Op;
584 /* Find parent method Op */
586 NextOp = XfGetParentMethod (Op);
598 RegisterNumber = Op->Asl.AmlOpcode - AML_ARG0; /* 0x68 through 0x6F */
604 MethodArgs[RegisterNumber].Op = Op;
606 if (Op->Asl.CompileFlags & OP_IS_TARGET)
622 (Op->Asl.ParseOpcode != PARSEOP_NAMESTRING) &&
623 (Op->Asl.ParseOpcode != PARSEOP_NAMESEG) &&
624 (Op->Asl.ParseOpcode != PARSEOP_METHODCALL) &&
625 (Op->Asl.ParseOpcode != PARSEOP_EXTERNAL))
635 if ((Op->Asl.Parent) &&
636 (Op->Asl.Parent->Asl.ParseOpcode == PARSEOP_CONDREFOF))
646 if ((Op->Asl.ParseOpcode == PARSEOP_NAMESTRING) ||
647 (Op->Asl.ParseOpcode == PARSEOP_NAMESEG) ||
648 (Op->Asl.ParseOpcode == PARSEOP_METHODCALL) ||
649 (Op->Asl.ParseOpcode == PARSEOP_EXTERNAL))
664 Path = Op->Asl.Child->Asl.Value.String;
665 if (Op->Asl.AmlOpcode == AML_ALIAS_OP)
671 Path = Op->Asl.Child->Asl.Next->Asl.Value.String;
678 NextOp = Op->Asl.Child;
688 Path = Op->Asl.Value.String;
691 ObjectType = AslMapNamedOpcodeToDataType (Op->Asl.AmlOpcode);
724 AslError (ASL_ERROR, ASL_MSG_NOT_REACHABLE, Op,
725 Op->Asl.ExternalName);
732 Op, Op->Asl.ExternalName);
743 AslError (ASL_ERROR, ASL_MSG_NOT_EXIST, Op,
744 Op->Asl.ExternalName);
752 AslError (ASL_ERROR, ASL_MSG_NOT_FOUND, Op,
753 Op->Asl.ExternalName);
776 XfCheckIllegalReference (Op, Node);
782 OptOptimizeNamePath (Op, OpInfo->Flags, WalkState, Path, Node);
788 if ((Op->Asl.ParseOpcode != PARSEOP_ALIAS) &&
793 NextOp = Node->Op;
829 switch (Op->Asl.Parent->Asl.AmlOpcode)
837 FieldBitLength = (UINT32) Op->Asl.Next->Asl.Value.Integer;
892 AslError (ASL_WARNING, Message, Op, MsgBuffer);
898 switch (Op->Asl.Parent->Asl.AmlOpcode)
916 Op->Asl.AmlLength = 0;
917 Op->Asl.ParseOpcode = PARSEOP_INTEGER;
918 Op->Asl.Value.Integer = (UINT64) Offset;
919 Op->Asl.CompileFlags |= OP_IS_RESOURCE_FIELD;
921 OpcGenerateAmlOpcode (Op);
926 else if ((((Op->Asl.ParseOpcode == PARSEOP_NAMESTRING) || (Op->Asl.ParseOpcode == PARSEOP_NAMESEG)) &&
928 (Op->Asl.Parent) &&
929 (Op->Asl.Parent->Asl.ParseOpcode != PARSEOP_METHOD)) ||
931 (Op->Asl.ParseOpcode == PARSEOP_METHODCALL))
939 if ((Op->Asl.Parent) &&
940 ((Op->Asl.Parent->Asl.ParseOpcode == PARSEOP_REFOF) ||
941 (Op->Asl.Parent->Asl.ParseOpcode == PARSEOP_PACKAGE) ||
942 (Op->Asl.Parent->Asl.ParseOpcode == PARSEOP_VAR_PACKAGE)||
943 (Op->Asl.Parent->Asl.ParseOpcode == PARSEOP_OBJECTTYPE)))
959 Op->Asl.ExternalName, AcpiUtGetTypeName (Node->Type));
961 AslError (ASL_ERROR, ASL_MSG_NOT_METHOD, Op, MsgBuffer);
967 Op->Asl.Node = Node;
968 if (Op->Asl.Parent->Asl.ParseOpcode == PARSEOP_CONDREFOF)
978 Op->Asl.ParseOpcode = PARSEOP_METHODCALL;
979 UtSetParseOpName (Op);
982 NextOp = Op->Asl.Child;
991 Op->Asl.Parent->Asl.ParseOpcode != PARSEOP_EXTERNAL)
999 sprintf (MsgBuffer, "%s requires %u", Op->Asl.ExternalName,
1004 AslError (ASL_ERROR, ASL_MSG_ARG_COUNT_LO, Op, MsgBuffer);
1008 AslError (ASL_ERROR, ASL_MSG_ARG_COUNT_HI, Op, MsgBuffer);
1016 else if ((Op->Asl.Parent) &&
1017 ((Op->Asl.Parent->Asl.ParseOpcode == PARSEOP_FIELD) ||
1018 (Op->Asl.Parent->Asl.ParseOpcode == PARSEOP_BANKFIELD)))
1029 if (Op == Op->Asl.Parent->Asl.Child)
1036 OwningOp = Node->Op;
1037 Op->Asl.Parent->Asl.ExtraValue =
1042 switch ((UINT8) Op->Asl.Parent->Asl.Value.Integer)
1075 AslError (ASL_ERROR, ASL_MSG_FIELD_ACCESS_WIDTH, Op, NULL);
1089 if ((UINT8) Op->Asl.Parent->Asl.Value.Integer !=
1092 AslError (ASL_ERROR, ASL_MSG_REGION_BYTE_ACCESS, Op, NULL);
1100 if ((UINT8) Op->Asl.Parent->Asl.Value.Integer !=
1103 AslError (ASL_ERROR, ASL_MSG_REGION_BUFFER_ACCESS, Op, NULL);
1121 * Op->Asl.Parent->Asl.ExtraValue - Region Length (bits)
1122 * Op->Asl.ExtraValue - Field start offset (bits)
1123 * Op->Asl.Child->Asl.Value.Integer32 - Field length (bits)
1124 * Op->Asl.Child->Asl.ExtraValue - Field access width (bits)
1126 if (Op->Asl.Parent->Asl.ExtraValue && Op->Asl.Child)
1128 XfCheckFieldRange (Op,
1129 Op->Asl.Parent->Asl.ExtraValue,
1130 Op->Asl.ExtraValue,
1131 (UINT32) Op->Asl.Child->Asl.Value.Integer,
1132 Op->Asl.Child->Asl.ExtraValue);
1139 else if (Op->Asl.Parent->Asl.ParseOpcode == PARSEOP_CONNECTION)
1145 Op->Asl.Node = Node;
1165 ACPI_PARSE_OBJECT *Op,
1178 OpInfo = AcpiPsGetOpcodeInfo (Op->Asl.AmlOpcode);
1186 if ((Op->Asl.ParseOpcode == PARSEOP_NAMESTRING) ||
1187 (Op->Asl.ParseOpcode == PARSEOP_NAMESEG) ||
1188 (Op->Asl.ParseOpcode == PARSEOP_METHODCALL) ||
1189 (Op->Asl.ParseOpcode == PARSEOP_EXTERNAL))
1196 if (AcpiNsOpensScope (AslMapNamedOpcodeToDataType (Op->Asl.AmlOpcode)))
1200 "%s: Popping scope for Op %p\n",
1201 AcpiUtGetTypeName (OpInfo->ObjectType), Op));
1215 * PARAMETERS: ChildOp - Op to be checked
1220 * DESCRIPTION: Determine if an Op is a descendent of another Op. Used to
1254 * PARAMETERS: Op - Op to be checked
1256 * RETURN: Op for parent method. NULL if object is not within a method.
1262 * NOTE: It would be better to have the parser set a flag in the Op if possible.
1268 ACPI_PARSE_OBJECT *Op)
1273 if (!Op)
1278 if (Op->Asl.ParseOpcode == PARSEOP_METHOD)
1285 ParentOp = Op;
1306 * PARAMETERS: Op - Op referring to the target
1315 * NOTE: Caller must ensure that the name Op is in fact a reference, and not
1322 ACPI_PARSE_OBJECT *Op,
1340 TargetOp = TargetNode->Op;
1342 MethodOp1 = XfGetParentMethod (Op);
1364 AslError (ASL_ERROR, ASL_MSG_ILLEGAL_METHOD_REF, Op,
1365 Op->Asl.ExternalName);
1375 else if (Op->Asl.LogicalByteOffset < TargetOp->Asl.LogicalByteOffset)
1377 AslError (ASL_ERROR, ASL_MSG_ILLEGAL_FORWARD_REF, Op,
1378 Op->Asl.ExternalName);