Lines Matching full:resource

4  * Module Name: rsmisc - Miscellaneous resource descriptors
24 * PARAMETERS: resource - Pointer to the resource descriptor
30 * DESCRIPTION: Convert an external AML resource descriptor to the corresponding
31 * internal resource descriptor
35 acpi_rs_convert_aml_to_resource(struct acpi_resource *resource, in acpi_rs_convert_aml_to_resource() argument
54 if (((acpi_size)resource) & 0x3) { in acpi_rs_convert_aml_to_resource()
56 /* Each internal resource struct is expected to be 32-bit aligned */ in acpi_rs_convert_aml_to_resource()
59 "Misaligned resource pointer (get): %p Type 0x%2.2X Length %u", in acpi_rs_convert_aml_to_resource()
60 resource, resource->type, resource->length)); in acpi_rs_convert_aml_to_resource()
63 /* Extract the resource Length field (does not include header length) */ in acpi_rs_convert_aml_to_resource()
77 * destination is the internal resource descriptor in acpi_rs_convert_aml_to_resource()
81 ACPI_ADD_PTR(void, resource, info->resource_offset); in acpi_rs_convert_aml_to_resource()
86 * Get the resource type and the initial (minimum) length in acpi_rs_convert_aml_to_resource()
88 memset(resource, 0, INIT_RESOURCE_LENGTH(info)); in acpi_rs_convert_aml_to_resource()
89 resource->type = INIT_RESOURCE_TYPE(info); in acpi_rs_convert_aml_to_resource()
90 resource->length = INIT_RESOURCE_LENGTH(info); in acpi_rs_convert_aml_to_resource()
138 resource->length = resource->length + in acpi_rs_convert_aml_to_resource()
147 resource->length = resource->length + in acpi_rs_convert_aml_to_resource()
156 resource->length = resource->length + item_count; in acpi_rs_convert_aml_to_resource()
166 resource->length = in acpi_rs_convert_aml_to_resource()
167 resource->length + (info->value * item_count); in acpi_rs_convert_aml_to_resource()
178 /* Use vendor offset to get resource source length */ in acpi_rs_convert_aml_to_resource()
191 resource->length = resource->length + item_count; in acpi_rs_convert_aml_to_resource()
199 resource->length = resource->length + item_count; in acpi_rs_convert_aml_to_resource()
209 resource->length = resource->length + item_count; in acpi_rs_convert_aml_to_resource()
215 resource->length = resource->length + info->value; in acpi_rs_convert_aml_to_resource()
237 target = (char *)ACPI_ADD_PTR(void, resource, in acpi_rs_convert_aml_to_resource()
238 (resource->length - in acpi_rs_convert_aml_to_resource()
253 target = (char *)ACPI_ADD_PTR(void, resource, in acpi_rs_convert_aml_to_resource()
254 (resource->length - in acpi_rs_convert_aml_to_resource()
269 target = (char *)ACPI_ADD_PTR(void, resource, in acpi_rs_convert_aml_to_resource()
270 (resource->length - in acpi_rs_convert_aml_to_resource()
285 target = (char *)ACPI_ADD_PTR(void, resource, in acpi_rs_convert_aml_to_resource()
286 (resource->length - in acpi_rs_convert_aml_to_resource()
306 target = ACPI_ADD_PTR(char, resource, info->value); in acpi_rs_convert_aml_to_resource()
314 if (!acpi_rs_get_address_common(resource, aml)) { in acpi_rs_convert_aml_to_resource()
324 resource->length += in acpi_rs_convert_aml_to_resource()
335 target = ACPI_ADD_PTR(char, resource, in acpi_rs_convert_aml_to_resource()
339 resource->length += in acpi_rs_convert_aml_to_resource()
357 resource->length += (item_count - 1); in acpi_rs_convert_aml_to_resource()
360 target = ACPI_ADD_PTR(char, resource, info->value); in acpi_rs_convert_aml_to_resource()
373 resource->length += (item_count - 1); in acpi_rs_convert_aml_to_resource()
376 target = ACPI_ADD_PTR(char, resource, info->value); in acpi_rs_convert_aml_to_resource()
420 /* Round the resource struct length up to the next boundary (32 or 64) */ in acpi_rs_convert_aml_to_resource()
422 resource->length = (u32) in acpi_rs_convert_aml_to_resource()
423 ACPI_ROUND_UP_TO_NATIVE_WORD(resource->length); in acpi_rs_convert_aml_to_resource()
432 * PARAMETERS: resource - Pointer to the resource descriptor
438 * DESCRIPTION: Convert an internal resource descriptor to the corresponding
439 * external AML resource descriptor.
444 acpi_rs_convert_resource_to_aml(struct acpi_resource *resource, in acpi_rs_convert_resource_to_aml() argument
470 * Source is the internal resource descriptor, in acpi_rs_convert_resource_to_aml()
473 source = ACPI_ADD_PTR(void, resource, info->resource_offset); in acpi_rs_convert_resource_to_aml()
570 /* Set resource source string length */ in acpi_rs_convert_resource_to_aml()
663 /* Set the Resource Type, General Flags, and Type-Specific Flags */ in acpi_rs_convert_resource_to_aml()
665 acpi_rs_set_address_common(aml, resource); in acpi_rs_convert_resource_to_aml()
697 resource, in acpi_rs_convert_resource_to_aml()
708 *ACPI_ADD_PTR(u8, resource, in acpi_rs_convert_resource_to_aml()
729 if (*ACPI_ADD_PTR(u8, resource, in acpi_rs_convert_resource_to_aml()
748 if (*ACPI_ADD_PTR(u8, resource, in acpi_rs_convert_resource_to_aml()
770 /* Previous resource validations */
776 if (resource->data.start_dpf.performance_robustness >= 3) {
787 "Invalid interrupt polarity/trigger in resource list, 0x%X",
792 resource->data.extended_irq.interrupt_count = temp8;
800 if (resource->data.dma.transfer == 0x03) {