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
501 aml = parser_state->aml; in acpi_ps_get_next_field()
505 switch (ACPI_GET8(parser_state->aml)) { in acpi_ps_get_next_field()
509 parser_state->aml++; in acpi_ps_get_next_field()
515 parser_state->aml++; in acpi_ps_get_next_field()
521 parser_state->aml++; in acpi_ps_get_next_field()
527 parser_state->aml++; in acpi_ps_get_next_field()
550 ACPI_MOVE_32_TO_32(&name, parser_state->aml); in acpi_ps_get_next_field()
552 parser_state->aml += ACPI_NAME_SIZE; in acpi_ps_get_next_field()
557 acpi_ps_get_next_package_length(parser_state); in acpi_ps_get_next_field()
565 acpi_ps_get_next_package_length(parser_state); in acpi_ps_get_next_field()
579 access_type = ACPI_GET8(parser_state->aml); in acpi_ps_get_next_field()
580 parser_state->aml++; in acpi_ps_get_next_field()
581 access_attribute = ACPI_GET8(parser_state->aml); in acpi_ps_get_next_field()
582 parser_state->aml++; in acpi_ps_get_next_field()
590 access_length = ACPI_GET8(parser_state->aml); in acpi_ps_get_next_field()
591 parser_state->aml++; in acpi_ps_get_next_field()
604 aml = parser_state->aml; in acpi_ps_get_next_field()
605 if (ACPI_GET8(parser_state->aml) == AML_BUFFER_OP) { in acpi_ps_get_next_field()
606 parser_state->aml++; in acpi_ps_get_next_field()
608 pkg_end = parser_state->aml; in acpi_ps_get_next_field()
610 acpi_ps_get_next_package_length(parser_state); in acpi_ps_get_next_field()
613 if (parser_state->aml < pkg_end) { in acpi_ps_get_next_field()
626 opcode = ACPI_GET8(parser_state->aml); in acpi_ps_get_next_field()
627 parser_state->aml++; in acpi_ps_get_next_field()
633 ACPI_GET8(parser_state->aml); in acpi_ps_get_next_field()
634 parser_state->aml += 1; in acpi_ps_get_next_field()
640 ACPI_GET16(parser_state->aml); in acpi_ps_get_next_field()
641 parser_state->aml += 2; in acpi_ps_get_next_field()
647 ACPI_GET32(parser_state->aml); in acpi_ps_get_next_field()
648 parser_state->aml += 4; in acpi_ps_get_next_field()
660 arg->named.data = parser_state->aml; in acpi_ps_get_next_field()
665 parser_state->aml = pkg_end; in acpi_ps_get_next_field()
676 acpi_ps_get_next_namestring(parser_state); in acpi_ps_get_next_field()
711 struct acpi_parse_state *parser_state, in acpi_ps_get_next_arg() argument
720 ACPI_FUNCTION_TRACE_PTR(ps_get_next_arg, parser_state); in acpi_ps_get_next_arg()
732 arg = acpi_ps_alloc_op(AML_BYTE_OP, parser_state->aml); 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()
781 parser_state->aml); in acpi_ps_get_next_arg()
789 ACPI_PTR_DIFF(parser_state->pkg_end, in acpi_ps_get_next_arg()
790 parser_state->aml); in acpi_ps_get_next_arg()
791 arg->named.data = parser_state->aml; in acpi_ps_get_next_arg()
795 parser_state->aml = parser_state->pkg_end; in acpi_ps_get_next_arg()
804 subop = acpi_ps_peek_opcode(parser_state); in acpi_ps_get_next_arg()
814 parser_state->aml); in acpi_ps_get_next_arg()
824 parser_state, arg, in acpi_ps_get_next_arg()
839 parser_state, arg, in acpi_ps_get_next_arg()
861 if (parser_state->aml < parser_state->pkg_end) { in acpi_ps_get_next_arg()