Lines Matching refs:handle
159 acpi_handle handle; /* the handle of the acpi device */ member
189 static int write_acpi_int(acpi_handle handle, const char *method, int val) in write_acpi_int() argument
193 status = acpi_execute_simple_method(handle, (char *)method, val); in write_acpi_int()
198 static int read_acpi_int(acpi_handle handle, const char *method, int *val) in read_acpi_int() argument
203 status = acpi_evaluate_integer(handle, (char *)method, NULL, &result); in read_acpi_int()
222 if (write_acpi_int(eeepc->handle, method, value)) in set_acpi()
237 if (read_acpi_int(eeepc->handle, method, &value)) in get_acpi()
243 acpi_handle *handle) in acpi_setter_handle() argument
253 status = acpi_get_handle(eeepc->handle, (char *)method, in acpi_setter_handle()
254 handle); in acpi_setter_handle()
567 static void eeepc_rfkill_hotplug(struct eeepc_laptop *eeepc, acpi_handle handle) in eeepc_rfkill_hotplug() argument
585 port = acpi_get_pci_dev(handle); in eeepc_rfkill_hotplug()
643 acpi_handle handle; in eeepc_rfkill_hotplug_update() local
645 status = acpi_get_handle(NULL, node, &handle); in eeepc_rfkill_hotplug_update()
648 eeepc_rfkill_hotplug(eeepc, handle); in eeepc_rfkill_hotplug_update()
651 static void eeepc_rfkill_notify(acpi_handle handle, u32 event, void *data) in eeepc_rfkill_notify() argument
658 eeepc_rfkill_hotplug(eeepc, handle); in eeepc_rfkill_notify()
665 acpi_handle handle; in eeepc_register_rfkill_notifier() local
667 status = acpi_get_handle(NULL, node, &handle); in eeepc_register_rfkill_notifier()
672 status = acpi_install_notify_handler(handle, in eeepc_register_rfkill_notifier()
683 eeepc_rfkill_hotplug(eeepc, handle); in eeepc_register_rfkill_notifier()
691 acpi_handle handle; in eeepc_unregister_rfkill_notifier() local
693 status = acpi_get_handle(NULL, node, &handle); in eeepc_unregister_rfkill_notifier()
698 status = acpi_remove_notify_handler(handle, in eeepc_unregister_rfkill_notifier()
709 eeepc_rfkill_hotplug(eeepc, handle); in eeepc_unregister_rfkill_notifier()
785 acpi_handle handle = data; in eeepc_rfkill_set() local
787 return write_acpi_int(handle, NULL, !blocked); in eeepc_rfkill_set()
799 acpi_handle handle; in eeepc_new_rfkill() local
802 result = acpi_setter_handle(eeepc, cm, &handle); in eeepc_new_rfkill()
807 &eeepc_rfkill_ops, handle); in eeepc_new_rfkill()
1337 && !read_acpi_int(eeepc->handle, cm_getv[cm], &dummy)) { in cmsg_quirk()
1368 if (write_acpi_int(eeepc->handle, "INIT", init_flags)) { in eeepc_acpi_init()
1374 if (read_acpi_int(eeepc->handle, "CMSG", &eeepc->cm_supported)) { in eeepc_acpi_init()
1405 eeepc->handle = device->handle; in eeepc_acpi_add()