/kernel/linux/linux-5.10/drivers/acpi/acpica/ |
H A D | psargs.c | 45 u8 *aml = parser_state->aml; in acpi_ps_get_next_package_length() local 56 byte_count = (aml[0] >> 6); in acpi_ps_get_next_package_length() 57 parser_state->aml += ((acpi_size)byte_count + 1); in acpi_ps_get_next_package_length() 69 package_length |= (aml[byte_count] << ((byte_count << 3) - 4)); in acpi_ps_get_next_package_length() 77 package_length |= (aml[0] & byte_zero_mask); in acpi_ps_get_next_package_length() 96 u8 *start = parser_state->aml; in acpi_ps_get_next_package_end() 125 u8 *start = parser_state->aml; in acpi_ps_get_next_namestring() 126 u8 *end = parser_state->aml; in acpi_ps_get_next_namestring() 171 parser_state->aml in acpi_ps_get_next_namestring() 367 u8 *aml = parser_state->aml; acpi_ps_get_next_simple_arg() local 458 u8 *aml; acpi_ps_get_next_field() local [all...] |
H A D | utresrc.c | 123 * PARAMETERS: aml - Pointer to the raw AML resource template 138 u8 *aml, in acpi_ut_walk_aml_resources() 159 end_aml = aml + aml_length; in acpi_ut_walk_aml_resources() 163 while (aml < end_aml) { in acpi_ut_walk_aml_resources() 168 acpi_ut_validate_resource(walk_state, aml, &resource_index); in acpi_ut_walk_aml_resources() 179 length = acpi_ut_get_descriptor_length(aml); in acpi_ut_walk_aml_resources() 185 user_function(aml, length, offset, resource_index, in acpi_ut_walk_aml_resources() 194 if (acpi_ut_get_resource_type(aml) == in acpi_ut_walk_aml_resources() 200 if ((aml + 1) >= end_aml) { in acpi_ut_walk_aml_resources() 214 *context = aml; in acpi_ut_walk_aml_resources() 137 acpi_ut_walk_aml_resources(struct acpi_walk_state *walk_state, u8 *aml, acpi_size aml_length, acpi_walk_aml_callback user_function, void **context) acpi_ut_walk_aml_resources() argument 262 acpi_ut_validate_resource(struct acpi_walk_state *walk_state, void *aml, u8 *return_index) acpi_ut_validate_resource() argument 418 acpi_ut_get_resource_type(void *aml) acpi_ut_get_resource_type() argument 452 acpi_ut_get_resource_length(void *aml) acpi_ut_get_resource_length() argument 490 acpi_ut_get_resource_header_length(void *aml) acpi_ut_get_resource_header_length() argument 517 acpi_ut_get_descriptor_length(void *aml) acpi_ut_get_descriptor_length() argument [all...] |
H A D | rsmisc.c | 25 * aml - Where the AML descriptor is returned 36 union aml_resource *aml, in acpi_rs_convert_aml_to_resource() 65 aml_resource_length = acpi_ut_get_resource_length(aml); in acpi_rs_convert_aml_to_resource() 77 source = ACPI_ADD_PTR(void, aml, info->aml_offset); in acpi_rs_convert_aml_to_resource() 143 target = ACPI_ADD_PTR(void, aml, info->value); in acpi_rs_convert_aml_to_resource() 165 target = ACPI_ADD_PTR(void, aml, (info->value + 2)); in acpi_rs_convert_aml_to_resource() 170 target = ACPI_ADD_PTR(void, aml, info->value); in acpi_rs_convert_aml_to_resource() 176 item_count = aml->large_header.resource_length + in acpi_rs_convert_aml_to_resource() 234 source = ACPI_ADD_PTR(void, aml, ACPI_GET16(source)); in acpi_rs_convert_aml_to_resource() 250 source = ACPI_ADD_PTR(void, aml, ACPI_GET1 in acpi_rs_convert_aml_to_resource() 35 acpi_rs_convert_aml_to_resource(struct acpi_resource *resource, union aml_resource *aml, struct acpi_rsconvert_info *info) acpi_rs_convert_aml_to_resource() argument 434 acpi_rs_convert_resource_to_aml(struct acpi_resource *resource, union aml_resource *aml, struct acpi_rsconvert_info *info) acpi_rs_convert_resource_to_aml() argument 472 aml_length, aml); acpi_rs_convert_resource_to_aml() local [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() 301 while ((parser_state->aml < parser_state->aml_end) || (op)) { in acpi_ps_parse_loop() 304 aml_op_start = parser_state->aml; in acpi_ps_parse_loop() 359 walk_state->parser_state.aml = in acpi_ps_parse_loop() 360 walk_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() 88 *aml)); in acpi_rs_convert_aml_to_resources() 94 acpi_ut_get_resource_type(aml), length, in acpi_rs_convert_aml_to_resources() 126 u8 *aml = output_buffer; in acpi_rs_convert_resources_to_aml() local 135 while (aml < end_aml) { in acpi_rs_convert_resources_to_aml() 182 aml), in acpi_rs_convert_resources_to_aml() 196 aml), NULL); in acpi_rs_convert_resources_to_aml() 214 aml in acpi_rs_convert_resources_to_aml() [all...] |
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() [all...] |
H A D | rsaddr.c | 262 * aml - Pointer to the AML resource descriptor 273 union aml_resource *aml) in acpi_rs_get_address_common() 279 if ((aml->address.resource_type > 2) && in acpi_rs_get_address_common() 280 (aml->address.resource_type < 0xC0)) { in acpi_rs_get_address_common() 286 (void)acpi_rs_convert_aml_to_resource(resource, aml, in acpi_rs_get_address_common() 292 (void)acpi_rs_convert_aml_to_resource(resource, aml, in acpi_rs_get_address_common() 295 (void)acpi_rs_convert_aml_to_resource(resource, aml, in acpi_rs_get_address_common() 301 aml->address.specific_flags; in acpi_rs_get_address_common() 311 * PARAMETERS: aml - Pointer to the AML resource descriptor 322 acpi_rs_set_address_common(union aml_resource *aml, in acpi_rs_set_address_common() argument 272 acpi_rs_get_address_common(struct acpi_resource *resource, union aml_resource *aml) acpi_rs_get_address_common() argument [all...] |
H A D | rsutils.c | 155 * aml - Pointer to the raw AML descriptor 168 union aml_resource *aml) in acpi_rs_set_resource_length() 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() 206 * aml - Pointer to the raw AML descriptor 219 union aml_resource *aml) in acpi_rs_set_resource_header() 225 aml in acpi_rs_set_resource_header() 167 acpi_rs_set_resource_length(acpi_rsdesc_size total_length, union aml_resource *aml) acpi_rs_set_resource_length() argument 217 acpi_rs_set_resource_header(u8 descriptor_type, acpi_rsdesc_size total_length, union aml_resource *aml) acpi_rs_set_resource_header() argument 284 acpi_rs_get_resource_source(acpi_rs_length resource_length, acpi_rs_length minimum_length, struct acpi_resource_source * resource_source, union aml_resource * aml, char *string_ptr) acpi_rs_get_resource_source() argument 373 acpi_rs_set_resource_source(union aml_resource *aml, acpi_rs_length minimum_length, struct acpi_resource_source *resource_source) acpi_rs_set_resource_source() argument [all...] |
H A D | acresrc.h | 207 acpi_rs_convert_aml_to_resources(u8 * aml, 219 acpi_rs_set_address_common(union aml_resource *aml, 224 union aml_resource *aml); 231 union aml_resource *aml, 236 union aml_resource *aml, 254 union aml_resource *aml, char *string_ptr); 257 acpi_rs_set_resource_source(union aml_resource *aml, 264 union aml_resource *aml); 268 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() [all...] |
H A D | extrace.c | 121 * aml - Executed AML address 132 u8 begin, u8 *aml, char *pathname) in acpi_ex_trace_point() 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() 131 acpi_ex_trace_point(acpi_trace_event_type type, u8 begin, u8 *aml, char *pathname) acpi_ex_trace_point() argument
|
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() 75 * aml - Address of the opcode 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 | acutils.h | 120 acpi_status (*acpi_walk_aml_callback) (u8 *aml, 579 u8 *aml, 586 void *aml, u8 *return_index); 588 u32 acpi_ut_get_descriptor_length(void *aml); 590 u16 acpi_ut_get_resource_length(void *aml); 592 u8 acpi_ut_get_resource_header_length(void *aml); 594 u8 acpi_ut_get_resource_type(void *aml);
|
/kernel/linux/linux-6.6/drivers/acpi/acpica/ |
H A D | psargs.c | 45 u8 *aml = parser_state->aml; in acpi_ps_get_next_package_length() local 56 byte_count = (aml[0] >> 6); in acpi_ps_get_next_package_length() 57 parser_state->aml += ((acpi_size)byte_count + 1); in acpi_ps_get_next_package_length() 69 package_length |= (aml[byte_count] << ((byte_count << 3) - 4)); in acpi_ps_get_next_package_length() 77 package_length |= (aml[0] & byte_zero_mask); in acpi_ps_get_next_package_length() 96 u8 *start = parser_state->aml; in acpi_ps_get_next_package_end() 125 u8 *start = parser_state->aml; in acpi_ps_get_next_namestring() 126 u8 *end = parser_state->aml; in acpi_ps_get_next_namestring() 171 parser_state->aml in acpi_ps_get_next_namestring() 367 u8 *aml = parser_state->aml; acpi_ps_get_next_simple_arg() local 458 u8 *aml; acpi_ps_get_next_field() local [all...] |
H A D | utresrc.c | 127 * PARAMETERS: aml - Pointer to the raw AML resource template 142 u8 *aml, in acpi_ut_walk_aml_resources() 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() 141 acpi_ut_walk_aml_resources(struct acpi_walk_state *walk_state, u8 *aml, acpi_size aml_length, acpi_walk_aml_callback user_function, void **context) acpi_ut_walk_aml_resources() argument 266 acpi_ut_validate_resource(struct acpi_walk_state *walk_state, void *aml, u8 *return_index) acpi_ut_validate_resource() argument 426 acpi_ut_get_resource_type(void *aml) acpi_ut_get_resource_type() argument 460 acpi_ut_get_resource_length(void *aml) acpi_ut_get_resource_length() argument 498 acpi_ut_get_resource_header_length(void *aml) acpi_ut_get_resource_header_length() argument 525 acpi_ut_get_descriptor_length(void *aml) acpi_ut_get_descriptor_length() argument [all...] |
H A D | rsmisc.c | 25 * aml - Where the AML descriptor is returned 36 union aml_resource *aml, in acpi_rs_convert_aml_to_resource() 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_GET1 in acpi_rs_convert_aml_to_resource() 35 acpi_rs_convert_aml_to_resource(struct acpi_resource *resource, union aml_resource *aml, struct acpi_rsconvert_info *info) acpi_rs_convert_aml_to_resource() argument 446 acpi_rs_convert_resource_to_aml(struct acpi_resource *resource, union aml_resource *aml, struct acpi_rsconvert_info *info) acpi_rs_convert_resource_to_aml() argument 484 aml_length, aml); acpi_rs_convert_resource_to_aml() local [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 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 in acpi_rs_convert_resources_to_aml() [all...] |
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() [all...] |
H A D | rsutils.c | 155 * aml - Pointer to the raw AML descriptor 168 union aml_resource *aml) in acpi_rs_set_resource_length() 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() 206 * aml - Pointer to the raw AML descriptor 219 union aml_resource *aml) in acpi_rs_set_resource_header() 225 aml in acpi_rs_set_resource_header() 167 acpi_rs_set_resource_length(acpi_rsdesc_size total_length, union aml_resource *aml) acpi_rs_set_resource_length() argument 217 acpi_rs_set_resource_header(u8 descriptor_type, acpi_rsdesc_size total_length, union aml_resource *aml) acpi_rs_set_resource_header() argument 284 acpi_rs_get_resource_source(acpi_rs_length resource_length, acpi_rs_length minimum_length, struct acpi_resource_source * resource_source, union aml_resource * aml, char *string_ptr) acpi_rs_get_resource_source() argument 373 acpi_rs_set_resource_source(union aml_resource *aml, acpi_rs_length minimum_length, struct acpi_resource_source *resource_source) acpi_rs_set_resource_source() argument [all...] |
H A D | rsaddr.c | 262 * aml - Pointer to the AML resource descriptor 273 union aml_resource *aml) in acpi_rs_get_address_common() 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() 316 * PARAMETERS: aml - Pointer to the AML resource descriptor 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() 272 acpi_rs_get_address_common(struct acpi_resource *resource, union aml_resource *aml) acpi_rs_get_address_common() argument [all...] |
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() [all...] |
H A D | extrace.c | 121 * aml - Executed AML address 132 u8 begin, u8 *aml, char *pathname) in acpi_ex_trace_point() 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() 131 acpi_ex_trace_point(acpi_trace_event_type type, u8 begin, u8 *aml, char *pathname) acpi_ex_trace_point() argument
|
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() 75 * aml - Address of the opcode 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()
|