Lines Matching full:resource

186  * DESCRIPTION: Count the number of bits set in a resource field. Used for
251 * PARAMETERS: ResourceLength - Length from the resource header
252 * MinimumTotalLength - Minimum length of this resource, before
276 * some Large-type resource descriptors.
280 * If the length of the actual resource descriptor is greater than the
283 * string length (including the null terminator) is the resource length
296 * guarantee that the entire resource descriptor is native word aligned
306 * PARAMETERS: Resource - Pointer to the resource linked list
307 * ResourceListSize - Size of the resource linked list
312 * DESCRIPTION: Takes a linked list of internal resource descriptors and
314 * external resource byte stream.
320 ACPI_RESOURCE *Resource,
332 /* Traverse entire list of internal resource descriptors */
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)
351 /* Get the base size of the (external stream) resource descriptor */
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:
386 * For a Vendor Specific resource, if the Length is between 1 and 7
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)
392 /* Base size of a Large resource descriptor */
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);
552 /* Did not find an EndTag resource descriptor */
562 * PARAMETERS: AmlBuffer - Pointer to the resource byte stream
568 * DESCRIPTION: Takes an external resource byte stream and calculates the size
569 * buffer needed to hold the corresponding internal resource
598 /* Walk the list of AML resource descriptors */
602 /* Validate the Resource Type and Resource Length */
616 /* Get the resource length and base (minimum) AML size */
632 * IRQ Resource:
642 * DMA Resource:
652 * Vendor Resource:
680 * Address Resource:
690 * Extended IRQ Resource:
847 * Point to the next resource within the AML stream using the length
848 * contained in the resource descriptor header
853 /* Did not find an EndTag resource descriptor */