Lines Matching refs:element
73 union acpi_object *element = obj->package.elements; in chromeos_acpi_handle_package() local
77 element += pkg_num; in chromeos_acpi_handle_package()
79 if (element->type == ACPI_TYPE_PACKAGE) { in chromeos_acpi_handle_package()
80 if (sub_pkg_num >= element->package.count) in chromeos_acpi_handle_package()
83 element = element->package.elements; in chromeos_acpi_handle_package()
84 element += sub_pkg_num; in chromeos_acpi_handle_package()
87 switch (element->type) { in chromeos_acpi_handle_package()
89 return sysfs_emit(buf, "%d\n", (int)element->integer.value); in chromeos_acpi_handle_package()
91 return sysfs_emit(buf, "%s\n", element->string.pointer); in chromeos_acpi_handle_package()
99 for (i = 0; i < element->buffer.length && room_left; i += byte_per_line) { in chromeos_acpi_handle_package()
100 r = hex_dump_to_buffer(element->buffer.pointer + i, in chromeos_acpi_handle_package()
101 element->buffer.length - i, in chromeos_acpi_handle_package()
124 dev_err(dev, "element type %d not supported\n", element->type); in chromeos_acpi_handle_package()