Lines Matching refs:sony_laptop_input
199 static struct sony_laptop_input_s sony_laptop_input = { variable
357 spin_lock_irqsave(&sony_laptop_input.fifo_lock, flags); in do_sony_laptop_release_key()
359 if (kfifo_out(&sony_laptop_input.fifo, in do_sony_laptop_release_key()
366 if (kfifo_len(&sony_laptop_input.fifo) != 0) in do_sony_laptop_release_key()
367 mod_timer(&sony_laptop_input.release_key_timer, in do_sony_laptop_release_key()
370 spin_unlock_irqrestore(&sony_laptop_input.fifo_lock, flags); in do_sony_laptop_release_key()
376 struct input_dev *jog_dev = sony_laptop_input.jog_dev; in sony_laptop_report_input_event()
377 struct input_dev *key_dev = sony_laptop_input.key_dev; in sony_laptop_report_input_event()
430 kfifo_in_locked(&sony_laptop_input.fifo, in sony_laptop_report_input_event()
432 &sony_laptop_input.fifo_lock); in sony_laptop_report_input_event()
433 mod_timer(&sony_laptop_input.release_key_timer, in sony_laptop_report_input_event()
447 if (atomic_add_return(1, &sony_laptop_input.users) > 1) in sony_laptop_setup_input()
451 spin_lock_init(&sony_laptop_input.fifo_lock); in sony_laptop_setup_input()
452 error = kfifo_alloc(&sony_laptop_input.fifo, in sony_laptop_setup_input()
459 timer_setup(&sony_laptop_input.release_key_timer, in sony_laptop_setup_input()
489 sony_laptop_input.key_dev = key_dev; in sony_laptop_setup_input()
510 sony_laptop_input.jog_dev = jog_dev; in sony_laptop_setup_input()
526 kfifo_free(&sony_laptop_input.fifo); in sony_laptop_setup_input()
529 atomic_dec(&sony_laptop_input.users); in sony_laptop_setup_input()
538 if (!atomic_dec_and_test(&sony_laptop_input.users)) in sony_laptop_remove_input()
541 del_timer_sync(&sony_laptop_input.release_key_timer); in sony_laptop_remove_input()
547 while (kfifo_out(&sony_laptop_input.fifo, in sony_laptop_remove_input()
554 input_unregister_device(sony_laptop_input.key_dev); in sony_laptop_remove_input()
555 sony_laptop_input.key_dev = NULL; in sony_laptop_remove_input()
557 if (sony_laptop_input.jog_dev) { in sony_laptop_remove_input()
558 input_unregister_device(sony_laptop_input.jog_dev); in sony_laptop_remove_input()
559 sony_laptop_input.jog_dev = NULL; in sony_laptop_remove_input()
562 kfifo_free(&sony_laptop_input.fifo); in sony_laptop_remove_input()