Lines Matching refs:WalkState
57 ACPI_WALK_STATE *WalkState);
64 * PARAMETERS: WalkState - Current state
74 ACPI_WALK_STATE *WalkState)
79 ACPI_FUNCTION_TRACE_PTR (PsGetAmlOpcode, WalkState);
82 WalkState->Aml = WalkState->ParserState.Aml;
83 WalkState->Opcode = AcpiPsPeekOpcode (&(WalkState->ParserState));
91 WalkState->OpInfo = AcpiPsGetOpcodeInfo (WalkState->Opcode);
93 switch (WalkState->OpInfo->Class)
101 WalkState->Opcode = AML_INT_NAMEPATH_OP;
102 WalkState->ArgTypes = ARGP_NAMESTRING;
109 if (WalkState->PassNumber == 2)
111 AmlOffset = (UINT32) ACPI_PTR_DIFF (WalkState->Aml,
112 WalkState->ParserState.AmlStart);
116 WalkState->Opcode,
119 ACPI_DUMP_BUFFER ((WalkState->ParserState.Aml - 16), 48);
128 WalkState->Opcode,
133 AcpiUtDumpBuffer (((UINT8 *) WalkState->ParserState.Aml - 16),
142 WalkState->ParserState.Aml++;
143 if (WalkState->Opcode > 0xFF) /* Can only happen if first byte is 0x5B */
145 WalkState->ParserState.Aml++;
154 WalkState->ParserState.Aml +=
155 AcpiPsGetOpcodeSize (WalkState->Opcode);
156 WalkState->ArgTypes = WalkState->OpInfo->ParseArgs;
168 * PARAMETERS: WalkState - Current state
181 ACPI_WALK_STATE *WalkState,
190 ACPI_FUNCTION_TRACE_PTR (PsBuildNamedOp, WalkState);
195 UnnamedOp->Common.AmlOpcode = WalkState->Opcode;
201 while (GET_CURRENT_ARG_TYPE (WalkState->ArgTypes) &&
202 (GET_CURRENT_ARG_TYPE (WalkState->ArgTypes) != ARGP_NAME))
204 Status = AcpiPsGetNextArg (WalkState, &(WalkState->ParserState),
205 GET_CURRENT_ARG_TYPE (WalkState->ArgTypes), &Arg);
212 INCREMENT_ARG_LIST (WalkState->ArgTypes);
218 if (!GET_CURRENT_ARG_TYPE (WalkState->ArgTypes))
225 INCREMENT_ARG_LIST (WalkState->ArgTypes);
231 WalkState->Op = NULL;
233 Status = WalkState->DescendingCallback (WalkState, Op);
248 Status = AcpiPsNextParseState (WalkState, *Op, Status);
285 * PARAMETERS: WalkState - Current state
297 ACPI_WALK_STATE *WalkState,
309 ACPI_FUNCTION_TRACE_PTR (PsCreateOp, WalkState);
312 Status = AcpiPsGetAmlOpcode (WalkState);
320 WalkState->OpInfo = AcpiPsGetOpcodeInfo (WalkState->Opcode);
321 Op = AcpiPsAllocOp (WalkState->Opcode, AmlOpStart);
327 if (WalkState->OpInfo->Flags & AML_NAMED)
329 Status = AcpiPsBuildNamedOp (WalkState, AmlOpStart, Op, &NamedOp);
342 if (WalkState->OpInfo->Flags & AML_CREATE)
352 if (WalkState->Opcode == AML_BANK_FIELD_OP)
362 ParentScope = AcpiPsGetParentScope (&(WalkState->ParserState));
382 if (WalkState->DescendingCallback != NULL)
388 WalkState->Op = *NewOp = Op;
390 Status = WalkState->DescendingCallback (WalkState, &Op);
391 Status = AcpiPsNextParseState (WalkState, Op, Status);
406 * PARAMETERS: WalkState - Current state
418 ACPI_WALK_STATE *WalkState,
425 ACPI_FUNCTION_TRACE_PTR (PsCompleteOp, WalkState);
431 WalkState->ParserState.Scope->ParseScope.ArgCount--;
435 Status2 = AcpiPsCompleteThisOp (WalkState, *Op);
453 WalkState->PrevOp = NULL;
454 WalkState->PrevArgTypes = WalkState->ArgTypes;
459 AcpiPsPopScope (&(WalkState->ParserState), Op,
460 &WalkState->ArgTypes, &WalkState->ArgCount);
464 WalkState->Op = *Op;
465 WalkState->OpInfo = AcpiPsGetOpcodeInfo ((*Op)->Common.AmlOpcode);
466 WalkState->Opcode = (*Op)->Common.AmlOpcode;
468 Status = WalkState->AscendingCallback (WalkState);
469 Status = AcpiPsNextParseState (WalkState, *Op, Status);
471 Status2 = AcpiPsCompleteThisOp (WalkState, *Op);
488 AcpiPsPopScope (&(WalkState->ParserState), Op,
489 &WalkState->ArgTypes, &WalkState->ArgCount);
494 WalkState->Op = *Op;
495 WalkState->OpInfo = AcpiPsGetOpcodeInfo ((*Op)->Common.AmlOpcode);
496 WalkState->Opcode = (*Op)->Common.AmlOpcode;
498 Status = WalkState->AscendingCallback (WalkState);
499 Status = AcpiPsNextParseState (WalkState, *Op, Status);
501 Status2 = AcpiPsCompleteThisOp (WalkState, *Op);
517 Status2 = AcpiPsCompleteThisOp (WalkState, *Op);
524 AcpiUtPopGenericState (&WalkState->ControlState));
527 AcpiPsPopScope (&(WalkState->ParserState), Op,
528 &WalkState->ArgTypes, &WalkState->ArgCount);
540 Status2 = AcpiPsCompleteThisOp (WalkState, *Op);
547 AcpiPsPopScope (&(WalkState->ParserState), Op,
548 &WalkState->ArgTypes, &WalkState->ArgCount);
560 &WalkState->ArgTypes, &WalkState->ArgCount);
563 WalkState->PrevOp = NULL;
564 WalkState->PrevArgTypes = WalkState->ArgTypes;
570 if (AcpiPsHasCompletedScope (&(WalkState->ParserState)))
572 AcpiPsPopScope (&(WalkState->ParserState), Op,
573 &WalkState->ArgTypes, &WalkState->ArgCount);
589 * PARAMETERS: WalkState - Current state
602 ACPI_WALK_STATE *WalkState,
609 ACPI_FUNCTION_TRACE_PTR (PsCompleteFinalOp, WalkState);
623 if (WalkState->AscendingCallback != NULL)
625 WalkState->Op = Op;
626 WalkState->OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode);
627 WalkState->Opcode = Op->Common.AmlOpcode;
629 Status = WalkState->AscendingCallback (WalkState);
630 Status = AcpiPsNextParseState (WalkState, Op, Status);
633 Status = AcpiPsCompleteOp (WalkState, &Op, AE_OK);
649 Status2 = AcpiPsCompleteThisOp (WalkState, Op);
656 AcpiPsPopScope (&(WalkState->ParserState), &Op,
657 &WalkState->ArgTypes, &WalkState->ArgCount);
668 (void) AcpiPsCompleteThisOp (WalkState, Op);
673 Status2 = AcpiPsCompleteThisOp (WalkState, Op);
680 AcpiPsPopScope (&(WalkState->ParserState), &Op, &WalkState->ArgTypes,
681 &WalkState->ArgCount);