• Home
  • Raw
  • Download

Lines Matching full:dispatch

35 fallback_keyboard_notify_key(struct fallback_dispatch *dispatch,  in fallback_keyboard_notify_key()  argument
51 fallback_lid_notify_toggle(struct fallback_dispatch *dispatch, in fallback_lid_notify_toggle() argument
55 if (dispatch->lid.is_closed ^ dispatch->lid.is_closed_client_state) { in fallback_lid_notify_toggle()
59 dispatch->lid.is_closed); in fallback_lid_notify_toggle()
60 dispatch->lid.is_closed_client_state = dispatch->lid.is_closed; in fallback_lid_notify_toggle()
65 fallback_notify_physical_button(struct fallback_dispatch *dispatch, in fallback_notify_physical_button() argument
78 struct fallback_dispatch *dispatch = fallback_dispatch(evdev_dispatch); in fallback_interface_get_switch_state() local
88 return dispatch->tablet_mode.sw.state ? in fallback_interface_get_switch_state()
131 fallback_filter_defuzz_touch(struct fallback_dispatch *dispatch, in fallback_filter_defuzz_touch() argument
137 if (!dispatch->mt.want_hysteresis) in fallback_filter_defuzz_touch()
142 &dispatch->mt.hysteresis_margin); in fallback_filter_defuzz_touch()
155 fallback_rotate_relative(struct fallback_dispatch *dispatch, in fallback_rotate_relative() argument
158 struct device_float_coords rel = { dispatch->rel.x, dispatch->rel.y }; in fallback_rotate_relative()
163 matrix_mult_vec_double(&dispatch->rotation.matrix, &rel.x, &rel.y); in fallback_rotate_relative()
169 fallback_flush_relative_motion(struct fallback_dispatch *dispatch, in fallback_flush_relative_motion() argument
179 struct device_float_coords raw = fallback_rotate_relative(dispatch, device); in fallback_flush_relative_motion()
181 dispatch->rel.x = 0; in fallback_flush_relative_motion()
182 dispatch->rel.y = 0; in fallback_flush_relative_motion()
207 fallback_flush_absolute_motion(struct fallback_dispatch *dispatch, in fallback_flush_absolute_motion() argument
217 point = dispatch->abs.point; in fallback_flush_absolute_motion()
224 fallback_flush_mt_down(struct fallback_dispatch *dispatch, in fallback_flush_mt_down() argument
238 slot = &dispatch->mt.slots[slot_idx]; in fallback_flush_mt_down()
263 fallback_flush_mt_motion(struct fallback_dispatch *dispatch, in fallback_flush_mt_motion() argument
276 slot = &dispatch->mt.slots[slot_idx]; in fallback_flush_mt_motion()
283 if (fallback_filter_defuzz_touch(dispatch, device, slot)) in fallback_flush_mt_motion()
294 fallback_flush_mt_up(struct fallback_dispatch *dispatch, in fallback_flush_mt_up() argument
307 slot = &dispatch->mt.slots[slot_idx]; in fallback_flush_mt_up()
322 fallback_flush_mt_cancel(struct fallback_dispatch *dispatch, in fallback_flush_mt_cancel() argument
335 slot = &dispatch->mt.slots[slot_idx]; in fallback_flush_mt_cancel()
350 fallback_flush_st_down(struct fallback_dispatch *dispatch, in fallback_flush_st_down() argument
362 if (dispatch->abs.seat_slot != -1) { in fallback_flush_st_down()
369 dispatch->abs.seat_slot = seat_slot; in fallback_flush_st_down()
376 point = dispatch->abs.point; in fallback_flush_st_down()
385 fallback_flush_st_motion(struct fallback_dispatch *dispatch, in fallback_flush_st_motion() argument
393 point = dispatch->abs.point; in fallback_flush_st_motion()
396 seat_slot = dispatch->abs.seat_slot; in fallback_flush_st_motion()
407 fallback_flush_st_up(struct fallback_dispatch *dispatch, in fallback_flush_st_up() argument
418 seat_slot = dispatch->abs.seat_slot; in fallback_flush_st_up()
419 dispatch->abs.seat_slot = -1; in fallback_flush_st_up()
432 fallback_flush_st_cancel(struct fallback_dispatch *dispatch, in fallback_flush_st_cancel() argument
443 seat_slot = dispatch->abs.seat_slot; in fallback_flush_st_cancel()
444 dispatch->abs.seat_slot = -1; in fallback_flush_st_cancel()
457 fallback_process_touch_button(struct fallback_dispatch *dispatch, in fallback_process_touch_button() argument
461 dispatch->pending_event |= (value) ? in fallback_process_touch_button()
467 fallback_process_key(struct fallback_dispatch *dispatch, in fallback_process_key() argument
479 fallback_process_touch_button(dispatch, in fallback_process_key()
496 if ((e->value && hw_is_key_down(dispatch, e->code)) || in fallback_process_key()
497 (e->value == 0 && !hw_is_key_down(dispatch, e->code))) in fallback_process_key()
500 dispatch->pending_event |= EVDEV_KEY; in fallback_process_key()
504 hw_set_key_down(dispatch, e->code, e->value); in fallback_process_key()
511 dispatch, in fallback_process_key()
524 fallback_process_touch(struct fallback_dispatch *dispatch, in fallback_process_touch() argument
529 struct mt_slot *slot = &dispatch->mt.slots[dispatch->mt.slot]; in fallback_process_touch()
532 if ((size_t)e->value >= dispatch->mt.slots_len) { in fallback_process_touch()
536 dispatch->mt.slots_len); in fallback_process_touch()
537 e->value = dispatch->mt.slots_len - 1; in fallback_process_touch()
539 dispatch->mt.slot = e->value; in fallback_process_touch()
546 dispatch->pending_event |= EVDEV_ABSOLUTE_MT; in fallback_process_touch()
548 if (dispatch->mt.has_palm) { in fallback_process_touch()
551 dispatch->mt.slot, in fallback_process_touch()
566 dispatch->pending_event |= EVDEV_ABSOLUTE_MT; in fallback_process_touch()
573 dispatch->mt.slots[dispatch->mt.slot].point.x = e->value; in fallback_process_touch()
574 dispatch->pending_event |= EVDEV_ABSOLUTE_MT; in fallback_process_touch()
579 dispatch->mt.slots[dispatch->mt.slot].point.y = e->value; in fallback_process_touch()
580 dispatch->pending_event |= EVDEV_ABSOLUTE_MT; in fallback_process_touch()
600 dispatch->pending_event |= EVDEV_ABSOLUTE_MT; in fallback_process_touch()
607 fallback_process_absolute_motion(struct fallback_dispatch *dispatch, in fallback_process_absolute_motion() argument
614 dispatch->abs.point.x = e->value; in fallback_process_absolute_motion()
615 dispatch->pending_event |= EVDEV_ABSOLUTE_MOTION; in fallback_process_absolute_motion()
619 dispatch->abs.point.y = e->value; in fallback_process_absolute_motion()
620 dispatch->pending_event |= EVDEV_ABSOLUTE_MOTION; in fallback_process_absolute_motion()
630 struct fallback_dispatch *dispatch = fallback_dispatch(data); in fallback_lid_keyboard_event() local
632 if (!dispatch->lid.is_closed) in fallback_lid_keyboard_event()
638 if (dispatch->lid.reliability == RELIABILITY_WRITE_OPEN) { in fallback_lid_keyboard_event()
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()
661 dispatch->lid.is_closed = false; in fallback_lid_keyboard_event()
662 fallback_lid_notify_toggle(dispatch, dispatch->device, time); in fallback_lid_keyboard_event()
666 fallback_lid_toggle_keyboard_listener(struct fallback_dispatch *dispatch, in fallback_lid_toggle_keyboard_listener() argument
679 dispatch); in fallback_lid_toggle_keyboard_listener()
686 fallback_lid_toggle_keyboard_listeners(struct fallback_dispatch *dispatch, in fallback_lid_toggle_keyboard_listeners() argument
691 list_for_each(kbd, &dispatch->lid.paired_keyboard_list, link) { in fallback_lid_toggle_keyboard_listeners()
695 fallback_lid_toggle_keyboard_listener(dispatch, in fallback_lid_toggle_keyboard_listeners()
702 fallback_process_switch(struct fallback_dispatch *dispatch, in fallback_process_switch() argument
716 fallback_lid_toggle_keyboard_listeners(dispatch, is_closed); in fallback_process_switch()
718 if (dispatch->lid.is_closed == is_closed) in fallback_process_switch()
721 dispatch->lid.is_closed = is_closed; in fallback_process_switch()
722 fallback_lid_notify_toggle(dispatch, device, time); in fallback_process_switch()
725 if (dispatch->tablet_mode.sw.state == e->value) in fallback_process_switch()
728 dispatch->tablet_mode.sw.state = e->value; in fallback_process_switch()
758 fallback_process_relative(struct fallback_dispatch *dispatch, in fallback_process_relative() argument
767 dispatch->rel.x += e->value; in fallback_process_relative()
768 dispatch->pending_event |= EVDEV_RELATIVE_MOTION; in fallback_process_relative()
771 dispatch->rel.y += e->value; in fallback_process_relative()
772 dispatch->pending_event |= EVDEV_RELATIVE_MOTION; in fallback_process_relative()
776 fallback_wheel_process_relative(dispatch, device, e, time); in fallback_process_relative()
780 fallback_process_absolute(struct fallback_dispatch *dispatch, in fallback_process_absolute() argument
786 fallback_process_touch(dispatch, device, e, time); in fallback_process_absolute()
788 fallback_process_absolute_motion(dispatch, device, e); in fallback_process_absolute()
793 fallback_any_button_down(struct fallback_dispatch *dispatch, in fallback_any_button_down() argument
800 hw_is_key_down(dispatch, button)) in fallback_any_button_down()
807 fallback_arbitrate_touch(struct fallback_dispatch *dispatch, in fallback_arbitrate_touch() argument
812 evdev_transform_absolute(dispatch->device, &point); in fallback_arbitrate_touch()
814 if (dispatch->arbitration.state == ARBITRATION_IGNORE_RECT && in fallback_arbitrate_touch()
815 point_in_rect(&point, &dispatch->arbitration.rect)) { in fallback_arbitrate_touch()
824 fallback_flush_mt_events(struct fallback_dispatch *dispatch, in fallback_flush_mt_events() argument
830 for (size_t i = 0; i < dispatch->mt.slots_len; i++) { in fallback_flush_mt_events()
831 struct mt_slot *slot = &dispatch->mt.slots[i]; in fallback_flush_mt_events()
844 sent = fallback_flush_mt_cancel(dispatch, in fallback_flush_mt_events()
852 if (!fallback_arbitrate_touch(dispatch, in fallback_flush_mt_events()
854 sent = fallback_flush_mt_down(dispatch, in fallback_flush_mt_events()
861 sent = fallback_flush_mt_motion(dispatch, in fallback_flush_mt_events()
867 sent = fallback_flush_mt_up(dispatch, in fallback_flush_mt_events()
899 fallback_handle_state(struct fallback_dispatch *dispatch, in fallback_handle_state() argument
906 if (dispatch->pending_event & EVDEV_RELATIVE_MOTION) in fallback_handle_state()
907 fallback_flush_relative_motion(dispatch, device, time); in fallback_handle_state()
910 if (dispatch->pending_event & EVDEV_ABSOLUTE_TOUCH_DOWN) { in fallback_handle_state()
911 if (fallback_flush_st_down(dispatch, device, time)) in fallback_handle_state()
913 } else if (dispatch->pending_event & EVDEV_ABSOLUTE_MOTION) { in fallback_handle_state()
915 if (fallback_flush_st_motion(dispatch, in fallback_handle_state()
920 fallback_flush_absolute_motion(dispatch, in fallback_handle_state()
926 if (dispatch->pending_event & EVDEV_ABSOLUTE_TOUCH_UP) { in fallback_handle_state()
927 if (fallback_flush_st_up(dispatch, device, time)) in fallback_handle_state()
932 if (dispatch->pending_event & EVDEV_ABSOLUTE_MT) in fallback_handle_state()
933 need_touch_frame = fallback_flush_mt_events(dispatch, in fallback_handle_state()
940 fallback_wheel_handle_state(dispatch, device, time); in fallback_handle_state()
943 if (dispatch->pending_event & EVDEV_KEY) { in fallback_handle_state()
946 if (!hw_key_has_changed(dispatch, code)) in fallback_handle_state()
956 fallback_debounce_handle_state(dispatch, time); in fallback_handle_state()
958 hw_key_update_last_state(dispatch); in fallback_handle_state()
961 dispatch->pending_event = EVDEV_NONE; in fallback_handle_state()
970 struct fallback_dispatch *dispatch = fallback_dispatch(evdev_dispatch); in fallback_interface_process() local
973 if (dispatch->arbitration.in_arbitration) { 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()
1003 cancel_touches(struct fallback_dispatch *dispatch, in cancel_touches() argument
1012 point = dispatch->abs.point; in cancel_touches()
1015 need_frame = fallback_flush_st_cancel(dispatch, in cancel_touches()
1019 for (idx = 0; idx < dispatch->mt.slots_len; idx++) { in cancel_touches()
1020 struct mt_slot *slot = &dispatch->mt.slots[idx]; in cancel_touches()
1028 fallback_flush_mt_cancel(dispatch, device, idx, time)) in cancel_touches()
1037 release_pressed_keys(struct fallback_dispatch *dispatch, in release_pressed_keys() argument
1061 dispatch, in release_pressed_keys()
1092 fallback_return_to_neutral_state(struct fallback_dispatch *dispatch, in fallback_return_to_neutral_state() argument
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()
1103 memset(dispatch->hw_key_mask, 0, sizeof(dispatch->hw_key_mask)); in fallback_return_to_neutral_state()
1104 memset(dispatch->hw_key_mask, 0, sizeof(dispatch->last_hw_key_mask)); in fallback_return_to_neutral_state()
1111 struct fallback_dispatch *dispatch = fallback_dispatch(evdev_dispatch); in fallback_interface_suspend() local
1113 fallback_return_to_neutral_state(dispatch, device); in fallback_interface_suspend()
1119 struct fallback_dispatch *dispatch = fallback_dispatch(evdev_dispatch); in fallback_interface_remove() local
1122 libinput_timer_cancel(&dispatch->wheel.scroll_timer); in fallback_interface_remove()
1123 libinput_timer_cancel(&dispatch->debounce.timer); in fallback_interface_remove()
1124 libinput_timer_cancel(&dispatch->debounce.timer_short); in fallback_interface_remove()
1125 libinput_timer_cancel(&dispatch->arbitration.arbitration_timer); in fallback_interface_remove()
1127 libinput_device_remove_event_listener(&dispatch->tablet_mode.other.listener); in fallback_interface_remove()
1130 &dispatch->lid.paired_keyboard_list, in fallback_interface_remove()
1140 struct fallback_dispatch *dispatch = fallback_dispatch(evdev_dispatch); in fallback_interface_sync_initial_state() local
1146 dispatch->lid.is_closed = libevdev_get_event_value(evdev, in fallback_interface_sync_initial_state()
1149 dispatch->lid.is_closed_client_state = false; in fallback_interface_sync_initial_state()
1158 if (dispatch->lid.is_closed && in fallback_interface_sync_initial_state()
1159 dispatch->lid.reliability == RELIABILITY_RELIABLE) { in fallback_interface_sync_initial_state()
1160 fallback_lid_notify_toggle(dispatch, device, time); in fallback_interface_sync_initial_state()
1164 if (dispatch->tablet_mode.sw.state) { in fallback_interface_sync_initial_state()
1178 struct fallback_dispatch *dispatch = fallback_dispatch(evdev_dispatch); in fallback_interface_update_rect() local
1187 dispatch->arbitration.rect = rect; in fallback_interface_update_rect()
1197 struct fallback_dispatch *dispatch = fallback_dispatch(evdev_dispatch); in fallback_interface_toggle_touch() local
1201 if (which == dispatch->arbitration.state) in fallback_interface_toggle_touch()
1213 libinput_timer_set(&dispatch->arbitration.arbitration_timer, in fallback_interface_toggle_touch()
1220 cancel_touches(dispatch, device, &rect, time); in fallback_interface_toggle_touch()
1221 dispatch->arbitration.rect = rect; in fallback_interface_toggle_touch()
1225 libinput_timer_cancel(&dispatch->arbitration.arbitration_timer); in fallback_interface_toggle_touch()
1226 fallback_return_to_neutral_state(dispatch, device); in fallback_interface_toggle_touch()
1227 dispatch->arbitration.in_arbitration = true; in fallback_interface_toggle_touch()
1234 dispatch->arbitration.state = which; in fallback_interface_toggle_touch()
1240 struct fallback_dispatch *dispatch = fallback_dispatch(evdev_dispatch); in fallback_interface_destroy() local
1242 libinput_timer_destroy(&dispatch->wheel.scroll_timer); in fallback_interface_destroy()
1243 libinput_timer_destroy(&dispatch->arbitration.arbitration_timer); in fallback_interface_destroy()
1244 libinput_timer_destroy(&dispatch->debounce.timer); in fallback_interface_destroy()
1245 libinput_timer_destroy(&dispatch->debounce.timer_short); in fallback_interface_destroy()
1247 free(dispatch->mt.slots); in fallback_interface_destroy()
1248 free(dispatch); in fallback_interface_destroy()
1255 struct fallback_dispatch *dispatch = in fallback_lid_pair_keyboard() local
1256 fallback_dispatch(lid_switch->dispatch); in fallback_lid_pair_keyboard()
1267 list_for_each(kbd, &dispatch->lid.paired_keyboard_list, link) { in fallback_lid_pair_keyboard()
1279 list_insert(&dispatch->lid.paired_keyboard_list, &kbd->link); in fallback_lid_pair_keyboard()
1287 if (dispatch->lid.is_closed) in fallback_lid_pair_keyboard()
1288 fallback_lid_toggle_keyboard_listener(dispatch, in fallback_lid_pair_keyboard()
1290 dispatch->lid.is_closed); in fallback_lid_pair_keyboard()
1294 fallback_resume(struct fallback_dispatch *dispatch, in fallback_resume() argument
1297 if (dispatch->base.sendevents.current_mode == in fallback_resume()
1305 fallback_suspend(struct fallback_dispatch *dispatch, in fallback_suspend() argument
1316 struct fallback_dispatch *dispatch = data; in fallback_tablet_mode_switch_event() local
1317 struct evdev_device *device = dispatch->device; in fallback_tablet_mode_switch_event()
1330 fallback_resume(dispatch, device); in fallback_tablet_mode_switch_event()
1334 fallback_suspend(dispatch, device); in fallback_tablet_mode_switch_event()
1344 struct fallback_dispatch *dispatch = in fallback_pair_tablet_mode() local
1345 fallback_dispatch(keyboard->dispatch); in fallback_pair_tablet_mode()
1366 if (dispatch->tablet_mode.other.sw_device) in fallback_pair_tablet_mode()
1375 &dispatch->tablet_mode.other.listener, in fallback_pair_tablet_mode()
1377 dispatch); in fallback_pair_tablet_mode()
1378 dispatch->tablet_mode.other.sw_device = tablet_mode_switch; in fallback_pair_tablet_mode()
1384 fallback_suspend(dispatch, keyboard); in fallback_pair_tablet_mode()
1400 struct fallback_dispatch *dispatch = in fallback_interface_device_removed() local
1401 fallback_dispatch(device->dispatch); in fallback_interface_device_removed()
1405 &dispatch->lid.paired_keyboard_list, in fallback_interface_device_removed()
1416 if (removed_device == dispatch->tablet_mode.other.sw_device) { in fallback_interface_device_removed()
1418 &dispatch->tablet_mode.other.listener); in fallback_interface_device_removed()
1420 &dispatch->tablet_mode.other.listener); in fallback_interface_device_removed()
1421 dispatch->tablet_mode.other.sw_device = NULL; in fallback_interface_device_removed()
1443 struct fallback_dispatch *dispatch = fallback_dispatch(device->dispatch); in fallback_change_to_left_handed() local
1448 if (fallback_any_button_down(dispatch, device)) in fallback_change_to_left_handed()
1457 struct fallback_dispatch *dispatch = fallback_dispatch(device->dispatch); in fallback_change_scroll_method() local
1464 if (fallback_any_button_down(dispatch, device)) in fallback_change_scroll_method()
1485 struct fallback_dispatch *dispatch = fallback_dispatch(device->dispatch); in fallback_rotation_config_set_angle() local
1487 dispatch->rotation.angle = degrees_cw; in fallback_rotation_config_set_angle()
1488 matrix_init_rotate(&dispatch->rotation.matrix, degrees_cw); in fallback_rotation_config_set_angle()
1497 struct fallback_dispatch *dispatch = fallback_dispatch(device->dispatch); in fallback_rotation_config_get_angle() local
1499 return dispatch->rotation.angle; in fallback_rotation_config_get_angle()
1509 fallback_init_rotation(struct fallback_dispatch *dispatch, in fallback_init_rotation() argument
1515 dispatch->rotation.config.is_available = fallback_rotation_config_is_available; in fallback_init_rotation()
1516 dispatch->rotation.config.set_angle = fallback_rotation_config_set_angle; in fallback_init_rotation()
1517 dispatch->rotation.config.get_angle = fallback_rotation_config_get_angle; in fallback_init_rotation()
1518 dispatch->rotation.config.get_default_angle = fallback_rotation_config_get_default_angle; in fallback_init_rotation()
1519 matrix_init_identity(&dispatch->rotation.matrix); in fallback_init_rotation()
1520 device->base.config.rotation = &dispatch->rotation.config; in fallback_init_rotation()
1524 fallback_dispatch_init_slots(struct fallback_dispatch *dispatch, in fallback_dispatch_init_slots() argument
1570 dispatch->mt.slots = slots; in fallback_dispatch_init_slots()
1571 dispatch->mt.slots_len = num_slots; in fallback_dispatch_init_slots()
1572 dispatch->mt.slot = active_slot; in fallback_dispatch_init_slots()
1573 dispatch->mt.has_palm = libevdev_has_event_code(evdev, in fallback_dispatch_init_slots()
1578 dispatch->mt.want_hysteresis = true; 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()
1587 fallback_dispatch_init_rel(struct fallback_dispatch *dispatch, in fallback_dispatch_init_rel() argument
1590 dispatch->rel.x = 0; in fallback_dispatch_init_rel()
1591 dispatch->rel.y = 0; in fallback_dispatch_init_rel()
1595 fallback_dispatch_init_abs(struct fallback_dispatch *dispatch, in fallback_dispatch_init_abs() argument
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()
1603 dispatch->abs.seat_slot = -1; in fallback_dispatch_init_abs()
1609 fallback_dispatch_init_switch(struct fallback_dispatch *dispatch, in fallback_dispatch_init_switch() argument
1614 list_init(&dispatch->lid.paired_keyboard_list); in fallback_dispatch_init_switch()
1617 dispatch->lid.reliability = evdev_read_switch_reliability_prop(device); in fallback_dispatch_init_switch()
1618 dispatch->lid.is_closed = false; in fallback_dispatch_init_switch()
1625 dispatch->tablet_mode.sw.state = val; in fallback_dispatch_init_switch()
1628 libinput_device_init_event_listener(&dispatch->tablet_mode.other.listener); in fallback_dispatch_init_switch()
1634 struct fallback_dispatch *dispatch = data; in fallback_arbitration_timeout() local
1636 if (dispatch->arbitration.in_arbitration) in fallback_arbitration_timeout()
1637 dispatch->arbitration.in_arbitration = false; in fallback_arbitration_timeout()
1639 evdev_log_debug(dispatch->device, "touch arbitration timeout\n"); in fallback_arbitration_timeout()
1643 fallback_init_arbitration(struct fallback_dispatch *dispatch, in fallback_init_arbitration() argument
1652 libinput_timer_init(&dispatch->arbitration.arbitration_timer, in fallback_init_arbitration()
1656 dispatch); in fallback_init_arbitration()
1657 dispatch->arbitration.in_arbitration = false; in fallback_init_arbitration()
1664 struct fallback_dispatch *dispatch; in fallback_dispatch_create() local
1666 dispatch = zalloc(sizeof *dispatch); in fallback_dispatch_create()
1667 dispatch->device = evdev_device(libinput_device); in fallback_dispatch_create()
1668 dispatch->base.dispatch_type = DISPATCH_FALLBACK; in fallback_dispatch_create()
1669 dispatch->base.interface = &fallback_interface; in fallback_dispatch_create()
1670 dispatch->pending_event = EVDEV_NONE; in fallback_dispatch_create()
1671 list_init(&dispatch->lid.paired_keyboard_list); 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()
1676 free(dispatch); in fallback_dispatch_create()
1680 fallback_dispatch_init_switch(dispatch, 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()
1715 fallback_init_wheel(dispatch, device); in fallback_dispatch_create()
1716 fallback_init_debounce(dispatch); in fallback_dispatch_create()
1717 fallback_init_arbitration(dispatch, device); in fallback_dispatch_create()
1719 return &dispatch->base; in fallback_dispatch_create()