48 #define _COMPONENT ACPI_RESOURCES
50 #define INIT_RESOURCE_TYPE(i) i->resource_offset
51 #define INIT_RESOURCE_LENGTH(i) i->aml_offset
52 #define INIT_TABLE_LENGTH(i) i->value
53 #define COMPARE_OPCODE(i) i->resource_offset
54 #define COMPARE_TARGET(i) i->aml_offset
55 #define COMPARE_VALUE(i) i->value
90 if (((acpi_size) resource) & 0x3) {
95 "Misaligned resource pointer (get): %p Type 0x%2.2X Length %u",
96 resource, resource->type, resource->length));
164 resource->length = resource->length +
165 (info->
value * (item_count - 1));
170 item_count = aml_resource_length;
173 resource->length = resource->length +
174 (info->
value * (item_count - 1));
182 resource->length = resource->length +
item_count;
183 item_count = item_count / 2;
192 resource->length = resource->length +
218 resource->length = resource->length +
item_count;
226 resource->length = resource->length +
item_count;
232 item_count = (aml_resource_length +
234 - ACPI_GET16(source) - info->value;
236 resource->length = resource->length +
item_count;
242 resource->length = resource->length + info->value;
254 item_count = info->value;
328 ACPI_MEMSET(destination, info->aml_offset, info->value);
354 destination, aml,
NULL);
384 resource->length += (item_count - 1);
400 resource->length += (item_count - 1);
411 switch (info->resource_offset) {
413 if (aml_resource_length != info->value) {
427 "Invalid conversion sub-opcode"));
551 (info->
value * (item_count - 1)));
557 aml_length = (
u16) (aml_length + item_count);
566 aml_length = (
u16)(aml_length + item_count * 2);
578 (
u16)(aml_length + (info->
value * item_count));
591 aml_length = (
u16)(aml_length + item_count);
596 if (resource->
data.
gpio.vendor_length) {
607 aml_length = (
u16)(aml_length + item_count);
614 aml_length = (
u16)(aml_length + item_count);
629 item_count = info->
value;
640 source = *(
u16 **)source;
652 source = *(
u8 **)source;
662 source = *(
u8 **)source;
672 source = *(
u8 **)source;
731 if (item_count <= info->
value) {
753 "Invalid conversion sub-opcode"));
790 if (
resource->data.start_dpf.performance_robustness >= 3) {
794 if (((aml->irq.flags & 0x09) == 0x00) || ((aml->irq.flags & 0x09) == 0x09)) {
801 "Invalid interrupt polarity/trigger in resource list, 0x%X",
806 resource->data.extended_irq.interrupt_count = temp8;
814 if (
resource->data.dma.transfer == 0x03) {