Lines Matching defs:handle
113 * handle global ops first -- during unlocked period
193 static void rfkill_event(struct input_handle *handle, unsigned int type,
221 struct input_handle *handle;
224 handle = kzalloc(sizeof(struct input_handle), GFP_KERNEL);
225 if (!handle)
228 handle->dev = dev;
229 handle->handler = handler;
230 handle->name = "rfkill";
233 error = input_register_handle(handle);
237 error = input_open_device(handle);
244 input_unregister_handle(handle);
246 kfree(handle);
250 static void rfkill_start(struct input_handle *handle)
257 spin_lock_irq(&handle->dev->event_lock);
259 if (test_bit(EV_SW, handle->dev->evbit) &&
260 test_bit(SW_RFKILL_ALL, handle->dev->swbit))
262 handle->dev->sw));
264 spin_unlock_irq(&handle->dev->event_lock);
267 static void rfkill_disconnect(struct input_handle *handle)
269 input_close_device(handle);
270 input_unregister_handle(handle);
271 kfree(handle);