Lines Matching full:resource
33 * DESCRIPTION: Count the number of bits set in a resource field. Used for
89 * PARAMETERS: resource_length - Length from the resource header
90 * minimum_total_length - Minimum length of this resource, before
111 * some Large-type resource descriptors. in acpi_rs_stream_option_length()
115 * If the length of the actual resource descriptor is greater than the in acpi_rs_stream_option_length()
118 * string length (including the null terminator) is the resource length in acpi_rs_stream_option_length()
132 * guarantee that the entire resource descriptor is native word aligned in acpi_rs_stream_option_length()
141 * PARAMETERS: resource - Pointer to the resource linked list
142 * resource_list_size - Size of the resource linked list
147 * DESCRIPTION: Takes a linked list of internal resource descriptors and
149 * external resource byte stream.
154 acpi_rs_get_aml_length(struct acpi_resource *resource, in acpi_rs_get_aml_length() argument
163 /* Traverse entire list of internal resource descriptors */ in acpi_rs_get_aml_length()
166 ACPI_ADD_PTR(struct acpi_resource, resource, resource_list_size); in acpi_rs_get_aml_length()
167 while (resource < resource_end) { in acpi_rs_get_aml_length()
171 if (resource->type > ACPI_RESOURCE_TYPE_MAX) { in acpi_rs_get_aml_length()
177 if (!resource->length) { in acpi_rs_get_aml_length()
181 /* Get the base size of the (external stream) resource descriptor */ in acpi_rs_get_aml_length()
183 total_size = acpi_gbl_aml_resource_sizes[resource->type]; in acpi_rs_get_aml_length()
189 switch (resource->type) { in acpi_rs_get_aml_length()
194 if (resource->data.irq.descriptor_length == 2) { in acpi_rs_get_aml_length()
203 if (resource->data.irq.descriptor_length == 0) { in acpi_rs_get_aml_length()
210 * Vendor Defined Resource: in acpi_rs_get_aml_length()
211 * For a Vendor Specific resource, if the Length is between 1 and 7 in acpi_rs_get_aml_length()
212 * it will be created as a Small Resource data type, otherwise it in acpi_rs_get_aml_length()
213 * is a Large Resource data type. in acpi_rs_get_aml_length()
215 if (resource->data.vendor.byte_length > 7) { in acpi_rs_get_aml_length()
217 /* Base size of a Large resource descriptor */ in acpi_rs_get_aml_length()
226 (total_size + resource->data.vendor.byte_length); in acpi_rs_get_aml_length()
242 * 16-Bit Address Resource: in acpi_rs_get_aml_length()
247 (&resource->data. in acpi_rs_get_aml_length()
254 * 32-Bit Address Resource: in acpi_rs_get_aml_length()
259 (&resource->data. in acpi_rs_get_aml_length()
266 * 64-Bit Address Resource: in acpi_rs_get_aml_length()
271 (&resource->data. in acpi_rs_get_aml_length()
278 * Extended IRQ Resource: in acpi_rs_get_aml_length()
283 ((resource->data. in acpi_rs_get_aml_length()
289 (&resource->data. in acpi_rs_get_aml_length()
297 (resource->data.gpio. in acpi_rs_get_aml_length()
299 resource->data.gpio. in acpi_rs_get_aml_length()
302 resource->data.gpio. in acpi_rs_get_aml_length()
310 (resource->data. in acpi_rs_get_aml_length()
313 resource->data. in acpi_rs_get_aml_length()
317 resource->data. in acpi_rs_get_aml_length()
326 resource->data. in acpi_rs_get_aml_length()
336 acpi_gbl_aml_resource_serial_bus_sizes[resource-> in acpi_rs_get_aml_length()
342 resource->data. in acpi_rs_get_aml_length()
346 resource->data. in acpi_rs_get_aml_length()
355 (resource->data. in acpi_rs_get_aml_length()
358 resource->data.pin_config. in acpi_rs_get_aml_length()
361 resource->data.pin_config. in acpi_rs_get_aml_length()
369 (resource->data.pin_group. in acpi_rs_get_aml_length()
371 resource->data.pin_group. in acpi_rs_get_aml_length()
374 resource->data.pin_group. in acpi_rs_get_aml_length()
382 resource->data. in acpi_rs_get_aml_length()
386 resource->data. in acpi_rs_get_aml_length()
390 resource->data. in acpi_rs_get_aml_length()
399 resource->data. in acpi_rs_get_aml_length()
403 resource->data. in acpi_rs_get_aml_length()
407 resource->data. in acpi_rs_get_aml_length()
424 resource = in acpi_rs_get_aml_length()
425 ACPI_ADD_PTR(struct acpi_resource, resource, in acpi_rs_get_aml_length()
426 resource->length); in acpi_rs_get_aml_length()
429 /* Did not find an end_tag resource descriptor */ in acpi_rs_get_aml_length()
438 * PARAMETERS: aml_buffer - Pointer to the resource byte stream
444 * DESCRIPTION: Takes an external resource byte stream and calculates the size
445 * buffer needed to hold the corresponding internal resource
470 /* Walk the list of AML resource descriptors */ in acpi_rs_get_list_length()
474 /* Validate the Resource Type and Resource Length */ in acpi_rs_get_list_length()
489 /* Get the resource length and base (minimum) AML size */ in acpi_rs_get_list_length()
506 * IRQ Resource: in acpi_rs_get_list_length()
515 * DMA Resource: in acpi_rs_get_list_length()
524 * Vendor Resource: in acpi_rs_get_list_length()
549 * Address Resource: in acpi_rs_get_list_length()
559 * Extended IRQ Resource: in acpi_rs_get_list_length()
717 * Point to the next resource within the AML stream using the length in acpi_rs_get_list_length()
718 * contained in the resource descriptor header in acpi_rs_get_list_length()
723 /* Did not find an end_tag resource descriptor */ in acpi_rs_get_list_length()