/linux-4.4.14/drivers/acpi/acpica/ |
H A D | nsprepkg.c | 3 * Module Name: nsprepkg - Validation of package objects for predefined names 55 const union acpi_predefined_info *package, 75 * DESCRIPTION: Check a returned package object for the correct count and 85 const union acpi_predefined_info *package; acpi_ns_check_package() local 94 /* The package info for this name is in the next table entry */ acpi_ns_check_package() 96 package = info->predefined + 1; acpi_ns_check_package() 100 info->full_pathname, package->ret_info.type, acpi_ns_check_package() 101 return_object->package.count)); acpi_ns_check_package() 105 * and trailing NULL package elements acpi_ns_check_package() 107 acpi_ns_remove_null_elements(info, package->ret_info.type, acpi_ns_check_package() 110 /* Extract package count and elements array */ acpi_ns_check_package() 112 elements = return_object->package.elements; acpi_ns_check_package() 113 count = return_object->package.count; acpi_ns_check_package() 117 * is the variable-length package (ACPI_PTYPE1_VAR). acpi_ns_check_package() 120 if (package->ret_info.type == ACPI_PTYPE1_VAR) { acpi_ns_check_package() 132 * Decode the type of the expected package contents acpi_ns_check_package() 137 switch (package->ret_info.type) { acpi_ns_check_package() 140 * The package count is fixed and there are no subpackages acpi_ns_check_package() 142 * If package is too small, exit. acpi_ns_check_package() 143 * If package is larger than expected, issue warning but continue acpi_ns_check_package() 146 package->ret_info.count1 + package->ret_info.count2; acpi_ns_check_package() 157 /* Validate all elements of the returned package */ acpi_ns_check_package() 160 package->ret_info. acpi_ns_check_package() 162 package->ret_info. acpi_ns_check_package() 164 package->ret_info. acpi_ns_check_package() 166 package->ret_info. acpi_ns_check_package() 172 * The package count is variable, there are no subpackages, and all acpi_ns_check_package() 177 package->ret_info. acpi_ns_check_package() 188 * The package count is variable, there are no subpackages. There are acpi_ns_check_package() 192 * Check if package is at least as large as the minimum required acpi_ns_check_package() 194 expected_count = package->ret_info3.count; acpi_ns_check_package() 202 if (i < package->ret_info3.count) { acpi_ns_check_package() 204 /* These are the required package elements (0, 1, or 2) */ acpi_ns_check_package() 208 package-> acpi_ns_check_package() 216 /* These are the optional package elements */ acpi_ns_check_package() 220 package-> acpi_ns_check_package() 248 acpi_ns_check_package_list(info, package, elements, count); acpi_ns_check_package() 262 * Count cannot be larger than the parent package length, but allow it acpi_ns_check_package() 276 acpi_ns_check_package_list(info, package, elements, count); acpi_ns_check_package() 290 * package instead of a Package of Packages (a common error if acpi_ns_check_package() 297 /* Create the new outer package and populate it */ acpi_ns_check_package() 306 /* Update locals to point to the new package (of 1 element) */ acpi_ns_check_package() 309 elements = return_object->package.elements; acpi_ns_check_package() 316 acpi_ns_check_package_list(info, package, elements, count); acpi_ns_check_package() 328 /* The package must contain pairs of (UUID + type) */ acpi_ns_check_package() 337 package->ret_info. acpi_ns_check_package() 354 package->ret_info. acpi_ns_check_package() 372 package->ret_info.type)); acpi_ns_check_package() 381 /* Error exit for the case with an incorrect package count */ acpi_ns_check_package() 395 * package - Pointer to package-specific info for method 396 * elements - Element list of parent package. All elements 408 const union acpi_predefined_info *package, acpi_ns_check_package_list() 427 sub_elements = sub_package->package.elements; acpi_ns_check_package_list() 441 switch (package->ret_info.type) { acpi_ns_check_package_list() 449 package->ret_info.count1 + package->ret_info.count2; acpi_ns_check_package_list() 450 if (sub_package->package.count < expected_count) { acpi_ns_check_package_list() 456 package->ret_info. acpi_ns_check_package_list() 458 package->ret_info. acpi_ns_check_package_list() 460 package->ret_info. acpi_ns_check_package_list() 462 package->ret_info. acpi_ns_check_package_list() 475 package->ret_info.count1 + package->ret_info.count2; acpi_ns_check_package_list() 476 if (sub_package->package.count < expected_count) { acpi_ns_check_package_list() 482 package->ret_info. acpi_ns_check_package_list() 484 package->ret_info. acpi_ns_check_package_list() 486 package->ret_info. acpi_ns_check_package_list() 488 sub_package->package. acpi_ns_check_package_list() 490 package->ret_info. acpi_ns_check_package_list() 507 expected_count = package->ret_info2.count; acpi_ns_check_package_list() 508 if (sub_package->package.count < expected_count) { acpi_ns_check_package_list() 518 package-> acpi_ns_check_package_list() 532 expected_count = package->ret_info.count1; acpi_ns_check_package_list() 533 if (sub_package->package.count < expected_count) { acpi_ns_check_package_list() 541 package->ret_info. acpi_ns_check_package_list() 543 sub_package->package. acpi_ns_check_package_list() 563 * Make sure package is large enough for the Count and is acpi_ns_check_package_list() 567 if (sub_package->package.count < expected_count) { acpi_ns_check_package_list() 570 if (sub_package->package.count < acpi_ns_check_package_list() 571 package->ret_info.count1) { acpi_ns_check_package_list() 572 expected_count = package->ret_info.count1; acpi_ns_check_package_list() 582 expected_count = sub_package->package.count; acpi_ns_check_package_list() 591 package->ret_info. acpi_ns_check_package_list() 616 i, sub_package->package.count, expected_count)); acpi_ns_check_package_list() 626 * elements - Pointer to the package elements array 635 * DESCRIPTION: Check that all elements of a package are of the correct object 652 * Up to two groups of package elements are supported by the data acpi_ns_check_package_elements() 407 acpi_ns_check_package_list(struct acpi_evaluate_info *info, const union acpi_predefined_info *package, union acpi_operand_object **elements, u32 count) acpi_ns_check_package_list() argument
|
H A D | utcopy.c | 124 * package element) acpi_ut_copy_isimple_to_esimple() 241 * DESCRIPTION: Copy one package element to another package element 261 &((union acpi_object *)(state->pkg.dest_object))->package. acpi_ut_copy_ielement_to_eelement() 280 * Build the package object acpi_ut_copy_ielement_to_eelement() 283 target_object->package.count = source_object->package.count; acpi_ut_copy_ielement_to_eelement() 284 target_object->package.elements = acpi_ut_copy_ielement_to_eelement() 288 * Pass the new package object back to the package walk routine acpi_ut_copy_ielement_to_eelement() 298 package.count * acpi_ut_copy_ielement_to_eelement() 323 * DESCRIPTION: This function is called to place a package object in a user 324 * buffer. A package object by definition contains other objects. 343 * First package at head of the buffer acpi_ut_copy_ipackage_to_epackage() 348 * Free space begins right after the first package acpi_ut_copy_ipackage_to_epackage() 357 external_object->package.count = internal_object->package.count; acpi_ut_copy_ipackage_to_epackage() 358 external_object->package.elements = ACPI_CAST_PTR(union acpi_object, acpi_ut_copy_ipackage_to_epackage() 365 info.length += (acpi_size) external_object->package.count * acpi_ut_copy_ipackage_to_epackage() 367 info.free_space += external_object->package.count * acpi_ut_copy_ipackage_to_epackage() 569 * DESCRIPTION: Copy an external package object to an internal package. 585 /* Create the package object */ acpi_ut_copy_epackage_to_ipackage() 588 acpi_ut_create_package_object(external_object->package.count); acpi_ut_copy_epackage_to_ipackage() 593 package_elements = package_object->package.elements; acpi_ut_copy_epackage_to_ipackage() 599 for (i = 0; i < external_object->package.count; i++) { acpi_ut_copy_epackage_to_ipackage() 601 acpi_ut_copy_eobject_to_iobject(&external_object->package. acpi_ut_copy_epackage_to_ipackage() 606 /* Truncate package and delete it */ acpi_ut_copy_epackage_to_ipackage() 608 package_object->package.count = i; acpi_ut_copy_epackage_to_ipackage() 615 /* Mark package data valid */ acpi_ut_copy_epackage_to_ipackage() 617 package_object->package.flags |= AOPOBJ_DATA_VALID; acpi_ut_copy_epackage_to_ipackage() 821 * DESCRIPTION: Copy one package element to another package element 840 &state->pkg.dest_object->package.elements[this_index]; acpi_ut_copy_ielement_to_ielement() 845 /* A null source object indicates a (legal) null package element */ acpi_ut_copy_ielement_to_ielement() 875 * This object is a package - go down another nesting level acpi_ut_copy_ielement_to_ielement() 876 * Create and build the package object acpi_ut_copy_ielement_to_ielement() 879 acpi_ut_create_package_object(source_object->package.count); acpi_ut_copy_ielement_to_ielement() 886 /* Pass the new package object back to the package walk routine */ acpi_ut_copy_ielement_to_ielement() 890 /* Store the object pointer in the parent package object */ acpi_ut_copy_ielement_to_ielement() 911 * PARAMETERS: source_obj - Pointer to the source package object 917 * DESCRIPTION: This function is called to copy an internal package object 918 * into another internal package object. 933 dest_obj->package.count = source_obj->package.count; acpi_ut_copy_ipackage_to_ipackage() 936 * Create the object array and walk the source package tree acpi_ut_copy_ipackage_to_ipackage() 938 dest_obj->package.elements = ACPI_ALLOCATE_ZEROED(((acpi_size) acpi_ut_copy_ipackage_to_ipackage() 939 source_obj->package. acpi_ut_copy_ipackage_to_ipackage() 942 if (!dest_obj->package.elements) { acpi_ut_copy_ipackage_to_ipackage() 948 * Copy the package element-by-element by walking the package "tree". acpi_ut_copy_ipackage_to_ipackage() 956 /* On failure, delete the destination package object */ acpi_ut_copy_ipackage_to_ipackage()
|
H A D | nsrepair.c | 80 * An incorrect standalone object is wrapped with required outer package 83 * Required package elements that are NULL replaced by Integer/String/Buffer 135 * package_index - Index of object within parent package (if 218 "Found unexpected NULL package element")); acpi_ns_simple_repair() 259 * A package is expected. We will wrap the existing object with a acpi_ns_simple_repair() 260 * new package object. It is often the case that if a variable-length acpi_ns_simple_repair() 261 * package is required, but there is only a single object needed, the acpi_ns_simple_repair() 263 * object. Note: after the wrapping, the package will be validated acpi_ns_simple_repair() 271 * incremented for being inserted into the new package. acpi_ns_simple_repair() 289 * The original object is a package element. We need to acpi_ns_simple_repair() 291 * for removing it from the package. acpi_ns_simple_repair() 294 * package object as part of the repair, we don't need to acpi_ns_simple_repair() 334 * package_index - Index of object within parent package (if 381 * package_index - Index of object within parent package (if 412 * predefined names that return a fixed-length package and each element acpi_ns_repair_null_element() 414 * elements are allowed, especially at the end of the package. acpi_ns_repair_null_element() 447 "%s: Converted NULL package element to expected %s at index %u\n", acpi_ns_repair_null_element() 467 * DESCRIPTION: Remove all NULL package elements from packages that contain 487 * We can safely remove all NULL elements from these package types: acpi_ns_remove_null_elements() 509 count = obj_desc->package.count; acpi_ns_remove_null_elements() 512 source = obj_desc->package.elements; acpi_ns_remove_null_elements() 515 /* Examine all elements of the package object, remove nulls */ acpi_ns_remove_null_elements() 527 /* Update parent package if any null elements were removed */ acpi_ns_remove_null_elements() 534 /* NULL terminate list and update the package count */ acpi_ns_remove_null_elements() 537 obj_desc->package.count = new_count; acpi_ns_remove_null_elements() 547 * obj_desc_ptr - The new package object is returned here 575 * Create the new outer package and populate it. The new package will acpi_ns_wrap_with_package() 583 pkg_obj_desc->package.elements[0] = original_object; acpi_ns_wrap_with_package()
|
H A D | dsobject.c | 73 * Simple objects are any objects other than a package object! 109 /* Check if we are resolving a named reference within a package */ acpi_ds_build_internal_object() 120 * of a package - ignore if slack enabled. Some ASL code acpi_ds_build_internal_object() 128 "Ignoring unresolved reference in package [%4.4s]\n", acpi_ds_build_internal_object() 143 /* Special object resolution for elements of a package */ acpi_ds_build_internal_object() 150 * the package. If this is a reference to a common data type, acpi_ds_build_internal_object() 151 * resolve it immediately. According to the ACPI spec, package acpi_ds_build_internal_object() 259 * DESCRIPTION: Translate a parser Op package object to the equivalent 358 * element_count - Number of elements in the package - this is 364 * DESCRIPTION: Translate a parser Op package object to the equivalent 367 * NOTE: The number of elements in the package will be always be the num_elements 368 * count, regardless of the number of elements in the package list. If 369 * num_elements is smaller, only that many package list elements are used. 374 * than the Package list length (for the fixed length package opcode), some 397 /* Find the parent of a possibly nested package */ acpi_ds_build_internal_package_obj() 406 * If we are evaluating a Named package object "Name (xxxx, Package)", acpi_ds_build_internal_package_obj() 407 * the package object already exists, otherwise it must be created. acpi_ds_build_internal_package_obj() 417 obj_desc->package.node = parent->common.node; acpi_ds_build_internal_package_obj() 425 obj_desc->package.elements = ACPI_ALLOCATE_ZEROED(((acpi_size) acpi_ds_build_internal_package_obj() 429 if (!obj_desc->package.elements) { acpi_ds_build_internal_package_obj() 434 obj_desc->package.count = element_count; acpi_ds_build_internal_package_obj() 437 * Initialize the elements of the package, up to the num_elements count. acpi_ds_build_internal_package_obj() 439 * if num_elements is greater than the package list length. Likewise, acpi_ds_build_internal_package_obj() 456 package. acpi_ds_build_internal_package_obj() 459 /* This package element is already built, just get it */ acpi_ds_build_internal_package_obj() 461 obj_desc->package.elements[i] = acpi_ds_build_internal_package_obj() 468 package. acpi_ds_build_internal_package_obj() 474 /* Existing package, get existing reference count */ acpi_ds_build_internal_package_obj() 485 package. acpi_ds_build_internal_package_obj() 499 * package_list. Truncate the package to num_elements. acpi_ds_build_internal_package_obj() 506 * of ill-formed package object. acpi_ds_build_internal_package_obj() 510 * We must delete any package elements that were created earlier acpi_ds_build_internal_package_obj() 511 * and are not going to be used because of the package truncation. acpi_ds_build_internal_package_obj() 533 * Note: this is not an error, the package is padded out with NULLs. acpi_ds_build_internal_package_obj() 540 obj_desc->package.flags |= AOPOBJ_DATA_VALID; acpi_ds_build_internal_package_obj() 665 obj_desc->package.node = acpi_ds_init_object_from_op() 668 obj_desc->package.aml_start = op->named.data; acpi_ds_init_object_from_op() 669 obj_desc->package.aml_length = op->named.length; acpi_ds_init_object_from_op()
|
H A D | utmisc.c | 220 * PARAMETERS: source_object - The package to walk 221 * target_object - Target object (if package is being copied) 222 * walk_callback - Called once for each package element 227 * DESCRIPTION: Walk through a package 251 /* Get one element of the package */ acpi_ut_walk_package_tree() 255 state->pkg.source_object->package.elements[this_index]; acpi_ut_walk_package_tree() 259 * 1) An uninitialized package element. It is completely acpi_ut_walk_package_tree() 260 * legal to declare a package and leave it uninitialized acpi_ut_walk_package_tree() 262 * 3) Any type other than a package. Packages are handled in else acpi_ut_walk_package_tree() 278 state->pkg.source_object->package.count) { acpi_ut_walk_package_tree() 281 * that we have just completed a package. That package may acpi_ut_walk_package_tree() 284 * Delete this state and pop the previous state (package). acpi_ut_walk_package_tree() 294 * package just add the length of the package objects acpi_ut_walk_package_tree() 302 * completed package object. acpi_ut_walk_package_tree() 307 /* This is a subobject of type package */ acpi_ut_walk_package_tree() 318 * The callback above returned a new target package object. acpi_ut_walk_package_tree()
|
H A D | exoparg6.c | 85 * package_obj - Object from the target package 112 * Below, P[i] refers to the package element, M refers to the Match object. acpi_ex_do_match() 237 /* Get the package start_index, validate against the package length */ acpi_ex_opcode_6A_0T_1R() 240 if (index >= operand[0]->package.count) { acpi_ex_opcode_6A_0T_1R() 242 "Index (0x%8.8X%8.8X) beyond package end (0x%X)", acpi_ex_opcode_6A_0T_1R() 244 operand[0]->package.count)); acpi_ex_opcode_6A_0T_1R() 270 for (; index < operand[0]->package.count; index++) { acpi_ex_opcode_6A_0T_1R() 272 /* Get the current package element */ acpi_ex_opcode_6A_0T_1R() 274 this_element = operand[0]->package.elements[index]; acpi_ex_opcode_6A_0T_1R()
|
H A D | nsrepair2.c | 392 /* Examine each element of the _CID package */ acpi_ns_repair_CID() 394 element_ptr = return_object->package.elements; acpi_ns_repair_CID() 395 for (i = 0; i < return_object->package.count; i++) { acpi_ns_repair_CID() 457 outer_element_count = return_object->package.count - 1; acpi_ns_repair_CST() 460 outer_elements = &return_object->package.elements[i + 1]; acpi_ns_repair_CST() 463 if ((*outer_elements)->package.count == 0) { acpi_ns_repair_CST() 472 obj_desc = (*outer_elements)->package.elements[1]; /* Index1 = Type */ acpi_ns_repair_CST() 490 /* Update top-level package count, Type "Integer" checked elsewhere */ acpi_ns_repair_CST() 492 obj_desc = return_object->package.elements[0]; acpi_ns_repair_CST() 618 /* Each element in the _PRT package is a subpackage */ acpi_ns_repair_PRT() 620 top_object_list = package_object->package.elements; acpi_ns_repair_PRT() 621 element_count = package_object->package.count; acpi_ns_repair_PRT() 627 sub_object_list = sub_package->package.elements; acpi_ns_repair_PRT() 631 if (sub_package->package.count < 4) { acpi_ns_repair_PRT() 706 outer_elements = return_object->package.elements; acpi_ns_repair_PSS() 707 outer_element_count = return_object->package.count; acpi_ns_repair_PSS() 710 elements = (*outer_elements)->package.elements; acpi_ns_repair_PSS() 751 * We can only sort the _TSS return package if there is no _PSS in the acpi_ns_repair_TSS() 755 * In this case, it is best to just return the _TSS package as-is. acpi_ns_repair_TSS() 786 * DESCRIPTION: Check if the package list is valid and sorted correctly by the 808 /* The top-level object must be a package */ acpi_ns_check_sorted_list() 819 outer_element_count = return_object->package.count; acpi_ns_check_sorted_list() 824 outer_elements = &return_object->package.elements[start_index]; acpi_ns_check_sorted_list() 836 /* Each element of the top-level package must also be a package */ acpi_ns_check_sorted_list() 844 if ((*outer_elements)->package.count < expected_count) { acpi_ns_check_sorted_list() 848 elements = (*outer_elements)->package.elements; acpi_ns_check_sorted_list() 863 acpi_ns_sort_list(&return_object->package. acpi_ns_check_sorted_list() 889 * index - Sort by which package element 894 * DESCRIPTION: Sort the objects that are in a package element list. 896 * NOTE: Assumes that all NULL elements have been removed from the package, 915 obj_desc1 = elements[j - 1]->package.elements[index]; acpi_ns_sort_list() 916 obj_desc2 = elements[j]->package.elements[index]; acpi_ns_sort_list() 941 * DESCRIPTION: Remove the requested element of a package and delete it. 956 count = obj_desc->package.count; acpi_ns_remove_element() 959 source = obj_desc->package.elements; acpi_ns_remove_element() 962 /* Examine all elements of the package object, remove matched index */ acpi_ns_remove_element() 975 /* NULL terminate list and update the package count */ acpi_ns_remove_element() 978 obj_desc->package.count = new_count; acpi_ns_remove_element()
|
H A D | utobject.c | 154 * PARAMETERS: count - Number of package elements 158 * DESCRIPTION: Create a fully initialized package object 187 package_desc->package.count = count; acpi_ut_create_package_object() 188 package_desc->package.elements = package_elements; acpi_ut_create_package_object() 467 /* A NULL object is allowed, can be a legal uninitialized package element */ acpi_ut_get_simple_object_size() 575 * DESCRIPTION: Get the length of one package element. 592 * here also) and sum it into the running package length acpi_ut_get_element_length() 632 * contain a package object for return to an external user. 634 * This is moderately complex since a package contains other 659 * We have handled all of the objects in all levels of the package. acpi_ut_get_package_object_size() 660 * just add the length of the package objects themselves. acpi_ut_get_package_object_size() 666 /* Return the total package length */ acpi_ut_get_package_object_size()
|
H A D | hwxface.c | 457 * The sleep state package returned from the corresponding \_Sx_ object ACPI_EXPORT_SYMBOL() 461 * Added support for a package that contains two integers. This ACPI_EXPORT_SYMBOL() 463 * package with one encoded DWORD integer. However, existing practice ACPI_EXPORT_SYMBOL() 464 * by many BIOS vendors is to return a package with 2 or more integer ACPI_EXPORT_SYMBOL() 468 * Therefore, we must be prepared to accept a package with either a ACPI_EXPORT_SYMBOL() 533 * Any warnings about the package length or the object types have ACPI_EXPORT_SYMBOL() 537 elements = info->return_object->package.elements; ACPI_EXPORT_SYMBOL() 538 switch (info->return_object->package.count) { ACPI_EXPORT_SYMBOL() 551 /* A valid _Sx_ package with one integer */ ACPI_EXPORT_SYMBOL() 566 /* A valid _Sx_ package with two integers */ ACPI_EXPORT_SYMBOL()
|
H A D | rscreate.c | 196 * PARAMETERS: package_object - Pointer to a package containing one 205 * DESCRIPTION: Takes the union acpi_operand_object package and creates a 253 * package that in turn contains an u64 Address, a u8 Pin, acpi_rs_create_pci_routing_table() 256 top_object_list = package_object->package.elements; acpi_rs_create_pci_routing_table() 257 number_of_elements = package_object->package.count; acpi_rs_create_pci_routing_table() 281 if ((*top_object_list)->package.count != 4) { acpi_rs_create_pci_routing_table() 283 "(PRT[%u]) Need package of length 4, found length %u", acpi_rs_create_pci_routing_table() 284 index, (*top_object_list)->package.count)); acpi_rs_create_pci_routing_table() 293 sub_object_list = (*top_object_list)->package.elements; acpi_rs_create_pci_routing_table() 411 /* Point to the next union acpi_operand_object in the top level package */ acpi_rs_create_pci_routing_table()
|
H A D | exresolv.c | 203 /* Otherwise, dereference the package_index to a package element */ acpi_ex_resolve_object_to_value() 209 * (i.e., dereference the package index) acpi_ex_resolve_object_to_value() 217 * the package, can't dereference it acpi_ex_resolve_object_to_value() 220 "Attempt to dereference an Index to NULL package element Idx=%p", acpi_ex_resolve_object_to_value() 447 * The main object is a package, we want to get the type acpi_ex_resolve_multiple() 448 * of the individual package element that is referenced by acpi_ex_resolve_multiple() 456 /* NULL package elements are allowed */ acpi_ex_resolve_multiple()
|
H A D | exstore.c | 241 * must point to either a buffer or a package acpi_ex_store_object_to_index() 246 * Storing to a package element. Copy the object and replace acpi_ex_store_object_to_index() 251 * element within the package that is to be modified. acpi_ex_store_object_to_index() 252 * The parent package object is at index_desc->Reference.Object acpi_ex_store_object_to_index() 277 /* Decrement reference count by the ref count of the parent package */ acpi_ex_store_object_to_index() 288 /* Increment ref count by the ref count of the parent package-1 */ acpi_ex_store_object_to_index() 441 * Here, can only store a package to an existing package. acpi_ex_store_object_to_node() 442 * Storing a package to a Local/Arg is OK, and handled acpi_ex_store_object_to_node()
|
H A D | exdump.c | 103 {ACPI_EXD_NODE, ACPI_EXD_OFFSET(package.node), "Parent Node"}, 104 {ACPI_EXD_UINT8, ACPI_EXD_OFFSET(package.flags), "Flags"}, 105 {ACPI_EXD_UINT32, ACPI_EXD_OFFSET(package.count), "Elements"}, 106 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET(package.elements), "Element List"}, 448 /* Dump the package contents */ acpi_ex_dump_object() 622 /* This could be a null element of a package */ 739 obj_desc->package.count, 740 obj_desc->package.elements); 743 * If elements exist, package element pointer is valid, 744 * and debug_level exceeds 1, dump package's elements. 746 if (obj_desc->package.count && 747 obj_desc->package.elements && acpi_dbg_level > 1) { 748 for (index = 0; index < obj_desc->package.count; 750 acpi_ex_dump_operand(obj_desc->package. 1040 * DESCRIPTION: Dumps the elements of the package 1062 /* Null package elements are allowed */ acpi_ex_dump_package_obj() 1103 obj_desc->package.count); acpi_ex_dump_package_obj() 1105 for (i = 0; i < obj_desc->package.count; i++) { acpi_ex_dump_package_obj() 1106 acpi_ex_dump_package_obj(obj_desc->package.elements[i], acpi_ex_dump_package_obj()
|
H A D | psargs.c | 67 * RETURN: Decoded package length. On completion, the AML pointer points 70 * DESCRIPTION: Decode and return a package length field. 71 * Note: Largest package length is 28 bits, from ACPI specification 87 * used to encode the package length, either 0,1,2, or 3 acpi_ps_get_next_package_length() 96 * Final bit positions for the package length bytes: acpi_ps_get_next_package_length() 120 * RETURN: Pointer to end-of-package +1 122 * DESCRIPTION: Get next package length and return a pointer past the end of 123 * the package. Consumes the package length field 138 return_PTR(start + package_length); /* end of package */ acpi_ps_get_next_package_end() 554 /* Get the length which is encoded as a package length */ acpi_ps_get_next_field() 562 /* Get the length which is encoded as a package length */ acpi_ps_get_next_field()
|
H A D | dbconvert.c | 188 * object - Where the package object is returned 192 * DESCRIPTION: Convert a string to a package object. Handles nested packages 217 /* Recursive call to convert each package element */ acpi_db_convert_to_package() 230 object->package.count = i; acpi_db_convert_to_package() 231 object->package.elements = elements; acpi_db_convert_to_package() 394 buffer_desc = &obj_desc->package.elements[0]; acpi_db_dump_pld_buffer()
|
H A D | nspredef.c | 67 * 3) For returned package objects, the count of package elements is 68 * validated, as well as the type of each package element. Nested 182 * Now make some additional checks such as verifying that package acpi_ns_check_return_value() 211 * package_index - Index of object within parent package (if
|
H A D | utdelete.c | 128 object->package.count)); acpi_ut_delete_internal_obj() 131 * Elements of the package are not handled here, they are deleted acpi_ut_delete_internal_obj() 137 obj_pointer = object->package.elements; acpi_ut_delete_internal_obj() 350 * simple objects and package objects 545 * We must update all the sub-objects of the package, acpi_ut_update_object_reference() 548 for (i = 0; i < object->package.count; i++) { acpi_ut_update_object_reference() 550 * Null package elements are legal and can be simply acpi_ut_update_object_reference() 553 next_object = object->package.elements[i]; acpi_ut_update_object_reference() 628 * The target of an Index (a package, string, or buffer) or a named acpi_ut_update_object_reference()
|
H A D | exdebug.c | 68 * index - Current package element, zero if not pkg 118 /* Display the index for package output only */ acpi_ex_do_debug_object() 186 source_desc->package.count); acpi_ex_do_debug_object() 188 /* Output the entire contents of the package */ acpi_ex_do_debug_object() 190 for (i = 0; i < source_desc->package.count; i++) { acpi_ex_do_debug_object() 191 acpi_ex_do_debug_object(source_desc->package. acpi_ex_do_debug_object()
|
H A D | rscalc.c | 595 * PARAMETERS: package_object - Pointer to the package object 602 * DESCRIPTION: Given a package representing a PCI routing table, this 623 number_of_elements = package_object->package.count; acpi_rs_get_pci_routing_table_length() 635 top_object_list = package_object->package.elements; acpi_rs_get_pci_routing_table_length() 654 sub_object_list = package_element->package.elements; acpi_rs_get_pci_routing_table_length() 661 table_index < package_element->package.count acpi_rs_get_pci_routing_table_length()
|
H A D | utids.c | 287 * A _CID method can return either a single compatible ID or a package of 329 count = obj_desc->package.count; acpi_ut_execute_CID() 330 cid_objects = obj_desc->package.elements; acpi_ut_execute_CID() 429 * class code of the device. The _CLS value is always a package 461 cls_objects = obj_desc->package.elements; acpi_ut_execute_CLS() 462 count = obj_desc->package.count; acpi_ut_execute_CLS()
|
H A D | dsargs.c | 333 node = obj_desc->package.node; acpi_ds_get_package_arguments() 336 "No pointer back to namespace node in package %p", acpi_ds_get_package_arguments() 346 obj_desc->package.aml_length, acpi_ds_get_package_arguments() 347 obj_desc->package.aml_start); acpi_ds_get_package_arguments()
|
H A D | nsconvert.c | 268 elements = original_object->package.elements; acpi_ns_convert_to_buffer() 269 count = original_object->package.count; acpi_ns_convert_to_buffer() 286 /* Copy the package elements (integers) to the buffer as DWORDs */ acpi_ns_convert_to_buffer() 288 elements = original_object->package.elements; acpi_ns_convert_to_buffer()
|
H A D | acpredef.h | 59 * ACPI_PTYPE1_VAR: Variable-length length. Zero-length package is allowed: 70 * parent package is allowed: 78 * Zero-length parent package is allowed: 90 * parent package is allowed. 94 * Zero-length parent package is allowed: 101 * followed by an optional element. Zero-length parent package is allowed. 114 * defines the format of the package. Zero-length parent package is 205 * information about the expected structure of the package. This information 215 * Possibly fixing package elements like _BIF, etc. 588 * For _HPX, a single package is returned, containing a variable-length number 1040 /* Acpi 1.0 defined _WAK with no return value. Later, it was changed to return a package */
|
H A D | dbutils.c | 189 obj_desc->package.count); acpi_db_dump_external_object() 191 for (i = 0; i < obj_desc->package.count; i++) { acpi_db_dump_external_object() 192 acpi_db_dump_external_object(&obj_desc->package. acpi_db_dump_external_object()
|
H A D | utpredef.c | 72 * cases where a package info entry follows a method name that 73 * returns a package. 84 * (next entry contains the package info) acpi_ut_get_next_predefined_method()
|
H A D | dbnames.c | 432 const union acpi_predefined_info *package = NULL; acpi_db_walk_for_predefined_names() local 446 /* If method returns a package, the info is in the next table entry */ acpi_db_walk_for_predefined_names() 449 package = predefined + 1; acpi_db_walk_for_predefined_names() 459 if (package) { acpi_db_walk_for_predefined_names() 461 package->ret_info.type, acpi_db_walk_for_predefined_names() 462 package->ret_info.object_type1, acpi_db_walk_for_predefined_names() 463 package->ret_info.count1); acpi_db_walk_for_predefined_names()
|
H A D | dbexec.c | 97 /* Recursive call to delete package elements */ acpi_db_delete_objects() 99 acpi_db_delete_objects(objects[i].package.count, acpi_db_delete_objects() 100 objects[i].package.elements); acpi_db_delete_objects() 104 ACPI_FREE(objects[i].package.elements); acpi_db_delete_objects()
|
H A D | dbinput.c | 524 /* This is the start of a package, scan until closing bracket */ acpi_db_get_next_token() 531 /* Find end of package (closing bracket) */ acpi_db_get_next_token() 535 /* Handle String package elements */ acpi_db_get_next_token() 548 depth++; /* A nested package declaration */ acpi_db_get_next_token() 551 if (depth == 0) { /* Found final package closing bracket */ acpi_db_get_next_token()
|
H A D | amlcode.h | 280 #define ARGI_STORE_TARGET 0x12 /* Target for store is TARGETREF + package objects */ 284 #define ARGI_DATAOBJECT 0x13 /* Buffer, String, package or reference to a node - Used only by size_of operator */ 285 #define ARGI_COMPLEXOBJ 0x14 /* Buffer, String, or package (Used by INDEX op only) */
|
H A D | exoparg2.c | 402 if (index >= operand[0]->package.count) { acpi_ex_opcode_2A_1T_1R() 403 length = operand[0]->package.count; acpi_ex_opcode_2A_1T_1R() 409 &operand[0]->package.elements[index]; acpi_ex_opcode_2A_1T_1R()
|
H A D | psobject.c | 254 * standalone package -- we don't know where the end is at this point. acpi_ps_build_named_op() 571 * It is easily possible to end an AML "package" with an unbounded number acpi_ps_complete_final_op() 575 ACPI_DEBUG_PRINT((ACPI_DB_PARSE, "AML package complete at Op %p\n", acpi_ps_complete_final_op()
|
H A D | dbstats.c | 183 for (i = 0; i < obj_desc->package.count; i++) { acpi_db_enumerate_object() 184 acpi_db_enumerate_object(obj_desc->package.elements[i]); acpi_db_enumerate_object()
|
H A D | aclocal.h | 236 /* Object types used during package copies */ 329 * package objects. This structure appears as the next entry in the table 592 * Pkg state - used to traverse nested package structures 626 u8 *pkg_end; /* Current package end */ 836 u8 *pkg_start; /* Current package begin */ 837 u8 *pkg_end; /* Current package end */
|
H A D | exoparg1.c | 725 * package. All others are not supported. acpi_ex_opcode_1A_0T_1R() 756 value = temp_desc->package.count; acpi_ex_opcode_1A_0T_1R() 960 * Return the referenced element of the package. We must acpi_ex_opcode_1A_0T_1R()
|
H A D | acobject.h | 140 u32 count; /* # of elements in package */ 396 struct acpi_object_package package; member in union:acpi_operand_object
|
H A D | exresop.c | 550 * Need a buffer, string, package, or ref_of reference. acpi_ex_resolve_operands() 577 /* Need a buffer or package or (ACPI 2.0) String */ acpi_ex_resolve_operands()
|
H A D | psparse.c | 378 * Just close out this package acpi_ps_next_parse_state() 388 * package; We simply close out the parent (finishing the walk of acpi_ps_next_parse_state()
|
H A D | exstoren.c | 205 * package element), so we can simply copy the source object acpi_ex_store_object_to_object()
|
H A D | dbtest.c | 1011 this_param->package.elements = NULL; acpi_db_evaluate_one_predefined_name() 1012 this_param->package.count = 0; acpi_db_evaluate_one_predefined_name()
|
H A D | dsopcode.c | 653 * Return the object in the walk_state, unless the parent is a package - acpi_ds_eval_data_object_operands() 655 * for the package. acpi_ds_eval_data_object_operands()
|
H A D | dswexec.c | 163 * rest of the package acpi_ds_get_predicate_value() 493 * If the method is referenced from within a package acpi_ds_exec_end_op()
|
H A D | nsdump.c | 303 obj_desc->package.count); acpi_ns_dump_one_object() 590 obj_desc = (void *)obj_desc->package.elements; acpi_ns_dump_one_object()
|
H A D | acnamesp.h | 77 /* Object is not a package element */
|
/linux-4.4.14/drivers/acpi/ |
H A D | utils.c | 54 acpi_extract_package(union acpi_object *package, acpi_extract_package() argument 66 if (!package || (package->type != ACPI_TYPE_PACKAGE) acpi_extract_package() 67 || (package->package.count < 1)) { acpi_extract_package() 68 printk(KERN_WARNING PREFIX "Invalid package argument\n"); acpi_extract_package() 83 if (format_count > package->package.count) { acpi_extract_package() 85 " than exist in package [%d].\n", acpi_extract_package() 86 format_count, package->package.count); acpi_extract_package() 97 union acpi_object *element = &(package->package.elements[i]); acpi_extract_package() 114 printk(KERN_WARNING PREFIX "Invalid package element" acpi_extract_package() 139 printk(KERN_WARNING PREFIX "Invalid package element" acpi_extract_package() 154 printk(KERN_WARNING PREFIX "Invalid package element" acpi_extract_package() 196 * Extract package data. acpi_extract_package() 201 union acpi_object *element = &(package->package.elements[i]); acpi_extract_package() 326 union acpi_object *package = NULL; acpi_evaluate_reference() local 342 package = buffer.pointer; acpi_evaluate_reference() 344 if ((buffer.length == 0) || !package) { acpi_evaluate_reference() 349 if (package->type != ACPI_TYPE_PACKAGE) { acpi_evaluate_reference() 354 if (!package->package.count) { acpi_evaluate_reference() 360 if (package->package.count > ACPI_MAX_HANDLES) { acpi_evaluate_reference() 363 list->count = package->package.count; acpi_evaluate_reference() 365 /* Extract package data. */ acpi_evaluate_reference() 369 element = &(package->package.elements[i]); acpi_evaluate_reference() 417 || !output->package.count acpi_get_physical_device_location() 418 || output->package.elements[0].type != ACPI_TYPE_BUFFER acpi_get_physical_device_location() 419 || output->package.elements[0].buffer.length < ACPI_PLD_REV1_BUFFER_SIZE) { acpi_get_physical_device_location() 425 output->package.elements[0].buffer.pointer, acpi_get_physical_device_location() 426 output->package.elements[0].buffer.length, acpi_get_physical_device_location() 627 * Though ACPI defines the fourth parameter for _DSM should be a package, 653 params[3].package.count = 0; acpi_evaluate_dsm() 654 params[3].package.elements = NULL; acpi_evaluate_dsm()
|
H A D | property.c | 57 dn->name = link->package.elements[0].string.pointer; acpi_nondev_subnode_ok() 61 status = acpi_get_handle(scope, link->package.elements[1].string.pointer, acpi_nondev_subnode_ok() 76 * node (device) containing the object that has returned the package. acpi_nondev_subnode_ok() 105 for (i = 0; i < links->package.count; i++) { acpi_add_nondev_subnodes() 108 link = &links->package.elements[i]; acpi_add_nondev_subnodes() 110 if (link->package.count == 2 acpi_add_nondev_subnodes() 111 && link->package.elements[0].type == ACPI_TYPE_STRING acpi_add_nondev_subnodes() 112 && link->package.elements[1].type == ACPI_TYPE_STRING acpi_add_nondev_subnodes() 127 for (i = 0; i < desc->package.count; i += 2) { acpi_enumerate_nondev_subnodes() 130 uuid = &desc->package.elements[i]; acpi_enumerate_nondev_subnodes() 131 links = &desc->package.elements[i + 1]; acpi_enumerate_nondev_subnodes() 135 * a package. acpi_enumerate_nondev_subnodes() 155 * The value must be an integer, a string, a reference, or a package acpi_property_value_ok() 165 for (j = 0; j < value->package.count; j++) acpi_property_value_ok() 166 switch (value->package.elements[j].type) { acpi_property_value_ok() 185 for (i = 0; i < properties->package.count; i++) { acpi_properties_format_valid() 188 property = &properties->package.elements[i]; acpi_properties_format_valid() 193 if (property->package.count != 2 acpi_properties_format_valid() 194 || property->package.elements[0].type != ACPI_TYPE_STRING acpi_properties_format_valid() 195 || !acpi_property_value_ok(&property->package.elements[1])) acpi_properties_format_valid() 230 if (desc->package.count % 2) acpi_extract_properties() 234 for (i = 0; i < desc->package.count; i += 2) { acpi_extract_properties() 237 uuid = &desc->package.elements[i]; acpi_extract_properties() 238 properties = &desc->package.elements[i + 1]; acpi_extract_properties() 242 * a package. acpi_extract_properties() 253 * package immediately following it. acpi_extract_properties() 366 for (i = 0; i < properties->package.count; i++) { acpi_data_get_property() 370 property = &properties->package.elements[i]; acpi_data_get_property() 372 propname = &property->package.elements[0]; acpi_data_get_property() 373 propvalue = &property->package.elements[1]; acpi_data_get_property() 440 * Return: %0 if array property (package) with @name has been found (success), 443 * %-EPROTO if the property is not a package or the type of its elements 460 for (i = 0; i < prop->package.count; i++) acpi_data_get_property_array() 461 if (prop->package.elements[i].type != type) acpi_data_get_property_array() 477 * Find property with @name, verifify that it is a package containing at least 482 * If there's more than one reference in the property value package, @index is 518 * If it is not a single reference, then it is a package of acpi_data_get_property_reference() 526 if (obj->type != ACPI_TYPE_PACKAGE || index >= obj->package.count) acpi_data_get_property_reference() 529 element = obj->package.elements; acpi_data_get_property_reference() 530 end = element + obj->package.count; acpi_data_get_property_reference() 738 return obj->package.count; acpi_data_prop_read() 740 if (nval > obj->package.count) acpi_data_prop_read() 745 items = obj->package.elements; acpi_data_prop_read()
|
H A D | acpi_lpat.c | 112 (obj_p->package.count % 2) || (obj_p->package.count < 4)) acpi_lpat_get_conversion_table() 115 lpat = kcalloc(obj_p->package.count, sizeof(int), GFP_KERNEL); acpi_lpat_get_conversion_table() 119 for (i = 0; i < obj_p->package.count; i++) { acpi_lpat_get_conversion_table() 120 obj_e = &obj_p->package.elements[i]; acpi_lpat_get_conversion_table() 135 lpat_table->lpat_count = obj_p->package.count / 2; acpi_lpat_get_conversion_table()
|
H A D | acpi_pad.c | 371 union acpi_object *package; acpi_pad_pur() local 380 package = buffer.pointer; acpi_pad_pur() 382 if (package->type == ACPI_TYPE_PACKAGE && acpi_pad_pur() 383 package->package.count == 2 && acpi_pad_pur() 384 package->package.elements[0].integer.value == 1) /* rev 1 */ acpi_pad_pur() 386 num = package->package.elements[1].integer.value; acpi_pad_pur()
|
H A D | fan.c | 123 obj->package.count != 3 || fan_get_state_acpi4() 124 obj->package.elements[1].type != ACPI_TYPE_INTEGER) { fan_get_state_acpi4() 130 control = obj->package.elements[1].integer.value; fan_get_state_acpi4() 284 if (!obj || obj->type != ACPI_TYPE_PACKAGE || obj->package.count < 2) { acpi_fan_get_fps() 290 fan->fps_count = obj->package.count - 1; /* minus revision field */ acpi_fan_get_fps() 302 status = acpi_extract_package(&obj->package.elements[i + 1], acpi_fan_get_fps()
|
H A D | scan.c | 749 union acpi_object *package = NULL; acpi_bus_extract_wakeup_device_power_package() local 766 package = (union acpi_object *)buffer.pointer; acpi_bus_extract_wakeup_device_power_package() 768 if (!package || package->package.count < 2) acpi_bus_extract_wakeup_device_power_package() 771 element = &(package->package.elements[0]); acpi_bus_extract_wakeup_device_power_package() 776 if ((element->package.count < 2) || acpi_bus_extract_wakeup_device_power_package() 777 (element->package.elements[0].type != acpi_bus_extract_wakeup_device_power_package() 779 || (element->package.elements[1].type != ACPI_TYPE_INTEGER)) acpi_bus_extract_wakeup_device_power_package() 783 element->package.elements[0].reference.handle; acpi_bus_extract_wakeup_device_power_package() 785 (u32) element->package.elements[1].integer.value; acpi_bus_extract_wakeup_device_power_package() 793 element = &(package->package.elements[1]); acpi_bus_extract_wakeup_device_power_package() 799 err = acpi_extract_power_resources(package, 2, &wakeup->resources); acpi_bus_extract_wakeup_device_power_package() 906 union acpi_object *package = buffer.pointer; acpi_bus_init_power_state() local 908 if (buffer.length && package acpi_bus_init_power_state() 909 && package->type == ACPI_TYPE_PACKAGE acpi_bus_init_power_state() 910 && package->package.count) { acpi_bus_init_power_state() 911 int err = acpi_extract_power_resources(package, 0, acpi_bus_init_power_state()
|
H A D | processor_perflib.c | 240 || (pct->package.count != 2)) { acpi_processor_get_performance_control() 250 obj = pct->package.elements[0]; acpi_processor_get_performance_control() 266 obj = pct->package.elements[1]; acpi_processor_get_performance_control() 346 pss->package.count)); acpi_processor_get_performance_states() 348 pr->performance->state_count = pss->package.count; acpi_processor_get_performance_states() 350 kmalloc(sizeof(struct acpi_processor_px) * pss->package.count, acpi_processor_get_performance_states() 366 status = acpi_extract_package(&(pss->package.elements[i]), acpi_processor_get_performance_states() 551 if (psd->package.count != 1) { acpi_processor_get_psd() 562 status = acpi_extract_package(&(psd->package.elements[0]), acpi_processor_get_psd()
|
H A D | processor_thermal.c | 57 * Emulate "per package data" using per cpu data (which should really be 132 * Update all the CPUs in the same package because they all cpufreq_set_cur_state()
|
H A D | processor_throttling.c | 94 * If tsd package for one cpu is invalid, the coordination for_each_possible_cpu() 442 || (ptc->package.count != 2)) { acpi_processor_get_throttling_control() 452 obj = ptc->package.elements[0]; acpi_processor_get_throttling_control() 469 obj = ptc->package.elements[1]; acpi_processor_get_throttling_control() 533 tss->package.count)); acpi_processor_get_throttling_states() 535 pr->throttling.state_count = tss->package.count; acpi_processor_get_throttling_states() 537 kmalloc(sizeof(struct acpi_processor_tx_tss) * tss->package.count, acpi_processor_get_throttling_states() 555 status = acpi_extract_package(&(tss->package.elements[i]), acpi_processor_get_throttling_states() 611 if (tsd->package.count != 1) { acpi_processor_get_tsd() 622 status = acpi_extract_package(&(tsd->package.elements[0]), acpi_processor_get_tsd() 1209 * If TSD package for one CPU can't be parsed successfully, it means acpi_processor_get_throttling_info()
|
H A D | acpi_video.c | 189 u8 _BCL_reversed:1; /* _BCL package is in a reversed order */ 772 if (obj->package.count < 2) acpi_video_init_brightness() 782 br->levels = kmalloc((obj->package.count + 2) * sizeof *(br->levels), acpi_video_init_brightness() 789 for (i = 0; i < obj->package.count; i++) { acpi_video_init_brightness() 790 o = (union acpi_object *)&obj->package.elements[i]; acpi_video_init_brightness() 809 * when machine is on AC/Battery in _BCL package. acpi_video_init_brightness() 827 ACPI_ERROR((AE_INFO, "Too many duplicates in _BCL package")); acpi_video_init_brightness() 829 /* Check if the _BCL package is in a reversed order */ acpi_video_init_brightness() 836 "Found unordered _BCL package")); acpi_video_init_brightness() 1228 dod->package.count)); acpi_video_device_enumerate() 1230 active_list = kcalloc(1 + dod->package.count, acpi_video_device_enumerate() 1239 for (i = 0; i < dod->package.count; i++) { acpi_video_device_enumerate() 1240 obj = &dod->package.elements[i]; acpi_video_device_enumerate()
|
H A D | processor_idle.c | 353 if (!cst || (cst->type != ACPI_TYPE_PACKAGE) || cst->package.count < 2) { acpi_processor_get_power_info_cst() 359 count = cst->package.elements[0].integer.value; acpi_processor_get_power_info_cst() 362 if (count < 1 || count != cst->package.count - 1) { acpi_processor_get_power_info_cst() 379 element = &(cst->package.elements[i]); acpi_processor_get_power_info_cst() 383 if (element->package.count != 4) acpi_processor_get_power_info_cst() 386 obj = &(element->package.elements[0]); acpi_processor_get_power_info_cst() 398 obj = &(element->package.elements[1]); acpi_processor_get_power_info_cst() 454 obj = &(element->package.elements[2]); acpi_processor_get_power_info_cst() 460 obj = &(element->package.elements[3]); acpi_processor_get_power_info_cst()
|
H A D | cppc_acpi.c | 146 if (!psd || psd->package.count != 1) { acpi_get_psd() 156 status = acpi_extract_package(&(psd->package.elements[0]), acpi_get_psd() 433 cpc_obj = &out_obj->package.elements[0]; acpi_cppc_processor_probe() 450 cpc_obj = &out_obj->package.elements[1]; acpi_cppc_processor_probe() 467 cpc_obj = &out_obj->package.elements[i]; acpi_cppc_processor_probe()
|
H A D | power.c | 134 int acpi_extract_power_resources(union acpi_object *package, unsigned int start, acpi_extract_power_resources() argument 140 for (i = start; i < package->package.count; i++) { acpi_extract_power_resources() 141 union acpi_object *element = &package->package.elements[i]; acpi_extract_power_resources()
|
H A D | battery.c | 393 union acpi_object *package, extract_package() 398 if (package->type != ACPI_TYPE_PACKAGE) extract_package() 401 if (package->package.count <= i) extract_package() 403 element = &package->package.elements[i]; extract_package() 392 extract_package(struct acpi_battery *battery, union acpi_object *package, const struct acpi_offsets *offsets, int num) extract_package() argument
|
H A D | device_sysfs.c | 218 nval = of_compatible->package.count; create_of_modalias() 219 obj = of_compatible->package.elements; create_of_modalias()
|
H A D | internal.h | 114 int acpi_extract_power_resources(union acpi_object *package, unsigned int start, acpi_debugfs_init()
|
H A D | sbshc.c | 137 * and data into the return package (if required by the protocol). acpi_smbus_transaction()
|
/linux-4.4.14/drivers/xen/ |
H A D | xen-acpi-pad.c | 60 union acpi_object *package; acpi_pad_pur() local 69 package = buffer.pointer; acpi_pad_pur() 71 if (package->type == ACPI_TYPE_PACKAGE && acpi_pad_pur() 72 package->package.count == 2 && acpi_pad_pur() 73 package->package.elements[0].integer.value == 1) /* rev 1 */ acpi_pad_pur() 74 num = package->package.elements[1].integer.value; acpi_pad_pur()
|
/linux-4.4.14/arch/m68k/ifpsp060/ |
H A D | Makefile | 1 # Makefile for 680x0 Linux 68060 integer/floating point support package
|
H A D | iskeleton.S | 33 | (2) example package entry code 163 | then this routine simply re-enters the package through _isp_cas. 174 | then this routine simply re-enters the package through _isp_cas2.
|
/linux-4.4.14/drivers/powercap/ |
H A D | intel_rapl.c | 85 RAPL_DOMAIN_PACKAGE, /* entire package/socket */ 168 /* Each physical package contains multiple domains, these are the common 169 * data across RAPL domains within a package. 172 unsigned int id; /* physical package/socket id */ 180 int nr_cpus; /* active cpus on the package, topology info is lost during 183 unsigned long power_limit_irq; /* keep track of package power limit 234 static u64 rapl_unit_xlate(struct rapl_domain *rd, int package, 242 "package", 272 /* all CPUs on this package are offline */ 324 /* package zone is the last zone of a package, we can free release_zone() 330 dev_warn(&power_zone->dev, "no package id %s\n", release_zone() 596 /* called after domain detection and package level data are set */ rapl_init_domains() 664 static u64 rapl_unit_xlate(struct rapl_domain *rd, int package, rapl_unit_xlate() argument 672 rp = find_package_by_id(package); rapl_unit_xlate() 772 /* use physical package id to look up active cpus */ rapl_read_data_raw() 777 /* special-case package domain, which uses a different bit*/ rapl_read_data_raw() 865 pr_debug("Core CPU package %d energy=%dpJ, time=%dus, power=%duW\n", rapl_check_unit_core() 890 pr_debug("Atom package %d energy=%dpJ, time=%dus, power=%duW\n", rapl_check_unit_atom() 898 * When package power limit is set artificially low by RAPL, LVT 899 * thermal interrupt for package power limit should be ignored 933 /* restore per package power limit interrupt enable state */ package_power_limit_irq_restore() 1121 pr_debug("update package %d domain %s data\n", rp->id, rapl_update_domain_data() 1148 pr_debug("remove package, undo power limit on %d: %s\n", rapl_unregister_powercap() 1162 /* do the package zone last */ rapl_unregister_powercap() 1180 /* first we register package domain as the parent zone*/ rapl_package_register_powercap() 1184 pr_debug("register socket %d package domain %s\n", rapl_package_register_powercap() 1196 pr_debug("failed to register package, %d\n", rapl_package_register_powercap() 1201 /* track parent zone in per package/socket data */ rapl_package_register_powercap() 1203 /* done, only one package domain per socket */ rapl_package_register_powercap() 1208 pr_err("no package domain found, unknown topology!\n"); rapl_package_register_powercap() 1212 /* now register domains as children of the socket/package*/ rapl_package_register_powercap() 1235 /* clean up previously initialized domains within the package if we rapl_package_register_powercap() 1239 pr_debug("unregister package %d domain %s\n", rp->id, rd->name); rapl_package_register_powercap() 1269 pr_debug("unregister zone/package %d, %s domain\n", rapl_register_powercap() 1310 * ensure the CPU belongs to the targeted package and CPU hotlug is disabled. 1320 /* use physical package id to read counters */ rapl_detect_domains() 1328 pr_err("no valid rapl domains found in package %d\n", rp->id); rapl_detect_domains() 1332 pr_debug("found %d domains on package %d\n", rp->nr_domains, rp->id); rapl_detect_domains() 1348 pr_info("RAPL package %d domain %s locked by BIOS\n", rapl_detect_domains() 1359 static bool is_package_new(int package) is_package_new() argument 1364 * or deleted while traversing the package list, no need for locking. is_package_new() 1367 if (package == rp->id) is_package_new() 1373 /* RAPL interface can be made of a two-level hierarchy: package level and domain 1374 * level. We first detect the number of packages then domains of each package. 1392 /* add the new package to the list */ for_each_online_cpu() 1396 /* check if the package contains valid domains */ for_each_online_cpu() 1427 pr_debug("remove package %d, %s domain\n", rp->id, rd->name); rapl_remove_package() 1448 /* add the new package to the list */ rapl_add_package() 1451 /* check if the package contains valid domains */ rapl_add_package() 1471 * If a CPU goes online as the first CPU of the physical package 1472 * we add the RAPL package to the system. Similarly, when the last 1473 * CPU of the package is removed, we remove the RAPL package and its
|
/linux-4.4.14/drivers/pci/hotplug/ |
H A D | acpiphp_ibm.c | 285 union acpi_object *package; ibm_get_table_from_acpi() local 297 package = (union acpi_object *) buffer.pointer; ibm_get_table_from_acpi() 298 if (!(package) || ibm_get_table_from_acpi() 299 (package->type != ACPI_TYPE_PACKAGE) || ibm_get_table_from_acpi() 300 !(package->package.elements)) { ibm_get_table_from_acpi() 305 for (size = 0, i = 0; i < package->package.count; i++) { ibm_get_table_from_acpi() 306 if (package->package.elements[i].type != ACPI_TYPE_BUFFER) { ibm_get_table_from_acpi() 310 size += package->package.elements[i].buffer.length; ibm_get_table_from_acpi() 318 __func__, package->package.count, size, lbuf); ibm_get_table_from_acpi() 328 for (i=0; i<package->package.count; i++) { ibm_get_table_from_acpi() 330 package->package.elements[i].buffer.pointer, ibm_get_table_from_acpi() 331 package->package.elements[i].buffer.length); ibm_get_table_from_acpi() 332 size += package->package.elements[i].buffer.length; ibm_get_table_from_acpi()
|
/linux-4.4.14/arch/mips/include/asm/ |
H A D | topology.h | 15 #define topology_physical_package_id(cpu) (cpu_data[cpu].package)
|
H A D | cpu-info.h | 66 int package;/* physical package number */ member in struct:cpuinfo_mips
|
/linux-4.4.14/drivers/char/tpm/ |
H A D | tpm_ppi.c | 74 * output.pointer should be of package type, including two integers. tpm_show_ppi_request() 79 if (obj->package.count == 2 && tpm_show_ppi_request() 80 obj->package.elements[0].type == ACPI_TYPE_INTEGER && tpm_show_ppi_request() 81 obj->package.elements[1].type == ACPI_TYPE_INTEGER) { tpm_show_ppi_request() 82 if (obj->package.elements[0].integer.value) tpm_show_ppi_request() 86 obj->package.elements[1].integer.value); tpm_show_ppi_request() 117 * string/package type. For PPI version 1.0 and 1.1, use buffer type tpm_store_ppi_request() 118 * for compatibility, and use package type since 1.2 according to spec. tpm_store_ppi_request() 170 * PPI spec defines params[3].type as empty package, but some platforms tpm_show_ppi_transition_action() 208 * parameter output.pointer should be of package type, including tpm_show_ppi_response() 214 ret_obj = obj->package.elements; tpm_show_ppi_response() 215 if (obj->package.count < 3 || tpm_show_ppi_response()
|
H A D | tpm_infineon.c | 213 calculation time, it sends a WTX-package, which has to be acknowledged 287 dev_info(chip->pdev, "WTX-package received\n"); tpm_inf_recv() 303 dev_err(chip->pdev, "ERROR-package received:\n"); tpm_inf_recv()
|
/linux-4.4.14/drivers/gpu/drm/i915/ |
H A D | intel_acpi.c | 91 connector_count = &pkg->package.elements[0]; intel_dsm_platform_mux_info() 94 for (i = 1; i < pkg->package.count; i++) { intel_dsm_platform_mux_info() 95 union acpi_object *obj = &pkg->package.elements[i]; intel_dsm_platform_mux_info() 96 union acpi_object *connector_id = &obj->package.elements[0]; intel_dsm_platform_mux_info() 97 union acpi_object *info = &obj->package.elements[1]; intel_dsm_platform_mux_info()
|
/linux-4.4.14/include/linux/regulator/ |
H A D | fan53555.h | 7 * This package is free software; you can redistribute it and/or modify
|
/linux-4.4.14/drivers/pci/ |
H A D | pci-acpi.c | 48 union acpi_object *fields = record->package.elements; decode_type0_hpx_record() 53 if (record->package.count != 6) decode_type0_hpx_record() 78 union acpi_object *fields = record->package.elements; decode_type1_hpx_record() 83 if (record->package.count != 5) decode_type1_hpx_record() 107 union acpi_object *fields = record->package.elements; decode_type2_hpx_record() 112 if (record->package.count != 18) decode_type2_hpx_record() 149 union acpi_object *package, *record, *fields; acpi_run_hpx() local 160 package = (union acpi_object *)buffer.pointer; acpi_run_hpx() 161 if (package->type != ACPI_TYPE_PACKAGE) { acpi_run_hpx() 166 for (i = 0; i < package->package.count; i++) { acpi_run_hpx() 167 record = &package->package.elements[i]; acpi_run_hpx() 173 fields = record->package.elements; acpi_run_hpx() 213 union acpi_object *package, *fields; acpi_run_hpp() local 222 package = (union acpi_object *) buffer.pointer; acpi_run_hpp() 223 if (package->type != ACPI_TYPE_PACKAGE || acpi_run_hpp() 224 package->package.count != 4) { acpi_run_hpp() 229 fields = package->package.elements; acpi_run_hpp() 629 if (obj->type == ACPI_TYPE_PACKAGE && obj->package.count == 5) { pci_acpi_optimize_delay() 630 elements = obj->package.elements; pci_acpi_optimize_delay()
|
H A D | pci-label.c | 180 tmp = obj->package.elements; dsm_get_label() 181 if (obj->type == ACPI_TYPE_PACKAGE && obj->package.count == 2 && dsm_get_label()
|
/linux-4.4.14/drivers/hwmon/ |
H A D | asus_atk0110.c | 87 /* New package format */ 97 /* Old package format */ 314 return &pack->package.elements[offset]; atk_get_pack_member() 319 * New package format is: 332 * The old package has the same format but it's missing the two unknown fields. 347 if (obj->package.count != expected_size) { validate_hwmon_pack() 348 dev_warn(dev, "Invalid package size: %d, expected: %d\n", validate_hwmon_pack() 349 obj->package.count, expected_size); validate_hwmon_pack() 367 tmp = &obj->package.elements[HWMON_PACK_UNK1]; validate_hwmon_pack() 373 tmp = &obj->package.elements[HWMON_PACK_UNK2]; validate_hwmon_pack() 522 if (pack->package.count < 1) { atk_ggrp() 523 dev_err(dev, "GGRP[%#x] package is too small\n", mux); atk_ggrp() 714 for (i = 0; i < pack->package.count; i++) { atk_pack_print() 715 union acpi_object *obj = &pack->package.elements[i]; atk_pack_print() 743 for (i = 0; i < ret->package.count; i++) { atk_debugfs_ggrp_open() 744 union acpi_object *pack = &ret->package.elements[i]; atk_debugfs_ggrp_open() 749 if (!pack->package.count) atk_debugfs_ggrp_open() 751 id = &pack->package.elements[0]; atk_debugfs_ggrp_open() 753 /* Print the package */ atk_debugfs_ggrp_open() 871 /* Ok, we have a valid hwmon package */ atk_add_sensor() 987 for (i = 1; i < pack->package.count; i++) { atk_enumerate_old_hwmon() 988 union acpi_object *obj = &pack->package.elements[i]; atk_enumerate_old_hwmon() 1009 for (i = 1; i < pack->package.count; i++) { atk_enumerate_old_hwmon() 1010 union acpi_object *obj = &pack->package.elements[i]; atk_enumerate_old_hwmon() 1031 for (i = 1; i < pack->package.count; i++) { atk_enumerate_old_hwmon() 1032 union acpi_object *obj = &pack->package.elements[i]; atk_enumerate_old_hwmon() 1066 for (i = 0; i < pack->package.count; i++) { atk_ec_present() 1067 union acpi_object *obj = &pack->package.elements[i]; atk_ec_present() 1073 id = &obj->package.elements[0]; atk_ec_present() 1181 for (i = 0; i < pack->package.count; i++) { atk_enumerate_new_hwmon() 1182 union acpi_object *obj = &pack->package.elements[i]; atk_enumerate_new_hwmon() 1366 if (obj->package.count >= 2) { atk_add() 1367 union acpi_object *id = &obj->package.elements[1]; atk_add()
|
H A D | acpi_power_meter.c | 575 if (!pss->package.count) read_domain_devices() 579 pss->package.count, GFP_KERNEL); read_domain_devices() 592 resource->num_domain_devices = pss->package.count; read_domain_devices() 594 for (i = 0; i < pss->package.count; i++) { read_domain_devices() 596 union acpi_object *element = &(pss->package.elements[i]); read_domain_devices() 762 pss->package.count != 14) { read_capabilities() 792 union acpi_object *element = &(pss->package.elements[i]); read_capabilities()
|
/linux-4.4.14/include/uapi/linux/ |
H A D | ipc.h | 28 /* these fields are used by the DIPC package so the kernel as standard 75 /* Used by the DIPC package, try and avoid reusing it */
|
/linux-4.4.14/drivers/iio/imu/inv_mpu6050/ |
H A D | inv_mpu_acpi.c | 65 for (i = 0; i < cpm->package.count; ++i) { asus_acpi_get_sensor_info() 69 elem = &(cpm->package.elements[i]); asus_acpi_get_sensor_info() 70 for (j = 0; j < elem->package.count; ++j) { asus_acpi_get_sensor_info() 73 sub_elem = &(elem->package.elements[j]); asus_acpi_get_sensor_info() 88 return cpm->package.count; asus_acpi_get_sensor_info()
|
/linux-4.4.14/drivers/thermal/ |
H A D | x86_pkg_temp_thermal.c | 57 /* Limit number of package temp zones */ 75 /* List maintaining number of package instances */ 82 /* To track if the work is already scheduled on a package */ 289 /* Enable threshold interrupt on local package/cpu */ enable_pkg_thres_interrupt() 306 /* Disable threshold interrupt on local package/cpu */ disable_pkg_thres_interrupt() 362 * When a package is in interrupted state, all CPU's in that package pkg_temp_thermal_platform_thermal_notify() 364 * the package is enough and simply return for others. pkg_temp_thermal_platform_thermal_notify() 455 /* Store MSR value for package thermal interrupt, to restore at exit */ pkg_temp_thermal_device_add() 488 /* If we are loosing the first cpu for this package, we need change */ pkg_temp_thermal_device_remove() 522 /* Check if there is already an instance for this package */ get_core_online() 624 /* Retore old MSR value for package thermal interrupt */ pkg_temp_thermal_exit()
|
H A D | intel_powerclamp.c | 2 * intel_powerclamp.c - package c-state idle injection 408 * systems may have different ability to enter package level clamp_thread()
|
/linux-4.4.14/scripts/package/ |
H A D | builddeb | 6 # Simple script to generate a deb package for a Linux kernel. All the 10 # specified in KDEB_HOOKDIR) that will be called on package install and 30 # Create the package 305 This package contains the Linux kernel, modules and corresponding other 317 This package contains the Linux kernel, modules and corresponding other 323 # Build kernel header package 343 This package provides kernel header files for $KERNELRELEASE on \${kernel:debarch} 348 # Do we have firmware? Move it out of the way and build it into a package. 358 This package contains firmware from the Linux kernel, version $version. 371 This package provides userspaces headers from the Linux kernel. These headers 383 # Build debug package 401 This package will come in handy if you need to debug the kernel. It provides
|
H A D | Makefile | 31 MKSPEC := $(srctree)/scripts/package/mkspec 88 $(srctree)/scripts/package/builddeb $@ 107 $(CONFIG_SHELL) $(srctree)/scripts/package/buildtar $@ 143 @echo ' binrpm-pkg - Build only the binary kernel RPM package' 145 @echo ' bindeb-pkg - Build only the binary kernel deb package'
|
/linux-4.4.14/drivers/scsi/ |
H A D | scsi.h | 4 * generic SCSI package header file by
|
/linux-4.4.14/lib/lzo/ |
H A D | lzodefs.h | 6 * The full LZO package can be found at:
|
H A D | lzo1x_compress.c | 6 * The full LZO package can be found at:
|
H A D | lzo1x_decompress_safe.c | 6 * The full LZO package can be found at:
|
/linux-4.4.14/scripts/ |
H A D | Makefile | 49 subdir- += basic kconfig package
|
H A D | setlocalversion | 76 if git diff-index --name-only HEAD | grep -qv "^scripts/package"; then
|
/linux-4.4.14/include/linux/ |
H A D | lzo.h | 9 * The full LZO package can be found at:
|
H A D | vt_kern.h | 6 * with information needed by the vt package
|
/linux-4.4.14/tools/perf/scripts/perl/Perf-Trace-Util/lib/Perf/Trace/ |
H A D | Context.pm | 0 package Perf::Trace::Context;
|
H A D | Util.pm | 0 package Perf::Trace::Util;
|
H A D | Core.pm | 0 package Perf::Trace::Core;
|
/linux-4.4.14/drivers/thermal/int340x_thermal/ |
H A D | acpi_thermal_rel.c | 98 *trt_count = p->package.count; acpi_parse_trt() 111 status = acpi_extract_package(&(p->package.elements[i]), acpi_parse_trt() 115 pr_warn("_TRT package %d is invalid, ignored\n", i); acpi_parse_trt() 179 /* ignore p->package.elements[0], as this is _ART Revision field */ acpi_parse_art() 180 *art_count = p->package.count - 1; acpi_parse_art() 193 status = acpi_extract_package(&(p->package.elements[i + 1]), acpi_parse_art() 196 pr_warn("_ART package %d is invalid, ignored", i); acpi_parse_art()
|
H A D | processor_thermal_device.c | 223 if (!p->package.count) { proc_thermal_add() 224 dev_err(dev, "Invalid PPCC package size\n"); proc_thermal_add() 238 for (i = 0; i < min((int)p->package.count - 1, 2); ++i) { proc_thermal_add() 239 elements = &(p->package.elements[i+1]); proc_thermal_add() 241 elements->package.count != 6) { proc_thermal_add() 245 ppcc = elements->package.elements; proc_thermal_add()
|
H A D | int3400_thermal.c | 130 for (i = 0; i < obja->package.count; i++) { int3400_thermal_get_uuids() 131 objb = &obja->package.elements[i]; int3400_thermal_get_uuids()
|
H A D | int3403_thermal.c | 190 obj->max_state = p->package.count - 1; int3403_cdev_add()
|
/linux-4.4.14/arch/arm/mach-omap2/ |
H A D | mux.h | 129 * @balls: available balls on the package 143 * struct omap_ball - data for balls on omap package 145 * @balls: available balls on the package 316 * @flags: OMAP package type used for the board 323 * @flags: OMAP package type used for the board 330 * @flags: OMAP package type used for the board 338 * @flags: OMAP package type used for the board
|
H A D | mux34xx.c | 703 * Signals different on CBC package compared to the superset 714 * Balls for CBC package 931 * Signals different on CUS package compared to superset 1075 * Balls for CUS package 1269 * Signals different on CBB package comapared to superset 1388 * Balls for CBB package 1600 * Signals different on 36XX CBP package comapared to 34XX CBC package 1816 * Balls for 36XX CBP package 2052 pr_err("%s Unknown omap package, mux disabled\n", __func__); omap3_mux_init()
|
/linux-4.4.14/drivers/video/backlight/ |
H A D | omap1_bl.c | 6 * This package is free software; you can redistribute it and/or modify 11 * This package is distributed in the hope that it will be useful, 17 * along with this package; if not, write to the Free Software
|
/linux-4.4.14/arch/mips/kernel/ |
H A D | smp.c | 90 if (cpu_data[cpu].package == cpu_data[i].package && set_cpu_sibling_map() 107 if (cpu_data[cpu].package == cpu_data[i].package) { set_cpu_core_map() 128 if (cpu_data[i].package == cpu_data[k].package && for_each_online_cpu()
|
H A D | proc.c | 134 seq_printf(m, "package\t\t\t: %d\n", cpu_data[n].package); show_cpuinfo()
|
/linux-4.4.14/arch/x86/kernel/cpu/ |
H A D | perf_event_intel_cstate.c | 34 * - 'cstate_pkg': The counter is available for each physical package. 60 * Scope: Package (physical package) 64 * Scope: Package (physical package) 68 * Scope: Package (physical package) 72 * Scope: Package (physical package) 76 * Scope: Package (physical package) 80 * Scope: Package (physical package) 84 * Scope: Package (physical package)
|
H A D | perf_event_intel_rapl.c | 22 * pkg counter: consumption of the whole processor package 58 #define RAPL_IDX_PKG_NRG_STAT 1 /* entire package */ 68 "package", 539 /* find a new cpu on same package */ for_each_online_cpu() 550 * if was set in cpumask and still some cpu on package,
|
H A D | perf_event_amd.c | 258 * of a package. Refer to BKDG section 3.12 263 * by all cores on a package. NB events are counted on a
|
/linux-4.4.14/drivers/scsi/lpfc/ |
H A D | Makefile | 18 # * included with this package. *
|
H A D | lpfc_version.h | 18 * included with this package. *
|
H A D | lpfc_compat.h | 18 * included with this package. *
|
H A D | lpfc_logmsg.h | 18 * included with this package. *
|
H A D | lpfc_vport.h | 19 * included with this package. *
|
H A D | lpfc_nl.h | 18 * included with this package. *
|
H A D | lpfc_bsg.h | 18 * included with this package. *
|
H A D | lpfc_scsi.h | 18 * included with this package. *
|
/linux-4.4.14/drivers/i2c/busses/ |
H A D | i2c-scmi.c | 187 obj = pkg->package.elements; acpi_smbus_cmi_access() 224 obj = pkg->package.elements + 1; acpi_smbus_cmi_access() 232 obj = pkg->package.elements + 2; acpi_smbus_cmi_access() 314 obj = obj->package.elements; acpi_smbus_cmi_add_cap()
|
H A D | i2c-designware-platdrv.c | 81 if (obj->type == ACPI_TYPE_PACKAGE && obj->package.count == 3) { dw_i2c_acpi_params() 82 const union acpi_object *objs = obj->package.elements; dw_i2c_acpi_params()
|
/linux-4.4.14/arch/arm/mach-omap1/include/mach/ |
H A D | board-sx1.h | 6 * This package is free software; you can redistribute it and/or modify
|
/linux-4.4.14/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/ |
H A D | Util.py | 74 print "Install the audit-libs-python package to get syscall names"
|
/linux-4.4.14/drivers/net/wireless/iwlwifi/pcie/ |
H A D | drv.c | 489 splx->package.count != 2 || splx_get_pwr_limit() 490 splx->package.elements[0].type != ACPI_TYPE_INTEGER || splx_get_pwr_limit() 491 splx->package.elements[0].integer.value != 0) { splx_get_pwr_limit() 496 limits = &splx->package.elements[1]; splx_get_pwr_limit() 498 limits->package.count < 2 || splx_get_pwr_limit() 499 limits->package.elements[0].type != ACPI_TYPE_INTEGER || splx_get_pwr_limit() 500 limits->package.elements[1].type != ACPI_TYPE_INTEGER) { splx_get_pwr_limit() 505 domain_type = &limits->package.elements[0]; splx_get_pwr_limit() 506 power_limit = &limits->package.elements[1]; splx_get_pwr_limit()
|
/linux-4.4.14/drivers/cpufreq/ |
H A D | pcc-cpufreq.c | 273 offset = &(pccp->package.elements[0]); pcc_get_offset() 281 offset = &(pccp->package.elements[1]); pcc_get_offset() 423 member = &out_obj->package.elements[0]; pcc_cpufreq_probe() 479 member = &out_obj->package.elements[1]; pcc_cpufreq_probe() 498 member = &out_obj->package.elements[2]; pcc_cpufreq_probe() 506 member = &out_obj->package.elements[3]; pcc_cpufreq_probe()
|
/linux-4.4.14/drivers/input/mouse/ |
H A D | cypress_ps2.h | 91 /* header byte bits of relative package. */ 98 /* header byte bits of absolute package. */
|
/linux-4.4.14/drivers/staging/speakup/ |
H A D | spk_priv.h | 2 * review functions for the speakup screen review package.
|
H A D | spk_priv_keyinfo.h | 2 * review functions for the speakup screen review package.
|
H A D | speakup_acntsa.c | 23 * package and is not a general device driver.
|
H A D | speakup_bns.c | 23 * package and is not a general device driver.
|
H A D | speakup_acntpc.c | 23 * package and is not a general device driver.
|
H A D | speakup_apollo.c | 23 * package and is not a general device driver.
|
H A D | speakup_keypc.c | 21 * package it's not a general device driver.
|
H A D | speakup_soft.c | 22 * package and is not a general device driver.
|
H A D | speakup_dtlk.c | 23 * package it's not a general device driver.
|
/linux-4.4.14/drivers/staging/comedi/drivers/ |
H A D | ni_daq_dio24.c | 7 2001/08/24 12:13:13 from the pcmcia package.
|
H A D | das08_cs.c | 20 driver of the Linux PCMCIA Card Services package.
|
H A D | ni_labpc_cs.c | 7 from the pcmcia package.
|
H A D | ni_atmio.c | 38 Otherwise, you can use the isapnptools package to configure
|
H A D | cb_das16_cs.c | 19 * driver of the Linux PCMCIA Card Services package.
|
/linux-4.4.14/drivers/net/fddi/skfp/ |
H A D | smtinit.c | 104 smt_timer_init(smc) ; /* timer package */ init_smt()
|
H A D | queue.c | 56 * timer_event is called from HW timer package.
|
/linux-4.4.14/include/media/ |
H A D | tvp514x.h | 14 * This package is free software; you can redistribute it and/or modify
|
/linux-4.4.14/net/llc/ |
H A D | llc_output.c | 63 * package primitive as an event and send to SAP event handler
|
/linux-4.4.14/tools/perf/util/ |
H A D | stat.c | 224 * instance to mark a package as used (skip=1). Otherwise check_per_pkg() 225 * we may run into a situation where the first CPU in a package check_per_pkg() 227 * would mark the package as used after the first CPU and would check_per_pkg()
|
/linux-4.4.14/arch/mips/loongson64/loongson-3/ |
H A D | smp.c | 306 cpu_data[cpu].package = loongson3_init_secondary() 319 if (cpu_data[cpu].package) loongson3_init_secondary() 372 cpu_data[0].package = cpu_logical_map(0) / loongson_sysconf.cores_per_package; loongson3_smp_setup() 595 uint64_t package_id = cpu_data[cpu].package; loongson3_disable_clock() 608 uint64_t package_id = cpu_data[cpu].package; loongson3_enable_clock()
|
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/ |
H A D | nvm.c | 700 wrdd->package.count < 2 || iwl_mvm_wrdd_get_mcc() 701 wrdd->package.elements[0].type != ACPI_TYPE_INTEGER || iwl_mvm_wrdd_get_mcc() 702 wrdd->package.elements[0].integer.value != 0) { iwl_mvm_wrdd_get_mcc() 707 for (i = 1 ; i < wrdd->package.count ; ++i) { iwl_mvm_wrdd_get_mcc() 708 mcc_pkg = &wrdd->package.elements[i]; iwl_mvm_wrdd_get_mcc() 711 mcc_pkg->package.count < 2 || iwl_mvm_wrdd_get_mcc() 712 mcc_pkg->package.elements[0].type != ACPI_TYPE_INTEGER || iwl_mvm_wrdd_get_mcc() 713 mcc_pkg->package.elements[1].type != ACPI_TYPE_INTEGER) { iwl_mvm_wrdd_get_mcc() 718 domain_type = &mcc_pkg->package.elements[0]; iwl_mvm_wrdd_get_mcc() 726 mcc_value = &mcc_pkg->package.elements[1]; iwl_mvm_wrdd_get_mcc()
|
/linux-4.4.14/drivers/usb/gadget/udc/ |
H A D | fsl_qe_udc.h | 199 #define IN_TOKEN_FRAME 0x00200000 /* In token package */ 200 #define OUT_TOKEN_FRAME 0x00100000 /* Out token package */ 201 #define SETUP_TOKEN_FRAME 0x00080000 /* Setup token package */
|
/linux-4.4.14/arch/mips/include/asm/mach-loongson64/ |
H A D | loongson.h | 254 /* Chip Config registor of each physical cpu package, PRid >= Loongson-2F */ 258 /* Chip Temperature registor of each physical cpu package, PRid >= Loongson-3A */ 262 /* Freq Control register of each physical cpu package, PRid >= Loongson-3B */
|
/linux-4.4.14/drivers/net/wireless/prism54/ |
H A D | islpci_mgt.h | 74 /* PIMFOR package definitions */
|
H A D | isl_38xx.h | 130 /* Fragment package definitions */
|
/linux-4.4.14/include/acpi/ |
H A D | acpi_bus.h | 37 acpi_extract_package(union acpi_object *package, 85 .package.type = ACPI_TYPE_PACKAGE, \ 86 .package.count = (cnt), \ 87 .package.elements = (eles) \
|
H A D | acexcep.h | 277 "A package or buffer contained incorrect data"), 311 "Method tried to use an empty package element"), 319 "Tried to access beyond the end of a package"),
|
H A D | acbuffer.h | 103 * Formatted _PLD return value. The minimum size is a package containing
|
/linux-4.4.14/arch/m68k/fpsp040/ |
H A D | skeleton.S | 13 | return from the package by a 'jmp real_xxxx'. At that point 17 | package returns. Thus, there will be system specific code 20 | If the exception was completely handled by the package, then 369 | The exception has been handled by the package and we are ready
|
H A D | fpsp.h | 14 | frame and any local variables needed by the FPSP package. 57 | handled by the package, or "bra real_xxxx" which is an external variable 64 | can happen if the package is entered for an unimplemented float
|
/linux-4.4.14/tools/lib/lockdep/ |
H A D | Makefile | 25 # This is useful for building a package. The program will be
|
/linux-4.4.14/tools/power/cpupower/utils/helpers/ |
H A D | topology.c | 114 * Get amount of cores by counting duplicates in a package get_cpu_topology()
|
/linux-4.4.14/drivers/usb/core/ |
H A D | usb-acpi.c | 107 || upc->package.count != 4) { usb_acpi_get_connect_type() 111 if (upc->package.elements[0].integer.value) usb_acpi_get_connect_type()
|
/linux-4.4.14/net/ieee802154/6lowpan/ |
H A D | tx.c | 59 * if this package isn't ipv6 one, where should it be routed? lowpan_header_create() 261 pr_debug("package xmit\n"); lowpan_xmit()
|
/linux-4.4.14/tools/power/x86/turbostat/ |
H A D | turbostat.c | 222 * run func(thread, core, package) in topology order 425 outp += sprintf(outp, "package: %d\n", p->package_id); dump_counters() 570 /* print per-package data only for 1st core in package */ format_counters() 815 /* calculate package delta only for 1st core in package */ delta_cpu() 1058 /* collect package counters only for 1st core in package */ get_counters() 1550 * return 1 if given CPU is 1st core in package 1599 * run func(thread, core, package) in topology order 2014 /* EPB is per-package */ print_epb() 2055 /* per-package */ print_perf_limit() 2232 /* units on package 0, verify later other packages match */ rapl_probe() 2365 /* RAPL counters are per package, so print only for 1st thread/package */ print_rapl() 2632 /* this is a per-package concept */ set_temperature_target() 2916 fprintf(stderr, "max_core_id %d, sizing for %d cores per package\n", topology_probe()
|
/linux-4.4.14/drivers/net/usb/ |
H A D | huawei_cdc_ncm.c | 79 * it here. Some huawei devices will need the NDP part of the NCM package to huawei_cdc_ncm_bind()
|
H A D | kalmia.c | 224 "Sending package with length %i and padding %i. Header: %6phC.", kalmia_tx_fixup() 292 netdev_dbg(dev->net, "Correct package length #%i", i kalmia_rx_fixup()
|
/linux-4.4.14/drivers/platform/x86/ |
H A D | panasonic-laptop.c | 294 if (pcc->num_sifr < hkey->package.count) { acpi_pcc_retrieve_biosdata() 301 for (i = 0; i < hkey->package.count; i++) { acpi_pcc_retrieve_biosdata() 302 union acpi_object *element = &(hkey->package.elements[i]); acpi_pcc_retrieve_biosdata() 309 pcc->sinf[hkey->package.count] = -1; acpi_pcc_retrieve_biosdata()
|
H A D | alienware-wmi.c | 180 int package; parse_rgb() member in union:color_union 191 repackager.package = rgb & 0x0f0f0f0f; parse_rgb()
|
H A D | acer-wmi.c | 1491 if (out_obj->package.count != 4) acer_gsensor_event() 1495 (s16)out_obj->package.elements[0].integer.value); acer_gsensor_event() 1497 (s16)out_obj->package.elements[1].integer.value); acer_gsensor_event() 1499 (s16)out_obj->package.elements[2].integer.value); acer_gsensor_event()
|
/linux-4.4.14/lib/ |
H A D | earlycpio.c | 24 * blob. Depending on the boot loader or package tool that may be a
|
/linux-4.4.14/security/apparmor/include/ |
H A D | match.h | 31 * package).
|
/linux-4.4.14/tools/lib/bpf/ |
H A D | Makefile | 28 # This is useful for building a package. The program will be
|
/linux-4.4.14/tools/power/cpupower/utils/idle_monitor/ |
H A D | hsw_ext_idle.c | 6 * Based on SandyBridge monitor. Implements the new package C-states
|
/linux-4.4.14/scripts/kconfig/ |
H A D | Makefile | 171 # Utilizes the lxdialog package 274 echo >&2 "* the GTK+ 2.0 development package is correctly installed..."; \
|
/linux-4.4.14/arch/mips/include/asm/octeon/ |
H A D | octeon-model.h | 281 * <4>: alternate package 288 * <6>: alternate package
|
/linux-4.4.14/arch/powerpc/kernel/ |
H A D | prom_init.c | 1185 call_prom("package-to-path", 3, 1, node, path, PROM_SCRATCH_SIZE-1); prom_init_mem() 1316 prom_printf("opening opal package failed (%x)\n", opal_inst); prom_instantiate_opal() 1385 prom_printf("opening rtas package failed (%x)\n", rtas_inst); prom_instantiate_rtas() 1442 prom_printf("opening vtpm package failed (%x)\n", ibmvtpm_inst); prom_instantiate_sml() 1584 if (call_prom("package-to-path", 3, 1, node, prom_initialize_tce_table() 1586 prom_printf("package-to-path failed\n"); prom_initialize_tce_table() 1821 /* instance-to-package fails on PA-Semi */ prom_init_stdout() 1822 stdout_node = call_prom("instance-to-package", 1, 1, prom.stdout); prom_init_stdout() 1825 prom_setprop(prom.chosen, "/chosen", "linux,stdout-package", prom_init_stdout() 1958 if (call_prom("package-to-path", 3, 1, node, path, prom_check_displays() 2129 l = call_prom("package-to-path", 3, 1, node, namep, room); scan_dt_build_struct() 2135 call_prom("package-to-path", 3, 1, node, namep, l); scan_dt_build_struct() 2156 call_prom("package-to-path", 3, 1, node, path, PROM_SCRATCH_SIZE-1); scan_dt_build_struct() 2662 cpu_pkg = call_prom("instance-to-package", 1, 1, prom_cpu); prom_find_boot_cpu()
|
H A D | legacy_serial.c | 602 DBG(" can't find stdout package %s !\n", name); check_legacy_serial_console() 609 DBG(" stdout package has no name !\n"); check_legacy_serial_console()
|
/linux-4.4.14/arch/m68k/ifpsp060/src/ |
H A D | isp.S | 30 # This file is appended to the top of the 060ISP package 31 # and contains the entry points into the package. The user, in 35 # example) that are referenced by the ISP package itself in order 67 # Here's the table of ENTRY POINTS for those linking the package. 1603 # if dmem_read_long() returns a fail message in d1, the package 1831 # if dmem_{read,write}_byte() returns a fail message in d1, the package 2014 # if dmem_read_{long,word}() returns a fail message in d1, the package 2460 # if dmem_read_long() returns a fail message in d1, the package 2695 # if dmem_read_long() returns a fail message in d1, the package 2714 # (internal to package) # 2717 # (external to package) # 2919 # (internal to package) # 2921 # (external and internal to package) # 2923 # (external to package) # 2925 # (external and internal to package) # 2928 # (external to package) # 2974 # Either way, after emulation, the package is re-entered at # 2989 # Also, the package enters here if a call to _real_lock_page() # 2994 # a0 is within the software package cas/cas2 emulation routines. This # 3164 # Please refer to the package documentation to see how to #
|
/linux-4.4.14/drivers/mfd/ |
H A D | rtsx_usb.c | 603 /* determine package */ rtsx_usb_init_chip() 609 ucr->package = LQFP48; rtsx_usb_init_chip() 612 ucr->package = QFN24; rtsx_usb_init_chip()
|
/linux-4.4.14/drivers/net/phy/ |
H A D | phy_device.c | 208 /* get_phy_c45_devs_in_pkg - reads a MMD's devices in package registers. 212 * @devices_in_package: where to store the devices in package information. 214 * Description: reads devices in package registers of a MMD at @dev_addr 246 * If the PHY devices-in-package appears to be valid, it and the 259 /* Find first non-zero Devices In package. Device zero is reserved get_phy_c45_ids() 270 * 10G PHYs have zero Devices In package, get_phy_c45_ids()
|
/linux-4.4.14/arch/x86/kernel/cpu/mcheck/ |
H A D | therm_throt.c | 66 /* Callback to handle core package threshold_interrupts */ 408 /* check violations of package thermal thresholds */ intel_thermal_interrupt()
|
/linux-4.4.14/arch/powerpc/platforms/powermac/ |
H A D | setup.c | 564 pr_debug(" can't find stdout package %s !\n", name); check_pmac_serial_console() 571 pr_debug(" stdout package has no name !\n"); check_pmac_serial_console()
|
/linux-4.4.14/include/linux/mfd/ |
H A D | rtsx_usb.h | 48 #define CHECK_PKG(ucr, pkg) ((ucr)->package == (pkg)) 55 int package; member in struct:rtsx_ucr
|
/linux-4.4.14/drivers/usb/serial/ |
H A D | aircable.c | 21 * tells the device the amount of information the package holds.
|
/linux-4.4.14/drivers/md/ |
H A D | dm-log-userspace-transfer.c | 111 DMERR("Insufficient space to receive package [%u] " fill_pkg()
|
/linux-4.4.14/drivers/media/i2c/ |
H A D | tvp514x_regs.h | 14 * This package is free software; you can redistribute it and/or modify
|
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmsmac/ |
H A D | aiutils.h | 143 uint chippkg; /* chip package option */
|
/linux-4.4.14/drivers/net/wireless/ |
H A D | atmel_cs.c | 11 and the Linux PCMCIA package, (C) David Hinds.
|
/linux-4.4.14/drivers/pnp/pnpbios/ |
H A D | proc.c | 9 * pcmcia-cs package.
|
/linux-4.4.14/arch/sparc/prom/ |
H A D | tree_64.c | 363 args[0] = (unsigned long) "instance-to-package"; prom_inst2pkg()
|
/linux-4.4.14/arch/x86/include/asm/ |
H A D | mce.h | 269 /* Interrupt Handler for package thermal thresholds */
|
/linux-4.4.14/arch/x86/kernel/ |
H A D | early_printk.c | 78 /* Serial functions loosely based on a similar package from Klaus P. Gerlicher */
|
H A D | smpboot.c | 79 /* Number of siblings per CPU package */ 360 * If NUMA nodes are observed to occur within a CPU package, this 417 * for each core in package, increment for_each_cpu() 425 * the other cpus in this package for_each_cpu()
|
/linux-4.4.14/arch/x86/platform/olpc/ |
H A D | olpc_dt.c | 121 if (olpc_ofw("package-to-path", args, res) || *len < 1) olpc_dt_pkg2path()
|
/linux-4.4.14/arch/mips/netlogic/common/ |
H A D | smp.c | 125 current_cpu_data.package = nlm_nodeid(); nlm_init_secondary()
|
/linux-4.4.14/sound/soc/codecs/ |
H A D | tlv320aic31xx.h | 6 * This package is free software; you can redistribute it and/or modify
|
/linux-4.4.14/include/linux/i2c/ |
H A D | tps65010.h | 186 * Board data may be used to package the GPIO (and LED) lines for use
|
/linux-4.4.14/tools/lib/traceevent/ |
H A D | Makefile | 32 # This is useful for building a package. The program will be
|
/linux-4.4.14/drivers/net/wireless/iwlwifi/ |
H A D | iwl-drv.c | 1032 "user selected to work with usniffer but usniffer image isn't available in ucode package\n"); iwl_parse_tlv_firmware() 1080 IWL_DEBUG_INFO(drv, "f/w package hdr runtime inst size = %Zd\n", validate_sec_sizes() 1083 IWL_DEBUG_INFO(drv, "f/w package hdr runtime data size = %Zd\n", validate_sec_sizes() 1086 IWL_DEBUG_INFO(drv, "f/w package hdr init inst size = %Zd\n", validate_sec_sizes() 1088 IWL_DEBUG_INFO(drv, "f/w package hdr init data size = %Zd\n", validate_sec_sizes()
|
/linux-4.4.14/ |
H A D | Makefile | 1227 package-dir := scripts/package 1230 $(Q)$(MAKE) $(build)=$(package-dir) $@ 1232 $(Q)$(MAKE) $(build)=$(package-dir) $@ 1234 $(Q)$(MAKE) $(build)=$(package-dir) $@ 1294 @$(MAKE) $(build)=$(package-dir) help
|
/linux-4.4.14/include/linux/bcma/ |
H A D | bcma_driver_chipcommon.h | 101 #define BCMA_CC_CHIPST_4706_PKG_OPTION BIT(0) /* 0: full-featured package 1: low-cost package */
|
/linux-4.4.14/drivers/gpio/ |
H A D | gpiolib-acpi.c | 844 const union acpi_object *element = obj->package.elements; acpi_gpio_package_count() 845 const union acpi_object *end = element + obj->package.count; acpi_gpio_package_count()
|
/linux-4.4.14/drivers/usb/gadget/function/ |
H A D | u_ether.h | 53 * layer facilities can be used to package multiple logical links on this
|
/linux-4.4.14/drivers/usb/misc/ |
H A D | usblcd.c | 6 * This file is licensed under the GPL. See COPYING in the package. *
|
/linux-4.4.14/drivers/regulator/ |
H A D | fan53555.c | 10 * This package is free software; you can redistribute it and/or modify
|
/linux-4.4.14/drivers/ssb/ |
H A D | scan.c | 321 ssb_info("Found chip with id 0x%04X, rev 0x%02X and package 0x%02X\n", ssb_bus_scan()
|
/linux-4.4.14/drivers/mailbox/ |
H A D | pcc.c | 103 * ACPI package. This is used to lookup the array of PCC
|
/linux-4.4.14/drivers/media/usb/dvb-usb-v2/ |
H A D | rtl28xxu.h | 249 #define SYS_IRRC_DPIR 0x302C /* IR data package interval */
|
/linux-4.4.14/drivers/net/ethernet/sfc/ |
H A D | tenxpress.c | 20 /* We expect these MMDs to be in the package. */
|
/linux-4.4.14/drivers/bcma/ |
H A D | scan.c | 453 bcma_info(bus, "Found chip with id %s, rev 0x%02X and package 0x%02X\n", bcma_detect_chip()
|