Lines Matching refs:package

95 	dn->name = link->package.elements[0].string.pointer;  in acpi_nondev_subnode_extract()
167 status = acpi_get_handle(scope, link->package.elements[1].string.pointer, in acpi_nondev_subnode_ok()
183 for (i = 0; i < links->package.count; i++) { in acpi_add_nondev_subnodes()
188 link = &links->package.elements[i]; in acpi_add_nondev_subnodes()
190 if (link->package.count != 2) in acpi_add_nondev_subnodes()
194 if (link->package.elements[0].type != ACPI_TYPE_STRING) in acpi_add_nondev_subnodes()
198 switch (link->package.elements[1].type) { in acpi_add_nondev_subnodes()
204 handle = link->package.elements[1].reference.handle; in acpi_add_nondev_subnodes()
209 desc = &link->package.elements[1]; in acpi_add_nondev_subnodes()
231 for (i = 0; i < desc->package.count; i += 2) { in acpi_enumerate_nondev_subnodes()
235 guid = &desc->package.elements[i]; in acpi_enumerate_nondev_subnodes()
236 links = &desc->package.elements[i + 1]; in acpi_enumerate_nondev_subnodes()
272 for (j = 0; j < value->package.count; j++) in acpi_property_value_ok()
273 switch (value->package.elements[j].type) { in acpi_property_value_ok()
292 for (i = 0; i < properties->package.count; i++) { in acpi_properties_format_valid()
295 property = &properties->package.elements[i]; in acpi_properties_format_valid()
300 if (property->package.count != 2 in acpi_properties_format_valid()
301 || property->package.elements[0].type != ACPI_TYPE_STRING in acpi_properties_format_valid()
302 || !acpi_property_value_ok(&property->package.elements[1])) in acpi_properties_format_valid()
405 union acpi_object *package; in acpi_data_add_buffer_props() local
410 if (check_mul_overflow((size_t)properties->package.count, in acpi_data_add_buffer_props()
411 sizeof(*package) + sizeof(void *), in acpi_data_add_buffer_props()
413 check_add_overflow(sizeof(*props) + sizeof(*package), alloc_size, in acpi_data_add_buffer_props()
417 properties->package.count); in acpi_data_add_buffer_props()
427 props->properties = (void *)(props->bufs + properties->package.count); in acpi_data_add_buffer_props()
430 package = props->properties; in acpi_data_add_buffer_props()
431 package->type = ACPI_TYPE_PACKAGE; in acpi_data_add_buffer_props()
432 package->package.elements = package + 1; in acpi_data_add_buffer_props()
433 count = &package->package.count; in acpi_data_add_buffer_props()
437 package++; in acpi_data_add_buffer_props()
439 for (i = 0; i < properties->package.count; i++) { in acpi_data_add_buffer_props()
441 union acpi_object *property = &properties->package.elements[i]; in acpi_data_add_buffer_props()
446 property->package.count != 2) { in acpi_data_add_buffer_props()
449 i, property->package.count); in acpi_data_add_buffer_props()
453 prop = &property->package.elements[0]; in acpi_data_add_buffer_props()
454 obj = &property->package.elements[1]; in acpi_data_add_buffer_props()
475 package->type = ACPI_TYPE_PACKAGE; in acpi_data_add_buffer_props()
476 package->package.elements = prop; in acpi_data_add_buffer_props()
477 package->package.count = 2; in acpi_data_add_buffer_props()
487 package++; in acpi_data_add_buffer_props()
502 if (desc->package.count % 2) in acpi_extract_properties()
506 for (i = 0; i < desc->package.count; i += 2) { in acpi_extract_properties()
510 guid = &desc->package.elements[i]; in acpi_extract_properties()
511 properties = &desc->package.elements[i + 1]; in acpi_extract_properties()
610 for (i = 0; i < props->properties->package.count; i++) in acpi_free_device_properties()
678 for (i = 0; i < properties->package.count; i++) { in acpi_data_get_property()
682 property = &properties->package.elements[i]; in acpi_data_get_property()
684 propname = &property->package.elements[0]; in acpi_data_get_property()
685 propvalue = &property->package.elements[1]; in acpi_data_get_property()
776 for (i = 0; i < prop->package.count; i++) in acpi_data_get_property_array()
777 if (prop->package.elements[i].type != type) in acpi_data_get_property_array()
985 if (index >= obj->package.count) in __acpi_node_get_property_reference()
988 element = obj->package.elements; in __acpi_node_get_property_reference()
989 end = element + obj->package.count; in __acpi_node_get_property_reference()
1174 return obj->package.count; in acpi_data_prop_read()
1185 if (nval > obj->package.count) in acpi_data_prop_read()
1198 items = obj->package.elements; in acpi_data_prop_read()
1217 min_t(u32, nval, obj->package.count)); in acpi_data_prop_read()