Lines Matching defs:hdev

38 	struct hid_device	*hdev;
102 struct hid_device *hdev = to_hid_device(dev);
103 struct pk_device *pk = hid_get_drvdata(hdev);
115 struct hid_device *hdev = to_hid_device(dev);
116 struct pk_device *pk = hid_get_drvdata(hdev);
139 struct hid_device *hdev = to_hid_device(dev);
140 struct pk_device *pk = hid_get_drvdata(hdev);
152 struct hid_device *hdev = to_hid_device(dev);
153 struct pk_device *pk = hid_get_drvdata(hdev);
178 struct hid_device *hdev = to_hid_device(dev);
179 struct pk_device *pk = hid_get_drvdata(hdev);
191 struct hid_device *hdev = to_hid_device(dev);
192 struct pk_device *pk = hid_get_drvdata(hdev);
273 struct hid_device *hdev = pm->pk->hdev;
277 &hdev->report_enum[HID_OUTPUT_REPORT].report_list, list) {
282 hid_err(hdev, "output report is empty\n");
286 hid_err(hdev, "field count too low\n");
298 struct hid_device *hdev = pm->pk->hdev;
303 hid_hw_request(hdev, report, HID_REQ_SET_REPORT);
625 err = snd_card_new(&pm->pk->hdev->dev, index[dev], id[dev],
663 err = device_create_file(&pm->pk->hdev->dev,
671 err = device_create_file(&pm->pk->hdev->dev,
679 err = device_create_file(&pm->pk->hdev->dev,
709 device_remove_file(&pm->pk->hdev->dev, sysfs_device_attr_octave);
711 device_remove_file(&pm->pk->hdev->dev, sysfs_device_attr_sustain);
713 device_remove_file(&pm->pk->hdev->dev, sysfs_device_attr_channel);
727 device_remove_file(&pm->pk->hdev->dev,
729 device_remove_file(&pm->pk->hdev->dev,
731 device_remove_file(&pm->pk->hdev->dev,
744 static __u8 *pk_report_fixup(struct hid_device *hdev, __u8 *rdesc,
750 hid_info(hdev,
758 static int pk_input_mapping(struct hid_device *hdev, struct hid_input *hi,
762 struct pk_device *pk = hid_get_drvdata(hdev);
777 static int pk_raw_event(struct hid_device *hdev, struct hid_report *report,
780 struct pk_device *pk = hid_get_drvdata(hdev);
798 static int pk_probe(struct hid_device *hdev, const struct hid_device_id *id)
807 if (!hid_is_usb(hdev))
810 intf = to_usb_interface(hdev->dev.parent);
815 hid_err(hdev, "can't alloc descriptor\n");
819 pk->hdev = hdev;
823 hid_err(hdev, "can't alloc descriptor\n");
832 hid_set_drvdata(hdev, pk);
834 ret = hid_parse(hdev);
836 hid_err(hdev, "hid parse failed\n");
841 hdev->quirks |= HID_QUIRK_NOGET;
844 ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT);
846 hid_err(hdev, "hw start failed\n");
856 hid_hw_stop(hdev);
865 static void pk_remove(struct hid_device *hdev)
867 struct pk_device *pk = hid_get_drvdata(hdev);
876 hid_hw_stop(hdev);