Lines Matching refs:resource
25 * DESCRIPTION: Convert an AML resource to an internal representation of the
26 * resource that is aligned and easier to access.
36 struct acpi_resource *resource;
47 resource = *resource_ptr;
48 if (ACPI_IS_MISALIGNED(resource)) {
50 "Misaligned resource pointer %p", resource));
81 "Invalid/unsupported resource descriptor: Type 0x%2.2X",
86 /* Convert the AML byte stream resource to a local resource struct */
89 acpi_rs_convert_aml_to_resource(resource, aml_resource,
93 "Could not convert AML resource (Type 0x%X)",
98 if (!resource->length) {
100 "Zero-length resource returned from RsConvertAmlToResource"));
106 resource->length));
110 *resource_ptr = ACPI_NEXT_RESOURCE(resource);
118 * PARAMETERS: resource - Pointer to the resource linked list
128 * DESCRIPTION: Takes the resource linked list and parses it, creating a
134 acpi_rs_convert_resources_to_aml(struct acpi_resource *resource,
144 /* Walk the resource descriptor list, convert each descriptor */
150 if (resource->type > ACPI_RESOURCE_TYPE_MAX) {
152 "Invalid descriptor type (0x%X) in resource list",
153 resource->type));
159 if (!resource->length) {
161 "Invalid zero length descriptor in resource list\n"));
167 if (resource->type == ACPI_RESOURCE_TYPE_SERIAL_BUS) {
168 if (resource->data.common_serial_bus.type >
176 [resource->data.common_serial_bus.type];
180 acpi_gbl_set_resource_dispatch[resource->type];
185 "Invalid/unsupported resource descriptor: Type 0x%2.2X",
186 resource->type));
190 status = acpi_rs_convert_resource_to_aml(resource,
197 "Could not convert resource (type 0x%X) to AML",
198 resource->type));
202 /* Perform final sanity check on the new AML resource descriptor */
214 if (resource->type == ACPI_RESOURCE_TYPE_END_TAG) {
223 * Aml to point to the next (output) resource descriptor
227 /* Point to the next input resource descriptor */
229 resource = ACPI_NEXT_RESOURCE(resource);
232 /* Completed buffer, but did not find an end_tag resource descriptor */