Lines Matching refs:resource
60 * DESCRIPTION: Convert an AML resource to an internal representation of the
61 * resource that is aligned and easier to access.
71 struct acpi_resource *resource;
80 resource = *resource_ptr;
81 if (ACPI_IS_MISALIGNED(resource)) {
83 "Misaligned resource pointer %p", resource));
86 /* Convert the AML byte stream resource to a local resource struct */
89 acpi_rs_convert_aml_to_resource(resource,
96 "Could not convert AML resource (Type %X)",
104 resource->length));
108 *resource_ptr = ACPI_ADD_PTR(void, resource, resource->length);
116 * PARAMETERS: Resource - Pointer to the resource linked list
126 * DESCRIPTION: Takes the resource linked list and parses it, creating a
132 acpi_rs_convert_resources_to_aml(struct acpi_resource *resource,
141 /* Walk the resource descriptor list, convert each descriptor */
147 if (resource->type > ACPI_RESOURCE_TYPE_MAX) {
149 "Invalid descriptor type (%X) in resource list",
150 resource->type));
156 status = acpi_rs_convert_resource_to_aml(resource, ACPI_CAST_PTR(union
160 [resource->type]);
163 "Could not convert resource (type %X) to AML",
164 resource->type));
168 /* Perform final sanity check on the new AML resource descriptor */
179 if (resource->type == ACPI_RESOURCE_TYPE_END_TAG) {
188 * Aml to point to the next (output) resource descriptor
192 /* Point to the next input resource descriptor */
194 resource =
195 ACPI_ADD_PTR(struct acpi_resource, resource,
196 resource->length);
199 /* Completed buffer, but did not find an end_tag resource descriptor */