Home
last modified time | relevance | path

Searched refs:package (Results 1 - 25 of 278) sorted by relevance

12345678910>>...12

/kernel/linux/linux-5.10/drivers/acpi/acpica/
H A Dnsprepkg.c4 * Module Name: nsprepkg - Validation of package objects for predefined names
21 const union acpi_predefined_info *package,
45 * DESCRIPTION: Check a returned package object for the correct count and
55 const union acpi_predefined_info *package; in acpi_ns_check_package() local
64 /* The package info for this name is in the next table entry */ in acpi_ns_check_package()
66 package = info->predefined + 1; in acpi_ns_check_package()
70 info->full_pathname, package->ret_info.type, in acpi_ns_check_package()
71 return_object->package.count)); in acpi_ns_check_package()
75 * and trailing NULL package elements in acpi_ns_check_package()
77 acpi_ns_remove_null_elements(info, package in acpi_ns_check_package()
386 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
[all...]
H A Ddspkginit.c4 * Module Name: dspkginit - Completion of deferred package initialization
31 * element_count - Number of elements in the package - this is
37 * DESCRIPTION: Translate a parser Op package object to the equivalent
40 * NOTE: The number of elements in the package will be always be the num_elements
41 * count, regardless of the number of elements in the package list. If
42 * num_elements is smaller, only that many package list elements are used.
47 * than the Package list length (for the fixed length package opcode), some
77 /* Find the parent of a possibly nested package */ in acpi_ds_build_internal_package_obj()
86 * If we are evaluating a Named package object of the form: in acpi_ds_build_internal_package_obj()
88 * the package objec in acpi_ds_build_internal_package_obj()
[all...]
H A Dnsrepair2.c360 /* Examine each element of the _CID package */ in acpi_ns_repair_CID()
362 element_ptr = return_object->package.elements; in acpi_ns_repair_CID()
363 for (i = 0; i < return_object->package.count; i++) { in acpi_ns_repair_CID()
421 outer_element_count = return_object->package.count - 1; in acpi_ns_repair_CST()
424 outer_elements = &return_object->package.elements[i + 1]; in acpi_ns_repair_CST()
427 if ((*outer_elements)->package.count == 0) { in acpi_ns_repair_CST()
437 obj_desc = (*outer_elements)->package.elements[1]; /* Index1 = Type */ in acpi_ns_repair_CST()
456 /* Update top-level package count, Type "Integer" checked elsewhere */ in acpi_ns_repair_CST()
458 obj_desc = return_object->package.elements[0]; in acpi_ns_repair_CST()
584 /* Each element in the _PRT package i in acpi_ns_repair_PRT()
[all...]
H A Dutcopy.c90 * package element) in acpi_ut_copy_isimple_to_esimple()
207 * DESCRIPTION: Copy one package element to another package element
228 package.elements[this_index]; in acpi_ut_copy_ielement_to_eelement()
246 * Build the package object in acpi_ut_copy_ielement_to_eelement()
249 target_object->package.count = source_object->package.count; in acpi_ut_copy_ielement_to_eelement()
250 target_object->package.elements = in acpi_ut_copy_ielement_to_eelement()
254 * Pass the new package object back to the package wal in acpi_ut_copy_ielement_to_eelement()
[all...]
/kernel/linux/linux-6.6/drivers/acpi/acpica/
H A Dnsprepkg.c4 * Module Name: nsprepkg - Validation of package objects for predefined names
21 const union acpi_predefined_info *package,
45 * DESCRIPTION: Check a returned package object for the correct count and
55 const union acpi_predefined_info *package; in acpi_ns_check_package() local
64 /* The package info for this name is in the next table entry */ in acpi_ns_check_package()
66 package = info->predefined + 1; in acpi_ns_check_package()
70 info->full_pathname, package->ret_info.type, in acpi_ns_check_package()
71 return_object->package.count)); in acpi_ns_check_package()
75 * and trailing NULL package elements in acpi_ns_check_package()
77 acpi_ns_remove_null_elements(info, package in acpi_ns_check_package()
386 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
[all...]
H A Ddspkginit.c4 * Module Name: dspkginit - Completion of deferred package initialization
31 * element_count - Number of elements in the package - this is
37 * DESCRIPTION: Translate a parser Op package object to the equivalent
40 * NOTE: The number of elements in the package will be always be the num_elements
41 * count, regardless of the number of elements in the package list. If
42 * num_elements is smaller, only that many package list elements are used.
47 * than the Package list length (for the fixed length package opcode), some
77 /* Find the parent of a possibly nested package */ in acpi_ds_build_internal_package_obj()
86 * If we are evaluating a Named package object of the form: in acpi_ds_build_internal_package_obj()
88 * the package objec in acpi_ds_build_internal_package_obj()
[all...]
H A Dnsrepair2.c364 /* Examine each element of the _CID package */ in acpi_ns_repair_CID()
366 element_ptr = return_object->package.elements; in acpi_ns_repair_CID()
367 for (i = 0; i < return_object->package.count; i++) { in acpi_ns_repair_CID()
425 outer_element_count = return_object->package.count - 1; in acpi_ns_repair_CST()
428 outer_elements = &return_object->package.elements[i + 1]; in acpi_ns_repair_CST()
431 if ((*outer_elements)->package.count == 0) { in acpi_ns_repair_CST()
441 obj_desc = (*outer_elements)->package.elements[1]; /* Index1 = Type */ in acpi_ns_repair_CST()
460 /* Update top-level package count, Type "Integer" checked elsewhere */ in acpi_ns_repair_CST()
462 obj_desc = return_object->package.elements[0]; in acpi_ns_repair_CST()
588 /* Each element in the _PRT package i in acpi_ns_repair_PRT()
[all...]
H A Dutcopy.c90 * package element) in acpi_ut_copy_isimple_to_esimple()
207 * DESCRIPTION: Copy one package element to another package element
228 package.elements[this_index]; in acpi_ut_copy_ielement_to_eelement()
246 * Build the package object in acpi_ut_copy_ielement_to_eelement()
249 target_object->package.count = source_object->package.count; in acpi_ut_copy_ielement_to_eelement()
250 target_object->package.elements = in acpi_ut_copy_ielement_to_eelement()
254 * Pass the new package object back to the package wal in acpi_ut_copy_ielement_to_eelement()
[all...]
/kernel/linux/linux-6.6/drivers/acpi/
H A Dpfr_update.c133 if (out_obj->package.count < CAP_NR_IDX || in query_capability()
134 out_obj->package.elements[CAP_STATUS_IDX].type != ACPI_TYPE_INTEGER || in query_capability()
135 out_obj->package.elements[CAP_UPDATE_IDX].type != ACPI_TYPE_INTEGER || in query_capability()
136 out_obj->package.elements[CAP_CODE_TYPE_IDX].type != ACPI_TYPE_BUFFER || in query_capability()
137 out_obj->package.elements[CAP_FW_VER_IDX].type != ACPI_TYPE_INTEGER || in query_capability()
138 out_obj->package.elements[CAP_CODE_RT_VER_IDX].type != ACPI_TYPE_INTEGER || in query_capability()
139 out_obj->package.elements[CAP_DRV_TYPE_IDX].type != ACPI_TYPE_BUFFER || in query_capability()
140 out_obj->package.elements[CAP_DRV_RT_VER_IDX].type != ACPI_TYPE_INTEGER || in query_capability()
141 out_obj->package.elements[CAP_DRV_SVN_IDX].type != ACPI_TYPE_INTEGER || in query_capability()
142 out_obj->package in query_capability()
[all...]
H A Dpfr_telemetry.c90 in_obj.package.count = 1; in get_pfrt_log_data_info()
91 in_obj.package.elements = &in_buf; in get_pfrt_log_data_info()
101 if (out_obj->package.count < LOG_NR_IDX || in get_pfrt_log_data_info()
102 out_obj->package.elements[LOG_STATUS_IDX].type != ACPI_TYPE_INTEGER || in get_pfrt_log_data_info()
103 out_obj->package.elements[LOG_EXT_STATUS_IDX].type != ACPI_TYPE_INTEGER || in get_pfrt_log_data_info()
104 out_obj->package.elements[LOG_MAX_SZ_IDX].type != ACPI_TYPE_INTEGER || in get_pfrt_log_data_info()
105 out_obj->package.elements[LOG_CHUNK1_LO_IDX].type != ACPI_TYPE_INTEGER || in get_pfrt_log_data_info()
106 out_obj->package.elements[LOG_CHUNK1_HI_IDX].type != ACPI_TYPE_INTEGER || in get_pfrt_log_data_info()
107 out_obj->package.elements[LOG_CHUNK1_SZ_IDX].type != ACPI_TYPE_INTEGER || in get_pfrt_log_data_info()
108 out_obj->package in get_pfrt_log_data_info()
[all...]
H A Dacpi_adxl.c50 if (obj->package.count != 2) { in adxl_dsm()
51 pr_info("Bad pkg count %d\n", obj->package.count); in adxl_dsm()
55 o = obj->package.elements; in adxl_dsm()
65 o = obj->package.elements + 1; in adxl_dsm()
112 argv4[0].package.count = 1; in adxl_decode()
113 argv4[0].package.elements = &argv4[1]; in adxl_decode()
121 r = results->package.elements + 1; in adxl_decode()
122 cnt = r->package.count; in adxl_decode()
127 r = r->package.elements; in adxl_decode()
169 p = params->package in adxl_init()
[all...]
H A Dproperty.c83 dn->name = link->package.elements[0].string.pointer; in acpi_nondev_subnode_extract()
98 * returned the package. That is, it's the scope of that in acpi_nondev_subnode_extract()
155 status = acpi_get_handle(scope, link->package.elements[1].string.pointer, in acpi_nondev_subnode_ok()
171 for (i = 0; i < links->package.count; i++) { in acpi_add_nondev_subnodes()
176 link = &links->package.elements[i]; in acpi_add_nondev_subnodes()
178 if (link->package.count != 2) in acpi_add_nondev_subnodes()
182 if (link->package.elements[0].type != ACPI_TYPE_STRING) in acpi_add_nondev_subnodes()
185 /* The second one may be a string, a reference or a package. */ in acpi_add_nondev_subnodes()
186 switch (link->package.elements[1].type) { in acpi_add_nondev_subnodes()
192 handle = link->package in acpi_add_nondev_subnodes()
393 union acpi_object *package; acpi_data_add_buffer_props() local
[all...]
H A Dutils.c32 acpi_extract_package(union acpi_object *package, in acpi_extract_package() argument
44 if (!package || (package->type != ACPI_TYPE_PACKAGE) in acpi_extract_package()
45 || (package->package.count < 1)) { in acpi_extract_package()
46 pr_debug("Invalid package argument\n"); in acpi_extract_package()
61 if (format_count > package->package.count) { in acpi_extract_package()
63 format_count, package->package in acpi_extract_package()
339 union acpi_object *package = NULL; acpi_evaluate_reference() local
[all...]
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/fw/
H A Dacpi.c184 * We need at least one entry in the wifi package that in iwl_acpi_get_wifi_pkg()
198 data->package.count < 2 || in iwl_acpi_get_wifi_pkg()
199 data->package.elements[0].type != ACPI_TYPE_INTEGER || in iwl_acpi_get_wifi_pkg()
200 data->package.elements[0].integer.value > 1) { in iwl_acpi_get_wifi_pkg()
205 *tbl_rev = data->package.elements[0].integer.value; in iwl_acpi_get_wifi_pkg()
208 for (i = 1; i < data->package.count; i++) { in iwl_acpi_get_wifi_pkg()
211 wifi_pkg = &data->package.elements[i]; in iwl_acpi_get_wifi_pkg()
213 /* skip entries that are not a package with the right size */ in iwl_acpi_get_wifi_pkg()
215 wifi_pkg->package.count != data_size) in iwl_acpi_get_wifi_pkg()
218 domain = &wifi_pkg->package in iwl_acpi_get_wifi_pkg()
[all...]
/kernel/linux/linux-5.10/drivers/acpi/
H A Dacpi_adxl.c50 if (obj->package.count != 2) { in adxl_dsm()
51 pr_info("Bad pkg count %d\n", obj->package.count); in adxl_dsm()
55 o = obj->package.elements; in adxl_dsm()
65 o = obj->package.elements + 1; in adxl_dsm()
112 argv4[0].package.count = 1; in adxl_decode()
113 argv4[0].package.elements = &argv4[1]; in adxl_decode()
121 r = results->package.elements + 1; in adxl_decode()
122 cnt = r->package.count; in adxl_decode()
127 r = r->package.elements; in adxl_decode()
169 p = params->package in adxl_init()
[all...]
H A Dutils.c42 acpi_extract_package(union acpi_object *package, in acpi_extract_package() argument
54 if (!package || (package->type != ACPI_TYPE_PACKAGE) in acpi_extract_package()
55 || (package->package.count < 1)) { in acpi_extract_package()
56 printk(KERN_WARNING PREFIX "Invalid package argument\n"); in acpi_extract_package()
71 if (format_count > package->package.count) { in acpi_extract_package()
73 " than exist in package [%d].\n", in acpi_extract_package()
74 format_count, package in acpi_extract_package()
306 union acpi_object *package = NULL; acpi_evaluate_reference() local
[all...]
/kernel/linux/linux-6.6/drivers/acpi/x86/
H A Ds2idle.c68 union acpi_object *package; member
71 /* Constraint package structure */
83 /* AMD Constraint package structure */
117 for (i = 0; i < out_obj->package.count; i++) { in lpi_device_get_constraints_amd()
118 union acpi_object *package = &out_obj->package.elements[i]; in lpi_device_get_constraints_amd() local
120 if (package->type == ACPI_TYPE_PACKAGE) { in lpi_device_get_constraints_amd()
127 lpi_constraints_table = kcalloc(package->package.count, in lpi_device_get_constraints_amd()
137 for (j = 0; j < package in lpi_device_get_constraints_amd()
218 union acpi_object *package = &out_obj->package.elements[i]; lpi_device_get_constraints() local
[all...]
/kernel/linux/linux-5.10/drivers/hwtracing/coresight/
H A Dcoresight-platform.c393 obj->package.count < 3) in is_acpi_coresight_graph()
396 graphid = &obj->package.elements[0]; in is_acpi_coresight_graph()
397 guid = &obj->package.elements[1]; in is_acpi_coresight_graph()
398 links = &obj->package.elements[2]; in is_acpi_coresight_graph()
481 if (graph->package.count < 2) in acpi_validate_dsd_graph()
484 rev = &graph->package.elements[0]; in acpi_validate_dsd_graph()
485 nr_graphs = &graph->package.elements[1]; in acpi_validate_dsd_graph()
500 /* Make sure the ACPI graph package has right number of elements */ in acpi_validate_dsd_graph()
501 if (graph->package.count != (n + 2)) in acpi_validate_dsd_graph()
505 * Each entry must be a graph package wit in acpi_validate_dsd_graph()
540 const union acpi_object *guid, *package; acpi_get_dsd_graph() local
[all...]
/kernel/linux/linux-6.6/drivers/hwtracing/coresight/
H A Dcoresight-platform.c367 obj->package.count < 3) in is_acpi_coresight_graph()
370 graphid = &obj->package.elements[0]; in is_acpi_coresight_graph()
371 guid = &obj->package.elements[1]; in is_acpi_coresight_graph()
372 links = &obj->package.elements[2]; in is_acpi_coresight_graph()
455 if (graph->package.count < 2) in acpi_validate_dsd_graph()
458 rev = &graph->package.elements[0]; in acpi_validate_dsd_graph()
459 nr_graphs = &graph->package.elements[1]; in acpi_validate_dsd_graph()
474 /* Make sure the ACPI graph package has right number of elements */ in acpi_validate_dsd_graph()
475 if (graph->package.count != (n + 2)) in acpi_validate_dsd_graph()
479 * Each entry must be a graph package wit in acpi_validate_dsd_graph()
513 const union acpi_object *guid, *package; acpi_get_dsd_graph() local
[all...]
/kernel/linux/linux-6.6/drivers/platform/x86/intel/int1092/
H A Dintel_sar.c63 * parse_package: parse acpi package for retrieving SAR information
68 * If a given package corresponding to a specific device mode is faulty, it is
83 num = &item->package.elements[0]; in parse_package()
91 item->package.count <= data->total_dev_mode) in parse_package()
102 num = &item->package.elements[itr + 1]; in parse_package()
103 if (num->type != ACPI_TYPE_PACKAGE || num->package.count < TOTAL_DATA) in parse_package()
105 if (get_int_value(&num->package.elements[0], &temp.device_mode)) in parse_package()
107 if (get_int_value(&num->package.elements[1], &temp.bandtable_index)) in parse_package()
109 if (get_int_value(&num->package.elements[2], &temp.antennatable_index)) in parse_package()
111 if (get_int_value(&num->package in parse_package()
[all...]
/kernel/linux/linux-5.10/drivers/xen/
H A Dxen-acpi-pad.c53 union acpi_object *package; in acpi_pad_pur() local
62 package = buffer.pointer; in acpi_pad_pur()
64 if (package->type == ACPI_TYPE_PACKAGE && in acpi_pad_pur()
65 package->package.count == 2 && in acpi_pad_pur()
66 package->package.elements[0].integer.value == 1) /* rev 1 */ in acpi_pad_pur()
67 num = package->package.elements[1].integer.value; in acpi_pad_pur()
/kernel/linux/linux-6.6/drivers/xen/
H A Dxen-acpi-pad.c53 union acpi_object *package; in acpi_pad_pur() local
62 package = buffer.pointer; in acpi_pad_pur()
64 if (package->type == ACPI_TYPE_PACKAGE && in acpi_pad_pur()
65 package->package.count == 2 && in acpi_pad_pur()
66 package->package.elements[0].integer.value == 1) /* rev 1 */ in acpi_pad_pur()
67 num = package->package.elements[1].integer.value; in acpi_pad_pur()
/kernel/linux/linux-5.10/drivers/pci/hotplug/
H A Dacpiphp_ibm.c284 union acpi_object *package; in ibm_get_table_from_acpi() local
296 package = (union acpi_object *) buffer.pointer; in ibm_get_table_from_acpi()
297 if (!(package) || in ibm_get_table_from_acpi()
298 (package->type != ACPI_TYPE_PACKAGE) || in ibm_get_table_from_acpi()
299 !(package->package.elements)) { in ibm_get_table_from_acpi()
304 for (size = 0, i = 0; i < package->package.count; i++) { in ibm_get_table_from_acpi()
305 if (package->package in ibm_get_table_from_acpi()
[all...]
/kernel/linux/linux-6.6/drivers/pci/hotplug/
H A Dacpiphp_ibm.c284 union acpi_object *package; in ibm_get_table_from_acpi() local
296 package = (union acpi_object *) buffer.pointer; in ibm_get_table_from_acpi()
297 if (!(package) || in ibm_get_table_from_acpi()
298 (package->type != ACPI_TYPE_PACKAGE) || in ibm_get_table_from_acpi()
299 !(package->package.elements)) { in ibm_get_table_from_acpi()
304 for (size = 0, i = 0; i < package->package.count; i++) { in ibm_get_table_from_acpi()
305 if (package->package in ibm_get_table_from_acpi()
[all...]
/kernel/linux/linux-5.10/net/ncsi/
H A Dncsi-netlink.c71 if (nc == nc->package->preferred_channel) in ncsi_write_channel_info()
104 netdev_info(ndp->ndev.dev, "NCSI: No package with id %u\n", id); in ncsi_write_package_info()
216 struct ncsi_package *np, *package; in ncsi_pkg_info_all_nl() local
238 package = NULL; in ncsi_pkg_info_all_nl()
241 package = np; in ncsi_pkg_info_all_nl()
243 if (!package) in ncsi_pkg_info_all_nl()
258 rc = ncsi_write_package_info(skb, ndp, package->id); in ncsi_pkg_info_all_nl()
277 struct ncsi_package *np, *package; in ncsi_set_interface_nl() local
298 package = NULL; in ncsi_set_interface_nl()
302 package in ncsi_set_interface_nl()
644 struct ncsi_package *np, *package; ncsi_set_channel_mask_nl() local
[all...]

Completed in 14 milliseconds

12345678910>>...12