Lines Matching refs:parser_state
23 acpi_ps_get_next_package_length(struct acpi_parse_state *parser_state);
26 *parser_state);
43 acpi_ps_get_next_package_length(struct acpi_parse_state *parser_state) in acpi_ps_get_next_package_length() argument
45 u8 *aml = parser_state->aml; in acpi_ps_get_next_package_length()
57 parser_state->aml += ((acpi_size)byte_count + 1); in acpi_ps_get_next_package_length()
94 u8 *acpi_ps_get_next_package_end(struct acpi_parse_state *parser_state) in acpi_ps_get_next_package_end() argument
96 u8 *start = parser_state->aml; in acpi_ps_get_next_package_end()
103 package_length = acpi_ps_get_next_package_length(parser_state); in acpi_ps_get_next_package_end()
123 char *acpi_ps_get_next_namestring(struct acpi_parse_state *parser_state) in acpi_ps_get_next_namestring() argument
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 = end; in acpi_ps_get_next_namestring()
198 struct acpi_parse_state *parser_state, in acpi_ps_get_next_namepath() argument
206 u8 *start = parser_state->aml; in acpi_ps_get_next_namepath()
210 path = acpi_ps_get_next_namestring(parser_state); in acpi_ps_get_next_namepath()
249 walk_state->parser_state.aml = start; in acpi_ps_get_next_namepath()
362 acpi_ps_get_next_simple_arg(struct acpi_parse_state *parser_state, in acpi_ps_get_next_simple_arg() argument
367 u8 *aml = parser_state->aml; in acpi_ps_get_next_simple_arg()
429 acpi_ps_get_next_namestring(parser_state); in acpi_ps_get_next_simple_arg()
439 parser_state->aml += length; in acpi_ps_get_next_simple_arg()
456 *parser_state) in acpi_ps_get_next_field() argument
472 ASL_CV_CAPTURE_COMMENTS_ONLY(parser_state); in acpi_ps_get_next_field()
473 aml = parser_state->aml; in acpi_ps_get_next_field()
477 switch (ACPI_GET8(parser_state->aml)) { in acpi_ps_get_next_field()
481 parser_state->aml++; in acpi_ps_get_next_field()
487 parser_state->aml++; in acpi_ps_get_next_field()
493 parser_state->aml++; in acpi_ps_get_next_field()
499 parser_state->aml++; in acpi_ps_get_next_field()
517 ASL_CV_CAPTURE_COMMENTS_ONLY(parser_state); in acpi_ps_get_next_field()
523 ACPI_MOVE_32_TO_32(&name, parser_state->aml); in acpi_ps_get_next_field()
525 parser_state->aml += ACPI_NAMESEG_SIZE; in acpi_ps_get_next_field()
527 ASL_CV_CAPTURE_COMMENTS_ONLY(parser_state); in acpi_ps_get_next_field()
546 acpi_ps_get_next_package_length(parser_state); in acpi_ps_get_next_field()
554 acpi_ps_get_next_package_length(parser_state); in acpi_ps_get_next_field()
568 access_type = ACPI_GET8(parser_state->aml); in acpi_ps_get_next_field()
569 parser_state->aml++; in acpi_ps_get_next_field()
570 access_attribute = ACPI_GET8(parser_state->aml); in acpi_ps_get_next_field()
571 parser_state->aml++; in acpi_ps_get_next_field()
579 access_length = ACPI_GET8(parser_state->aml); in acpi_ps_get_next_field()
580 parser_state->aml++; in acpi_ps_get_next_field()
593 aml = parser_state->aml; in acpi_ps_get_next_field()
594 if (ACPI_GET8(parser_state->aml) == AML_BUFFER_OP) { in acpi_ps_get_next_field()
595 parser_state->aml++; in acpi_ps_get_next_field()
597 ASL_CV_CAPTURE_COMMENTS_ONLY(parser_state); in acpi_ps_get_next_field()
598 pkg_end = parser_state->aml; in acpi_ps_get_next_field()
600 acpi_ps_get_next_package_length(parser_state); in acpi_ps_get_next_field()
603 ASL_CV_CAPTURE_COMMENTS_ONLY(parser_state); in acpi_ps_get_next_field()
604 if (parser_state->aml < pkg_end) { in acpi_ps_get_next_field()
617 opcode = ACPI_GET8(parser_state->aml); in acpi_ps_get_next_field()
618 parser_state->aml++; in acpi_ps_get_next_field()
620 ASL_CV_CAPTURE_COMMENTS_ONLY(parser_state); in acpi_ps_get_next_field()
625 ACPI_GET8(parser_state->aml); in acpi_ps_get_next_field()
626 parser_state->aml += 1; in acpi_ps_get_next_field()
632 ACPI_GET16(parser_state->aml); in acpi_ps_get_next_field()
633 parser_state->aml += 2; in acpi_ps_get_next_field()
639 ACPI_GET32(parser_state->aml); in acpi_ps_get_next_field()
640 parser_state->aml += 4; in acpi_ps_get_next_field()
651 ASL_CV_CAPTURE_COMMENTS_ONLY(parser_state); in acpi_ps_get_next_field()
653 arg->named.data = parser_state->aml; in acpi_ps_get_next_field()
658 parser_state->aml = pkg_end; in acpi_ps_get_next_field()
669 acpi_ps_get_next_namestring(parser_state); in acpi_ps_get_next_field()
704 struct acpi_parse_state *parser_state, in acpi_ps_get_next_arg() argument
713 ACPI_FUNCTION_TRACE_PTR(ps_get_next_arg, parser_state); in acpi_ps_get_next_arg()
729 arg = acpi_ps_alloc_op(AML_BYTE_OP, parser_state->aml); in acpi_ps_get_next_arg()
734 acpi_ps_get_next_simple_arg(parser_state, arg_type, arg); in acpi_ps_get_next_arg()
741 parser_state->pkg_end = in acpi_ps_get_next_arg()
742 acpi_ps_get_next_package_end(parser_state); in acpi_ps_get_next_arg()
747 if (parser_state->aml < parser_state->pkg_end) { in acpi_ps_get_next_arg()
751 while (parser_state->aml < parser_state->pkg_end) { in acpi_ps_get_next_arg()
752 field = acpi_ps_get_next_field(parser_state); in acpi_ps_get_next_arg()
767 parser_state->aml = parser_state->pkg_end; in acpi_ps_get_next_arg()
773 if (parser_state->aml < parser_state->pkg_end) { in acpi_ps_get_next_arg()
778 parser_state->aml); in acpi_ps_get_next_arg()
786 ACPI_PTR_DIFF(parser_state->pkg_end, in acpi_ps_get_next_arg()
787 parser_state->aml); in acpi_ps_get_next_arg()
788 arg->named.data = parser_state->aml; in acpi_ps_get_next_arg()
792 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()
820 acpi_ps_get_next_namepath(walk_state, parser_state, in acpi_ps_get_next_arg()
838 subop = acpi_ps_peek_opcode(parser_state); in acpi_ps_get_next_arg()
848 parser_state->aml); in acpi_ps_get_next_arg()
854 acpi_ps_get_next_namepath(walk_state, parser_state, in acpi_ps_get_next_arg()
891 if (parser_state->aml < parser_state->pkg_end) { in acpi_ps_get_next_arg()