Lines Matching refs:button_dev
19 static struct input_dev *button_dev;
23 input_report_key(button_dev, BTN_0, inb(BUTTON_PORT) & 1);
24 input_sync(button_dev);
37 button_dev = input_allocate_device();
38 if (!button_dev) {
44 button_dev->evbit[0] = BIT_MASK(EV_KEY);
45 button_dev->keybit[BIT_WORD(BTN_0)] = BIT_MASK(BTN_0);
47 error = input_register_device(button_dev);
56 input_free_device(button_dev);
64 input_unregister_device(button_dev);
88 set_bit(EV_KEY, button_dev.evbit);
89 set_bit(BTN_0, button_dev.keybit);
96 input_register_device(&button_dev);
98 This adds the button_dev structure to linked lists of the input driver and
154 button_dev->open = button_open;
155 button_dev->close = button_close;
200 button_dev.absmin[ABS_X] = 0;
201 button_dev.absmax[ABS_X] = 255;
202 button_dev.absfuzz[ABS_X] = 4;
203 button_dev.absflat[ABS_X] = 8;
207 input_set_abs_params(button_dev, ABS_X, 0, 255, 4, 8);
289 button_dev->event = button_event;