Lines Matching defs:Target
173 ACPI_PARSE_OBJECT *Target);
181 ACPI_PARSE_OBJECT *Target,
214 ACPI_PARSE_OBJECT *Target;
281 /* Logical operators, no target */
403 * Check for a valid target as the 3rd (or sometimes 2nd) operand
411 * Only the math operators and Store() have a target.
412 * Logicals have no target.
427 /* Target is 3rd operand */
429 Target = Argument2->Common.Next;
432 Target2 = Target->Common.Next;
435 * Divide has an extra target operand (Remainder).
437 * if the remainder target (modulo) is specified.
441 if (AcpiDmIsValidTarget (Target))
448 Target->Common.DisasmFlags |= ACPI_PARSEOP_IGNORE;
449 Target = Target2;
454 * Divide has an extra target operand (Remainder).
458 if (AcpiDmIsValidTarget (Target) &&
466 if (AcpiDmIsValidTarget (Target)) /* Only first Target is valid (remainder) */
475 else /* Only second Target (quotient) is valid */
477 Target->Common.DisasmFlags |= ACPI_PARSEOP_IGNORE;
478 Target = Target2;
483 /* Parser should ensure there is at least a placeholder target */
485 if (!Target)
490 if (!AcpiDmIsValidTarget (Target))
492 /* Not a valid target (placeholder only, from parser) */
497 * Promote the target up to the first child in the parse
498 * tree. This is done because the target will be output
500 * <Target> = Operands...
502 AcpiDmPromoteTarget (Op, Target);
518 * is the same as the target.
524 if ((AcpiDmIsTargetAnOperand (Target, Argument1, TRUE)) ||
525 (AcpiDmIsTargetAnOperand (Target, Argument2, TRUE)))
527 Target->Common.OperatorSymbol =
547 * compound statement only if the target is the same as the
553 if ((AcpiDmIsTargetAnOperand (Target, Argument1, TRUE)))
555 Target->Common.OperatorSymbol =
600 /* Normal output for ASL/AML operators with a target operand */
602 Target->Common.OperatorSymbol = " = (";
613 /* Target is optional, 3rd operand */
615 Target = Argument2->Common.Next;
616 if (AcpiDmIsValidTarget (Target))
618 AcpiDmPromoteTarget (Op, Target);
620 if (!Target->Common.OperatorSymbol)
622 Target->Common.OperatorSymbol = " = ";
629 * For Store, the Target is the 2nd operand. We know the target
642 * In the parse tree, simply swap the target with the
643 * source so that the target is processed first.
645 Target = Argument1->Common.Next;
646 if (!Target)
651 AcpiDmPromoteTarget (Op, Target);
652 if (!Target->Common.OperatorSymbol)
654 Target->Common.OperatorSymbol = " = ";
660 /* Target is optional, 2nd operand */
662 Target = Argument1->Common.Next;
663 if (!Target)
668 if (AcpiDmIsValidTarget (Target))
670 /* Valid target, not a placeholder */
672 AcpiDmPromoteTarget (Op, Target);
673 Target->Common.OperatorSymbol = " = ~";
677 /* No target. Emit this prefix operator immediately */
699 * StoreArgument - Target associate with the Op
705 * has no target".
733 ACPI_PARSE_OBJECT *Target;
745 * Can only optimize/fold if there is no target (or targets)
762 /* These operators have two arguments and one target */
766 Target = Argument2->Common.Next;
768 if (!AcpiDmIsValidTarget (Target))
781 Target = Argument2->Common.Next;
783 if (!AcpiDmIsValidTarget (Target) ||
784 !AcpiDmIsValidTarget (Target->Common.Next))
793 /* This operator has one operand and one target */
796 Target = Argument1->Common.Next;
798 if (!AcpiDmIsValidTarget (Target))
996 * Target - Target associate with the Op
1000 * DESCRIPTION: Transform the parse tree by moving the target up to the first
1008 ACPI_PARSE_OBJECT *Target)
1013 /* Link target directly to the Op as first child */
1016 Op->Common.Value.Arg = Target;
1017 Target->Common.Next = Child;
1019 /* Find the last peer, it is linked to the target. Unlink it. */
1021 while (Child->Common.Next != Target)
1034 * PARAMETERS: Target - Target Op from the parse tree
1036 * RETURN: TRUE if the Target is real. FALSE if it is just a placeholder
1039 * DESCRIPTION: Determine if a Target Op is a placeholder Op or a real Target.
1040 * In other words, determine if the optional target is used or
1041 * not. Note: If Target is NULL, something is seriously wrong,
1048 ACPI_PARSE_OBJECT *Target)
1051 if (!Target)
1056 if ((Target->Common.AmlOpcode == AML_INT_NAMEPATH_OP) &&
1057 (Target->Common.Value.Arg == NULL))
1070 * PARAMETERS: Target - Target associated with the expression
1076 * DESCRIPTION: Determine if the Target duplicates the operand, in order to
1084 ACPI_PARSE_OBJECT *Target,
1096 if (Target->Common.AmlOpcode != Operand->Common.AmlOpcode)
1103 if (Target->Common.Node != Operand->Common.Node)
1113 Same = AcpiDmIsTargetAnOperand (Target->Common.Value.Arg,
1124 Target->Common.Next)
1126 Same = AcpiDmIsTargetAnOperand (Target->Common.Next,