kernel/acpica/compiler/aslparseop.c
/*******************************************************************************
 *
 * FUNCTION:    TrCreateValuedLeafOp
 *
 * PARAMETERS:  ParseOpcode         - New opcode to be assigned to the op
 *              Value               - Value to be assigned to the op
 *
 * RETURN:      Pointer to the new op. Aborts on allocation failure
 *
 * DESCRIPTION: Create a leaf op (no children or peers) with a value
 *              assigned to it
 *
 ******************************************************************************/
TrCreateValuedLeafOp
PARAMETERS:  ParseOpcode         - New opcode to be assigned to the op
Value               - Value to be assigned to the op

Pointer to the new op. Aborts on allocation failure

Create a leaf op (no children or peers) with a value
assigned to it
TrCreateValuedLeafOp PARAMETERS : ParseOpcode - New opcode to be assigned to the op Value - Value to be assigned to the op Pointer to the new op . Aborts on allocation failure Create a leaf op ( no children or peers ) with a value assigned to it
ACPI_PARSE_OBJECT *
TrCreateValuedLeafOp (
    UINT32                  ParseOpcode,
    UINT64                  Value)
{
    ACPI_PARSE_OBJECT       *Op;
    Op = TrAllocateOp (ParseOpcode);
    Op->Asl.Value.Integer = Value;
    DbgPrint (ASL_PARSE_OUTPUT,
        "\nCreateValuedLeafOp  Ln/Col %u/%u NewOp %p  "
        "Op %s  Value %8.8X%8.8X  ",
        Op->Asl.LineNumber, Op->Asl.Column, Op, UtGetOpName(ParseOpcode),
        ACPI_FORMAT_UINT64 (Value));
    switch (ParseOpcode)
    {
    case PARSEOP_STRING_LITERAL:
        DbgPrint (ASL_PARSE_OUTPUT, "STRING->%s", Value);
        break;
    case PARSEOP_NAMESEG:
        DbgPrint (ASL_PARSE_OUTPUT, "NAMESEG->%s", Value);
        break;
    case PARSEOP_NAMESTRING:
        DbgPrint (ASL_PARSE_OUTPUT, "NAMESTRING->%s", Value);
        break;
    case PARSEOP_EISAID:
        DbgPrint (ASL_PARSE_OUTPUT, "EISAID->%s", Value);
        break;
    case PARSEOP_METHOD:
        DbgPrint (ASL_PARSE_OUTPUT, "METHOD");
        break;
    case PARSEOP_INTEGER:
        DbgPrint (ASL_PARSE_OUTPUT, "INTEGER->%8.8X%8.8X",
            ACPI_FORMAT_UINT64 (Value));
        break;
    default:
        break;
    }
    DbgPrint (ASL_PARSE_OUTPUT, "\n\n");
    return (Op);
}
ACPI_PARSE_OBJECT * TrCreateValuedLeafOp ( UINT32 ParseOpcode , UINT64 Value ) { ACPI_PARSE_OBJECT * Op ; Op = TrAllocateOp ( ParseOpcode ) ; Op -> Asl . Value . Integer = Value ; DbgPrint ( ASL_PARSE_OUTPUT , " \n " " " , Op -> Asl . LineNumber , Op -> Asl . Column , Op , UtGetOpName ( ParseOpcode ) , ACPI_FORMAT_UINT64 ( Value ) ) ; switch ( ParseOpcode ) { case PARSEOP_STRING_LITERAL : DbgPrint ( ASL_PARSE_OUTPUT , " " , Value ) ; break ; case PARSEOP_NAMESEG : DbgPrint ( ASL_PARSE_OUTPUT , " " , Value ) ; break ; case PARSEOP_NAMESTRING : DbgPrint ( ASL_PARSE_OUTPUT , " " , Value ) ; break ; case PARSEOP_EISAID : DbgPrint ( ASL_PARSE_OUTPUT , " " , Value ) ; break ; case PARSEOP_METHOD : DbgPrint ( ASL_PARSE_OUTPUT , " " ) ; break ; case PARSEOP_INTEGER : DbgPrint ( ASL_PARSE_OUTPUT , " " , ACPI_FORMAT_UINT64 ( Value ) ) ; break ; default : break ; } DbgPrint ( ASL_PARSE_OUTPUT , " \n \n " ) ; return ( Op ) ; }
FUNCTION:    TrCreateValuedLeafOp
 PARAMETERS:  ParseOpcode         - New opcode to be assigned to the op
              Value               - Value to be assigned to the op
FUNCTION : TrCreateValuedLeafOp PARAMETERS : ParseOpcode - New opcode to be assigned to the op Value - Value to be assigned to the op