FreeBSD/sys/contrib/dev/acpica/compiler/asloperands.c
/*******************************************************************************
 *
 * FUNCTION:    OpnAttachNameToNode
 *
 * PARAMETERS:  Op        - The parent parse node
 *
 * RETURN:      None
 *
 * DESCRIPTION: For the named ASL/AML operators, get the actual name from the
 *              argument list and attach it to the parent node so that we
 *              can get to it quickly later.
 *
 ******************************************************************************/
OpnAttachNameToNode
PARAMETERS:  Op        - The parent parse node

None

For the named ASL/AML operators, get the actual name from the
argument list and attach it to the parent node so that we
can get to it quickly later.
OpnAttachNameToNode PARAMETERS : Op - The parent parse node None For the named ASL / AML operators get the actual name from the argument list and attach it to the parent node so that we can get to it quickly later .
static void
OpnAttachNameToNode (
    ACPI_PARSE_OBJECT       *Op)
{
    ACPI_PARSE_OBJECT       *Child = NULL;
    switch (Op->Asl.AmlOpcode)
    {
    case AML_DATA_REGION_OP:
    case AML_DEVICE_OP:
    case AML_EVENT_OP:
    case AML_EXTERNAL_OP:
    case AML_METHOD_OP:
    case AML_MUTEX_OP:
    case AML_REGION_OP:
    case AML_POWER_RES_OP:
    case AML_PROCESSOR_OP:
    case AML_THERMAL_ZONE_OP:
    case AML_NAME_OP:
    case AML_SCOPE_OP:
        Child = UtGetArg (Op, 0);
        break;
    case AML_ALIAS_OP:
        Child = UtGetArg (Op, 1);
        break;
    case AML_CREATE_BIT_FIELD_OP:
    case AML_CREATE_BYTE_FIELD_OP:
    case AML_CREATE_WORD_FIELD_OP:
    case AML_CREATE_DWORD_FIELD_OP:
    case AML_CREATE_QWORD_FIELD_OP:
        Child = UtGetArg (Op, 2);
        break;
    case AML_CREATE_FIELD_OP:
        Child = UtGetArg (Op, 3);
        break;
    case AML_BANK_FIELD_OP:
    case AML_INDEX_FIELD_OP:
    case AML_FIELD_OP:
        return;
    default:
        return;
    }
    if (Child)
    {
        UtAttachNamepathToOwner (Op, Child);
    }
}
static void OpnAttachNameToNode ( ACPI_PARSE_OBJECT * Op ) { ACPI_PARSE_OBJECT * Child = NULL ; switch ( Op -> Asl . AmlOpcode ) { case AML_DATA_REGION_OP : case AML_DEVICE_OP : case AML_EVENT_OP : case AML_EXTERNAL_OP : case AML_METHOD_OP : case AML_MUTEX_OP : case AML_REGION_OP : case AML_POWER_RES_OP : case AML_PROCESSOR_OP : case AML_THERMAL_ZONE_OP : case AML_NAME_OP : case AML_SCOPE_OP : Child = UtGetArg ( Op , 0 ) ; break ; case AML_ALIAS_OP : Child = UtGetArg ( Op , 1 ) ; break ; case AML_CREATE_BIT_FIELD_OP : case AML_CREATE_BYTE_FIELD_OP : case AML_CREATE_WORD_FIELD_OP : case AML_CREATE_DWORD_FIELD_OP : case AML_CREATE_QWORD_FIELD_OP : Child = UtGetArg ( Op , 2 ) ; break ; case AML_CREATE_FIELD_OP : Child = UtGetArg ( Op , 3 ) ; break ; case AML_BANK_FIELD_OP : case AML_INDEX_FIELD_OP : case AML_FIELD_OP : return ; default : return ; } if ( Child ) { UtAttachNamepathToOwner ( Op , Child ) ; } }
FUNCTION:    OpnAttachNameToNode
 PARAMETERS:  Op        - The parent parse node
FUNCTION : OpnAttachNameToNode PARAMETERS : Op - The parent parse node