• Home
  • Raw
  • Download

Lines Matching full:device

36 			     struct evdev_device *device,  in fallback_keyboard_notify_key()  argument
43 down_count = evdev_update_key_down_count(device, key, state); in fallback_keyboard_notify_key()
47 keyboard_notify_key(&device->base, time, key, state); in fallback_keyboard_notify_key()
52 struct evdev_device *device, in fallback_lid_notify_toggle() argument
56 switch_notify_toggle(&device->base, in fallback_lid_notify_toggle()
66 struct evdev_device *device, in fallback_notify_physical_button() argument
71 evdev_pointer_notify_physical_button(device, time, button, state); in fallback_notify_physical_button()
94 post_button_scroll(struct evdev_device *device, in post_button_scroll() argument
98 if (device->scroll.method != LIBINPUT_CONFIG_SCROLL_ON_BUTTON_DOWN) in post_button_scroll()
101 switch(device->scroll.button_scroll_state) { in post_button_scroll()
108 evdev_log_debug(device, "btnscroll: discarding\n"); in post_button_scroll()
111 device->scroll.button_scroll_state = BUTTONSCROLL_SCROLLING; in post_button_scroll()
116 filter_dispatch_scroll(device->pointer.filter, in post_button_scroll()
118 device, in post_button_scroll()
120 evdev_post_scroll(device, time, in post_button_scroll()
132 struct evdev_device *device, in fallback_filter_defuzz_touch() argument
156 struct evdev_device *device) in fallback_rotate_relative() argument
160 if (!device->base.config.rotation) in fallback_rotate_relative()
170 struct evdev_device *device, in fallback_flush_relative_motion() argument
173 struct libinput_device *base = &device->base; in fallback_flush_relative_motion()
176 if (!(device->seat_caps & EVDEV_DEVICE_POINTER)) in fallback_flush_relative_motion()
179 struct device_float_coords raw = fallback_rotate_relative(dispatch, device); in fallback_flush_relative_motion()
185 if (post_button_scroll(device, raw, time)) in fallback_flush_relative_motion()
188 if (device->pointer.filter) { in fallback_flush_relative_motion()
190 accel = filter_dispatch(device->pointer.filter, in fallback_flush_relative_motion()
192 device, in fallback_flush_relative_motion()
195 evdev_log_bug_libinput(device, in fallback_flush_relative_motion()
208 struct evdev_device *device, in fallback_flush_absolute_motion() argument
211 struct libinput_device *base = &device->base; in fallback_flush_absolute_motion()
214 if (!(device->seat_caps & EVDEV_DEVICE_POINTER)) in fallback_flush_absolute_motion()
218 evdev_transform_absolute(device, &point); in fallback_flush_absolute_motion()
225 struct evdev_device *device, in fallback_flush_mt_down() argument
229 struct libinput_device *base = &device->base; in fallback_flush_mt_down()
235 if (!(device->seat_caps & EVDEV_DEVICE_TOUCH)) in fallback_flush_mt_down()
240 evdev_log_bug_kernel(device, in fallback_flush_mt_down()
254 evdev_transform_absolute(device, &point); in fallback_flush_mt_down()
264 struct evdev_device *device, in fallback_flush_mt_motion() argument
268 struct libinput_device *base = &device->base; in fallback_flush_mt_motion()
273 if (!(device->seat_caps & EVDEV_DEVICE_TOUCH)) in fallback_flush_mt_motion()
283 if (fallback_filter_defuzz_touch(dispatch, device, slot)) in fallback_flush_mt_motion()
286 evdev_transform_absolute(device, &point); in fallback_flush_mt_motion()
295 struct evdev_device *device, in fallback_flush_mt_up() argument
299 struct libinput_device *base = &device->base; in fallback_flush_mt_up()
304 if (!(device->seat_caps & EVDEV_DEVICE_TOUCH)) in fallback_flush_mt_up()
323 struct evdev_device *device, in fallback_flush_mt_cancel() argument
327 struct libinput_device *base = &device->base; in fallback_flush_mt_cancel()
332 if (!(device->seat_caps & EVDEV_DEVICE_TOUCH)) in fallback_flush_mt_cancel()
351 struct evdev_device *device, in fallback_flush_st_down() argument
354 struct libinput_device *base = &device->base; in fallback_flush_st_down()
359 if (!(device->seat_caps & EVDEV_DEVICE_TOUCH)) in fallback_flush_st_down()
363 evdev_log_bug_kernel(device, in fallback_flush_st_down()
377 evdev_transform_absolute(device, &point); in fallback_flush_st_down()
386 struct evdev_device *device, in fallback_flush_st_motion() argument
389 struct libinput_device *base = &device->base; in fallback_flush_st_motion()
394 evdev_transform_absolute(device, &point); in fallback_flush_st_motion()
408 struct evdev_device *device, in fallback_flush_st_up() argument
411 struct libinput_device *base = &device->base; in fallback_flush_st_up()
415 if (!(device->seat_caps & EVDEV_DEVICE_TOUCH)) in fallback_flush_st_up()
433 struct evdev_device *device, in fallback_flush_st_cancel() argument
436 struct libinput_device *base = &device->base; in fallback_flush_st_cancel()
440 if (!(device->seat_caps & EVDEV_DEVICE_TOUCH)) in fallback_flush_st_cancel()
458 struct evdev_device *device, in fallback_process_touch_button() argument
468 struct evdev_device *device, in fallback_process_key() argument
478 if (!device->is_mt) in fallback_process_key()
480 device, in fallback_process_key()
512 device, in fallback_process_key()
525 struct evdev_device *device, in fallback_process_touch() argument
533 evdev_log_bug_libinput(device, in fallback_process_touch()
550 v = libevdev_get_slot_value(device->evdev, in fallback_process_touch()
572 evdev_device_check_abs_axis_range(device, e->code, e->value); in fallback_process_touch()
578 evdev_device_check_abs_axis_range(device, e->code, e->value); in fallback_process_touch()
608 struct evdev_device *device, in fallback_process_absolute_motion() argument
613 evdev_device_check_abs_axis_range(device, e->code, e->value); in fallback_process_absolute_motion()
618 evdev_device_check_abs_axis_range(device, e->code, e->value); in fallback_process_absolute_motion()
639 int fd = libevdev_get_fd(dispatch->device->evdev); in fallback_lid_keyboard_event()
649 evdev_log_error(dispatch->device, in fallback_lid_keyboard_event()
662 fallback_lid_notify_toggle(dispatch, dispatch->device, time); in fallback_lid_keyboard_event()
670 assert(kbd->device); in fallback_lid_toggle_keyboard_listener()
676 &kbd->device->base, in fallback_lid_toggle_keyboard_listener()
692 if (!kbd->device) in fallback_lid_toggle_keyboard_listeners()
703 struct evdev_device *device, in fallback_process_switch() argument
722 fallback_lid_notify_toggle(dispatch, device, time); in fallback_process_switch()
733 switch_notify_toggle(&device->base, in fallback_process_switch()
742 fallback_reject_relative(struct evdev_device *device, in fallback_reject_relative() argument
747 (device->seat_caps & EVDEV_DEVICE_POINTER) == 0) { in fallback_reject_relative()
748 evdev_log_bug_libinput_ratelimit(device, in fallback_reject_relative()
749 &device->nonpointer_rel_limit, in fallback_reject_relative()
750 "REL_X/Y from a non-pointer device\n"); in fallback_reject_relative()
759 struct evdev_device *device, in fallback_process_relative() argument
762 if (fallback_reject_relative(device, e, time)) in fallback_process_relative()
776 fallback_wheel_process_relative(dispatch, device, e, time); in fallback_process_relative()
781 struct evdev_device *device, in fallback_process_absolute() argument
785 if (device->is_mt) { in fallback_process_absolute()
786 fallback_process_touch(dispatch, device, e, time); in fallback_process_absolute()
788 fallback_process_absolute_motion(dispatch, device, e); in fallback_process_absolute()
794 struct evdev_device *device) in fallback_any_button_down() argument
799 if (libevdev_has_event_code(device->evdev, EV_KEY, button) && in fallback_any_button_down()
812 evdev_transform_absolute(dispatch->device, &point); in fallback_arbitrate_touch()
825 struct evdev_device *device, in fallback_flush_mt_events() argument
845 device, in fallback_flush_mt_events()
855 device, in fallback_flush_mt_events()
862 device, in fallback_flush_mt_events()
868 device, in fallback_flush_mt_events()
900 struct evdev_device *device, in fallback_handle_state() argument
907 fallback_flush_relative_motion(dispatch, device, time); in fallback_handle_state()
911 if (fallback_flush_st_down(dispatch, device, time)) in fallback_handle_state()
914 if (device->seat_caps & EVDEV_DEVICE_TOUCH) { in fallback_handle_state()
916 device, in fallback_handle_state()
919 } else if (device->seat_caps & EVDEV_DEVICE_POINTER) { in fallback_handle_state()
921 device, in fallback_handle_state()
927 if (fallback_flush_st_up(dispatch, device, time)) in fallback_handle_state()
934 device, in fallback_handle_state()
938 touch_notify_frame(&device->base, time); in fallback_handle_state()
940 fallback_wheel_handle_state(dispatch, device, time); in fallback_handle_state()
966 struct evdev_device *device, in fallback_interface_process() argument
975 evdev_log_debug(device, "dropping events due to touch arbitration\n"); in fallback_interface_process()
985 fallback_process_relative(dispatch, device, event, time); in fallback_interface_process()
988 fallback_process_absolute(dispatch, device, event, time); in fallback_interface_process()
991 fallback_process_key(dispatch, device, event, time); in fallback_interface_process()
994 fallback_process_switch(dispatch, device, event, time); in fallback_interface_process()
997 fallback_handle_state(dispatch, device, time); in fallback_interface_process()
1004 struct evdev_device *device, in cancel_touches() argument
1013 evdev_transform_absolute(device, &point); in cancel_touches()
1016 device, in cancel_touches()
1022 evdev_transform_absolute(device, &point); in cancel_touches()
1028 fallback_flush_mt_cancel(dispatch, device, idx, time)) in cancel_touches()
1033 touch_notify_frame(&device->base, time); in cancel_touches()
1038 struct evdev_device *device, in release_pressed_keys() argument
1044 int count = get_key_down_count(device, code); in release_pressed_keys()
1050 evdev_log_bug_libinput(device, in release_pressed_keys()
1062 device, in release_pressed_keys()
1074 device, in release_pressed_keys()
1081 count = get_key_down_count(device, code); in release_pressed_keys()
1083 evdev_log_bug_libinput(device, in release_pressed_keys()
1093 struct evdev_device *device) in fallback_return_to_neutral_state() argument
1095 struct libinput *libinput = evdev_libinput_context(device); in fallback_return_to_neutral_state()
1101 cancel_touches(dispatch, device, NULL, time); in fallback_return_to_neutral_state()
1102 release_pressed_keys(dispatch, device, time); in fallback_return_to_neutral_state()
1109 struct evdev_device *device) in fallback_interface_suspend() argument
1113 fallback_return_to_neutral_state(dispatch, device); in fallback_interface_suspend()
1137 fallback_interface_sync_initial_state(struct evdev_device *device, in fallback_interface_sync_initial_state() argument
1141 uint64_t time = libinput_now(evdev_libinput_context(device)); in fallback_interface_sync_initial_state()
1143 if (device->tags & EVDEV_TAG_LID_SWITCH) { in fallback_interface_sync_initial_state()
1144 struct libevdev *evdev = device->evdev; in fallback_interface_sync_initial_state()
1160 fallback_lid_notify_toggle(dispatch, device, time); in fallback_interface_sync_initial_state()
1165 switch_notify_toggle(&device->base, in fallback_interface_sync_initial_state()
1174 struct evdev_device *device, in fallback_interface_update_rect() argument
1186 rect = evdev_phys_rect_to_units(device, phys_rect); in fallback_interface_update_rect()
1192 struct evdev_device *device, in fallback_interface_toggle_touch() argument
1219 rect = evdev_phys_rect_to_units(device, phys_rect); in fallback_interface_toggle_touch()
1220 cancel_touches(dispatch, device, &rect, time); in fallback_interface_toggle_touch()
1226 fallback_return_to_neutral_state(dispatch, device); in fallback_interface_toggle_touch()
1232 evdev_log_debug(device, "Touch arbitration state now %s\n", state); in fallback_interface_toggle_touch()
1277 kbd->device = keyboard; in fallback_lid_pair_keyboard()
1295 struct evdev_device *device) in fallback_resume() argument
1301 evdev_device_resume(device); in fallback_resume()
1306 struct evdev_device *device) in fallback_suspend() argument
1308 evdev_device_suspend(device); in fallback_suspend()
1317 struct evdev_device *device = dispatch->device; in fallback_tablet_mode_switch_event() local
1330 fallback_resume(dispatch, device); in fallback_tablet_mode_switch_event()
1331 evdev_log_debug(device, "tablet-mode: resuming device\n"); in fallback_tablet_mode_switch_event()
1334 fallback_suspend(dispatch, device); in fallback_tablet_mode_switch_event()
1335 evdev_log_debug(device, "tablet-mode: suspending device\n"); in fallback_tablet_mode_switch_event()
1383 evdev_log_debug(keyboard, "tablet-mode: suspending device\n"); in fallback_pair_tablet_mode()
1389 fallback_interface_device_added(struct evdev_device *device, in fallback_interface_device_added() argument
1392 fallback_lid_pair_keyboard(device, added_device); in fallback_interface_device_added()
1393 fallback_pair_tablet_mode(device, added_device); in fallback_interface_device_added()
1397 fallback_interface_device_removed(struct evdev_device *device, in fallback_interface_device_removed() argument
1401 fallback_dispatch(device->dispatch); in fallback_interface_device_removed()
1407 if (!kbd->device) in fallback_interface_device_removed()
1410 if (kbd->device != removed_device) in fallback_interface_device_removed()
1441 fallback_change_to_left_handed(struct evdev_device *device) in fallback_change_to_left_handed() argument
1443 struct fallback_dispatch *dispatch = fallback_dispatch(device->dispatch); in fallback_change_to_left_handed()
1445 if (device->left_handed.want_enabled == device->left_handed.enabled) in fallback_change_to_left_handed()
1448 if (fallback_any_button_down(dispatch, device)) in fallback_change_to_left_handed()
1451 device->left_handed.enabled = device->left_handed.want_enabled; in fallback_change_to_left_handed()
1455 fallback_change_scroll_method(struct evdev_device *device) in fallback_change_scroll_method() argument
1457 struct fallback_dispatch *dispatch = fallback_dispatch(device->dispatch); in fallback_change_scroll_method()
1459 if (device->scroll.want_method == device->scroll.method && in fallback_change_scroll_method()
1460 device->scroll.want_button == device->scroll.button && in fallback_change_scroll_method()
1461 device->scroll.want_lock_enabled == device->scroll.lock_enabled) in fallback_change_scroll_method()
1464 if (fallback_any_button_down(dispatch, device)) in fallback_change_scroll_method()
1467 device->scroll.method = device->scroll.want_method; in fallback_change_scroll_method()
1468 device->scroll.button = device->scroll.want_button; in fallback_change_scroll_method()
1469 device->scroll.lock_enabled = device->scroll.want_lock_enabled; in fallback_change_scroll_method()
1470 evdev_set_button_scroll_lock_enabled(device, device->scroll.lock_enabled); in fallback_change_scroll_method()
1474 fallback_rotation_config_is_available(struct libinput_device *device) in fallback_rotation_config_is_available() argument
1484 struct evdev_device *device = evdev_device(libinput_device); in fallback_rotation_config_set_angle() local
1485 struct fallback_dispatch *dispatch = fallback_dispatch(device->dispatch); in fallback_rotation_config_set_angle()
1496 struct evdev_device *device = evdev_device(libinput_device); in fallback_rotation_config_get_angle() local
1497 struct fallback_dispatch *dispatch = fallback_dispatch(device->dispatch); in fallback_rotation_config_get_angle()
1503 fallback_rotation_config_get_default_angle(struct libinput_device *device) in fallback_rotation_config_get_default_angle() argument
1510 struct evdev_device *device) in fallback_init_rotation() argument
1512 if (device->tags & EVDEV_TAG_TRACKPOINT) in fallback_init_rotation()
1520 device->base.config.rotation = &dispatch->rotation.config; in fallback_init_rotation()
1525 struct evdev_device *device) in fallback_dispatch_init_slots() argument
1527 struct libevdev *evdev = device->evdev; in fallback_dispatch_init_slots()
1533 if (evdev_is_fake_mt_device(device) || in fallback_dispatch_init_slots()
1541 if (evdev_need_mtdev(device)) { in fallback_dispatch_init_slots()
1542 device->mtdev = mtdev_new_open(device->fd); in fallback_dispatch_init_slots()
1543 if (!device->mtdev) in fallback_dispatch_init_slots()
1549 active_slot = device->mtdev->caps.slot.value; in fallback_dispatch_init_slots()
1551 num_slots = libevdev_get_num_slots(device->evdev); in fallback_dispatch_init_slots()
1560 if (evdev_need_mtdev(device)) in fallback_dispatch_init_slots()
1577 if (device->abs.absinfo_x->fuzz || device->abs.absinfo_y->fuzz) { in fallback_dispatch_init_slots()
1579 dispatch->mt.hysteresis_margin.x = device->abs.absinfo_x->fuzz/2; in fallback_dispatch_init_slots()
1580 dispatch->mt.hysteresis_margin.y = device->abs.absinfo_y->fuzz/2; in fallback_dispatch_init_slots()
1588 struct evdev_device *device) in fallback_dispatch_init_rel() argument
1596 struct evdev_device *device) in fallback_dispatch_init_abs() argument
1598 if (!libevdev_has_event_code(device->evdev, EV_ABS, ABS_X)) in fallback_dispatch_init_abs()
1601 dispatch->abs.point.x = device->abs.absinfo_x->value; in fallback_dispatch_init_abs()
1602 dispatch->abs.point.y = device->abs.absinfo_y->value; in fallback_dispatch_init_abs()
1605 evdev_device_init_abs_range_warnings(device); in fallback_dispatch_init_abs()
1610 struct evdev_device *device) in fallback_dispatch_init_switch() argument
1616 if (device->tags & EVDEV_TAG_LID_SWITCH) { in fallback_dispatch_init_switch()
1617 dispatch->lid.reliability = evdev_read_switch_reliability_prop(device); in fallback_dispatch_init_switch()
1621 if (device->tags & EVDEV_TAG_TABLET_MODE_SWITCH) { in fallback_dispatch_init_switch()
1622 val = libevdev_get_event_value(device->evdev, in fallback_dispatch_init_switch()
1639 evdev_log_debug(dispatch->device, "touch arbitration timeout\n"); in fallback_arbitration_timeout()
1644 struct evdev_device *device) in fallback_init_arbitration() argument
1651 evdev_device_get_sysname(device)); in fallback_init_arbitration()
1653 evdev_libinput_context(device), in fallback_init_arbitration()
1663 struct evdev_device *device = evdev_device(libinput_device); in fallback_dispatch_create() local
1667 dispatch->device = evdev_device(libinput_device); in fallback_dispatch_create()
1673 fallback_dispatch_init_rel(dispatch, device); in fallback_dispatch_create()
1674 fallback_dispatch_init_abs(dispatch, device); in fallback_dispatch_create()
1675 if (fallback_dispatch_init_slots(dispatch, device) == -1) { in fallback_dispatch_create()
1680 fallback_dispatch_init_switch(dispatch, device); in fallback_dispatch_create()
1682 if (device->left_handed.want_enabled) in fallback_dispatch_create()
1683 evdev_init_left_handed(device, in fallback_dispatch_create()
1686 if (device->scroll.want_button) in fallback_dispatch_create()
1687 evdev_init_button_scroll(device, in fallback_dispatch_create()
1690 if (device->scroll.natural_scrolling_enabled) in fallback_dispatch_create()
1691 evdev_init_natural_scroll(device); in fallback_dispatch_create()
1693 evdev_init_calibration(device, &dispatch->calibration); in fallback_dispatch_create()
1694 evdev_init_sendevents(device, &dispatch->base); in fallback_dispatch_create()
1695 fallback_init_rotation(dispatch, device); in fallback_dispatch_create()
1702 if (libevdev_has_event_code(device->evdev, EV_KEY, BTN_LEFT) && in fallback_dispatch_create()
1703 libevdev_has_event_code(device->evdev, EV_KEY, BTN_RIGHT)) { in fallback_dispatch_create()
1704 bool has_middle = libevdev_has_event_code(device->evdev, in fallback_dispatch_create()
1710 evdev_init_middlebutton(device, in fallback_dispatch_create()
1715 fallback_init_wheel(dispatch, device); in fallback_dispatch_create()
1717 fallback_init_arbitration(dispatch, device); in fallback_dispatch_create()