Lines Matching refs:hp_wmi_input_dev
155 static struct input_dev *hp_wmi_input_dev; variable
561 if (test_bit(SW_DOCK, hp_wmi_input_dev->swbit)) in hp_wmi_notify()
562 input_report_switch(hp_wmi_input_dev, SW_DOCK, in hp_wmi_notify()
564 if (test_bit(SW_TABLET_MODE, hp_wmi_input_dev->swbit)) in hp_wmi_notify()
565 input_report_switch(hp_wmi_input_dev, SW_TABLET_MODE, in hp_wmi_notify()
567 input_sync(hp_wmi_input_dev); in hp_wmi_notify()
578 if (!sparse_keymap_report_event(hp_wmi_input_dev, in hp_wmi_notify()
633 hp_wmi_input_dev = input_allocate_device(); in hp_wmi_input_setup()
634 if (!hp_wmi_input_dev) in hp_wmi_input_setup()
637 hp_wmi_input_dev->name = "HP WMI hotkeys"; in hp_wmi_input_setup()
638 hp_wmi_input_dev->phys = "wmi/input0"; in hp_wmi_input_setup()
639 hp_wmi_input_dev->id.bustype = BUS_HOST; in hp_wmi_input_setup()
641 __set_bit(EV_SW, hp_wmi_input_dev->evbit); in hp_wmi_input_setup()
646 __set_bit(SW_DOCK, hp_wmi_input_dev->swbit); in hp_wmi_input_setup()
647 input_report_switch(hp_wmi_input_dev, SW_DOCK, val); in hp_wmi_input_setup()
653 __set_bit(SW_TABLET_MODE, hp_wmi_input_dev->swbit); in hp_wmi_input_setup()
654 input_report_switch(hp_wmi_input_dev, SW_TABLET_MODE, val); in hp_wmi_input_setup()
657 err = sparse_keymap_setup(hp_wmi_input_dev, hp_wmi_keymap, NULL); in hp_wmi_input_setup()
662 input_sync(hp_wmi_input_dev); in hp_wmi_input_setup()
673 err = input_register_device(hp_wmi_input_dev); in hp_wmi_input_setup()
682 input_free_device(hp_wmi_input_dev); in hp_wmi_input_setup()
689 input_unregister_device(hp_wmi_input_dev); in hp_wmi_input_destroy()
907 if (hp_wmi_input_dev) { in hp_wmi_resume_handler()
908 if (test_bit(SW_DOCK, hp_wmi_input_dev->swbit)) in hp_wmi_resume_handler()
909 input_report_switch(hp_wmi_input_dev, SW_DOCK, in hp_wmi_resume_handler()
911 if (test_bit(SW_TABLET_MODE, hp_wmi_input_dev->swbit)) in hp_wmi_resume_handler()
912 input_report_switch(hp_wmi_input_dev, SW_TABLET_MODE, in hp_wmi_resume_handler()
914 input_sync(hp_wmi_input_dev); in hp_wmi_resume_handler()