psloop.c (aaccf3c97418f169afdbb5855e9cbcbda34e90fd) psloop.c (c64baa3a6fa207d112706bc5e7fd645cd8a8663f)
1// SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0
2/******************************************************************************
3 *
4 * Module Name: psloop - Main AML parse loop
5 *
6 * Copyright (C) 2000 - 2018, Intel Corp.
7 *
8 *****************************************************************************/

--- 403 unchanged lines hidden (view full) ---

412 ******************************************************************************/
413
414acpi_status acpi_ps_parse_loop(struct acpi_walk_state *walk_state)
415{
416 acpi_status status = AE_OK;
417 union acpi_parse_object *op = NULL; /* current op */
418 struct acpi_parse_state *parser_state;
419 u8 *aml_op_start = NULL;
1// SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0
2/******************************************************************************
3 *
4 * Module Name: psloop - Main AML parse loop
5 *
6 * Copyright (C) 2000 - 2018, Intel Corp.
7 *
8 *****************************************************************************/

--- 403 unchanged lines hidden (view full) ---

412 ******************************************************************************/
413
414acpi_status acpi_ps_parse_loop(struct acpi_walk_state *walk_state)
415{
416 acpi_status status = AE_OK;
417 union acpi_parse_object *op = NULL; /* current op */
418 struct acpi_parse_state *parser_state;
419 u8 *aml_op_start = NULL;
420 u8 opcode_length;
420
421 ACPI_FUNCTION_TRACE_PTR(ps_parse_loop, walk_state);
422
423 if (walk_state->descending_callback == NULL) {
424 return_ACPI_STATUS(AE_BAD_PARAMETER);
425 }
426
427 parser_state = &walk_state->parser_state;

--- 107 unchanged lines hidden (view full) ---

535 * If the scope/device op fails to parse, skip the body of
536 * the scope op because the parse failure indicates that
537 * the device may not exist.
538 */
539 ACPI_ERROR((AE_INFO,
540 "Skip parsing opcode %s",
541 acpi_ps_get_opcode_name
542 (walk_state->opcode)));
421
422 ACPI_FUNCTION_TRACE_PTR(ps_parse_loop, walk_state);
423
424 if (walk_state->descending_callback == NULL) {
425 return_ACPI_STATUS(AE_BAD_PARAMETER);
426 }
427
428 parser_state = &walk_state->parser_state;

--- 107 unchanged lines hidden (view full) ---

536 * If the scope/device op fails to parse, skip the body of
537 * the scope op because the parse failure indicates that
538 * the device may not exist.
539 */
540 ACPI_ERROR((AE_INFO,
541 "Skip parsing opcode %s",
542 acpi_ps_get_opcode_name
543 (walk_state->opcode)));
544
545 /*
546 * Determine the opcode length before skipping the opcode.
547 * An opcode can be 1 byte or 2 bytes in length.
548 */
549 opcode_length = 1;
550 if ((walk_state->opcode & 0xFF00) ==
551 AML_EXTENDED_OPCODE) {
552 opcode_length = 2;
553 }
543 walk_state->parser_state.aml =
554 walk_state->parser_state.aml =
544 walk_state->aml + 1;
555 walk_state->aml + opcode_length;
556
545 walk_state->parser_state.aml =
546 acpi_ps_get_next_package_end
547 (&walk_state->parser_state);
548 walk_state->aml =
549 walk_state->parser_state.aml;
550 }
551
552 continue;

--- 193 unchanged lines hidden ---
557 walk_state->parser_state.aml =
558 acpi_ps_get_next_package_end
559 (&walk_state->parser_state);
560 walk_state->aml =
561 walk_state->parser_state.aml;
562 }
563
564 continue;

--- 193 unchanged lines hidden ---