Lines Matching refs:hdev
566 static inline void *hid_get_drvdata(struct hid_device *hdev) in hid_get_drvdata() argument
568 return dev_get_drvdata(&hdev->dev); in hid_get_drvdata()
571 static inline void hid_set_drvdata(struct hid_device *hdev, void *data) in hid_set_drvdata() argument
573 dev_set_drvdata(&hdev->dev, data); in hid_set_drvdata()
685 int (*raw_event)(struct hid_device *hdev, struct hid_report *report,
688 int (*event)(struct hid_device *hdev, struct hid_field *field,
690 void (*report)(struct hid_device *hdev, struct hid_report *report);
692 __u8 *(*report_fixup)(struct hid_device *hdev, __u8 *buf,
695 int (*input_mapping)(struct hid_device *hdev,
698 int (*input_mapped)(struct hid_device *hdev,
701 int (*input_configured)(struct hid_device *hdev,
703 void (*feature_mapping)(struct hid_device *hdev,
707 int (*suspend)(struct hid_device *hdev, pm_message_t message);
708 int (*resume)(struct hid_device *hdev);
709 int (*reset_resume)(struct hid_device *hdev);
730 int (*start)(struct hid_device *hdev);
731 void (*stop)(struct hid_device *hdev);
733 int (*open)(struct hid_device *hdev);
734 void (*close)(struct hid_device *hdev);
736 int (*power)(struct hid_device *hdev, int level);
738 int (*parse)(struct hid_device *hdev);
740 void (*request)(struct hid_device *hdev,
743 int (*wait)(struct hid_device *hdev);
745 int (*raw_request) (struct hid_device *hdev, unsigned char reportnum,
749 int (*output_report) (struct hid_device *hdev, __u8 *buf, size_t len);
751 int (*idle)(struct hid_device *hdev, int report, int idle, int reqtype);
815 const struct hid_device_id *hid_match_id(struct hid_device *hdev,
921 static inline int __must_check hid_parse(struct hid_device *hdev) in hid_parse() argument
923 return hid_open_report(hdev); in hid_parse()
936 static inline int __must_check hid_hw_start(struct hid_device *hdev, in hid_hw_start() argument
939 int ret = hdev->ll_driver->start(hdev); in hid_hw_start()
942 ret = hid_connect(hdev, connect_mask); in hid_hw_start()
944 hdev->ll_driver->stop(hdev); in hid_hw_start()
956 static inline void hid_hw_stop(struct hid_device *hdev) in hid_hw_stop() argument
958 hid_disconnect(hdev); in hid_hw_stop()
959 hdev->ll_driver->stop(hdev); in hid_hw_stop()
971 static inline int __must_check hid_hw_open(struct hid_device *hdev) in hid_hw_open() argument
973 return hdev->ll_driver->open(hdev); in hid_hw_open()
985 static inline void hid_hw_close(struct hid_device *hdev) in hid_hw_close() argument
987 hdev->ll_driver->close(hdev); in hid_hw_close()
1000 static inline int hid_hw_power(struct hid_device *hdev, int level) in hid_hw_power() argument
1002 return hdev->ll_driver->power ? hdev->ll_driver->power(hdev, level) : 0; in hid_hw_power()
1013 static inline void hid_hw_request(struct hid_device *hdev, in hid_hw_request() argument
1016 if (hdev->ll_driver->request) in hid_hw_request()
1017 return hdev->ll_driver->request(hdev, report, reqtype); in hid_hw_request()
1019 __hid_request(hdev, report, reqtype); in hid_hw_request()
1036 static inline int hid_hw_raw_request(struct hid_device *hdev, in hid_hw_raw_request() argument
1043 return hdev->ll_driver->raw_request(hdev, reportnum, buf, len, in hid_hw_raw_request()
1056 static inline int hid_hw_output_report(struct hid_device *hdev, __u8 *buf, in hid_hw_output_report() argument
1062 if (hdev->ll_driver->output_report) in hid_hw_output_report()
1063 return hdev->ll_driver->output_report(hdev, buf, len); in hid_hw_output_report()
1076 static inline int hid_hw_idle(struct hid_device *hdev, int report, int idle, in hid_hw_idle() argument
1079 if (hdev->ll_driver->idle) in hid_hw_idle()
1080 return hdev->ll_driver->idle(hdev, report, idle, reqtype); in hid_hw_idle()
1090 static inline void hid_hw_wait(struct hid_device *hdev) in hid_hw_wait() argument
1092 if (hdev->ll_driver->wait) in hid_hw_wait()
1093 hdev->ll_driver->wait(hdev); in hid_hw_wait()