Lines Matching refs:package

4  * Module Name: nsprepkg - Validation of package objects for predefined names
21 const union acpi_predefined_info *package,
45 * DESCRIPTION: Check a returned package object for the correct count and
55 const union acpi_predefined_info *package;
64 /* The package info for this name is in the next table entry */
66 package = info->predefined + 1;
70 info->full_pathname, package->ret_info.type,
71 return_object->package.count));
75 * and trailing NULL package elements
77 acpi_ns_remove_null_elements(info, package->ret_info.type,
80 /* Extract package count and elements array */
82 elements = return_object->package.elements;
83 count = return_object->package.count;
87 * is the variable-length package (ACPI_PTYPE1_VAR).
90 if (package->ret_info.type == ACPI_PTYPE1_VAR) {
102 * Decode the type of the expected package contents
107 switch (package->ret_info.type) {
115 * The package count is fixed and there are no subpackages
117 * If package is too small, exit.
118 * If package is larger than expected, issue warning but continue
121 package->ret_info.count1 + package->ret_info.count2;
132 /* Validate all elements of the returned package */
135 package->ret_info.
137 package->ret_info.
139 package->ret_info.
141 package->ret_info.
147 * The package count is variable, there are no subpackages, and all
152 package->ret_info.
164 * The package count is variable, there are no subpackages. There are
168 * Check if package is at least as large as the minimum required
170 expected_count = package->ret_info3.count;
178 if (i < package->ret_info3.count) {
180 /* These are the required package elements (0, 1, or 2) */
184 package->
192 /* These are the optional package elements */
196 package->
226 acpi_ns_check_package_list(info, package, elements, count);
241 * Count cannot be larger than the parent package length, but allow it
255 acpi_ns_check_package_list(info, package, elements, count);
269 * package instead of a Package of Packages (a common error if
276 /* Create the new outer package and populate it */
285 /* Update locals to point to the new package (of 1 element) */
288 elements = return_object->package.elements;
295 acpi_ns_check_package_list(info, package, elements, count);
307 /* The package must contain pairs of (UUID + type) */
316 package->ret_info.
333 package->ret_info.
351 package->ret_info.type));
360 /* Error exit for the case with an incorrect package count */
374 * package - Pointer to package-specific info for method
375 * elements - Element list of parent package. All elements
387 const union acpi_predefined_info *package,
406 sub_elements = sub_package->package.elements;
420 switch (package->ret_info.type) {
428 package->ret_info.count1 + package->ret_info.count2;
429 if (sub_package->package.count < expected_count) {
435 package->ret_info.
437 package->ret_info.
439 package->ret_info.
441 package->ret_info.
454 package->ret_info.count1 + package->ret_info.count2;
455 if (sub_package->package.count < expected_count) {
461 package->ret_info.
463 package->ret_info.
465 package->ret_info.
467 sub_package->package.
469 package->ret_info.
486 expected_count = package->ret_info2.count;
487 if (sub_package->package.count < expected_count) {
497 package->
511 expected_count = package->ret_info.count1;
512 if (sub_package->package.count < expected_count) {
520 package->ret_info.
522 sub_package->package.
542 * Make sure package is large enough for the Count and is
546 if (sub_package->package.count < expected_count) {
550 if (sub_package->package.count <
551 package->ret_info.count1) {
552 expected_count = package->ret_info.count1;
563 expected_count = sub_package->package.count;
572 package->ret_info.
584 package->ret_info.type));
599 i, sub_package->package.count, expected_count));
609 * elements - Pointer to the package elements array
610 * count - Element count for the package
614 * DESCRIPTION: Check a returned package object for the correct count and
661 /* Validate all elements of the returned package */
686 * elements - Pointer to the package elements array
695 * DESCRIPTION: Check that all elements of a package are of the correct object
714 * Up to two groups of package elements are supported by the data