Lines Matching full:package

78 	dn->name = link->package.elements[0].string.pointer;  in acpi_nondev_subnode_extract()
93 * returned the package. That is, it's the scope of that in acpi_nondev_subnode_extract()
150 status = acpi_get_handle(scope, link->package.elements[1].string.pointer, in acpi_nondev_subnode_ok()
166 for (i = 0; i < links->package.count; i++) { in acpi_add_nondev_subnodes()
171 link = &links->package.elements[i]; in acpi_add_nondev_subnodes()
173 if (link->package.count != 2) in acpi_add_nondev_subnodes()
177 if (link->package.elements[0].type != ACPI_TYPE_STRING) in acpi_add_nondev_subnodes()
180 /* The second one may be a string, a reference or a package. */ in acpi_add_nondev_subnodes()
181 switch (link->package.elements[1].type) { in acpi_add_nondev_subnodes()
187 handle = link->package.elements[1].reference.handle; in acpi_add_nondev_subnodes()
192 desc = &link->package.elements[1]; in acpi_add_nondev_subnodes()
214 for (i = 0; i < desc->package.count; i += 2) { in acpi_enumerate_nondev_subnodes()
217 guid = &desc->package.elements[i]; in acpi_enumerate_nondev_subnodes()
218 links = &desc->package.elements[i + 1]; in acpi_enumerate_nondev_subnodes()
222 * a package. in acpi_enumerate_nondev_subnodes()
244 * The value must be an integer, a string, a reference, or a package in acpi_property_value_ok()
254 for (j = 0; j < value->package.count; j++) in acpi_property_value_ok()
255 switch (value->package.elements[j].type) { in acpi_property_value_ok()
274 for (i = 0; i < properties->package.count; i++) { in acpi_properties_format_valid()
277 property = &properties->package.elements[i]; in acpi_properties_format_valid()
282 if (property->package.count != 2 in acpi_properties_format_valid()
283 || property->package.elements[0].type != ACPI_TYPE_STRING in acpi_properties_format_valid()
284 || !acpi_property_value_ok(&property->package.elements[1])) in acpi_properties_format_valid()
348 if (desc->package.count % 2) in acpi_extract_properties()
352 for (i = 0; i < desc->package.count; i += 2) { in acpi_extract_properties()
355 guid = &desc->package.elements[i]; in acpi_extract_properties()
356 properties = &desc->package.elements[i + 1]; in acpi_extract_properties()
360 * a package. in acpi_extract_properties()
372 * package immediately following it. in acpi_extract_properties()
501 for (i = 0; i < properties->package.count; i++) { in acpi_data_get_property()
505 property = &properties->package.elements[i]; in acpi_data_get_property()
507 propname = &property->package.elements[0]; in acpi_data_get_property()
508 propvalue = &property->package.elements[1]; in acpi_data_get_property()
578 * Return: %0 if array property (package) with @name has been found (success),
581 * %-EPROTO if the property is not a package or the type of its elements
598 for (i = 0; i < prop->package.count; i++) in acpi_data_get_property_array()
599 if (prop->package.elements[i].type != type) in acpi_data_get_property_array()
637 * Find property with @name, verifify that it is a package containing at least
642 * If there's more than one reference in the property value package, @index is
648 * Package () {
650 * Package () {
700 * If it is not a single reference, then it is a package of in __acpi_node_get_property_reference()
703 * Package () { REF, INT, REF, INT, INT } in __acpi_node_get_property_reference()
710 if (index >= obj->package.count) in __acpi_node_get_property_reference()
713 element = obj->package.elements; in __acpi_node_get_property_reference()
714 end = element + obj->package.count; in __acpi_node_get_property_reference()
942 return obj->package.count; in acpi_data_prop_read()
944 if (proptype != DEV_PROP_STRING && nval > obj->package.count) in acpi_data_prop_read()
949 items = obj->package.elements; in acpi_data_prop_read()
967 min_t(u32, nval, obj->package.count)); in acpi_data_prop_read()