Lines Matching refs:input
64 struct input_dev *input; member
73 struct input_dev *input; in surface_button_notify() local
111 input = button->input; in surface_button_notify()
118 input_report_key(input, key_code, pressed?1:0); in surface_button_notify()
119 input_sync(input); in surface_button_notify()
145 struct input_dev *input; in surface_button_add() local
159 button->input = input = input_allocate_device(); in surface_button_add()
160 if (!input) { in surface_button_add()
169 input->name = name; in surface_button_add()
170 input->phys = button->phys; in surface_button_add()
171 input->id.bustype = BUS_HOST; in surface_button_add()
172 input->dev.parent = &device->dev; in surface_button_add()
173 input_set_capability(input, EV_KEY, KEY_POWER); in surface_button_add()
174 input_set_capability(input, EV_KEY, KEY_LEFTMETA); in surface_button_add()
175 input_set_capability(input, EV_KEY, KEY_VOLUMEUP); in surface_button_add()
176 input_set_capability(input, EV_KEY, KEY_VOLUMEDOWN); in surface_button_add()
178 error = input_register_device(input); in surface_button_add()
186 input_free_device(input); in surface_button_add()
196 input_unregister_device(button->input); in surface_button_remove()