Lines Matching refs:resource
189 acpi_rs_get_aml_length(struct acpi_resource *resource, in acpi_rs_get_aml_length() argument
201 ACPI_ADD_PTR(struct acpi_resource, resource, resource_list_size); in acpi_rs_get_aml_length()
202 while (resource < resource_end) { in acpi_rs_get_aml_length()
206 if (resource->type > ACPI_RESOURCE_TYPE_MAX) { in acpi_rs_get_aml_length()
212 if (!resource->length) { in acpi_rs_get_aml_length()
218 total_size = acpi_gbl_aml_resource_sizes[resource->type]; in acpi_rs_get_aml_length()
224 switch (resource->type) { in acpi_rs_get_aml_length()
229 if (resource->data.irq.descriptor_length == 2) { in acpi_rs_get_aml_length()
238 if (resource->data.irq.descriptor_length == 0) { in acpi_rs_get_aml_length()
250 if (resource->data.vendor.byte_length > 7) { in acpi_rs_get_aml_length()
261 (total_size + resource->data.vendor.byte_length); in acpi_rs_get_aml_length()
282 acpi_rs_struct_option_length(&resource->data. in acpi_rs_get_aml_length()
294 acpi_rs_struct_option_length(&resource->data. in acpi_rs_get_aml_length()
306 acpi_rs_struct_option_length(&resource->data. in acpi_rs_get_aml_length()
319 ((resource->data.extended_irq.interrupt_count - in acpi_rs_get_aml_length()
322 acpi_rs_struct_option_length(&resource->data. in acpi_rs_get_aml_length()
331 (resource->data.gpio. in acpi_rs_get_aml_length()
333 resource->data.gpio. in acpi_rs_get_aml_length()
335 resource->data.gpio. in acpi_rs_get_aml_length()
343 acpi_gbl_aml_resource_serial_bus_sizes[resource-> in acpi_rs_get_aml_length()
349 resource->data. in acpi_rs_get_aml_length()
353 resource->data. in acpi_rs_get_aml_length()
370 resource = in acpi_rs_get_aml_length()
371 ACPI_ADD_PTR(struct acpi_resource, resource, in acpi_rs_get_aml_length()
372 resource->length); in acpi_rs_get_aml_length()