Lines Matching full:length
73 * Resource types, used to validate the resource length field.
74 * The length of fixed-length types must match exactly, variable
75 * lengths must meet the minimum required length, etc.
128 * aml_length - Length of the entire template
149 u32 length; in acpi_ut_walk_aml_resources() local
165 /* Walk the byte list, abort on any invalid descriptor type or length */ in acpi_ut_walk_aml_resources()
169 /* Validate the Resource Type and Resource Length */ in acpi_ut_walk_aml_resources()
176 * length may be bogus also. in acpi_ut_walk_aml_resources()
181 /* Get the length of this descriptor */ in acpi_ut_walk_aml_resources()
183 length = acpi_ut_get_descriptor_length(aml); in acpi_ut_walk_aml_resources()
189 user_function(aml, length, offset, resource_index, in acpi_ut_walk_aml_resources()
226 aml += length; in acpi_ut_walk_aml_resources()
227 offset += length; in acpi_ut_walk_aml_resources()
260 * Type and Resource Length. Returns an index into the global
317 * Validate the resource_length field. This ensures that the length in acpi_ut_validate_resource()
323 /* Validate based upon the type of resource - fixed length or variable */ in acpi_ut_validate_resource()
328 /* Fixed length resource, length must match exactly */ in acpi_ut_validate_resource()
337 /* Variable length resource, length must be at least the minimum */ in acpi_ut_validate_resource()
346 /* Small variable length resource, length can be (Min) or (Min-1) */ in acpi_ut_validate_resource()
400 "Invalid resource descriptor length: Type " in acpi_ut_validate_resource()
401 "0x%2.2X, Length 0x%4.4X, MinLength 0x%4.4X", in acpi_ut_validate_resource()
448 * RETURN: Byte Length
450 * DESCRIPTION: Get the "Resource Length" of a raw AML descriptor. By
452 * header or the length field itself.
468 /* Large Resource type -- bytes 1-2 contain the 16-bit length */ in acpi_ut_get_resource_length()
473 /* Small Resource type -- bits 2:0 of byte 0 contain the length */ in acpi_ut_get_resource_length()
488 * RETURN: Length of the AML header (depends on large/small descriptor)
490 * DESCRIPTION: Get the length of the header for this resource.
513 * RETURN: Byte length
515 * DESCRIPTION: Get the total byte length of a raw AML descriptor, including the
516 * length of the descriptor header and the length field itself.
526 * Get the Resource Length (does not include header length) and add in acpi_ut_get_descriptor_length()
527 * the header length (depends on if this is a small or large resource) in acpi_ut_get_descriptor_length()
543 * Note: allows a buffer length of zero.
554 /* Allow a buffer length of zero */ in acpi_ut_get_resource_end_tag()
556 if (!obj_desc->buffer.length) { in acpi_ut_get_resource_end_tag()
564 obj_desc->buffer.length, NULL, in acpi_ut_get_resource_end_tag()