Lines Matching full:opcode
4 * Module Name: psopinfo - AML opcode information functions and dispatch tables
26 * PARAMETERS: opcode - The AML opcode
28 * RETURN: A pointer to the info about the opcode.
30 * DESCRIPTION: Find AML opcode description based on the opcode.
35 const struct acpi_opcode_info *acpi_ps_get_opcode_info(u16 opcode) in acpi_ps_get_opcode_info() argument
38 const char *opcode_name = "Unknown AML opcode"; in acpi_ps_get_opcode_info()
44 * Detect normal 8-bit opcode or extended 16-bit opcode in acpi_ps_get_opcode_info()
46 if (!(opcode & 0xFF00)) { in acpi_ps_get_opcode_info()
48 /* Simple (8-bit) opcode: 0-255, can't index beyond table */ in acpi_ps_get_opcode_info()
51 [acpi_gbl_short_op_index[(u8)opcode]]); in acpi_ps_get_opcode_info()
54 if (((opcode & 0xFF00) == AML_EXTENDED_OPCODE) && in acpi_ps_get_opcode_info()
55 (((u8)opcode) <= MAX_EXTENDED_OPCODE)) { in acpi_ps_get_opcode_info()
57 /* Valid extended (16-bit) opcode */ in acpi_ps_get_opcode_info()
60 [acpi_gbl_long_op_index[(u8)opcode]]); in acpi_ps_get_opcode_info()
65 switch (opcode) { in acpi_ps_get_opcode_info()
95 opcode_name = "-Unassigned Opcode-"; in acpi_ps_get_opcode_info()
107 /* Unknown AML opcode */ in acpi_ps_get_opcode_info()
109 ACPI_DEBUG_PRINT((ACPI_DB_EXEC, "%s [%4.4X]\n", opcode_name, opcode)); in acpi_ps_get_opcode_info()
118 * PARAMETERS: opcode - The AML opcode
120 * RETURN: A pointer to the name of the opcode (ASCII String)
123 * DESCRIPTION: Translate an opcode into a human-readable string
127 const char *acpi_ps_get_opcode_name(u16 opcode) in acpi_ps_get_opcode_name() argument
133 op = acpi_ps_get_opcode_info(opcode); in acpi_ps_get_opcode_name()
149 * PARAMETERS: op_type - Type associated with the AML opcode
153 * DESCRIPTION: Obtain the number of expected arguments for an AML opcode
169 * an index into the opcode table (acpi_gbl_aml_op_info)
209 * This table is indexed by the second opcode of the extended opcode
210 * pair. It returns an index into the opcode table (acpi_gbl_aml_op_info)