Lines Matching defs:aml

127  * PARAMETERS:  aml                 - Pointer to the raw AML resource template
142 u8 *aml,
163 end_aml = aml + aml_length;
167 while (aml < end_aml) {
172 acpi_ut_validate_resource(walk_state, aml, &resource_index);
183 length = acpi_ut_get_descriptor_length(aml);
189 user_function(aml, length, offset, resource_index,
198 if (acpi_ut_get_resource_type(aml) ==
204 if ((aml + 1) >= end_aml) {
218 *context = aml;
226 aml += length;
253 * aml - Pointer to the raw AML resource descriptor
267 void *aml, u8 *return_index)
280 resource_type = ACPI_GET8(aml);
320 resource_length = acpi_ut_get_resource_length(aml);
361 aml_resource = ACPI_CAST_PTR(union aml_resource, aml);
416 * PARAMETERS: aml - Pointer to the raw AML resource descriptor
426 u8 acpi_ut_get_resource_type(void *aml)
434 if (ACPI_GET8(aml) & ACPI_RESOURCE_NAME_LARGE) {
438 return (ACPI_GET8(aml));
442 return ((u8) (ACPI_GET8(aml) & ACPI_RESOURCE_NAME_SMALL_MASK));
450 * PARAMETERS: aml - Pointer to the raw AML resource descriptor
460 u16 acpi_ut_get_resource_length(void *aml)
470 if (ACPI_GET8(aml) & ACPI_RESOURCE_NAME_LARGE) {
474 ACPI_MOVE_16_TO_16(&resource_length, ACPI_ADD_PTR(u8, aml, 1));
479 resource_length = (u16) (ACPI_GET8(aml) &
490 * PARAMETERS: aml - Pointer to the raw AML resource descriptor
498 u8 acpi_ut_get_resource_header_length(void *aml)
504 if (ACPI_GET8(aml) & ACPI_RESOURCE_NAME_LARGE) {
515 * PARAMETERS: aml - Pointer to the raw AML resource descriptor
525 u32 acpi_ut_get_descriptor_length(void *aml)
533 return (acpi_ut_get_resource_length(aml) +
534 acpi_ut_get_resource_header_length(aml));