Lines Matching refs:handle

651 	struct input_handle handle;  member
797 struct input_handle *handle = &sysrq->handle; in sysrq_reinject_alt_sysrq() local
806 input_inject_event(handle, EV_KEY, alt_code, 1); in sysrq_reinject_alt_sysrq()
807 input_inject_event(handle, EV_KEY, KEY_SYSRQ, 1); in sysrq_reinject_alt_sysrq()
808 input_inject_event(handle, EV_SYN, SYN_REPORT, 1); in sysrq_reinject_alt_sysrq()
810 input_inject_event(handle, EV_KEY, KEY_SYSRQ, 0); in sysrq_reinject_alt_sysrq()
811 input_inject_event(handle, EV_KEY, alt_code, 0); in sysrq_reinject_alt_sysrq()
812 input_inject_event(handle, EV_SYN, SYN_REPORT, 1); in sysrq_reinject_alt_sysrq()
874 clear_bit(KEY_SYSRQ, sysrq->handle.dev->key); in sysrq_handle_keypress()
927 static bool sysrq_filter(struct input_handle *handle, in sysrq_filter() argument
930 struct sysrq_state *sysrq = handle->private; in sysrq_filter()
971 sysrq->handle.dev = dev; in sysrq_connect()
972 sysrq->handle.handler = handler; in sysrq_connect()
973 sysrq->handle.name = "sysrq"; in sysrq_connect()
974 sysrq->handle.private = sysrq; in sysrq_connect()
977 error = input_register_handle(&sysrq->handle); in sysrq_connect()
984 error = input_open_device(&sysrq->handle); in sysrq_connect()
993 input_unregister_handle(&sysrq->handle); in sysrq_connect()
999 static void sysrq_disconnect(struct input_handle *handle) in sysrq_disconnect() argument
1001 struct sysrq_state *sysrq = handle->private; in sysrq_disconnect()
1003 input_close_device(handle); in sysrq_disconnect()
1006 input_unregister_handle(handle); in sysrq_disconnect()