Lines Matching defs:Resource
306 * PARAMETERS: Resource - Pointer to the resource linked list
320 ACPI_RESOURCE *Resource,
334 ResourceEnd = ACPI_ADD_PTR (ACPI_RESOURCE, Resource, ResourceListSize);
335 while (Resource < ResourceEnd)
339 if (Resource->Type > ACPI_RESOURCE_TYPE_MAX)
346 if (!Resource->Length)
353 TotalSize = AcpiGbl_AmlResourceSizes [Resource->Type];
359 switch (Resource->Type)
365 if (Resource->Data.Irq.DescriptorLength == 2)
376 if (Resource->Data.Irq.DescriptorLength == 0)
385 * Vendor Defined Resource:
387 * it will be created as a Small Resource data type, otherwise it
388 * is a Large Resource data type.
390 if (Resource->Data.Vendor.ByteLength > 7)
400 (TotalSize + Resource->Data.Vendor.ByteLength);
418 * 16-Bit Address Resource:
423 &Resource->Data.Address16.ResourceSource));
429 * 32-Bit Address Resource:
434 &Resource->Data.Address32.ResourceSource));
440 * 64-Bit Address Resource:
445 &Resource->Data.Address64.ResourceSource));
451 * Extended IRQ Resource:
456 ((Resource->Data.ExtendedIrq.InterruptCount - 1) * 4) +
461 &Resource->Data.ExtendedIrq.ResourceSource));
468 (Resource->Data.Gpio.PinTableLength * 2) +
469 Resource->Data.Gpio.ResourceSource.StringLength +
470 Resource->Data.Gpio.VendorLength);
477 (Resource->Data.PinFunction.PinTableLength * 2) +
478 Resource->Data.PinFunction.ResourceSource.StringLength +
479 Resource->Data.PinFunction.VendorLength);
486 Resource->Data.ClockInput.ResourceSource.StringLength);
494 Resource->Data.CommonSerialBus.Type];
497 Resource->Data.I2cSerialBus.ResourceSource.StringLength +
498 Resource->Data.I2cSerialBus.VendorLength);
505 (Resource->Data.PinConfig.PinTableLength * 2) +
506 Resource->Data.PinConfig.ResourceSource.StringLength +
507 Resource->Data.PinConfig.VendorLength);
514 (Resource->Data.PinGroup.PinTableLength * 2) +
515 Resource->Data.PinGroup.ResourceLabel.StringLength +
516 Resource->Data.PinGroup.VendorLength);
523 Resource->Data.PinGroupFunction.ResourceSource.StringLength +
524 Resource->Data.PinGroupFunction.ResourceSourceLabel.StringLength +
525 Resource->Data.PinGroupFunction.VendorLength);
532 Resource->Data.PinGroupConfig.ResourceSource.StringLength +
533 Resource->Data.PinGroupConfig.ResourceSourceLabel.StringLength +
534 Resource->Data.PinGroupConfig.VendorLength);
549 Resource = ACPI_ADD_PTR (ACPI_RESOURCE, Resource, Resource->Length);
602 /* Validate the Resource Type and Resource Length */
632 * IRQ Resource:
642 * DMA Resource:
652 * Vendor Resource:
680 * Address Resource:
690 * Extended IRQ Resource: