Lines Matching refs:parser_state
56 acpi_ps_get_next_package_length(struct acpi_parse_state *parser_state);
59 *parser_state);
76 acpi_ps_get_next_package_length(struct acpi_parse_state *parser_state) in acpi_ps_get_next_package_length() argument
78 u8 *aml = parser_state->aml; in acpi_ps_get_next_package_length()
90 parser_state->aml += ((acpi_size) byte_count + 1); in acpi_ps_get_next_package_length()
127 u8 *acpi_ps_get_next_package_end(struct acpi_parse_state *parser_state) in acpi_ps_get_next_package_end() argument
129 u8 *start = parser_state->aml; in acpi_ps_get_next_package_end()
136 package_length = acpi_ps_get_next_package_length(parser_state); in acpi_ps_get_next_package_end()
156 char *acpi_ps_get_next_namestring(struct acpi_parse_state *parser_state) in acpi_ps_get_next_namestring() argument
158 u8 *start = parser_state->aml; in acpi_ps_get_next_namestring()
159 u8 *end = parser_state->aml; in acpi_ps_get_next_namestring()
204 parser_state->aml = end; in acpi_ps_get_next_namestring()
231 struct acpi_parse_state *parser_state, in acpi_ps_get_next_namepath() argument
239 u8 *start = parser_state->aml; in acpi_ps_get_next_namepath()
243 path = acpi_ps_get_next_namestring(parser_state); in acpi_ps_get_next_namepath()
277 walk_state->parser_state.aml = start; in acpi_ps_get_next_namepath()
391 acpi_ps_get_next_simple_arg(struct acpi_parse_state *parser_state, in acpi_ps_get_next_simple_arg() argument
396 u8 *aml = parser_state->aml; in acpi_ps_get_next_simple_arg()
458 acpi_ps_get_next_namestring(parser_state); in acpi_ps_get_next_simple_arg()
468 parser_state->aml += length; in acpi_ps_get_next_simple_arg()
485 *parser_state) in acpi_ps_get_next_field() argument
502 (u32)ACPI_PTR_DIFF(parser_state->aml, parser_state->aml_start); in acpi_ps_get_next_field()
506 switch (ACPI_GET8(parser_state->aml)) { in acpi_ps_get_next_field()
510 parser_state->aml++; in acpi_ps_get_next_field()
516 parser_state->aml++; in acpi_ps_get_next_field()
522 parser_state->aml++; in acpi_ps_get_next_field()
528 parser_state->aml++; in acpi_ps_get_next_field()
553 ACPI_MOVE_32_TO_32(&name, parser_state->aml); in acpi_ps_get_next_field()
555 parser_state->aml += ACPI_NAME_SIZE; in acpi_ps_get_next_field()
560 acpi_ps_get_next_package_length(parser_state); in acpi_ps_get_next_field()
568 acpi_ps_get_next_package_length(parser_state); in acpi_ps_get_next_field()
582 access_type = ACPI_GET8(parser_state->aml); in acpi_ps_get_next_field()
583 parser_state->aml++; in acpi_ps_get_next_field()
584 access_attribute = ACPI_GET8(parser_state->aml); in acpi_ps_get_next_field()
585 parser_state->aml++; in acpi_ps_get_next_field()
593 access_length = ACPI_GET8(parser_state->aml); in acpi_ps_get_next_field()
594 parser_state->aml++; in acpi_ps_get_next_field()
607 if (ACPI_GET8(parser_state->aml) == AML_BUFFER_OP) { in acpi_ps_get_next_field()
608 parser_state->aml++; in acpi_ps_get_next_field()
610 pkg_end = parser_state->aml; in acpi_ps_get_next_field()
612 acpi_ps_get_next_package_length(parser_state); in acpi_ps_get_next_field()
615 if (parser_state->aml < pkg_end) { in acpi_ps_get_next_field()
627 opcode = ACPI_GET8(parser_state->aml); in acpi_ps_get_next_field()
628 parser_state->aml++; in acpi_ps_get_next_field()
634 ACPI_GET8(parser_state->aml); in acpi_ps_get_next_field()
635 parser_state->aml += 1; in acpi_ps_get_next_field()
641 ACPI_GET16(parser_state->aml); in acpi_ps_get_next_field()
642 parser_state->aml += 2; in acpi_ps_get_next_field()
648 ACPI_GET32(parser_state->aml); in acpi_ps_get_next_field()
649 parser_state->aml += 4; in acpi_ps_get_next_field()
661 arg->named.data = parser_state->aml; in acpi_ps_get_next_field()
666 parser_state->aml = pkg_end; in acpi_ps_get_next_field()
677 acpi_ps_get_next_namestring(parser_state); in acpi_ps_get_next_field()
712 struct acpi_parse_state *parser_state, in acpi_ps_get_next_arg() argument
721 ACPI_FUNCTION_TRACE_PTR(ps_get_next_arg, parser_state); in acpi_ps_get_next_arg()
737 acpi_ps_get_next_simple_arg(parser_state, arg_type, arg); in acpi_ps_get_next_arg()
744 parser_state->pkg_end = in acpi_ps_get_next_arg()
745 acpi_ps_get_next_package_end(parser_state); in acpi_ps_get_next_arg()
750 if (parser_state->aml < parser_state->pkg_end) { in acpi_ps_get_next_arg()
754 while (parser_state->aml < parser_state->pkg_end) { in acpi_ps_get_next_arg()
755 field = acpi_ps_get_next_field(parser_state); in acpi_ps_get_next_arg()
770 parser_state->aml = parser_state->pkg_end; in acpi_ps_get_next_arg()
776 if (parser_state->aml < parser_state->pkg_end) { in acpi_ps_get_next_arg()
788 ACPI_PTR_DIFF(parser_state->pkg_end, in acpi_ps_get_next_arg()
789 parser_state->aml); in acpi_ps_get_next_arg()
790 arg->named.data = parser_state->aml; in acpi_ps_get_next_arg()
794 parser_state->aml = parser_state->pkg_end; in acpi_ps_get_next_arg()
802 subop = acpi_ps_peek_opcode(parser_state); in acpi_ps_get_next_arg()
820 parser_state, arg, in acpi_ps_get_next_arg()
835 parser_state, arg, in acpi_ps_get_next_arg()
857 if (parser_state->aml < parser_state->pkg_end) { in acpi_ps_get_next_arg()