FreeBSD/sys/contrib/dev/acpica/common/adwalk.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiDmResourceDescendingOp
 *
 * PARAMETERS:  ASL_WALK_CALLBACK
 *
 * RETURN:      None
 *
 * DESCRIPTION: Process one parse op during symbolic resource index conversion.
 *
 ******************************************************************************/


None

Process one parse op during symbolic resource index conversion.
None Process one parse op during symbolic resource index conversion .
static ACPI_STATUS
AcpiDmResourceDescendingOp (
    ACPI_PARSE_OBJECT       *Op,
    UINT32                  Level,
    void                    *Context)
{
    ACPI_OP_WALK_INFO       *Info = Context;
    const ACPI_OPCODE_INFO  *OpInfo;
    ACPI_WALK_STATE         *WalkState;
    ACPI_OBJECT_TYPE        ObjectType;
    ACPI_STATUS             Status;
    WalkState = Info->WalkState;
    OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode);
    ObjectType = OpInfo->ObjectType;
    if (AcpiNsOpensScope (ObjectType))
    {
        if (Op->Common.Node)
        {
            Status = AcpiDsScopeStackPush (Op->Common.Node, ObjectType,
                WalkState);
            if (ACPI_FAILURE (Status))
            {
                return (Status);
            }
        }
    }
    AcpiDmCheckResourceReference (Op, WalkState);
    return (AE_OK);
}
static ACPI_STATUS AcpiDmResourceDescendingOp ( ACPI_PARSE_OBJECT * Op , UINT32 Level , void * Context ) { ACPI_OP_WALK_INFO * Info = Context ; const ACPI_OPCODE_INFO * OpInfo ; ACPI_WALK_STATE * WalkState ; ACPI_OBJECT_TYPE ObjectType ; ACPI_STATUS Status ; WalkState = Info -> WalkState ; OpInfo = AcpiPsGetOpcodeInfo ( Op -> Common . AmlOpcode ) ; ObjectType = OpInfo -> ObjectType ; if ( AcpiNsOpensScope ( ObjectType ) ) { if ( Op -> Common . Node ) { Status = AcpiDsScopeStackPush ( Op -> Common . Node , ObjectType , WalkState ) ; if ( ACPI_FAILURE ( Status ) ) { return ( Status ) ; } } } AcpiDmCheckResourceReference ( Op , WalkState ) ; return ( AE_OK ) ; }
FUNCTION:    AcpiDmResourceDescendingOp
 PARAMETERS:  ASL_WALK_CALLBACK
FUNCTION : AcpiDmResourceDescendingOp PARAMETERS : ASL_WALK_CALLBACK
/* Open new scope if necessary */ /*
     * Check if this operator contains a reference to a resource descriptor.
     * If so, convert the reference into a symbolic reference.
     */