• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/acpi/acpica/

Lines Matching defs:package

68  *  3) For returned package objects, the count of package elements is
69 * validated, as well as the type of each package element. Nested
82 const union acpi_predefined_info *package,
243 * Now make some additional checks such as verifying that package
390 * (next entry contains the package info)
412 * DESCRIPTION: Check a returned package object for the correct count and
422 const union acpi_predefined_info *package;
431 /* The package info for this name is in the next table entry */
433 package = data->predefined + 1;
437 data->pathname, package->ret_info.type,
438 return_object->package.count));
442 * and trailing NULL package elements
444 acpi_ns_remove_null_elements(data, package->ret_info.type,
447 /* Extract package count and elements array */
449 elements = return_object->package.elements;
450 count = return_object->package.count;
452 /* The package must have at least one element, else invalid */
462 * Decode the type of the expected package contents
467 switch (package->ret_info.type) {
471 * The package count is fixed and there are no sub-packages
473 * If package is too small, exit.
474 * If package is larger than expected, issue warning but continue
477 package->ret_info.count1 + package->ret_info.count2;
488 /* Validate all elements of the returned package */
491 package->ret_info.
493 package->ret_info.
495 package->ret_info.
497 package->ret_info.
504 * The package count is variable, there are no sub-packages, and all
509 package->ret_info.
521 * The package count is variable, there are no sub-packages. There are
525 * Check if package is at least as large as the minimum required
527 expected_count = package->ret_info3.count;
535 if (i < package->ret_info3.count) {
537 /* These are the required package elements (0, 1, or 2) */
541 package->
549 /* These are the optional package elements */
553 package->
581 acpi_ns_check_package_list(data, package, elements, count);
595 * Count cannot be larger than the parent package length, but allow it
609 acpi_ns_check_package_list(data, package, elements, count);
623 * package instead of a Package of Packages (a common error if
630 /* Create the new outer package and populate it */
639 /* Update locals to point to the new package (of 1 element) */
642 elements = return_object->package.elements;
649 acpi_ns_check_package_list(data, package, elements, count);
658 package->ret_info.type));
667 /* Error exit for the case with an incorrect package count */
681 * Package - Pointer to package-specific info for method
682 * Elements - Element list of parent package. All elements
694 const union acpi_predefined_info *package,
713 sub_elements = sub_package->package.elements;
727 switch (package->ret_info.type) {
735 package->ret_info.count1 + package->ret_info.count2;
736 if (sub_package->package.count < expected_count) {
742 package->ret_info.
744 package->ret_info.
746 package->ret_info.
748 package->ret_info.
757 /* Each sub-package has a fixed length */
759 expected_count = package->ret_info2.count;
760 if (sub_package->package.count < expected_count) {
764 /* Check the type of each sub-package element */
770 package->
782 /* Each sub-package has a variable but minimum length */
784 expected_count = package->ret_info.count1;
785 if (sub_package->package.count < expected_count) {
789 /* Check the type of each sub-package element */
793 package->ret_info.
795 sub_package->package.
816 * Make sure package is large enough for the Count and is
820 if (sub_package->package.count < expected_count) {
823 if (sub_package->package.count <
824 package->ret_info.count1) {
825 expected_count = package->ret_info.count1;
835 expected_count = sub_package->package.count;
839 /* Check the type of each sub-package element */
844 package->ret_info.
865 /* The sub-package count was smaller than required */
869 i, sub_package->package.count, expected_count));
879 * Elements - Pointer to the package elements array
888 * DESCRIPTION: Check that all elements of a package are of the correct object
905 * Up to two groups of package elements are supported by the data
939 * package_index - Index of object within parent package (if
961 * If we get a NULL return_object here, it is a NULL package element.
962 * Since all extraneous NULL package elements were removed earlier by a