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()
200 resource->length = resource->length + item_count; in acpi_rs_convert_aml_to_resource()
211 resource->length = resource->length + item_count; in acpi_rs_convert_aml_to_resource()
217 resource->length = resource->length + info->value; in acpi_rs_convert_aml_to_resource()
239 target = (char *)ACPI_ADD_PTR(void, resource, in acpi_rs_convert_aml_to_resource()
240 (resource->length - in acpi_rs_convert_aml_to_resource()
255 target = (char *)ACPI_ADD_PTR(void, resource, in acpi_rs_convert_aml_to_resource()
256 (resource->length - in acpi_rs_convert_aml_to_resource()
271 target = (char *)ACPI_ADD_PTR(void, resource, in acpi_rs_convert_aml_to_resource()
272 (resource->length - in acpi_rs_convert_aml_to_resource()
287 target = (char *)ACPI_ADD_PTR(void, resource, in acpi_rs_convert_aml_to_resource()
288 (resource->length - in acpi_rs_convert_aml_to_resource()
308 target = ACPI_ADD_PTR(char, resource, info->value); in acpi_rs_convert_aml_to_resource()
316 if (!acpi_rs_get_address_common(resource, aml)) { in acpi_rs_convert_aml_to_resource()
326 resource->length += in acpi_rs_convert_aml_to_resource()
337 target = ACPI_ADD_PTR(char, resource, in acpi_rs_convert_aml_to_resource()
341 resource->length += in acpi_rs_convert_aml_to_resource()
359 resource->length += (item_count - 1); in acpi_rs_convert_aml_to_resource()
362 target = ACPI_ADD_PTR(char, resource, info->value); in acpi_rs_convert_aml_to_resource()
375 resource->length += (item_count - 1); in acpi_rs_convert_aml_to_resource()
378 target = ACPI_ADD_PTR(char, resource, info->value); in acpi_rs_convert_aml_to_resource()
422 /* Round the resource struct length up to the next boundary (32 or 64) */ in acpi_rs_convert_aml_to_resource()
424 resource->length = (u32) in acpi_rs_convert_aml_to_resource()
425 ACPI_ROUND_UP_TO_NATIVE_WORD(resource->length); in acpi_rs_convert_aml_to_resource()
434 * PARAMETERS: resource - Pointer to the resource descriptor
440 * DESCRIPTION: Convert an internal resource descriptor to the corresponding
441 * external AML resource descriptor.
446 acpi_rs_convert_resource_to_aml(struct acpi_resource *resource, in acpi_rs_convert_resource_to_aml() argument
472 * Source is the internal resource descriptor, in acpi_rs_convert_resource_to_aml()
475 source = ACPI_ADD_PTR(void, resource, info->resource_offset); in acpi_rs_convert_resource_to_aml()
572 /* Set resource source string length */ in acpi_rs_convert_resource_to_aml()
665 /* Set the Resource Type, General Flags, and Type-Specific Flags */ in acpi_rs_convert_resource_to_aml()
667 acpi_rs_set_address_common(aml, resource); in acpi_rs_convert_resource_to_aml()
699 resource, in acpi_rs_convert_resource_to_aml()
710 *ACPI_ADD_PTR(u8, resource, in acpi_rs_convert_resource_to_aml()
731 if (*ACPI_ADD_PTR(u8, resource, in acpi_rs_convert_resource_to_aml()
750 if (*ACPI_ADD_PTR(u8, resource, in acpi_rs_convert_resource_to_aml()
772 /* Previous resource validations */
778 if (resource->data.start_dpf.performance_robustness >= 3) {
789 "Invalid interrupt polarity/trigger in resource list, 0x%X",
794 resource->data.extended_irq.interrupt_count = temp8;
802 if (resource->data.dma.transfer == 0x03) {