Lines Matching refs:Package
3 * Module Name: dspkginit - Completion of deferred package initialization
178 * ElementCount - Number of elements in the package - this is
179 * the NumElements argument to Package()
184 * DESCRIPTION: Translate a parser Op package object to the equivalent
187 * NOTE: The number of elements in the package will be always be the NumElements
188 * count, regardless of the number of elements in the package list. If
189 * NumElements is smaller, only that many package list elements are used.
190 * if NumElements is larger, the Package object is padded out with
194 * than the Package list length (for the fixed length package opcode), some
228 /* Find the parent of a possibly nested package */
238 * If we are evaluating a Named package object of the form:
239 * Name (xxxx, Package)
240 * the package object already exists, otherwise it must be created.
252 ObjDesc->Package.Node = Parent->Common.Node;
255 if (ObjDesc->Package.Flags & AOPOBJ_DATA_VALID) /* Just in case */
266 if (!ObjDesc->Package.Elements)
268 ObjDesc->Package.Elements = ACPI_ALLOCATE_ZEROED (
271 if (!ObjDesc->Package.Elements)
277 ObjDesc->Package.Count = ElementCount;
287 * full resolution of the package elements in order to support
293 ObjDesc->Package.AmlStart = WalkState->Aml;
294 ObjDesc->Package.AmlLength = 0;
297 "%s: Deferring resolution of Package elements\n",
302 * Initialize the elements of the package, up to the NumElements count.
303 * Package is automatically padded with uninitialized (NULL) elements
304 * if NumElements is greater than the package list length. Likewise,
305 * Package is truncated if NumElements is less than the list length.
316 * package elements is not supported by the AML interpreter,
321 * Name (PKG3, Package () {
329 "Expressions within package elements are not supported"));
345 WalkState, Arg, &ObjDesc->Package.Elements[i]);
349 /* This package element is already built, just get it */
351 ObjDesc->Package.Elements[i] =
358 WalkState, Arg, &ObjDesc->Package.Elements[i]);
367 * Initialize this package element. This function handles the
368 * resolution of named references within the package.
372 AcpiDsInitPackageElement (0, ObjDesc->Package.Elements[i],
373 NULL, &ObjDesc->Package.Elements[i]);
379 /* Existing package, get existing reference count */
389 AcpiUtAddReference ((ObjDesc->Package.Elements[i]));
403 * the PackageList. Truncate the package to NumElements.
411 * ill-formed package object.
416 * We must delete any package elements that were created earlier
417 * and are not going to be used because of the package truncation.
433 "Actual Package length (%u) is larger than "
443 * Note: this is not an error, the package is padded out
447 "%s: Package List length (%u) smaller than NumElements "
456 ObjDesc->Package.Flags |= AOPOBJ_DATA_VALID;
472 * DESCRIPTION: Resolve a named reference element within a package object
523 SourceObject->Package.Flags |= AOPOBJ_DATA_VALID;
538 * DESCRIPTION: Resolve a package element that is a reference to a named
565 "%s: Package element is already resolved\n",
587 * firmware carries around a bunch of unused Package objects.
591 * If the AML actually tries to use such a package, the unresolved
606 "While resolving a named reference package element - %s",
621 /* Named reference not resolved, return a NULL package element */
624 "Could not resolve named package element [%4.4s] in [%4.4s]",
648 * the package. If this is a reference to a common data type,
649 * resolve it immediately. According to the ACPI spec, package
651 * Attempt to resolve to an Integer, Buffer, String or Package.