Lines Matching refs:input_dev
23 static struct input_dev *input_dev; variable
46 input_event(input_dev, EV_MSC, MSC_SCAN, code); in acpi_atlas_button_handler()
47 input_report_key(input_dev, atlas_keymap[code], key_down); in acpi_atlas_button_handler()
48 input_sync(input_dev); in acpi_atlas_button_handler()
66 input_dev = input_allocate_device(); in atlas_acpi_button_add()
67 if (!input_dev) { in atlas_acpi_button_add()
72 input_dev->name = "Atlas ACPI button driver"; in atlas_acpi_button_add()
73 input_dev->phys = "ASIM0000/atlas/input0"; in atlas_acpi_button_add()
74 input_dev->id.bustype = BUS_HOST; in atlas_acpi_button_add()
75 input_dev->keycode = atlas_keymap; in atlas_acpi_button_add()
76 input_dev->keycodesize = sizeof(unsigned short); in atlas_acpi_button_add()
77 input_dev->keycodemax = ARRAY_SIZE(atlas_keymap); in atlas_acpi_button_add()
79 input_set_capability(input_dev, EV_MSC, MSC_SCAN); in atlas_acpi_button_add()
80 __set_bit(EV_KEY, input_dev->evbit); in atlas_acpi_button_add()
84 __set_bit(KEY_F1 + i, input_dev->keybit); in atlas_acpi_button_add()
89 err = input_register_device(input_dev); in atlas_acpi_button_add()
92 input_free_device(input_dev); in atlas_acpi_button_add()
102 input_unregister_device(input_dev); in atlas_acpi_button_add()
118 input_unregister_device(input_dev); in atlas_acpi_button_remove()