Lines Matching defs:hdev

46 	struct hid_device		*hdev;
93 struct hid_device *hdev = to_hid_device(dev);
94 struct pcmidi_snd *pm = hid_get_drvdata(hdev);
106 struct hid_device *hdev = to_hid_device(dev);
107 struct pcmidi_snd *pm = hid_get_drvdata(hdev);
130 struct hid_device *hdev = to_hid_device(dev);
131 struct pcmidi_snd *pm = hid_get_drvdata(hdev);
143 struct hid_device *hdev = to_hid_device(dev);
144 struct pcmidi_snd *pm = hid_get_drvdata(hdev);
168 struct hid_device *hdev = to_hid_device(dev);
169 struct pcmidi_snd *pm = hid_get_drvdata(hdev);
181 struct hid_device *hdev = to_hid_device(dev);
182 struct pcmidi_snd *pm = hid_get_drvdata(hdev);
263 struct hid_device *hdev = pm->hdev;
267 &hdev->report_enum[HID_OUTPUT_REPORT].report_list, list) {
272 hid_err(hdev, "output report is empty\n");
276 hid_err(hdev, "field count too low\n");
288 struct hid_device *hdev = pm->hdev;
293 hid_hw_request(hdev, report, HID_REQ_SET_REPORT);
615 err = snd_card_new(&pm->hdev->dev, index[dev], id[dev],
653 err = device_create_file(&pm->hdev->dev,
661 err = device_create_file(&pm->hdev->dev,
669 err = device_create_file(&pm->hdev->dev,
699 device_remove_file(&pm->hdev->dev, sysfs_device_attr_octave);
701 device_remove_file(&pm->hdev->dev, sysfs_device_attr_sustain);
703 device_remove_file(&pm->hdev->dev, sysfs_device_attr_channel);
717 device_remove_file(&pm->hdev->dev, sysfs_device_attr_channel);
718 device_remove_file(&pm->hdev->dev, sysfs_device_attr_sustain);
719 device_remove_file(&pm->hdev->dev, sysfs_device_attr_octave);
731 static __u8 *pk_report_fixup(struct hid_device *hdev, __u8 *rdesc,
737 hid_info(hdev,
745 static int pk_input_mapping(struct hid_device *hdev, struct hid_input *hi,
749 struct pcmidi_snd *pm = hid_get_drvdata(hdev);
761 static int pk_raw_event(struct hid_device *hdev, struct hid_report *report,
764 struct pcmidi_snd *pm = hid_get_drvdata(hdev);
782 static int pk_probe(struct hid_device *hdev, const struct hid_device_id *id)
790 if (!hid_is_usb(hdev))
793 intf = to_usb_interface(hdev->dev.parent);
798 hid_err(hdev, "can't alloc descriptor\n");
802 pm->hdev = hdev;
805 hid_set_drvdata(hdev, pm);
807 ret = hid_parse(hdev);
809 hid_err(hdev, "hid parse failed\n");
814 hdev->quirks |= HID_QUIRK_NOGET;
817 ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT);
819 hid_err(hdev, "hw start failed\n");
829 hid_hw_stop(hdev);
836 static void pk_remove(struct hid_device *hdev)
838 struct pcmidi_snd *pm = hid_get_drvdata(hdev);
841 hid_hw_stop(hdev);