Lines Matching defs:hdev
289 static int arvo_init_specials(struct hid_device *hdev)
291 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
298 hid_set_drvdata(hdev, NULL);
304 hid_err(hdev, "can't alloc device descriptor\n");
307 hid_set_drvdata(hdev, arvo);
311 hid_err(hdev, "couldn't init struct arvo_device\n");
315 retval = roccat_connect(&arvo_class, hdev,
318 hid_err(hdev, "couldn't init char dev\n");
330 static void arvo_remove_specials(struct hid_device *hdev)
332 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
339 arvo = hid_get_drvdata(hdev);
345 static int arvo_probe(struct hid_device *hdev,
350 if (!hid_is_usb(hdev))
353 retval = hid_parse(hdev);
355 hid_err(hdev, "parse failed\n");
359 retval = hid_hw_start(hdev, HID_CONNECT_DEFAULT);
361 hid_err(hdev, "hw start failed\n");
365 retval = arvo_init_specials(hdev);
367 hid_err(hdev, "couldn't install keyboard\n");
374 hid_hw_stop(hdev);
379 static void arvo_remove(struct hid_device *hdev)
381 arvo_remove_specials(hdev);
382 hid_hw_stop(hdev);
406 static int arvo_raw_event(struct hid_device *hdev,
409 struct arvo_device *arvo = hid_get_drvdata(hdev);