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. in AcpiRsStreamOptionLength()
280 * If the length of the actual resource descriptor is greater than the in AcpiRsStreamOptionLength()
283 * string length (including the null terminator) is the resource length in AcpiRsStreamOptionLength()
296 * guarantee that the entire resource descriptor is native word aligned in AcpiRsStreamOptionLength()
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, in AcpiRsGetAmlLength() argument
332 /* Traverse entire list of internal resource descriptors */ in AcpiRsGetAmlLength()
334 ResourceEnd = ACPI_ADD_PTR (ACPI_RESOURCE, Resource, ResourceListSize); in AcpiRsGetAmlLength()
335 while (Resource < ResourceEnd) in AcpiRsGetAmlLength()
339 if (Resource->Type > ACPI_RESOURCE_TYPE_MAX) in AcpiRsGetAmlLength()
346 if (!Resource->Length) in AcpiRsGetAmlLength()
351 /* Get the base size of the (external stream) resource descriptor */ in AcpiRsGetAmlLength()
353 TotalSize = AcpiGbl_AmlResourceSizes [Resource->Type]; in AcpiRsGetAmlLength()
359 switch (Resource->Type) in AcpiRsGetAmlLength()
365 if (Resource->Data.Irq.DescriptorLength == 2) in AcpiRsGetAmlLength()
376 if (Resource->Data.Irq.DescriptorLength == 0) in AcpiRsGetAmlLength()
385 * Vendor Defined Resource: in AcpiRsGetAmlLength()
386 * For a Vendor Specific resource, if the Length is between 1 and 7 in AcpiRsGetAmlLength()
387 * it will be created as a Small Resource data type, otherwise it in AcpiRsGetAmlLength()
388 * is a Large Resource data type. in AcpiRsGetAmlLength()
390 if (Resource->Data.Vendor.ByteLength > 7) in AcpiRsGetAmlLength()
392 /* Base size of a Large resource descriptor */ in AcpiRsGetAmlLength()
400 (TotalSize + Resource->Data.Vendor.ByteLength); in AcpiRsGetAmlLength()
418 * 16-Bit Address Resource: in AcpiRsGetAmlLength()
423 &Resource->Data.Address16.ResourceSource)); in AcpiRsGetAmlLength()
429 * 32-Bit Address Resource: in AcpiRsGetAmlLength()
434 &Resource->Data.Address32.ResourceSource)); in AcpiRsGetAmlLength()
440 * 64-Bit Address Resource: in AcpiRsGetAmlLength()
445 &Resource->Data.Address64.ResourceSource)); in AcpiRsGetAmlLength()
451 * Extended IRQ Resource: in AcpiRsGetAmlLength()
456 ((Resource->Data.ExtendedIrq.InterruptCount - 1) * 4) + in AcpiRsGetAmlLength()
461 &Resource->Data.ExtendedIrq.ResourceSource)); in AcpiRsGetAmlLength()
468 (Resource->Data.Gpio.PinTableLength * 2) + in AcpiRsGetAmlLength()
469 Resource->Data.Gpio.ResourceSource.StringLength + in AcpiRsGetAmlLength()
470 Resource->Data.Gpio.VendorLength); in AcpiRsGetAmlLength()
477 (Resource->Data.PinFunction.PinTableLength * 2) + in AcpiRsGetAmlLength()
478 Resource->Data.PinFunction.ResourceSource.StringLength + in AcpiRsGetAmlLength()
479 Resource->Data.PinFunction.VendorLength); in AcpiRsGetAmlLength()
486 Resource->Data.ClockInput.ResourceSource.StringLength); in AcpiRsGetAmlLength()
494 Resource->Data.CommonSerialBus.Type]; in AcpiRsGetAmlLength()
497 Resource->Data.I2cSerialBus.ResourceSource.StringLength + in AcpiRsGetAmlLength()
498 Resource->Data.I2cSerialBus.VendorLength); in AcpiRsGetAmlLength()
505 (Resource->Data.PinConfig.PinTableLength * 2) + in AcpiRsGetAmlLength()
506 Resource->Data.PinConfig.ResourceSource.StringLength + in AcpiRsGetAmlLength()
507 Resource->Data.PinConfig.VendorLength); in AcpiRsGetAmlLength()
514 (Resource->Data.PinGroup.PinTableLength * 2) + in AcpiRsGetAmlLength()
515 Resource->Data.PinGroup.ResourceLabel.StringLength + in AcpiRsGetAmlLength()
516 Resource->Data.PinGroup.VendorLength); in AcpiRsGetAmlLength()
523 Resource->Data.PinGroupFunction.ResourceSource.StringLength + in AcpiRsGetAmlLength()
524 Resource->Data.PinGroupFunction.ResourceSourceLabel.StringLength + in AcpiRsGetAmlLength()
525 Resource->Data.PinGroupFunction.VendorLength); in AcpiRsGetAmlLength()
532 Resource->Data.PinGroupConfig.ResourceSource.StringLength + in AcpiRsGetAmlLength()
533 Resource->Data.PinGroupConfig.ResourceSourceLabel.StringLength + in AcpiRsGetAmlLength()
534 Resource->Data.PinGroupConfig.VendorLength); in AcpiRsGetAmlLength()
549 Resource = ACPI_ADD_PTR (ACPI_RESOURCE, Resource, Resource->Length); in AcpiRsGetAmlLength()
552 /* Did not find an EndTag resource descriptor */ in AcpiRsGetAmlLength()
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 */ in AcpiRsGetListLength()
602 /* Validate the Resource Type and Resource Length */ in AcpiRsGetListLength()
616 /* Get the resource length and base (minimum) AML size */ in AcpiRsGetListLength()
632 * IRQ Resource: in AcpiRsGetListLength()
642 * DMA Resource: in AcpiRsGetListLength()
652 * Vendor Resource: in AcpiRsGetListLength()
680 * Address Resource: in AcpiRsGetListLength()
690 * Extended IRQ Resource: in AcpiRsGetListLength()
838 * Point to the next resource within the AML stream using the length in AcpiRsGetListLength()
839 * contained in the resource descriptor header in AcpiRsGetListLength()
844 /* Did not find an EndTag resource descriptor */ in AcpiRsGetListLength()