Lines Matching full:package

4  * Module Name: dspkginit - Completion of deferred package initialization
31 * element_count - Number of elements in the package - this is
32 * the num_elements argument to Package()
37 * DESCRIPTION: Translate a parser Op package object to the equivalent
40 * NOTE: The number of elements in the package will be always be the num_elements
41 * count, regardless of the number of elements in the package list. If
42 * num_elements is smaller, only that many package list elements are used.
43 * if num_elements is larger, the Package object is padded out with
47 * than the Package list length (for the fixed length package opcode), some
77 /* Find the parent of a possibly nested package */ in acpi_ds_build_internal_package_obj()
86 * If we are evaluating a Named package object of the form: in acpi_ds_build_internal_package_obj()
87 * Name (xxxx, Package) in acpi_ds_build_internal_package_obj()
88 * the package object already exists, otherwise it must be created. in acpi_ds_build_internal_package_obj()
98 obj_desc->package.node = parent->common.node; in acpi_ds_build_internal_package_obj()
101 if (obj_desc->package.flags & AOPOBJ_DATA_VALID) { /* Just in case */ in acpi_ds_build_internal_package_obj()
111 if (!obj_desc->package.elements) { in acpi_ds_build_internal_package_obj()
112 obj_desc->package.elements = ACPI_ALLOCATE_ZEROED(((acpi_size) in acpi_ds_build_internal_package_obj()
119 if (!obj_desc->package.elements) { in acpi_ds_build_internal_package_obj()
124 obj_desc->package.count = element_count; in acpi_ds_build_internal_package_obj()
134 * full resolution of the package elements in order to support in acpi_ds_build_internal_package_obj()
139 obj_desc->package.aml_start = walk_state->aml; in acpi_ds_build_internal_package_obj()
140 obj_desc->package.aml_length = 0; in acpi_ds_build_internal_package_obj()
143 "%s: Deferring resolution of Package elements\n", in acpi_ds_build_internal_package_obj()
148 * Initialize the elements of the package, up to the num_elements count. in acpi_ds_build_internal_package_obj()
149 * Package is automatically padded with uninitialized (NULL) elements in acpi_ds_build_internal_package_obj()
150 * if num_elements is greater than the package list length. Likewise, in acpi_ds_build_internal_package_obj()
151 * Package is truncated if num_elements is less than the list length. in acpi_ds_build_internal_package_obj()
159 * package elements is not supported by the AML interpreter, in acpi_ds_build_internal_package_obj()
164 * Name (PKG3, Package () { in acpi_ds_build_internal_package_obj()
172 "Expressions within package elements are not supported")); in acpi_ds_build_internal_package_obj()
191 package. in acpi_ds_build_internal_package_obj()
194 /* This package element is already built, just get it */ in acpi_ds_build_internal_package_obj()
196 obj_desc->package.elements[i] = in acpi_ds_build_internal_package_obj()
203 &obj_desc->package. in acpi_ds_build_internal_package_obj()
212 * Initialize this package element. This function handles the in acpi_ds_build_internal_package_obj()
213 * resolution of named references within the package. in acpi_ds_build_internal_package_obj()
218 obj_desc->package. in acpi_ds_build_internal_package_obj()
220 &obj_desc->package. in acpi_ds_build_internal_package_obj()
227 /* Existing package, get existing reference count */ in acpi_ds_build_internal_package_obj()
240 package. in acpi_ds_build_internal_package_obj()
254 * the package_list. Truncate the package to num_elements. in acpi_ds_build_internal_package_obj()
262 * ill-formed package object. in acpi_ds_build_internal_package_obj()
266 * We must delete any package elements that were created earlier in acpi_ds_build_internal_package_obj()
267 * and are not going to be used because of the package truncation. in acpi_ds_build_internal_package_obj()
283 ACPI_INFO(("Actual Package length (%u) is larger than " in acpi_ds_build_internal_package_obj()
291 * Note: this is not an error, the package is padded out in acpi_ds_build_internal_package_obj()
295 "%s: Package List length (%u) smaller than NumElements " in acpi_ds_build_internal_package_obj()
304 obj_desc->package.flags |= AOPOBJ_DATA_VALID; in acpi_ds_build_internal_package_obj()
319 * DESCRIPTION: Resolve a named reference element within a package object
361 source_object->package.flags |= AOPOBJ_DATA_VALID; in acpi_ds_init_package_element()
375 * DESCRIPTION: Resolve a package element that is a reference to a named
398 "%s: Package element is already resolved\n", in acpi_ds_resolve_package_element()
419 * firmware carries around a bunch of unused Package objects. in acpi_ds_resolve_package_element()
423 * If the AML actually tries to use such a package, the unresolved in acpi_ds_resolve_package_element()
439 "While resolving a named reference package element - %s", in acpi_ds_resolve_package_element()
452 /* Named reference not resolved, return a NULL package element */ in acpi_ds_resolve_package_element()
455 "Could not resolve named package element [%4.4s] in [%4.4s]", in acpi_ds_resolve_package_element()
479 * the package. If this is a reference to a common data type, in acpi_ds_resolve_package_element()
480 * resolve it immediately. According to the ACPI spec, package in acpi_ds_resolve_package_element()
482 * Attempt to resolve to an Integer, Buffer, String or Package. in acpi_ds_resolve_package_element()