Lines Matching full:resource
170 * DESCRIPTION: Convert an AML resource to an internal representation of the
171 * resource that is aligned and easier to access.
185 ACPI_RESOURCE *Resource;
198 Resource = *ResourcePtr;
199 if (ACPI_IS_MISALIGNED (Resource))
202 "Misaligned resource pointer %p", Resource));
238 "Invalid/unsupported resource descriptor: Type 0x%2.2X",
243 /* Convert the AML byte stream resource to a local resource struct */
246 Resource, AmlResource, ConversionTable);
250 "Could not convert AML resource (Type 0x%X)", *Aml));
254 if (!Resource->Length)
257 "Zero-length resource returned from RsConvertAmlToResource"));
263 Resource->Length));
267 *ResourcePtr = ACPI_NEXT_RESOURCE (Resource);
276 * PARAMETERS: Resource - Pointer to the resource linked list
286 * DESCRIPTION: Takes the resource linked list and parses it, creating a
293 ACPI_RESOURCE *Resource,
306 /* Walk the resource descriptor list, convert each descriptor */
310 /* Validate the (internal) Resource Type */
312 if (Resource->Type > ACPI_RESOURCE_TYPE_MAX)
315 "Invalid descriptor type (0x%X) in resource list",
316 Resource->Type));
322 if (!Resource->Length)
325 "Invalid zero length descriptor in resource list\n"));
331 if (Resource->Type == ACPI_RESOURCE_TYPE_SERIAL_BUS)
333 if (Resource->Data.CommonSerialBus.Type >
343 Resource->Data.CommonSerialBus.Type];
348 ConversionTable = AcpiGbl_SetResourceDispatch[Resource->Type];
354 "Invalid/unsupported resource descriptor: Type 0x%2.2X",
355 Resource->Type));
359 Status = AcpiRsConvertResourceToAml (Resource,
364 "Could not convert resource (type 0x%X) to AML",
365 Resource->Type));
369 /* Perform final sanity check on the new AML resource descriptor */
380 if (Resource->Type == ACPI_RESOURCE_TYPE_END_TAG)
382 /* An End Tag indicates the end of the input Resource Template */
389 * Aml to point to the next (output) resource descriptor
393 /* Point to the next input resource descriptor */
395 Resource = ACPI_NEXT_RESOURCE (Resource);
398 /* Completed buffer, but did not find an EndTag resource descriptor */