FreeBSD/sys/contrib/dev/acpica/common/adwalk.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiDmCrossReferenceNamespace
 *
 * PARAMETERS:  ParseTreeRoot       - Root of the parse tree
 *              NamespaceRoot       - Root of the internal namespace
 *              OwnerId             - OwnerId of the table to be disassembled
 *
 * RETURN:      None
 *
 * DESCRIPTION: Cross reference the namespace to create externals
 *
 ******************************************************************************/
AcpiDmCrossReferenceNamespace
PARAMETERS:  ParseTreeRoot       - Root of the parse tree
NamespaceRoot       - Root of the internal namespace
OwnerId             - OwnerId of the table to be disassembled

None

Cross reference the namespace to create externals
AcpiDmCrossReferenceNamespace PARAMETERS : ParseTreeRoot - Root of the parse tree NamespaceRoot - Root of the internal namespace OwnerId - OwnerId of the table to be disassembled None Cross reference the namespace to create externals
void
AcpiDmCrossReferenceNamespace (
    ACPI_PARSE_OBJECT       *ParseTreeRoot,
    ACPI_NAMESPACE_NODE     *NamespaceRoot,
    ACPI_OWNER_ID           OwnerId)
{
    ACPI_STATUS             Status;
    ACPI_OP_WALK_INFO       Info;
    ACPI_WALK_STATE         *WalkState;
    if (!ParseTreeRoot)
    {
        return;
    }
    WalkState = AcpiDsCreateWalkState (OwnerId, ParseTreeRoot, NULL, NULL);
    if (!WalkState)
    {
        return;
    }
    Status = AcpiDsScopeStackPush (NamespaceRoot, NamespaceRoot->Type,
        WalkState);
    if (ACPI_FAILURE (Status))
    {
        return;
    }
    Info.Flags = 0;
    Info.Level = 0;
    Info.WalkState = WalkState;
    AcpiDmWalkParseTree (ParseTreeRoot, AcpiDmXrefDescendingOp,
        AcpiDmCommonAscendingOp, &Info);
    ACPI_FREE (WalkState);
}
void AcpiDmCrossReferenceNamespace ( ACPI_PARSE_OBJECT * ParseTreeRoot , ACPI_NAMESPACE_NODE * NamespaceRoot , ACPI_OWNER_ID OwnerId ) { ACPI_STATUS Status ; ACPI_OP_WALK_INFO Info ; ACPI_WALK_STATE * WalkState ; if ( ! ParseTreeRoot ) { return ; } WalkState = AcpiDsCreateWalkState ( OwnerId , ParseTreeRoot , NULL , NULL ) ; if ( ! WalkState ) { return ; } Status = AcpiDsScopeStackPush ( NamespaceRoot , NamespaceRoot -> Type , WalkState ) ; if ( ACPI_FAILURE ( Status ) ) { return ; } Info . Flags = 0 ; Info . Level = 0 ; Info . WalkState = WalkState ; AcpiDmWalkParseTree ( ParseTreeRoot , AcpiDmXrefDescendingOp , AcpiDmCommonAscendingOp , & Info ) ; ACPI_FREE ( WalkState ) ; }
FUNCTION:    AcpiDmCrossReferenceNamespace
 PARAMETERS:  ParseTreeRoot       - Root of the parse tree
              NamespaceRoot       - Root of the internal namespace
              OwnerId             - OwnerId of the table to be disassembled
FUNCTION : AcpiDmCrossReferenceNamespace PARAMETERS : ParseTreeRoot - Root of the parse tree NamespaceRoot - Root of the internal namespace OwnerId - OwnerId of the table to be disassembled
/* Create and initialize a new walk state */