Lines Matching defs:Resource
3 * Module Name: rsxface - Public interfaces to the resource manager
184 ACPI_RESOURCE *Resource,
204 * DESCRIPTION: Common parameter validation for resource interfaces
321 * the desired device. The resource data is placed in the buffer
372 * for the desired device. The resource data is placed in the
420 * the desired device. The resource data is passed to the routine
474 * the desired device. The resource data is passed to the routine
511 * PARAMETERS: Resource - Pointer to a resource
517 * DESCRIPTION: If the resource is an address16, address32, or address64,
526 ACPI_RESOURCE *Resource,
533 if (!Resource || !Out)
540 switch (Resource->Type)
545 ACPI_RESOURCE_ADDRESS16, &Resource->Data);
552 ACPI_RESOURCE_ADDRESS32, &Resource->Data);
560 memcpy (Out, &Resource->Data, sizeof (ACPI_RESOURCE_ADDRESS64));
579 * Name - Method name for the parent resource
583 * RetBuffer - Where the vendor resource is returned
587 * DESCRIPTION: Walk a resource template for the specified device to find a
588 * vendor-defined resource that matches the supplied UUID and
615 /* Walk the _CRS or _PRS resource list for this device */
638 * DESCRIPTION: Match a vendor resource via the ACPI 3.0 UUID
644 ACPI_RESOURCE *Resource,
655 if (Resource->Type != ACPI_RESOURCE_TYPE_VENDOR)
660 Vendor = &Resource->Data.VendorTyped;
679 Status = AcpiUtInitializeBuffer (Buffer, Resource->Length);
685 /* Found the correct resource, copy and return it */
687 memcpy (Buffer->Pointer, Resource, Resource->Length);
688 Buffer->Length = Resource->Length;
690 /* Found the desired descriptor, terminate resource walk */
702 * various Get*Resource functions
703 * UserFunction - Called for each resource
708 * DESCRIPTION: Walks the input resource template. The UserFunction is called
709 * once for each resource in the list.
720 ACPI_RESOURCE *Resource;
734 /* Buffer contains the resource list and length */
736 Resource = ACPI_CAST_PTR (ACPI_RESOURCE, Buffer->Pointer);
740 /* Walk the resource list until the EndTag is found (or buffer end) */
742 while (Resource < ResourceEnd)
744 /* Sanity check the resource type */
746 if (Resource->Type > ACPI_RESOURCE_TYPE_MAX)
754 if (!Resource->Length)
761 Status = UserFunction (Resource, Context);
775 if (Resource->Type == ACPI_RESOURCE_TYPE_END_TAG)
780 /* Get the next resource descriptor */
782 Resource = ACPI_NEXT_RESOURCE (Resource);
800 * UserFunction - Called for each resource
805 * DESCRIPTION: Retrieves the current or possible resource list for the
807 * each resource in the list.
836 /* Get the _CRS/_PRS/_AEI/_DMA resource list */
845 /* Walk the resource list and cleanup */