[go: nahoru, domu]

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

123

/drivers/acpi/acpica/
H A Dnsprepkg.c3 * 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; local
94 /* The package info for this name is in the next table entry */
96 package = info->predefined + 1;
100 info->full_pathname, package->ret_info.type,
101 return_object->package.count));
105 * and trailing NULL package elements
107 acpi_ns_remove_null_elements(info, package
400 acpi_ns_check_package_list(struct acpi_evaluate_info *info, const union acpi_predefined_info *package, union acpi_operand_object **elements, u32 count) argument
[all...]
H A Dnsrepair2.c392 /* Examine each element of the _CID package */
394 element_ptr = return_object->package.elements;
395 for (i = 0; i < return_object->package.count; i++) {
457 outer_element_count = return_object->package.count - 1;
460 outer_elements = &return_object->package.elements[i + 1];
463 if ((*outer_elements)->package.count == 0) {
472 obj_desc = (*outer_elements)->package.elements[1]; /* Index1 = Type */
490 /* Update top-level package count, Type "Integer" checked elsewhere */
492 obj_desc = return_object->package.elements[0];
618 /* Each element in the _PRT package i
[all...]
H A Dexoparg6.c85 * package_obj - Object from the target package
112 * Below, P[i] refers to the package element, M refers to the Match object.
237 /* Get the package start_index, validate against the package length */
240 if (index >= operand[0]->package.count) {
242 "Index (0x%8.8X%8.8X) beyond package end (0x%X)",
244 operand[0]->package.count));
270 for (; index < operand[0]->package.count; index++) {
272 /* Get the current package element */
274 this_element = operand[0]->package
[all...]
H A Dutcopy.c124 * package element)
241 * DESCRIPTION: Copy one package element to another package element
261 &((union acpi_object *)(state->pkg.dest_object))->package.
280 * Build the package object
283 target_object->package.count = source_object->package.count;
284 target_object->package.elements =
288 * Pass the new package object back to the package wal
[all...]
H A Ddsobject.c73 * Simple objects are any objects other than a package object!
109 /* Check if we are resolving a named reference within a package */
120 * of a package - ignore if slack enabled. Some ASL code
128 "Ignoring unresolved reference in package [%4.4s]\n",
143 /* Special object resolution for elements of a package */
150 * the package. If this is a reference to a common data type,
151 * resolve it immediately. According to the ACPI spec, package
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 objec
[all...]
H A Dexdebug.c58 * index - Current package element, zero if not pkg
105 /* Display the index for package output only */
173 source_desc->package.count);
175 /* Output the entire contents of the package */
177 for (i = 0; i < source_desc->package.count; i++) {
178 acpi_ex_do_debug_object(source_desc->package.
H A Drscreate.c196 * 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,
256 top_object_list = package_object->package.elements;
257 number_of_elements = package_object->package.count;
281 if ((*top_object_list)->package.count != 4) {
283 "(PRT[%u]) Need package of length 4, found length %u",
284 index, (*top_object_list)->package.count));
293 sub_object_list = (*top_object_list)->package.elements;
410 /* Point to the next union acpi_operand_object in the top level package */
[all...]
H A Dnsconvert.c268 elements = original_object->package.elements;
269 count = original_object->package.count;
286 /* Copy the package elements (integers) to the buffer as DWORDs */
288 elements = original_object->package.elements;
H A Dnsrepair.c80 * 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"));
259 * A package is expected. We will wrap the existing object with a
260 * new package object. It is often the case that if a variable-length
261 * package is required, but there is only a single object needed, the
263 * object. Note: after the wrapping, the package will be validated
271 * incremented for being inserted into the new package.
289 * The original object is a package elemen
[all...]
H A Drscalc.c595 * 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;
635 top_object_list = package_object->package.elements;
654 sub_object_list = package_element->package.elements;
661 table_index < package_element->package.count
H A Dexdump.c103 {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"},
446 /* Dump the package contents */
620 /* This could be a null element of a package */
737 obj_desc->package.count,
738 obj_desc->package.elements);
741 * If elements exist, package element pointer is valid,
742 * and debug_level exceeds 1, dump package'
[all...]
H A Dutmisc.c217 * PARAMETERS: source_object - The package to walk
218 * target_object - Target object (if package is being copied)
219 * walk_callback - Called once for each package element
224 * DESCRIPTION: Walk through a package
248 /* Get one element of the package */
252 state->pkg.source_object->package.elements[this_index];
256 * 1) An uninitialized package element. It is completely
257 * legal to declare a package and leave it uninitialized
259 * 3) Any type other than a package. Packages are handled in else
275 state->pkg.source_object->package
[all...]
H A Dutdelete.c128 object->package.count));
131 * Elements of the package are not handled here, they are deleted
137 obj_pointer = object->package.elements;
347 * simple objects and package objects
542 * We must update all the sub-objects of the package,
545 for (i = 0; i < object->package.count; i++) {
547 * Null package elements are legal and can be simply
550 next_object = object->package.elements[i];
625 * The target of an Index (a package, string, or buffer) or a named
/drivers/xen/
H A Dxen-acpi-pad.c60 union acpi_object *package; local
69 package = buffer.pointer;
71 if (package->type == ACPI_TYPE_PACKAGE &&
72 package->package.count == 2 &&
73 package->package.elements[0].integer.value == 1) /* rev 1 */
74 num = package->package.elements[1].integer.value;
/drivers/pci/hotplug/
H A Dacpiphp_ibm.c285 union acpi_object *package; local
297 package = (union acpi_object *) buffer.pointer;
298 if (!(package) ||
299 (package->type != ACPI_TYPE_PACKAGE) ||
300 !(package->package.elements)) {
305 for (size = 0, i = 0; i < package->package.count; i++) {
306 if (package->package
[all...]
/drivers/acpi/
H A Dutils.c58 acpi_extract_package(union acpi_object *package, argument
70 if (!package || (package->type != ACPI_TYPE_PACKAGE)
71 || (package->package.count < 1)) {
72 printk(KERN_WARNING PREFIX "Invalid package argument\n");
87 if (format_count > package->package.count) {
89 " than exist in package [%d].\n",
90 format_count, package
331 union acpi_object *package = NULL; local
[all...]
H A Dacpi_pad.c398 union acpi_object *package; local
407 package = buffer.pointer;
409 if (package->type == ACPI_TYPE_PACKAGE &&
410 package->package.count == 2 &&
411 package->package.elements[0].integer.value == 1) /* rev 1 */
413 num = package->package.elements[1].integer.value;
H A Dfan.c127 obj->package.count != 3 ||
128 obj->package.elements[1].type != ACPI_TYPE_INTEGER) {
134 control = obj->package.elements[1].integer.value;
287 if (!obj || obj->type != ACPI_TYPE_PACKAGE || obj->package.count < 2) {
293 fan->fps_count = obj->package.count - 1; /* minus revision field */
305 status = acpi_extract_package(&obj->package.elements[i + 1],
H A Dprocessor_perflib.c244 || (pct->package.count != 2)) {
254 obj = pct->package.elements[0];
270 obj = pct->package.elements[1];
350 pss->package.count));
352 pr->performance->state_count = pss->package.count;
354 kmalloc(sizeof(struct acpi_processor_px) * pss->package.count,
370 status = acpi_extract_package(&(pss->package.elements[i]),
555 if (psd->package.count != 1) {
566 status = acpi_extract_package(&(psd->package.elements[0]),
/drivers/gpu/drm/i915/
H A Dintel_acpi.c92 connector_count = &pkg->package.elements[0];
95 for (i = 1; i < pkg->package.count; i++) {
96 union acpi_object *obj = &pkg->package.elements[i];
97 union acpi_object *connector_id = &obj->package.elements[0];
98 union acpi_object *info = &obj->package.elements[1];
/drivers/pci/
H A Dpci-acpi.c39 union acpi_object *fields = record->package.elements;
44 if (record->package.count != 6)
69 union acpi_object *fields = record->package.elements;
74 if (record->package.count != 5)
98 union acpi_object *fields = record->package.elements;
103 if (record->package.count != 18)
140 union acpi_object *package, *record, *fields; local
151 package = (union acpi_object *)buffer.pointer;
152 if (package->type != ACPI_TYPE_PACKAGE) {
157 for (i = 0; i < package
204 union acpi_object *package, *fields; local
[all...]
/drivers/char/tpm/
H A Dtpm_ppi.c77 * output.pointer should be of package type, including two integers.
82 if (obj->package.count == 2 &&
83 obj->package.elements[0].type == ACPI_TYPE_INTEGER &&
84 obj->package.elements[1].type == ACPI_TYPE_INTEGER) {
85 if (obj->package.elements[0].integer.value)
89 obj->package.elements[1].integer.value);
119 * string/package type. For PPI version 1.0 and 1.1, use buffer type
120 * for compatibility, and use package type since 1.2 according to spec.
170 * PPI spec defines params[3].type as empty package, but some platforms
205 * parameter output.pointer should be of package typ
[all...]
/drivers/hwmon/
H A Dasus_atk0110.c87 /* New package format */
97 /* Old package format */
314 return &pack->package.elements[offset];
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) {
348 dev_warn(dev, "Invalid package size: %d, expected: %d\n",
349 obj->package.count, expected_size);
367 tmp = &obj->package.elements[HWMON_PACK_UNK1];
373 tmp = &obj->package
[all...]
/drivers/powercap/
H A DKconfig28 fine grained control. These domains include processor package, DRAM
/drivers/usb/core/
H A Dusb-acpi.c107 || upc->package.count != 4) {
111 if (upc->package.elements[0].integer.value)

Completed in 1701 milliseconds

123