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));
75 "Invalid/unsupported resource descriptor: Type 0x%2.2X",
80 /* Convert the AML byte stream resource to a local resource struct */
83 acpi_rs_convert_aml_to_resource(resource, aml_resource,
87 "Could not convert AML resource (Type 0x%X)",
95 resource->length));
99 *resource_ptr = ACPI_NEXT_RESOURCE(resource);
107 * PARAMETERS: resource - Pointer to the resource linked list
117 * DESCRIPTION: Takes the resource linked list and parses it, creating a
123 acpi_rs_convert_resources_to_aml(struct acpi_resource *resource,
133 /* Walk the resource descriptor list, convert each descriptor */
139 if (resource->type > ACPI_RESOURCE_TYPE_MAX) {
141 "Invalid descriptor type (0x%X) in resource list",
142 resource->type));
148 if (!resource->length) {
150 "Invalid zero length descriptor in resource list\n"));
156 if (resource->type == ACPI_RESOURCE_TYPE_SERIAL_BUS) {
157 if (resource->data.common_serial_bus.type >
165 [resource->data.common_serial_bus.type];
169 acpi_gbl_set_resource_dispatch[resource->type];
174 "Invalid/unsupported resource descriptor: Type 0x%2.2X",
175 resource->type));
179 status = acpi_rs_convert_resource_to_aml(resource,
186 "Could not convert resource (type 0x%X) to AML",
187 resource->type));
191 /* Perform final sanity check on the new AML resource descriptor */
203 if (resource->type == ACPI_RESOURCE_TYPE_END_TAG) {
212 * Aml to point to the next (output) resource descriptor
216 /* Point to the next input resource descriptor */
218 resource = ACPI_NEXT_RESOURCE(resource);
221 /* Completed buffer, but did not find an end_tag resource descriptor */