Lines Matching defs:resource

3  * Module Name: rsxface - Public interfaces to the resource manager
70 acpi_rs_match_vendor_resource(struct acpi_resource *resource, void *context);
87 * DESCRIPTION: Common parameter validation for resource interfaces
191 * the desired device. The resource data is placed in the buffer
236 * for the desired device. The resource data is placed in the
278 * the desired device. The resource data is passed to the routine
323 * the desired device. The resource data is passed to the routine
354 * PARAMETERS: Resource - Pointer to a resource
360 * DESCRIPTION: If the resource is an address16, address32, or address64,
367 acpi_resource_to_address64(struct acpi_resource *resource,
373 if (!resource || !out) {
379 switch (resource->type) {
384 &resource->data);
392 &resource->data);
400 ACPI_MEMCPY(out, &resource->data,
418 * Name - Method name for the parent resource
422 * ret_buffer - Where the vendor resource is returned
426 * DESCRIPTION: Walk a resource template for the specified evice to find a
427 * vendor-defined resource that matches the supplied UUID and
450 /* Walk the _CRS or _PRS resource list for this device */
472 * DESCRIPTION: Match a vendor resource via the ACPI 3.0 UUID
476 acpi_rs_match_vendor_resource(struct acpi_resource *resource, void *context)
485 if (resource->type != ACPI_RESOURCE_TYPE_VENDOR) {
489 vendor = &resource->data.vendor_typed;
507 status = acpi_ut_initialize_buffer(buffer, resource->length);
512 /* Found the correct resource, copy and return it */
514 ACPI_MEMCPY(buffer->pointer, resource, resource->length);
515 buffer->length = resource->length;
517 /* Found the desired descriptor, terminate resource walk */
532 * user_function - Called for each resource
537 * DESCRIPTION: Retrieves the current or possible resource list for the
539 * each resource in the list.
549 struct acpi_resource *resource;
563 /* Get the _CRS/_PRS/_AEI resource list */
571 /* Buffer now contains the resource list */
573 resource = ACPI_CAST_PTR(struct acpi_resource, buffer.pointer);
577 /* Walk the resource list until the end_tag is found (or buffer end) */
579 while (resource < resource_end) {
581 /* Sanity check the resource */
583 if (resource->type > ACPI_RESOURCE_TYPE_MAX) {
590 status = user_function(resource, context);
603 if (resource->type == ACPI_RESOURCE_TYPE_END_TAG) {
607 /* Get the next resource descriptor */
609 resource =
610 ACPI_ADD_PTR(struct acpi_resource, resource,
611 resource->length);