Lines Matching defs:hdev
286 static int arvo_init_specials(struct hid_device *hdev)
288 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
295 hid_set_drvdata(hdev, NULL);
301 hid_err(hdev, "can't alloc device descriptor\n");
304 hid_set_drvdata(hdev, arvo);
308 hid_err(hdev, "couldn't init struct arvo_device\n");
312 retval = roccat_connect(arvo_class, hdev,
315 hid_err(hdev, "couldn't init char dev\n");
327 static void arvo_remove_specials(struct hid_device *hdev)
329 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
336 arvo = hid_get_drvdata(hdev);
342 static int arvo_probe(struct hid_device *hdev,
347 if (!hid_is_usb(hdev))
350 retval = hid_parse(hdev);
352 hid_err(hdev, "parse failed\n");
356 retval = hid_hw_start(hdev, HID_CONNECT_DEFAULT);
358 hid_err(hdev, "hw start failed\n");
362 retval = arvo_init_specials(hdev);
364 hid_err(hdev, "couldn't install keyboard\n");
371 hid_hw_stop(hdev);
376 static void arvo_remove(struct hid_device *hdev)
378 arvo_remove_specials(hdev);
379 hid_hw_stop(hdev);
403 static int arvo_raw_event(struct hid_device *hdev,
406 struct arvo_device *arvo = hid_get_drvdata(hdev);