50 #define _COMPONENT ACPI_NAMESPACE
131 status = acpi_ns_convert_to_integer(return_object, &new_object);
133 goto object_repaired;
137 status = acpi_ns_convert_to_string(return_object, &new_object);
139 goto object_repaired;
143 status = acpi_ns_convert_to_buffer(return_object, &new_object);
145 goto object_repaired;
164 *return_object_ptr = new_object;
189 new_object->
common.reference_count =
190 return_object->
common.reference_count;
192 if (return_object->
common.reference_count > 1) {
193 return_object->
common.reference_count--;
198 "%s: Converted %s to expected %s at Package index %u\n",
205 "%s: Converted %s to expected %s\n",
214 *return_object_ptr = new_object;
241 switch (original_object->
common.type) {
257 if (original_object->
buffer.length > 8) {
263 for (i = 0; i < original_object->
buffer.length; i++) {
279 *return_object = new_object;
304 switch (original_object->
common.type) {
311 if (original_object->
integer.value == 0) {
338 while ((length < original_object->
buffer.length) &&
339 (original_object->
buffer.pointer[length])) {
355 original_object->
buffer.pointer, length);
362 *return_object = new_object;
390 switch (original_object->
common.type) {
418 original_object->
string.pointer,
419 original_object->
string.length);
431 elements = original_object->
package.elements;
432 count = original_object->
package.count;
434 for (i = 0; i <
count; i++) {
451 elements = original_object->
package.elements;
454 for (i = 0; i <
count; i++) {
455 *dword_buffer = (
u32) (*elements)->integer.value;
465 *return_object = new_object;
537 new_object->
common.reference_count =
541 "%s: Converted NULL package element to expected %s at index %u\n",
546 *return_object_ptr = new_object;
585 switch (package_type) {
602 count = obj_desc->
package.count;
605 source = obj_desc->
package.elements;
610 for (i = 0; i <
count; i++) {
622 if (new_count < count) {
624 "%s: Found and removed %u NULL elements\n",
625 data->
pathname, (count - new_count)));
630 obj_desc->
package.count = new_count;
676 pkg_obj_desc->
package.elements[0] = original_object;
679 "%s: Wrapped %s with expected Package object\n",
685 *obj_desc_ptr = pkg_obj_desc;