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 acpi_gbl_aml_resource_serial_bus_sizes[resource-> in acpi_rs_get_aml_length()
332 resource->data. in acpi_rs_get_aml_length()
336 resource->data. in acpi_rs_get_aml_length()
345 (resource->data. in acpi_rs_get_aml_length()
348 resource->data.pin_config. in acpi_rs_get_aml_length()
351 resource->data.pin_config. in acpi_rs_get_aml_length()
359 (resource->data.pin_group. in acpi_rs_get_aml_length()
361 resource->data.pin_group. in acpi_rs_get_aml_length()
364 resource->data.pin_group. in acpi_rs_get_aml_length()
372 resource->data. in acpi_rs_get_aml_length()
376 resource->data. in acpi_rs_get_aml_length()
380 resource->data. in acpi_rs_get_aml_length()
389 resource->data. in acpi_rs_get_aml_length()
393 resource->data. in acpi_rs_get_aml_length()
397 resource->data. in acpi_rs_get_aml_length()
414 resource = in acpi_rs_get_aml_length()
415 ACPI_ADD_PTR(struct acpi_resource, resource, in acpi_rs_get_aml_length()
416 resource->length); in acpi_rs_get_aml_length()
419 /* Did not find an end_tag resource descriptor */ in acpi_rs_get_aml_length()
428 * PARAMETERS: aml_buffer - Pointer to the resource byte stream
434 * DESCRIPTION: Takes an external resource byte stream and calculates the size
435 * buffer needed to hold the corresponding internal resource
460 /* Walk the list of AML resource descriptors */ in acpi_rs_get_list_length()
464 /* Validate the Resource Type and Resource Length */ in acpi_rs_get_list_length()
479 /* Get the resource length and base (minimum) AML size */ in acpi_rs_get_list_length()
496 * IRQ Resource: in acpi_rs_get_list_length()
505 * DMA Resource: in acpi_rs_get_list_length()
514 * Vendor Resource: in acpi_rs_get_list_length()
539 * Address Resource: in acpi_rs_get_list_length()
549 * Extended IRQ Resource: in acpi_rs_get_list_length()
686 * Point to the next resource within the AML stream using the length in acpi_rs_get_list_length()
687 * contained in the resource descriptor header in acpi_rs_get_list_length()
692 /* Did not find an end_tag resource descriptor */ in acpi_rs_get_list_length()