Lines Matching refs:resource
36 struct acpi_resource *resource; in acpi_rs_convert_aml_to_resources() local
47 resource = *resource_ptr; in acpi_rs_convert_aml_to_resources()
48 if (ACPI_IS_MISALIGNED(resource)) { in acpi_rs_convert_aml_to_resources()
50 "Misaligned resource pointer %p", resource)); in acpi_rs_convert_aml_to_resources()
83 acpi_rs_convert_aml_to_resource(resource, aml_resource, in acpi_rs_convert_aml_to_resources()
92 if (!resource->length) { in acpi_rs_convert_aml_to_resources()
100 resource->length)); in acpi_rs_convert_aml_to_resources()
104 *resource_ptr = ACPI_NEXT_RESOURCE(resource); in acpi_rs_convert_aml_to_resources()
128 acpi_rs_convert_resources_to_aml(struct acpi_resource *resource, in acpi_rs_convert_resources_to_aml() argument
144 if (resource->type > ACPI_RESOURCE_TYPE_MAX) { in acpi_rs_convert_resources_to_aml()
147 resource->type)); in acpi_rs_convert_resources_to_aml()
153 if (!resource->length) { in acpi_rs_convert_resources_to_aml()
161 if (resource->type == ACPI_RESOURCE_TYPE_SERIAL_BUS) { in acpi_rs_convert_resources_to_aml()
162 if (resource->data.common_serial_bus.type > in acpi_rs_convert_resources_to_aml()
170 [resource->data.common_serial_bus.type]; in acpi_rs_convert_resources_to_aml()
174 acpi_gbl_set_resource_dispatch[resource->type]; in acpi_rs_convert_resources_to_aml()
180 resource->type)); in acpi_rs_convert_resources_to_aml()
184 status = acpi_rs_convert_resource_to_aml(resource, in acpi_rs_convert_resources_to_aml()
192 resource->type)); in acpi_rs_convert_resources_to_aml()
208 if (resource->type == ACPI_RESOURCE_TYPE_END_TAG) { in acpi_rs_convert_resources_to_aml()
223 resource = ACPI_NEXT_RESOURCE(resource); in acpi_rs_convert_resources_to_aml()