/openbmc/linux/drivers/acpi/acpica/ |
H A D | psargs.c | 47 u8 *aml = parser_state->aml; in acpi_ps_get_next_package_length() local 58 byte_count = (aml[0] >> 6); in acpi_ps_get_next_package_length() 59 parser_state->aml += ((acpi_size)byte_count + 1); in acpi_ps_get_next_package_length() 71 package_length |= (aml[byte_count] << ((byte_count << 3) - 4)); in acpi_ps_get_next_package_length() 79 package_length |= (aml[0] & byte_zero_mask); in acpi_ps_get_next_package_length() 98 u8 *start = parser_state->aml; in acpi_ps_get_next_package_end() 127 u8 *start = parser_state->aml; in acpi_ps_get_next_namestring() 128 u8 *end = parser_state->aml; in acpi_ps_get_next_namestring() 173 parser_state->aml = end; in acpi_ps_get_next_namestring() 208 u8 *start = parser_state->aml; in acpi_ps_get_next_namepath() [all …]
|
H A D | utresrc.c | 142 u8 *aml, in acpi_ut_walk_aml_resources() argument 163 end_aml = aml + aml_length; in acpi_ut_walk_aml_resources() 167 while (aml < end_aml) { in acpi_ut_walk_aml_resources() 172 acpi_ut_validate_resource(walk_state, aml, &resource_index); in acpi_ut_walk_aml_resources() 183 length = acpi_ut_get_descriptor_length(aml); in acpi_ut_walk_aml_resources() 189 user_function(aml, length, offset, resource_index, in acpi_ut_walk_aml_resources() 198 if (acpi_ut_get_resource_type(aml) == in acpi_ut_walk_aml_resources() 204 if ((aml + 1) >= end_aml) { in acpi_ut_walk_aml_resources() 218 *context = aml; in acpi_ut_walk_aml_resources() 226 aml += length; in acpi_ut_walk_aml_resources() [all …]
|
H A D | rsmisc.c | 36 union aml_resource *aml, in acpi_rs_convert_aml_to_resource() argument 65 aml_resource_length = acpi_ut_get_resource_length(aml); in acpi_rs_convert_aml_to_resource() 79 source = ACPI_ADD_PTR(void, aml, info->aml_offset); in acpi_rs_convert_aml_to_resource() 153 target = ACPI_ADD_PTR(void, aml, info->value); in acpi_rs_convert_aml_to_resource() 175 target = ACPI_ADD_PTR(void, aml, (info->value + 2)); in acpi_rs_convert_aml_to_resource() 180 target = ACPI_ADD_PTR(void, aml, info->value); in acpi_rs_convert_aml_to_resource() 186 item_count = aml->large_header.resource_length + in acpi_rs_convert_aml_to_resource() 246 source = ACPI_ADD_PTR(void, aml, ACPI_GET16(source)); in acpi_rs_convert_aml_to_resource() 262 source = ACPI_ADD_PTR(void, aml, ACPI_GET16(source)); in acpi_rs_convert_aml_to_resource() 278 source = ACPI_ADD_PTR(void, aml, info->value); in acpi_rs_convert_aml_to_resource() [all …]
|
H A D | psloop.c | 96 walk_state->aml = walk_state->parser_state.aml; in acpi_ps_get_arguments() 144 op->named.data = walk_state->parser_state.aml; in acpi_ps_get_arguments() 147 walk_state->parser_state.aml); in acpi_ps_get_arguments() 151 walk_state->parser_state.aml = in acpi_ps_get_arguments() 181 walk_state->parser_state.aml = in acpi_ps_get_arguments() 300 while ((parser_state->aml < parser_state->aml_end) || (op)) { in acpi_ps_parse_loop() 303 aml_op_start = parser_state->aml; in acpi_ps_parse_loop() 358 walk_state->parser_state.aml = in acpi_ps_parse_loop() 359 walk_state->aml + opcode_length; in acpi_ps_parse_loop() 361 walk_state->parser_state.aml = in acpi_ps_parse_loop() [all …]
|
H A D | rslist.c | 30 acpi_rs_convert_aml_to_resources(u8 * aml, in acpi_rs_convert_aml_to_resources() argument 55 aml_resource = ACPI_CAST_PTR(union aml_resource, aml); in acpi_rs_convert_aml_to_resources() 57 if (acpi_ut_get_resource_type(aml) == ACPI_RESOURCE_NAME_SERIAL_BUS) { in acpi_rs_convert_aml_to_resources() 94 *aml)); in acpi_rs_convert_aml_to_resources() 105 acpi_ut_get_resource_type(aml), length, in acpi_rs_convert_aml_to_resources() 137 u8 *aml = output_buffer; in acpi_rs_convert_resources_to_aml() local 146 while (aml < end_aml) { in acpi_rs_convert_resources_to_aml() 193 aml), in acpi_rs_convert_resources_to_aml() 207 aml), NULL); in acpi_rs_convert_resources_to_aml() 225 aml += acpi_ut_get_descriptor_length(aml); in acpi_rs_convert_resources_to_aml()
|
H A D | psparse.c | 69 u8 *aml; in acpi_ps_peek_opcode() local 72 aml = parser_state->aml; in acpi_ps_peek_opcode() 73 opcode = (u16) ACPI_GET8(aml); in acpi_ps_peek_opcode() 79 aml++; in acpi_ps_peek_opcode() 80 opcode = (u16) ((opcode << 8) | ACPI_GET8(aml)); in acpi_ps_peek_opcode() 158 op->common.aml); in acpi_ps_complete_this_op() 183 op->common.aml); in acpi_ps_complete_this_op() 199 op->common.aml); in acpi_ps_complete_this_op() 216 op->common.aml); in acpi_ps_complete_this_op() 312 parser_state->aml = parser_state->aml_end; in acpi_ps_next_parse_state() [all …]
|
H A D | rsutils.c | 168 union aml_resource *aml) in acpi_rs_set_resource_length() argument 177 (total_length - acpi_ut_get_resource_header_length(aml)); in acpi_rs_set_resource_length() 181 if (aml->small_header.descriptor_type & ACPI_RESOURCE_NAME_LARGE) { in acpi_rs_set_resource_length() 185 ACPI_MOVE_16_TO_16(&aml->large_header.resource_length, in acpi_rs_set_resource_length() 192 aml->small_header.descriptor_type = (u8) in acpi_rs_set_resource_length() 193 ((aml->small_header.descriptor_type & in acpi_rs_set_resource_length() 219 union aml_resource *aml) in acpi_rs_set_resource_header() argument 225 aml->small_header.descriptor_type = descriptor_type; in acpi_rs_set_resource_header() 229 acpi_rs_set_resource_length(total_length, aml); in acpi_rs_set_resource_header() 287 union aml_resource * aml, char *string_ptr) in acpi_rs_get_resource_source() argument [all …]
|
H A D | rsaddr.c | 273 union aml_resource *aml) in acpi_rs_get_address_common() argument 281 memcpy(&address, aml, sizeof(address)); in acpi_rs_get_address_common() 291 (void)acpi_rs_convert_aml_to_resource(resource, aml, in acpi_rs_get_address_common() 297 (void)acpi_rs_convert_aml_to_resource(resource, aml, in acpi_rs_get_address_common() 300 (void)acpi_rs_convert_aml_to_resource(resource, aml, in acpi_rs_get_address_common() 327 acpi_rs_set_address_common(union aml_resource *aml, in acpi_rs_set_address_common() argument 334 (void)acpi_rs_convert_resource_to_aml(resource, aml, in acpi_rs_set_address_common() 340 (void)acpi_rs_convert_resource_to_aml(resource, aml, in acpi_rs_set_address_common() 343 (void)acpi_rs_convert_resource_to_aml(resource, aml, in acpi_rs_set_address_common() 348 aml->address.specific_flags = in acpi_rs_set_address_common()
|
H A D | acresrc.h | 209 acpi_rs_convert_aml_to_resources(u8 * aml, 221 acpi_rs_set_address_common(union aml_resource *aml, 226 union aml_resource *aml); 233 union aml_resource *aml, 238 union aml_resource *aml, 256 union aml_resource *aml, char *string_ptr); 259 acpi_rs_set_resource_source(union aml_resource *aml, 266 union aml_resource *aml); 270 union aml_resource *aml);
|
H A D | psobject.c | 41 walk_state->aml = walk_state->parser_state.aml; in acpi_ps_get_aml_opcode() 69 (u32)ACPI_PTR_DIFF(walk_state->aml, in acpi_ps_get_aml_opcode() 80 ACPI_DUMP_BUFFER((walk_state->parser_state.aml - 16), in acpi_ps_get_aml_opcode() 100 aml - 16), 48, DB_BYTE_DISPLAY, in acpi_ps_get_aml_opcode() 118 walk_state->parser_state.aml++; in acpi_ps_get_aml_opcode() 120 walk_state->parser_state.aml++; in acpi_ps_get_aml_opcode() 129 walk_state->parser_state.aml += in acpi_ps_get_aml_opcode() 254 (*op)->named.aml = unnamed_op->common.aml; in acpi_ps_build_named_op() 346 walk_state->aml = walk_state->parser_state.aml + 2; in acpi_ps_create_op() 347 walk_state->parser_state.aml = walk_state->aml; in acpi_ps_create_op()
|
H A D | psutils.c | 30 union acpi_parse_object *acpi_ps_create_scope_op(u8 *aml) in acpi_ps_create_scope_op() argument 34 scope_op = acpi_ps_alloc_op(AML_SCOPE_OP, aml); in acpi_ps_create_scope_op() 85 union acpi_parse_object *acpi_ps_alloc_op(u16 opcode, u8 *aml) in acpi_ps_alloc_op() argument 122 op->common.aml = aml; in acpi_ps_alloc_op()
|
H A D | extrace.c | 132 u8 begin, u8 *aml, char *pathname) in acpi_ex_trace_point() argument 141 begin ? "Begin" : "End", aml, pathname)); in acpi_ex_trace_point() 146 begin ? "Begin" : "End", aml)); in acpi_ex_trace_point() 288 op->common.aml, op->common.aml_op_name); in acpi_ex_start_trace_opcode() 316 op->common.aml, op->common.aml_op_name); in acpi_ex_stop_trace_opcode()
|
H A D | acutils.h | 123 acpi_status (*acpi_walk_aml_callback) (u8 *aml, 595 u8 *aml, 602 void *aml, u8 *return_index); 604 u32 acpi_ut_get_descriptor_length(void *aml); 606 u16 acpi_ut_get_resource_length(void *aml); 608 u8 acpi_ut_get_resource_header_length(void *aml); 610 u8 acpi_ut_get_resource_type(void *aml);
|
H A D | nsxfname.c | 505 parser_state.aml = buffer + sizeof(struct acpi_table_header); in ACPI_EXPORT_SYMBOL() 513 parser_state.aml += acpi_ps_get_opcode_size(opcode); in ACPI_EXPORT_SYMBOL() 517 method_flags = *parser_state.aml++; in ACPI_EXPORT_SYMBOL() 518 aml_start = parser_state.aml; in ACPI_EXPORT_SYMBOL()
|
H A D | utdebug.c | 602 acpi_trace_point(acpi_trace_event_type type, u8 begin, u8 *aml, char *pathname) in acpi_trace_point() argument 607 acpi_ex_trace_point(type, begin, aml, pathname); in acpi_trace_point() 610 acpi_os_trace_point(type, begin, aml, pathname); in acpi_trace_point()
|
H A D | dspkginit.c | 139 obj_desc->package.aml_start = walk_state->aml; in acpi_ds_build_internal_package_obj() 408 status = acpi_ns_lookup(&scope_info, (char *)element->reference.aml, in acpi_ds_resolve_package_element() 436 aml, NULL, &external_path); in acpi_ds_resolve_package_element()
|
/openbmc/qemu/tests/data/acpi/ |
H A D | disassemle-aml.sh | 28 for aml in $machine/* 30 if [[ "$aml" == $machine/*.dsl ]]; 34 if [[ "$aml" == $machine/SSDT*.* ]]; 36 dsdt=${aml/SSDT*./DSDT.} 38 elif [[ "$aml" == $machine/SSDT* ]]; 40 dsdt=${aml/SSDT*/DSDT}; 51 prefix="-p ${outdir}/${aml}.dsl" 55 iasl ${extra} ${prefix} -d ${aml}
|
/openbmc/qemu/tests/qtest/ |
H A D | acpi-utils.c | 80 void acpi_fetch_table(QTestState *qts, uint8_t **aml, uint32_t *aml_len, in acpi_fetch_table() argument 92 *aml = g_malloc0(*aml_len); in acpi_fetch_table() 94 qtest_memread(qts, addr, *aml, *aml_len); in acpi_fetch_table() 97 ACPI_ASSERT_CMP(**aml, sig); in acpi_fetch_table() 100 if (acpi_calc_checksum(*aml, *aml_len)) { in acpi_fetch_table() 105 fprintf(stderr, "Invalid '%.4s'(%d)\n", *aml, *aml_len); in acpi_fetch_table() 109 ret = qemu_write_full(fd, *aml, *aml_len); in acpi_fetch_table() 114 g_assert(!acpi_calc_checksum(*aml, *aml_len)); in acpi_fetch_table()
|
H A D | vmgenid-test.c | 53 uint8_t *aml = &table_aml[36 /* AML byte-code start */]; in acpi_find_vgia() local 57 g_assert(aml[0 /* name_op*/] == 0x08); in acpi_find_vgia() 58 g_assert(memcmp(&aml[1 /* name */], "VGIA", 4) == 0); in acpi_find_vgia() 59 g_assert(aml[5 /* value op */] == 0x0C /* dword */); in acpi_find_vgia() 60 memcpy(&vgia_val, &aml[6 /* value */], 4); in acpi_find_vgia()
|
H A D | bios-tables-test.c | 120 return !memcmp(sdt->aml, signature, 4); in compare_signature() 125 g_free(table->aml); in cleanup_table_descriptor() 189 acpi_fetch_table(data->qts, &rsdt.aml, &rsdt.aml_len, in test_acpi_rxsdt_table() 193 ACPI_FOREACH_RSDT_ENTRY(rsdt.aml, rsdt.aml_len, ent, entry_size) { in test_acpi_rxsdt_table() 196 acpi_fetch_table(data->qts, &ssdt_table.aml, &ssdt_table.aml_len, ent, in test_acpi_rxsdt_table() 208 uint8_t *fadt_aml = table.aml; in test_acpi_fadt_table() 220 acpi_fetch_table(data->qts, &table.aml, &table.aml_len, in test_acpi_fadt_table() 231 acpi_fetch_table(data->qts, &table.aml, &table.aml_len, in test_acpi_fadt_table() 262 g_assert(sdt->aml); in dump_aml_files() 263 g_assert(exp_sdt->aml); in dump_aml_files() [all …]
|
H A D | acpi-utils.h | 20 uint8_t *aml; /* aml bytecode from guest */ member 52 void acpi_fetch_table(QTestState *qts, uint8_t **aml, uint32_t *aml_len,
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | configfs-acpi | 17 aml 19 fill in the ACPI aml definitions. Once the aml 28 after the table has been loaded by filling the aml entry:
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-graphics/aml/ |
H A D | aml_git.bb | 3 HOMEPAGE = "https://github.com/any1/aml" 7 SRC_URI = "git://github.com/any1/aml;branch=master;protocol=https"
|
/openbmc/linux/Documentation/admin-guide/acpi/ |
H A D | initrd_table_override.rst | 65 DefinitionBlock ("DSDT.aml", "DSDT", 2, "INTEL ", "TEMPLATE", 0x00000000) 67 DefinitionBlock ("DSDT.aml", "DSDT", 2, "INTEL ", "TEMPLATE", 0x00000001) 78 cp dsdt.aml kernel/firmware/acpi 83 cp facp.aml kernel/firmware/acpi 84 cp ssdt1.aml kernel/firmware/acpi
|
H A D | ssdt-overlays.rst | 25 DefinitionBlock ("minnowmax.aml", "SSDT", 1, "Vendor", "Accel", 0x00000003) 63 AML Output: minnowmax.aml - 165 bytes, 6 named objects, 1 executable opcodes 91 cp ssdt.aml kernel/firmware/acpi 177 and writing the SSDT AML code in the aml attribute:: 181 cat ~/ssdt.aml > my_ssdt/aml
|