Lines Matching refs:aml

123  * PARAMETERS:  aml                 - Pointer to the raw AML resource template
138 u8 *aml,
159 end_aml = aml + aml_length;
163 while (aml < end_aml) {
168 acpi_ut_validate_resource(walk_state, aml, &resource_index);
179 length = acpi_ut_get_descriptor_length(aml);
185 user_function(aml, length, offset, resource_index,
194 if (acpi_ut_get_resource_type(aml) ==
200 if ((aml + 1) >= end_aml) {
214 *context = aml;
222 aml += length;
249 * aml - Pointer to the raw AML resource descriptor
263 void *aml, u8 *return_index)
276 resource_type = ACPI_GET8(aml);
316 resource_length = acpi_ut_get_resource_length(aml);
357 aml_resource = ACPI_CAST_PTR(union aml_resource, aml);
408 * PARAMETERS: aml - Pointer to the raw AML resource descriptor
418 u8 acpi_ut_get_resource_type(void *aml)
426 if (ACPI_GET8(aml) & ACPI_RESOURCE_NAME_LARGE) {
430 return (ACPI_GET8(aml));
434 return ((u8) (ACPI_GET8(aml) & ACPI_RESOURCE_NAME_SMALL_MASK));
442 * PARAMETERS: aml - Pointer to the raw AML resource descriptor
452 u16 acpi_ut_get_resource_length(void *aml)
462 if (ACPI_GET8(aml) & ACPI_RESOURCE_NAME_LARGE) {
466 ACPI_MOVE_16_TO_16(&resource_length, ACPI_ADD_PTR(u8, aml, 1));
471 resource_length = (u16) (ACPI_GET8(aml) &
482 * PARAMETERS: aml - Pointer to the raw AML resource descriptor
490 u8 acpi_ut_get_resource_header_length(void *aml)
496 if (ACPI_GET8(aml) & ACPI_RESOURCE_NAME_LARGE) {
507 * PARAMETERS: aml - Pointer to the raw AML resource descriptor
517 u32 acpi_ut_get_descriptor_length(void *aml)
525 return (acpi_ut_get_resource_length(aml) +
526 acpi_ut_get_resource_header_length(aml));