Lines Matching refs:aml

259 acpi_ut_walk_aml_resources(u8 * aml,  in acpi_ut_walk_aml_resources()  argument
279 end_aml = aml + aml_length; in acpi_ut_walk_aml_resources()
283 while (aml < end_aml) { in acpi_ut_walk_aml_resources()
287 status = acpi_ut_validate_resource(aml, &resource_index); in acpi_ut_walk_aml_resources()
294 length = acpi_ut_get_descriptor_length(aml); in acpi_ut_walk_aml_resources()
300 user_function(aml, length, offset, resource_index, in acpi_ut_walk_aml_resources()
309 if (acpi_ut_get_resource_type(aml) == in acpi_ut_walk_aml_resources()
315 if ((aml + 1) >= end_aml) { in acpi_ut_walk_aml_resources()
322 *context = aml; in acpi_ut_walk_aml_resources()
330 aml += length; in acpi_ut_walk_aml_resources()
355 acpi_status acpi_ut_validate_resource(void *aml, u8 * return_index) in acpi_ut_validate_resource() argument
367 resource_type = ACPI_GET8(aml); in acpi_ut_validate_resource()
405 resource_length = acpi_ut_get_resource_length(aml); in acpi_ut_validate_resource()
469 u8 acpi_ut_get_resource_type(void *aml) in acpi_ut_get_resource_type() argument
477 if (ACPI_GET8(aml) & ACPI_RESOURCE_NAME_LARGE) { in acpi_ut_get_resource_type()
481 return (ACPI_GET8(aml)); in acpi_ut_get_resource_type()
485 return ((u8) (ACPI_GET8(aml) & ACPI_RESOURCE_NAME_SMALL_MASK)); in acpi_ut_get_resource_type()
503 u16 acpi_ut_get_resource_length(void *aml) in acpi_ut_get_resource_length() argument
513 if (ACPI_GET8(aml) & ACPI_RESOURCE_NAME_LARGE) { in acpi_ut_get_resource_length()
517 ACPI_MOVE_16_TO_16(&resource_length, ACPI_ADD_PTR(u8, aml, 1)); in acpi_ut_get_resource_length()
522 resource_length = (u16) (ACPI_GET8(aml) & in acpi_ut_get_resource_length()
541 u8 acpi_ut_get_resource_header_length(void *aml) in acpi_ut_get_resource_header_length() argument
547 if (ACPI_GET8(aml) & ACPI_RESOURCE_NAME_LARGE) { in acpi_ut_get_resource_header_length()
568 u32 acpi_ut_get_descriptor_length(void *aml) in acpi_ut_get_descriptor_length() argument
576 return (acpi_ut_get_resource_length(aml) + in acpi_ut_get_descriptor_length()
577 acpi_ut_get_resource_header_length(aml)); in acpi_ut_get_descriptor_length()