• Home
  • Raw
  • Download

Lines Matching refs:fallback

104 log_debounce_bug(struct fallback_dispatch *fallback, enum debounce_event event)  in log_debounce_bug()  argument
106 evdev_log_bug_libinput(fallback->device, in log_debounce_bug()
109 debounce_state_to_str(fallback->debounce.state)); in log_debounce_bug()
114 debounce_set_state(struct fallback_dispatch *fallback, in debounce_set_state() argument
120 fallback->debounce.state = new_state; in debounce_set_state()
124 debounce_set_timer(struct fallback_dispatch *fallback, in debounce_set_timer() argument
129 libinput_timer_set(&fallback->debounce.timer, in debounce_set_timer()
134 debounce_set_timer_short(struct fallback_dispatch *fallback, in debounce_set_timer_short() argument
139 libinput_timer_set(&fallback->debounce.timer_short, in debounce_set_timer_short()
144 debounce_cancel_timer(struct fallback_dispatch *fallback) in debounce_cancel_timer() argument
146 libinput_timer_cancel(&fallback->debounce.timer); in debounce_cancel_timer()
150 debounce_cancel_timer_short(struct fallback_dispatch *fallback) in debounce_cancel_timer_short() argument
152 libinput_timer_cancel(&fallback->debounce.timer_short); in debounce_cancel_timer_short()
156 debounce_enable_spurious(struct fallback_dispatch *fallback) in debounce_enable_spurious() argument
158 if (fallback->debounce.spurious_enabled) in debounce_enable_spurious()
159 evdev_log_bug_libinput(fallback->device, in debounce_enable_spurious()
162 fallback->debounce.spurious_enabled = true; in debounce_enable_spurious()
163 evdev_log_info(fallback->device, in debounce_enable_spurious()
170 debounce_notify_button(struct fallback_dispatch *fallback, in debounce_notify_button() argument
173 struct evdev_device *device = fallback->device; in debounce_notify_button()
174 unsigned int code = fallback->debounce.button_code; in debounce_notify_button()
175 uint64_t time = fallback->debounce.button_time; in debounce_notify_button()
183 debounce_is_up_handle_event(struct fallback_dispatch *fallback, enum debounce_event event, uint64_t… in debounce_is_up_handle_event() argument
187 fallback->debounce.button_time = time; in debounce_is_up_handle_event()
188 debounce_set_timer(fallback, time); in debounce_is_up_handle_event()
189 debounce_set_state(fallback, DEBOUNCE_STATE_IS_DOWN_WAITING); in debounce_is_up_handle_event()
190 debounce_notify_button(fallback, in debounce_is_up_handle_event()
196 log_debounce_bug(fallback, event); in debounce_is_up_handle_event()
204 debounce_is_down_handle_event(struct fallback_dispatch *fallback, enum debounce_event event, uint64… in debounce_is_down_handle_event() argument
208 log_debounce_bug(fallback, event); in debounce_is_down_handle_event()
211 fallback->debounce.button_time = time; in debounce_is_down_handle_event()
212 debounce_set_timer(fallback, time); in debounce_is_down_handle_event()
213 debounce_set_timer_short(fallback, time); in debounce_is_down_handle_event()
214 if (fallback->debounce.spurious_enabled) { in debounce_is_down_handle_event()
215 debounce_set_state(fallback, DEBOUNCE_STATE_IS_UP_DELAYING_SPURIOUS); in debounce_is_down_handle_event()
217 debounce_set_state(fallback, DEBOUNCE_STATE_IS_UP_DETECTING_SPURIOUS); in debounce_is_down_handle_event()
218 debounce_notify_button(fallback, in debounce_is_down_handle_event()
224 log_debounce_bug(fallback, event); in debounce_is_down_handle_event()
232 debounce_is_down_waiting_handle_event(struct fallback_dispatch *fallback, enum debounce_event event… in debounce_is_down_waiting_handle_event() argument
236 log_debounce_bug(fallback, event); in debounce_is_down_waiting_handle_event()
239 debounce_set_state(fallback, DEBOUNCE_STATE_IS_UP_DELAYING); in debounce_is_down_waiting_handle_event()
242 fallback->debounce.button_time = time; in debounce_is_down_waiting_handle_event()
245 debounce_set_state(fallback, DEBOUNCE_STATE_IS_DOWN); in debounce_is_down_waiting_handle_event()
248 log_debounce_bug(fallback, event); in debounce_is_down_waiting_handle_event()
251 debounce_set_state(fallback, DEBOUNCE_STATE_IS_DOWN); in debounce_is_down_waiting_handle_event()
257 debounce_is_up_delaying_handle_event(struct fallback_dispatch *fallback, enum debounce_event event,… in debounce_is_up_delaying_handle_event() argument
261 debounce_set_state(fallback, DEBOUNCE_STATE_IS_DOWN_WAITING); in debounce_is_up_delaying_handle_event()
265 log_debounce_bug(fallback, event); in debounce_is_up_delaying_handle_event()
269 debounce_set_state(fallback, DEBOUNCE_STATE_IS_UP); in debounce_is_up_delaying_handle_event()
270 debounce_notify_button(fallback, in debounce_is_up_delaying_handle_event()
277 debounce_is_up_delaying_spurious_handle_event(struct fallback_dispatch *fallback, enum debounce_eve… in debounce_is_up_delaying_spurious_handle_event() argument
281 debounce_set_state(fallback, DEBOUNCE_STATE_IS_DOWN); in debounce_is_up_delaying_spurious_handle_event()
282 debounce_cancel_timer(fallback); in debounce_is_up_delaying_spurious_handle_event()
283 debounce_cancel_timer_short(fallback); in debounce_is_up_delaying_spurious_handle_event()
287 log_debounce_bug(fallback, event); in debounce_is_up_delaying_spurious_handle_event()
290 debounce_set_state(fallback, DEBOUNCE_STATE_IS_UP_WAITING); in debounce_is_up_delaying_spurious_handle_event()
291 debounce_notify_button(fallback, in debounce_is_up_delaying_spurious_handle_event()
295 debounce_set_state(fallback, DEBOUNCE_STATE_IS_UP); in debounce_is_up_delaying_spurious_handle_event()
296 debounce_notify_button(fallback, in debounce_is_up_delaying_spurious_handle_event()
303 debounce_is_up_detecting_spurious_handle_event(struct fallback_dispatch *fallback, enum debounce_ev… in debounce_is_up_detecting_spurious_handle_event() argument
309 fallback->debounce.button_time = time; in debounce_is_up_detecting_spurious_handle_event()
310 debounce_set_state(fallback, DEBOUNCE_STATE_IS_DOWN_DETECTING_SPURIOUS); in debounce_is_up_detecting_spurious_handle_event()
313 log_debounce_bug(fallback, event); in debounce_is_up_detecting_spurious_handle_event()
316 debounce_set_state(fallback, DEBOUNCE_STATE_IS_UP); in debounce_is_up_detecting_spurious_handle_event()
319 debounce_set_state(fallback, DEBOUNCE_STATE_IS_UP_WAITING); in debounce_is_up_detecting_spurious_handle_event()
322 debounce_set_state(fallback, DEBOUNCE_STATE_IS_UP); in debounce_is_up_detecting_spurious_handle_event()
328 debounce_is_down_detecting_spurious_handle_event(struct fallback_dispatch *fallback, enum debounce_… in debounce_is_down_detecting_spurious_handle_event() argument
332 log_debounce_bug(fallback, event); in debounce_is_down_detecting_spurious_handle_event()
335 debounce_set_state(fallback, DEBOUNCE_STATE_IS_UP_DETECTING_SPURIOUS); in debounce_is_down_detecting_spurious_handle_event()
338 debounce_cancel_timer(fallback); in debounce_is_down_detecting_spurious_handle_event()
339 debounce_set_state(fallback, DEBOUNCE_STATE_IS_DOWN); in debounce_is_down_detecting_spurious_handle_event()
340 debounce_enable_spurious(fallback); in debounce_is_down_detecting_spurious_handle_event()
341 debounce_notify_button(fallback, in debounce_is_down_detecting_spurious_handle_event()
346 debounce_set_state(fallback, DEBOUNCE_STATE_IS_DOWN); in debounce_is_down_detecting_spurious_handle_event()
347 debounce_notify_button(fallback, in debounce_is_down_detecting_spurious_handle_event()
354 debounce_is_up_waiting_handle_event(struct fallback_dispatch *fallback, enum debounce_event event, … in debounce_is_up_waiting_handle_event() argument
360 fallback->debounce.button_time = time; in debounce_is_up_waiting_handle_event()
361 debounce_set_state(fallback, DEBOUNCE_STATE_IS_DOWN_DELAYING); in debounce_is_up_waiting_handle_event()
365 log_debounce_bug(fallback, event); in debounce_is_up_waiting_handle_event()
369 debounce_set_state(fallback, DEBOUNCE_STATE_IS_UP); in debounce_is_up_waiting_handle_event()
375 debounce_is_down_delaying_handle_event(struct fallback_dispatch *fallback, enum debounce_event even… in debounce_is_down_delaying_handle_event() argument
379 log_debounce_bug(fallback, event); in debounce_is_down_delaying_handle_event()
382 debounce_set_state(fallback, DEBOUNCE_STATE_IS_UP_WAITING); in debounce_is_down_delaying_handle_event()
385 log_debounce_bug(fallback, event); in debounce_is_down_delaying_handle_event()
389 debounce_set_state(fallback, DEBOUNCE_STATE_IS_DOWN); in debounce_is_down_delaying_handle_event()
390 debounce_notify_button(fallback, in debounce_is_down_delaying_handle_event()
397 debounce_disabled_handle_event(struct fallback_dispatch *fallback, in debounce_disabled_handle_event() argument
403 fallback->debounce.button_time = time; in debounce_disabled_handle_event()
404 debounce_notify_button(fallback, in debounce_disabled_handle_event()
408 fallback->debounce.button_time = time; in debounce_disabled_handle_event()
409 debounce_notify_button(fallback, in debounce_disabled_handle_event()
414 log_debounce_bug(fallback, event); in debounce_disabled_handle_event()
422 debounce_handle_event(struct fallback_dispatch *fallback, in debounce_handle_event() argument
426 enum debounce_state current = fallback->debounce.state; in debounce_handle_event()
429 debounce_cancel_timer(fallback); in debounce_handle_event()
430 debounce_cancel_timer_short(fallback); in debounce_handle_event()
435 debounce_is_up_handle_event(fallback, event, time); in debounce_handle_event()
438 debounce_is_down_handle_event(fallback, event, time); in debounce_handle_event()
441 debounce_is_down_waiting_handle_event(fallback, event, time); in debounce_handle_event()
444 debounce_is_up_delaying_handle_event(fallback, event, time); in debounce_handle_event()
447 debounce_is_up_delaying_spurious_handle_event(fallback, event, time); in debounce_handle_event()
450 debounce_is_up_detecting_spurious_handle_event(fallback, event, time); in debounce_handle_event()
453 debounce_is_down_detecting_spurious_handle_event(fallback, event, time); in debounce_handle_event()
456 debounce_is_up_waiting_handle_event(fallback, event, time); in debounce_handle_event()
459 debounce_is_down_delaying_handle_event(fallback, event, time); in debounce_handle_event()
462 debounce_disabled_handle_event(fallback, event, time); in debounce_handle_event()
466 evdev_log_debug(fallback->device, in debounce_handle_event()
470 debounce_state_to_str(fallback->debounce.state)); in debounce_handle_event()