Home | History | Annotate | Download | only in resources

Lines Matching defs: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));
233 "Invalid/unsupported resource descriptor: Type 0x%2.2X",
238 /* Convert the AML byte stream resource to a local resource struct */
241 Resource, AmlResource, ConversionTable);
245 "Could not convert AML resource (Type 0x%X)", *Aml));
249 if (!Resource->Length)
252 "Zero-length resource returned from RsConvertAmlToResource"));
258 Resource->Length));
262 *ResourcePtr = ACPI_NEXT_RESOURCE (Resource);
271 * PARAMETERS: Resource - Pointer to the resource linked list
281 * DESCRIPTION: Takes the resource linked list and parses it, creating a
288 ACPI_RESOURCE *Resource,
301 /* Walk the resource descriptor list, convert each descriptor */
305 /* Validate the (internal) Resource Type */
307 if (Resource->Type > ACPI_RESOURCE_TYPE_MAX)
310 "Invalid descriptor type (0x%X) in resource list",
311 Resource->Type));
317 if (!Resource->Length)
320 "Invalid zero length descriptor in resource list\n"));
326 if (Resource->Type == ACPI_RESOURCE_TYPE_SERIAL_BUS)
328 if (Resource->Data.CommonSerialBus.Type >
338 Resource->Data.CommonSerialBus.Type];
343 ConversionTable = AcpiGbl_SetResourceDispatch[Resource->Type];
349 "Invalid/unsupported resource descriptor: Type 0x%2.2X",
350 Resource->Type));
354 Status = AcpiRsConvertResourceToAml (Resource,
359 "Could not convert resource (type 0x%X) to AML",
360 Resource->Type));
364 /* Perform final sanity check on the new AML resource descriptor */
375 if (Resource->Type == ACPI_RESOURCE_TYPE_END_TAG)
377 /* An End Tag indicates the end of the input Resource Template */
384 * Aml to point to the next (output) resource descriptor
388 /* Point to the next input resource descriptor */
390 Resource = ACPI_NEXT_RESOURCE (Resource);
393 /* Completed buffer, but did not find an EndTag resource descriptor */