Lines Matching defs: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)
38 const char *opcode_name = "Unknown AML opcode";
44 * Detect normal 8-bit opcode or extended 16-bit opcode
46 if (!(opcode & 0xFF00)) {
48 /* Simple (8-bit) opcode: 0-255, can't index beyond table */
51 [acpi_gbl_short_op_index[(u8)opcode]]);
54 if (((opcode & 0xFF00) == AML_EXTENDED_OPCODE) &&
55 (((u8)opcode) <= MAX_EXTENDED_OPCODE)) {
57 /* Valid extended (16-bit) opcode */
60 [acpi_gbl_long_op_index[(u8)opcode]]);
65 switch (opcode) {
107 /* Unknown AML opcode */
109 ACPI_DEBUG_PRINT((ACPI_DB_EXEC, "%s [%4.4X]\n", opcode_name, opcode));
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)
133 op = acpi_ps_get_opcode_info(opcode);
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)