Lines Matching full:resource
4 * Module Name: utresrc - Resource management utilities
16 * Base sizes of the raw AML resource descriptors, indexed by resource type.
17 * Zero indicates a reserved (and therefore invalid) resource type.
71 * Resource types, used to validate the resource length field.
74 * Zero indicates a reserved (and therefore invalid) resource type.
124 * PARAMETERS: aml - Pointer to the raw AML resource template
132 * DESCRIPTION: Walk a raw AML resource list(buffer). User function called
133 * once for each resource found.
152 /* The absolute minimum resource template is one end_tag descriptor */ in acpi_ut_walk_aml_resources()
158 /* Point to the end of the resource template buffer */ in acpi_ut_walk_aml_resources()
166 /* Validate the Resource Type and Resource Length */ in acpi_ut_walk_aml_resources()
193 /* An end_tag descriptor terminates this resource template */ in acpi_ut_walk_aml_resources()
250 * aml - Pointer to the raw AML resource descriptor
251 * return_index - Where the resource index is returned. NULL
254 * RETURN: Status, and optionally the Index into the global resource tables
256 * DESCRIPTION: Validate an AML resource descriptor by checking the Resource
257 * Type and Resource Length. Returns an index into the global
258 * resource information/dispatch tables for later use.
280 * Byte 0 contains the descriptor name (Resource Type) in acpi_ut_validate_resource()
281 * Examine the large/small bit in the resource header in acpi_ut_validate_resource()
285 /* Verify the large resource type (name) against the max */ in acpi_ut_validate_resource()
292 * Large Resource Type -- bits 6:0 contain the name in acpi_ut_validate_resource()
298 * Small Resource Type -- bits 6:3 contain the name in acpi_ut_validate_resource()
306 * Check validity of the resource type, via acpi_gbl_resource_types. in acpi_ut_validate_resource()
307 * Zero indicates an invalid resource. in acpi_ut_validate_resource()
320 /* Validate based upon the type of resource - fixed length or variable */ in acpi_ut_validate_resource()
325 /* Fixed length resource, length must match exactly */ in acpi_ut_validate_resource()
334 /* Variable length resource, length must be at least the minimum */ in acpi_ut_validate_resource()
343 /* Small variable length resource, length can be (Min) or (Min-1) */ in acpi_ut_validate_resource()
368 "Invalid/unsupported SerialBus resource descriptor: BusType 0x%2.2X", in acpi_ut_validate_resource()
376 /* Optionally return the resource table index */ in acpi_ut_validate_resource()
388 "Invalid/unsupported resource descriptor: Type 0x%2.2X", in acpi_ut_validate_resource()
397 "Invalid resource descriptor length: Type " in acpi_ut_validate_resource()
409 * PARAMETERS: aml - Pointer to the raw AML resource descriptor
411 * RETURN: The Resource Type with no extraneous bits (except the
414 * DESCRIPTION: Extract the Resource Type/Name from the first byte of
415 * a resource descriptor.
424 * Byte 0 contains the descriptor name (Resource Type) in acpi_ut_get_resource_type()
425 * Examine the large/small bit in the resource header in acpi_ut_get_resource_type()
429 /* Large Resource Type -- bits 6:0 contain the name */ in acpi_ut_get_resource_type()
433 /* Small Resource Type -- bits 6:3 contain the name */ in acpi_ut_get_resource_type()
443 * PARAMETERS: aml - Pointer to the raw AML resource descriptor
447 * DESCRIPTION: Get the "Resource Length" of a raw AML descriptor. By
460 * Byte 0 contains the descriptor name (Resource Type) in acpi_ut_get_resource_length()
461 * Examine the large/small bit in the resource header in acpi_ut_get_resource_length()
465 /* Large Resource type -- bytes 1-2 contain the 16-bit length */ in acpi_ut_get_resource_length()
470 /* Small Resource type -- bits 2:0 of byte 0 contain the length */ in acpi_ut_get_resource_length()
483 * PARAMETERS: aml - Pointer to the raw AML resource descriptor
487 * DESCRIPTION: Get the length of the header for this resource.
495 /* Examine the large/small bit in the resource header */ in acpi_ut_get_resource_header_length()
508 * PARAMETERS: aml - Pointer to the raw AML resource descriptor
523 * Get the Resource Length (does not include header length) and add in acpi_ut_get_descriptor_length()
524 * the header length (depends on if this is a small or large resource) in acpi_ut_get_descriptor_length()
534 * PARAMETERS: obj_desc - The resource template buffer object
539 * DESCRIPTION: Find the end_tag resource descriptor in an AML resource template