Lines Matching refs:device
101 struct evdev_device *device, in pad_process_absolute() argument
140 evdev_log_info(device, in pad_process_absolute()
179 struct evdev_device *device, in pad_handle_ring() argument
185 absinfo = libevdev_get_abs_info(device->evdev, code); in pad_handle_ring()
190 if (device->left_handed.enabled) in pad_handle_ring()
198 struct evdev_device *device, in pad_handle_strip() argument
204 absinfo = libevdev_get_abs_info(device->evdev, code); in pad_handle_strip()
212 if (device->left_handed.enabled) in pad_handle_strip()
252 struct evdev_device *device, in pad_check_notify_axes() argument
255 struct libinput_device *base = &device->base; in pad_check_notify_axes()
263 libevdev_get_event_value(device->evdev, EV_ABS, ABS_MISC) == 0) in pad_check_notify_axes()
267 value = pad_handle_ring(pad, device, ABS_WHEEL); in pad_check_notify_axes()
281 value = pad_handle_ring(pad, device, ABS_THROTTLE); in pad_check_notify_axes()
295 value = pad_handle_strip(pad, device, ABS_RX); in pad_check_notify_axes()
309 value = pad_handle_strip(pad, device, ABS_RY); in pad_check_notify_axes()
328 struct evdev_device *device, in pad_process_key() argument
360 struct evdev_device *device, in pad_notify_button_mask() argument
365 struct libinput_device *base = &device->base; in pad_notify_button_mask()
415 struct evdev_device *device, in pad_notify_buttons() argument
426 pad_notify_button_mask(pad, device, time, &buttons, state); in pad_notify_buttons()
430 pad_change_to_left_handed(struct evdev_device *device) in pad_change_to_left_handed() argument
432 struct pad_dispatch *pad = (struct pad_dispatch*)device->dispatch; in pad_change_to_left_handed()
434 if (device->left_handed.enabled == device->left_handed.want_enabled) in pad_change_to_left_handed()
440 device->left_handed.enabled = device->left_handed.want_enabled; in pad_change_to_left_handed()
445 struct evdev_device *device, in pad_flush() argument
449 pad_check_notify_axes(pad, device, time); in pad_flush()
455 device, in pad_flush()
460 pad_change_to_left_handed(device); in pad_flush()
465 device, in pad_flush()
479 struct evdev_device *device, in pad_process() argument
487 pad_process_absolute(pad, device, e, time); in pad_process()
490 pad_process_key(pad, device, e, time); in pad_process()
493 pad_flush(pad, device, time); in pad_process()
500 evdev_log_error(device, in pad_process()
510 struct evdev_device *device) in pad_suspend() argument
521 pad_flush(pad, device, libinput_now(libinput)); in pad_suspend()
550 struct evdev_device *device) in pad_init_buttons_from_libwacom() argument
565 evdev_device_get_id_vendor(device), in pad_init_buttons_from_libwacom()
566 evdev_device_get_id_product(device), in pad_init_buttons_from_libwacom()
596 struct evdev_device *device) in pad_init_buttons_from_kernel() argument
603 if (libevdev_has_event_code(device->evdev, EV_KEY, code)) in pad_init_buttons_from_kernel()
608 if (libevdev_has_event_code(device->evdev, EV_KEY, code)) in pad_init_buttons_from_kernel()
613 if (libevdev_has_event_code(device->evdev, EV_KEY, code)) in pad_init_buttons_from_kernel()
618 if (libevdev_has_event_code(device->evdev, EV_KEY, code)) in pad_init_buttons_from_kernel()
626 pad_init_keys(struct pad_dispatch *pad, struct evdev_device *device) in pad_init_keys() argument
636 if (libevdev_get_id_vendor(device->evdev) != VENDOR_ID_WACOM) in pad_init_keys()
640 if (libevdev_has_event_code(device->evdev, EV_KEY, *code)) in pad_init_keys()
647 struct evdev_device *device) in pad_init_buttons() argument
654 if (!pad_init_buttons_from_libwacom(pad, device)) in pad_init_buttons()
655 pad_init_buttons_from_kernel(pad, device); in pad_init_buttons()
657 pad_init_keys(pad, device); in pad_init_buttons()
661 pad_init_left_handed(struct evdev_device *device) in pad_init_left_handed() argument
663 if (evdev_tablet_has_left_handed(device)) in pad_init_left_handed()
664 evdev_init_left_handed(device, in pad_init_left_handed()
669 pad_init(struct pad_dispatch *pad, struct evdev_device *device) in pad_init() argument
673 pad->device = device; in pad_init()
677 pad_init_buttons(pad, device); in pad_init()
678 pad_init_left_handed(device); in pad_init()
679 if (pad_init_leds(pad, device) != 0) in pad_init()
686 pad_sendevents_get_modes(struct libinput_device *device) in pad_sendevents_get_modes() argument
692 pad_sendevents_set_mode(struct libinput_device *device, in pad_sendevents_set_mode() argument
695 struct evdev_device *evdev = evdev_device(device); in pad_sendevents_set_mode()
717 pad_sendevents_get_mode(struct libinput_device *device) in pad_sendevents_get_mode() argument
719 struct evdev_device *evdev = evdev_device(device); in pad_sendevents_get_mode()
726 pad_sendevents_get_default_mode(struct libinput_device *device) in pad_sendevents_get_default_mode() argument
732 evdev_tablet_pad_create(struct evdev_device *device) in evdev_tablet_pad_create() argument
738 if (pad_init(pad, device) != 0) { in evdev_tablet_pad_create()
743 device->base.config.sendevents = &pad->sendevents.config; in evdev_tablet_pad_create()
754 evdev_device_tablet_pad_has_key(struct evdev_device *device, uint32_t code) in evdev_device_tablet_pad_has_key() argument
756 if (!(device->seat_caps & EVDEV_DEVICE_TABLET_PAD)) in evdev_device_tablet_pad_has_key()
759 return libevdev_has_event_code(device->evdev, EV_KEY, code); in evdev_device_tablet_pad_has_key()
763 evdev_device_tablet_pad_get_num_buttons(struct evdev_device *device) in evdev_device_tablet_pad_get_num_buttons() argument
765 struct pad_dispatch *pad = (struct pad_dispatch*)device->dispatch; in evdev_device_tablet_pad_get_num_buttons()
767 if (!(device->seat_caps & EVDEV_DEVICE_TABLET_PAD)) in evdev_device_tablet_pad_get_num_buttons()
774 evdev_device_tablet_pad_get_num_rings(struct evdev_device *device) in evdev_device_tablet_pad_get_num_rings() argument
778 if (!(device->seat_caps & EVDEV_DEVICE_TABLET_PAD)) in evdev_device_tablet_pad_get_num_rings()
781 if (libevdev_has_event_code(device->evdev, EV_ABS, ABS_WHEEL)) { in evdev_device_tablet_pad_get_num_rings()
783 if (libevdev_has_event_code(device->evdev, in evdev_device_tablet_pad_get_num_rings()
793 evdev_device_tablet_pad_get_num_strips(struct evdev_device *device) in evdev_device_tablet_pad_get_num_strips() argument
797 if (!(device->seat_caps & EVDEV_DEVICE_TABLET_PAD)) in evdev_device_tablet_pad_get_num_strips()
800 if (libevdev_has_event_code(device->evdev, EV_ABS, ABS_RX)) { in evdev_device_tablet_pad_get_num_strips()
802 if (libevdev_has_event_code(device->evdev, in evdev_device_tablet_pad_get_num_strips()