Home | History | Annotate | Download | only in linux

Lines Matching refs:hdev

517 static inline void *hid_get_drvdata(struct hid_device *hdev)
519 return dev_get_drvdata(&hdev->dev);
522 static inline void hid_set_drvdata(struct hid_device *hdev, void *data)
524 dev_set_drvdata(&hdev->dev, data);
622 int (*raw_event)(struct hid_device *hdev, struct hid_report *report,
625 int (*event)(struct hid_device *hdev, struct hid_field *field,
628 void (*report_fixup)(struct hid_device *hdev, __u8 *buf,
631 int (*input_mapping)(struct hid_device *hdev,
634 int (*input_mapped)(struct hid_device *hdev,
638 int (*suspend)(struct hid_device *hdev, pm_message_t message);
639 int (*resume)(struct hid_device *hdev);
640 int (*reset_resume)(struct hid_device *hdev);
657 int (*start)(struct hid_device *hdev);
658 void (*stop)(struct hid_device *hdev);
660 int (*open)(struct hid_device *hdev);
661 void (*close)(struct hid_device *hdev);
663 int (*power)(struct hid_device *hdev, int level);
668 int (*parse)(struct hid_device *hdev);
765 * @hdev: hid device
771 static inline int __must_check hid_parse(struct hid_device *hdev)
775 if (hdev->status & HID_STAT_PARSED)
778 ret = hdev->ll_driver->parse(hdev);
780 hdev->status |= HID_STAT_PARSED;
788 * @hdev: hid device
795 static inline int __must_check hid_hw_start(struct hid_device *hdev,
798 int ret = hdev->ll_driver->start(hdev);
801 ret = hid_connect(hdev, connect_mask);
803 hdev->ll_driver->stop(hdev);
810 * @hdev: hid device
815 static inline void hid_hw_stop(struct hid_device *hdev)
817 hid_disconnect(hdev);
818 hdev->ll_driver->stop(hdev);