Lines Matching defs:resource

4  * Module Name: rsxface - Public interfaces to the resource manager
35 acpi_rs_match_vendor_resource(struct acpi_resource *resource, void *context);
52 * DESCRIPTION: Common parameter validation for resource interfaces
156 * the desired device. The resource data is placed in the buffer
201 * for the desired device. The resource data is placed in the
243 * the desired device. The resource data is passed to the routine
288 * the desired device. The resource data is passed to the routine
319 * PARAMETERS: resource - Pointer to a resource
325 * DESCRIPTION: If the resource is an address16, address32, or address64,
332 acpi_resource_to_address64(struct acpi_resource *resource,
338 if (!resource || !out) {
344 switch (resource->type) {
349 &resource->data);
357 &resource->data);
365 memcpy(out, &resource->data,
384 * name - Method name for the parent resource
388 * ret_buffer - Where the vendor resource is returned
392 * DESCRIPTION: Walk a resource template for the specified device to find a
393 * vendor-defined resource that matches the supplied UUID and
416 /* Walk the _CRS or _PRS resource list for this device */
438 * DESCRIPTION: Match a vendor resource via the ACPI 3.0 UUID
442 acpi_rs_match_vendor_resource(struct acpi_resource *resource, void *context)
451 if (resource->type != ACPI_RESOURCE_TYPE_VENDOR) {
455 vendor = &resource->data.vendor_typed;
473 status = acpi_ut_initialize_buffer(buffer, resource->length);
478 /* Found the correct resource, copy and return it */
480 memcpy(buffer->pointer, resource, resource->length);
481 buffer->length = resource->length;
483 /* Found the desired descriptor, terminate resource walk */
495 * user_function - Called for each resource
500 * DESCRIPTION: Walks the input resource template. The user_function is called
501 * once for each resource in the list.
511 struct acpi_resource *resource;
522 /* Buffer contains the resource list and length */
524 resource = ACPI_CAST_PTR(struct acpi_resource, buffer->pointer);
528 /* Walk the resource list until the end_tag is found (or buffer end) */
530 while (resource < resource_end) {
532 /* Sanity check the resource type */
534 if (resource->type > ACPI_RESOURCE_TYPE_MAX) {
541 if (!resource->length) {
547 status = user_function(resource, context);
560 if (resource->type == ACPI_RESOURCE_TYPE_END_TAG) {
564 /* Get the next resource descriptor */
566 resource = ACPI_NEXT_RESOURCE(resource);
583 * user_function - Called for each resource
588 * DESCRIPTION: Retrieves the current or possible resource list for the
590 * each resource in the list.
613 /* Get the _CRS/_PRS/_AEI/_DMA resource list */
621 /* Walk the resource list and cleanup */