45 #include <linux/export.h>
51 #define _COMPONENT ACPI_NAMESPACE
115 if (return_buffer->length == 0) {
125 if (((
union acpi_object *)return_buffer->pointer)->type == return_type) {
132 "Incorrect return type [%s] requested [%s]",
142 return_buffer->pointer =
NULL;
145 return_buffer->length = 0;
178 acpi_size buffer_space_needed;
204 if (external_params && external_params->count) {
212 1) *
sizeof(
void *));
220 for (i = 0; i < external_params->count; i++) {
245 }
else if (!handle) {
253 "Both Handle and Pathname are NULL"));
256 "Null Handle with relative pathname [%s]",
273 return_buffer->length = 0;
287 return_buffer->length = 0;
294 acpi_ns_resolve_references(info);
300 &buffer_space_needed);
308 buffer_space_needed);
315 "Needed buffer size %X, %s\n",
401 switch (info->return_object->reference.class) {
404 obj_desc = *(info->return_object->reference.where);
409 node = info->return_object->reference.
object;
424 info->return_object = obj_desc;
478 (!max_depth) || (!pre_order_visit && !post_order_visit)) {
506 goto unlock_and_exit;
511 post_order_visit, context,
537 acpi_ns_get_device_callback(
acpi_handle obj_handle,
606 for (i = 0; i < cid->
count; i++) {
671 void *context,
void **return_value)
680 if (!user_function) {
705 acpi_ns_get_device_callback,
NULL,
706 &info, return_value);
736 if (!obj_handle || !handler || !data) {
750 goto unlock_and_exit;
782 if (!obj_handle || !handler) {
796 goto unlock_and_exit;
829 if (!obj_handle || !handler || !data) {
843 goto unlock_and_exit;