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()
75 * destination is the internal resource descriptor in acpi_rs_convert_aml_to_resource()
79 ACPI_ADD_PTR(void, resource, info->resource_offset); in acpi_rs_convert_aml_to_resource()
84 * Get the resource type and the initial (minimum) length in acpi_rs_convert_aml_to_resource()
86 memset(resource, 0, INIT_RESOURCE_LENGTH(info)); in acpi_rs_convert_aml_to_resource()
87 resource->type = INIT_RESOURCE_TYPE(info); in acpi_rs_convert_aml_to_resource()
88 resource->length = INIT_RESOURCE_LENGTH(info); in acpi_rs_convert_aml_to_resource()
128 resource->length = resource->length + in acpi_rs_convert_aml_to_resource()
137 resource->length = resource->length + in acpi_rs_convert_aml_to_resource()
146 resource->length = resource->length + item_count; in acpi_rs_convert_aml_to_resource()
156 resource->length = in acpi_rs_convert_aml_to_resource()
157 resource->length + (info->value * item_count); in acpi_rs_convert_aml_to_resource()
168 /* Use vendor offset to get resource source length */ in acpi_rs_convert_aml_to_resource()
181 resource->length = resource->length + item_count; in acpi_rs_convert_aml_to_resource()
189 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()
205 resource->length = resource->length + info->value; in acpi_rs_convert_aml_to_resource()
227 target = (char *)ACPI_ADD_PTR(void, resource, in acpi_rs_convert_aml_to_resource()
228 (resource->length - in acpi_rs_convert_aml_to_resource()
243 target = (char *)ACPI_ADD_PTR(void, resource, in acpi_rs_convert_aml_to_resource()
244 (resource->length - in acpi_rs_convert_aml_to_resource()
259 target = (char *)ACPI_ADD_PTR(void, resource, in acpi_rs_convert_aml_to_resource()
260 (resource->length - in acpi_rs_convert_aml_to_resource()
275 target = (char *)ACPI_ADD_PTR(void, resource, in acpi_rs_convert_aml_to_resource()
276 (resource->length - in acpi_rs_convert_aml_to_resource()
296 target = ACPI_ADD_PTR(char, resource, info->value); in acpi_rs_convert_aml_to_resource()
304 if (!acpi_rs_get_address_common(resource, aml)) { in acpi_rs_convert_aml_to_resource()
314 resource->length += in acpi_rs_convert_aml_to_resource()
325 target = ACPI_ADD_PTR(char, resource, in acpi_rs_convert_aml_to_resource()
329 resource->length += in acpi_rs_convert_aml_to_resource()
347 resource->length += (item_count - 1); in acpi_rs_convert_aml_to_resource()
350 target = ACPI_ADD_PTR(char, resource, info->value); in acpi_rs_convert_aml_to_resource()
363 resource->length += (item_count - 1); in acpi_rs_convert_aml_to_resource()
366 target = ACPI_ADD_PTR(char, resource, info->value); in acpi_rs_convert_aml_to_resource()
410 /* Round the resource struct length up to the next boundary (32 or 64) */ in acpi_rs_convert_aml_to_resource()
412 resource->length = (u32) in acpi_rs_convert_aml_to_resource()
413 ACPI_ROUND_UP_TO_NATIVE_WORD(resource->length); in acpi_rs_convert_aml_to_resource()
422 * PARAMETERS: resource - Pointer to the resource descriptor
428 * DESCRIPTION: Convert an internal resource descriptor to the corresponding
429 * external AML resource descriptor.
434 acpi_rs_convert_resource_to_aml(struct acpi_resource *resource, in acpi_rs_convert_resource_to_aml() argument
460 * Source is the internal resource descriptor, in acpi_rs_convert_resource_to_aml()
463 source = ACPI_ADD_PTR(void, resource, info->resource_offset); in acpi_rs_convert_resource_to_aml()
551 /* Set resource source string length */ in acpi_rs_convert_resource_to_aml()
644 /* Set the Resource Type, General Flags, and Type-Specific Flags */ in acpi_rs_convert_resource_to_aml()
646 acpi_rs_set_address_common(aml, resource); in acpi_rs_convert_resource_to_aml()
678 resource, in acpi_rs_convert_resource_to_aml()
689 *ACPI_ADD_PTR(u8, resource, in acpi_rs_convert_resource_to_aml()
710 if (*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()
751 /* Previous resource validations */
757 if (resource->data.start_dpf.performance_robustness >= 3) {
768 "Invalid interrupt polarity/trigger in resource list, 0x%X",
773 resource->data.extended_irq.interrupt_count = temp8;
781 if (resource->data.dma.transfer == 0x03) {