FreeBSD/sys/contrib/dev/acpica/compiler/asllength.c
/*******************************************************************************
 *
 * FUNCTION:    LnAdjustLengthToRoot
 *
 * PARAMETERS:  Op      - Node whose Length was changed
 *
 * RETURN:      None.
 *
 * DESCRIPTION: Change the Subtree length of the given node, and bubble the
 *              change all the way up to the root node. This allows for
 *              last second changes to a package length (for example, if the
 *              package length encoding gets shorter or longer.)
 *
 ******************************************************************************/
LnAdjustLengthToRoot
PARAMETERS:  Op      - Node whose Length was changed

None.

Change the Subtree length of the given node, and bubble the
change all the way up to the root node. This allows for
last second changes to a package length (for example, if the
package length encoding gets shorter or longer.)
LnAdjustLengthToRoot PARAMETERS : Op - Node whose Length was changed None . Change the Subtree length of the given node and bubble the change all the way up to the root node . This allows for last second changes to a package length ( for example if the package length encoding gets shorter or longer . )
void
LnAdjustLengthToRoot (
    ACPI_PARSE_OBJECT       *SubtreeOp,
    UINT32                  LengthDelta)
{
    ACPI_PARSE_OBJECT       *Op;
    Op = SubtreeOp->Asl.Parent;
    while (Op)
    {
        Op->Asl.AmlSubtreeLength -= LengthDelta;
        Op = Op->Asl.Parent;
    }
    Gbl_TableLength -= LengthDelta;
}
void LnAdjustLengthToRoot ( ACPI_PARSE_OBJECT * SubtreeOp , UINT32 LengthDelta ) { ACPI_PARSE_OBJECT * Op ; Op = SubtreeOp -> Asl . Parent ; while ( Op ) { Op -> Asl . AmlSubtreeLength -= LengthDelta ; Op = Op -> Asl . Parent ; } Gbl_TableLength -= LengthDelta ; }
FUNCTION:    LnAdjustLengthToRoot
 PARAMETERS:  Op      - Node whose Length was changed
FUNCTION : LnAdjustLengthToRoot PARAMETERS : Op - Node whose Length was changed
/* Adjust all subtree lengths up to the root */ /* Adjust the global table length */