Lines Matching refs:device

19 acpi_install_notify_handler(acpi_device device,	uint32 handlerType,
22 return install_notify_handler(device->handle, handlerType, handler,
27 acpi_remove_notify_handler(acpi_device device, uint32 handlerType,
30 return remove_notify_handler(device->handle, handlerType, handler);
35 acpi_install_address_space_handler(acpi_device device, uint32 spaceId,
38 return install_address_space_handler(device->handle, spaceId, handler,
43 acpi_remove_address_space_handler(acpi_device device, uint32 spaceId,
46 return remove_address_space_handler(device->handle, spaceId, handler);
51 acpi_get_object_type(acpi_device device)
53 return device->type;
58 acpi_get_object(acpi_device device, const char *path, acpi_object_type **return_value)
60 if (device->path == NULL)
64 snprintf(objname, sizeof(objname), "%s.%s", device->path, path);
67 return get_object(device->path, return_value);
72 acpi_evaluate_method(acpi_device device, const char *method,
75 return evaluate_method(device->handle, method, args, returnValue);
80 acpi_walk_resources(acpi_device device, char *method,
83 return walk_resources(device->handle, method, callback, context);
88 acpi_walk_namespace(acpi_device device, uint32 objectType, uint32 maxDepth,
92 return walk_namespace(device->handle, objectType, maxDepth,
108 acpi_device_cookie *device = (acpi_device_cookie*)malloc(sizeof(*device));
109 if (device == NULL)
112 memset(device, 0, sizeof(*device));
115 free(device);
119 device->handle = handle;
120 device->path = path != NULL ? strdup(path) : NULL;
121 device->type = type;
122 device->node = node;
124 snprintf(device->name, sizeof(device->name), "acpi_device %s", path);
125 *cookie = device;
133 acpi_device_cookie *device = (acpi_device_cookie*)cookie;
135 free(device->path);
136 free(device);
161 NULL, // supports device
162 NULL, // register device (our parent registered us)
167 NULL, // device removed