Lines Matching refs:handle
153 acpi_handle handle; /* the handle of the acpi device */ member
183 static int write_acpi_int(acpi_handle handle, const char *method, int val) in write_acpi_int() argument
187 status = acpi_execute_simple_method(handle, (char *)method, val); in write_acpi_int()
192 static int read_acpi_int(acpi_handle handle, const char *method, int *val) in read_acpi_int() argument
197 status = acpi_evaluate_integer(handle, (char *)method, NULL, &result); in read_acpi_int()
216 if (write_acpi_int(eeepc->handle, method, value)) in set_acpi()
231 if (read_acpi_int(eeepc->handle, method, &value)) in get_acpi()
237 acpi_handle *handle) in acpi_setter_handle() argument
247 status = acpi_get_handle(eeepc->handle, (char *)method, in acpi_setter_handle()
248 handle); in acpi_setter_handle()
559 static void eeepc_rfkill_hotplug(struct eeepc_laptop *eeepc, acpi_handle handle) in eeepc_rfkill_hotplug() argument
577 port = acpi_get_pci_dev(handle); in eeepc_rfkill_hotplug()
635 acpi_handle handle; in eeepc_rfkill_hotplug_update() local
637 status = acpi_get_handle(NULL, node, &handle); in eeepc_rfkill_hotplug_update()
640 eeepc_rfkill_hotplug(eeepc, handle); in eeepc_rfkill_hotplug_update()
643 static void eeepc_rfkill_notify(acpi_handle handle, u32 event, void *data) in eeepc_rfkill_notify() argument
650 eeepc_rfkill_hotplug(eeepc, handle); in eeepc_rfkill_notify()
657 acpi_handle handle; in eeepc_register_rfkill_notifier() local
659 status = acpi_get_handle(NULL, node, &handle); in eeepc_register_rfkill_notifier()
664 status = acpi_install_notify_handler(handle, in eeepc_register_rfkill_notifier()
675 eeepc_rfkill_hotplug(eeepc, handle); in eeepc_register_rfkill_notifier()
683 acpi_handle handle; in eeepc_unregister_rfkill_notifier() local
685 status = acpi_get_handle(NULL, node, &handle); in eeepc_unregister_rfkill_notifier()
690 status = acpi_remove_notify_handler(handle, in eeepc_unregister_rfkill_notifier()
701 eeepc_rfkill_hotplug(eeepc, handle); in eeepc_unregister_rfkill_notifier()
756 acpi_handle handle = data; in eeepc_rfkill_set() local
758 return write_acpi_int(handle, NULL, !blocked); in eeepc_rfkill_set()
770 acpi_handle handle; in eeepc_new_rfkill() local
773 result = acpi_setter_handle(eeepc, cm, &handle); in eeepc_new_rfkill()
778 &eeepc_rfkill_ops, handle); in eeepc_new_rfkill()
1304 && !read_acpi_int(eeepc->handle, cm_getv[cm], &dummy)) { in cmsg_quirk()
1335 if (write_acpi_int(eeepc->handle, "INIT", init_flags)) { in eeepc_acpi_init()
1341 if (read_acpi_int(eeepc->handle, "CMSG", &eeepc->cm_supported)) { in eeepc_acpi_init()
1372 eeepc->handle = device->handle; in eeepc_acpi_add()