FreeBSD/sys/contrib/dev/acpica/components/parser/psargs.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiPsGetNextPackageEnd
 *
 * PARAMETERS:  ParserState         - Current parser state object
 *
 * RETURN:      Pointer to end-of-package +1
 *
 * DESCRIPTION: Get next package length and return a pointer past the end of
 *              the package. Consumes the package length field
 *
 ******************************************************************************/
AcpiPsGetNextPackageEnd
PARAMETERS:  ParserState         - Current parser state object

Pointer to end-of-package +1

Get next package length and return a pointer past the end of
the package. Consumes the package length field
AcpiPsGetNextPackageEnd PARAMETERS : ParserState - Current parser state object Pointer to end - of - package + 1 Get next package length and return a pointer past the end of the package . Consumes the package length field
UINT8 *
AcpiPsGetNextPackageEnd (
    ACPI_PARSE_STATE        *ParserState)
{
    UINT8                   *Start = ParserState->Aml;
    UINT32                  PackageLength;
    ACPI_FUNCTION_TRACE (PsGetNextPackageEnd);
    PackageLength = AcpiPsGetNextPackageLength (ParserState);
    return_PTR (Start + PackageLength); 
}
UINT8 * AcpiPsGetNextPackageEnd ( ACPI_PARSE_STATE * ParserState ) { UINT8 * Start = ParserState -> Aml ; UINT32 PackageLength ; ACPI_FUNCTION_TRACE ( PsGetNextPackageEnd ) ; PackageLength = AcpiPsGetNextPackageLength ( ParserState ) ; return_PTR ( Start + PackageLength ) ; }
FUNCTION:    AcpiPsGetNextPackageEnd
 PARAMETERS:  ParserState         - Current parser state object
FUNCTION : AcpiPsGetNextPackageEnd PARAMETERS : ParserState - Current parser state object
/* Function below updates ParserState->Aml */ /* end of package */