Lines Matching refs: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.
115 * If the length of the actual resource descriptor is greater than the
118 * string length (including the null terminator) is the resource length
132 * guarantee that the entire resource descriptor is native word aligned
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,
163 /* Traverse entire list of internal resource descriptors */
166 ACPI_ADD_PTR(struct acpi_resource, resource, resource_list_size);
167 while (resource < resource_end) {
171 if (resource->type > ACPI_RESOURCE_TYPE_MAX) {
177 if (!resource->length) {
181 /* Get the base size of the (external stream) resource descriptor */
183 total_size = acpi_gbl_aml_resource_sizes[resource->type];
189 switch (resource->type) {
194 if (resource->data.irq.descriptor_length == 2) {
203 if (resource->data.irq.descriptor_length == 0) {
211 * For a Vendor Specific resource, if the Length is between 1 and 7
215 if (resource->data.vendor.byte_length > 7) {
217 /* Base size of a Large resource descriptor */
226 (total_size + resource->data.vendor.byte_length);
247 (&resource->data.
259 (&resource->data.
271 (&resource->data.
283 ((resource->data.
289 (&resource->data.
297 (resource->data.gpio.
299 resource->data.gpio.
302 resource->data.gpio.
310 (resource->data.
313 resource->data.
317 resource->data.
326 acpi_gbl_aml_resource_serial_bus_sizes[resource->
332 resource->data.
336 resource->data.
345 (resource->data.
348 resource->data.pin_config.
351 resource->data.pin_config.
359 (resource->data.pin_group.
361 resource->data.pin_group.
364 resource->data.pin_group.
372 resource->data.
376 resource->data.
380 resource->data.
389 resource->data.
393 resource->data.
397 resource->data.
414 resource =
415 ACPI_ADD_PTR(struct acpi_resource, resource,
416 resource->length);
419 /* Did not find an end_tag resource descriptor */
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 */
479 /* Get the resource length and base (minimum) AML size */
686 * Point to the next resource within the AML stream using the length
687 * contained in the resource descriptor header
692 /* Did not find an end_tag resource descriptor */