Lines Matching refs:handle
22 static void evbug_event(struct input_handle *handle, unsigned int type, unsigned int code, int valu… in evbug_event() argument
25 dev_name(&handle->dev->dev), type, code, value); in evbug_event()
31 struct input_handle *handle; in evbug_connect() local
34 handle = kzalloc(sizeof(struct input_handle), GFP_KERNEL); in evbug_connect()
35 if (!handle) in evbug_connect()
38 handle->dev = dev; in evbug_connect()
39 handle->handler = handler; in evbug_connect()
40 handle->name = "evbug"; in evbug_connect()
42 error = input_register_handle(handle); in evbug_connect()
46 error = input_open_device(handle); in evbug_connect()
58 input_unregister_handle(handle); in evbug_connect()
60 kfree(handle); in evbug_connect()
64 static void evbug_disconnect(struct input_handle *handle) in evbug_disconnect() argument
67 dev_name(&handle->dev->dev)); in evbug_disconnect()
69 input_close_device(handle); in evbug_disconnect()
70 input_unregister_handle(handle); in evbug_disconnect()
71 kfree(handle); in evbug_disconnect()