Lines Matching refs:hid_device
536 struct hid_device *device; /* associated device */
602 struct hid_device { /* device report descriptor */ struct
665 int (*ff_init)(struct hid_device *); argument
668 int (*hiddev_connect)(struct hid_device *, unsigned int); argument
669 void (*hiddev_disconnect)(struct hid_device *); argument
670 void (*hiddev_hid_event) (struct hid_device *, struct hid_field *field, argument
672 void (*hiddev_report_event) (struct hid_device *, struct hid_report *); argument
694 container_of(pdev, struct hid_device, dev) argument
696 static inline void *hid_get_drvdata(struct hid_device *hdev) in hid_get_drvdata()
701 static inline void hid_set_drvdata(struct hid_device *hdev, void *data) in hid_set_drvdata()
721 struct hid_device *device;
813 bool (*match)(struct hid_device *dev, bool ignore_special_driver);
814 int (*probe)(struct hid_device *dev, const struct hid_device_id *id);
815 void (*remove)(struct hid_device *dev);
818 int (*raw_event)(struct hid_device *hdev, struct hid_report *report,
821 int (*event)(struct hid_device *hdev, struct hid_field *field,
823 void (*report)(struct hid_device *hdev, struct hid_report *report);
825 __u8 *(*report_fixup)(struct hid_device *hdev, __u8 *buf,
828 int (*input_mapping)(struct hid_device *hdev,
831 int (*input_mapped)(struct hid_device *hdev,
834 int (*input_configured)(struct hid_device *hdev,
836 void (*feature_mapping)(struct hid_device *hdev,
840 int (*suspend)(struct hid_device *hdev, pm_message_t message);
841 int (*resume)(struct hid_device *hdev);
842 int (*reset_resume)(struct hid_device *hdev);
869 int (*start)(struct hid_device *hdev);
870 void (*stop)(struct hid_device *hdev);
872 int (*open)(struct hid_device *hdev);
873 void (*close)(struct hid_device *hdev);
875 int (*power)(struct hid_device *hdev, int level);
877 int (*parse)(struct hid_device *hdev);
879 void (*request)(struct hid_device *hdev,
882 int (*wait)(struct hid_device *hdev);
884 int (*raw_request) (struct hid_device *hdev, unsigned char reportnum,
888 int (*output_report) (struct hid_device *hdev, __u8 *buf, size_t len);
890 int (*idle)(struct hid_device *hdev, int report, int idle, int reqtype);
891 bool (*may_wakeup)(struct hid_device *hdev);
896 extern bool hid_is_usb(const struct hid_device *hdev);
911 extern bool hid_ignore(struct hid_device *);
912 extern int hid_add_device(struct hid_device *);
913 extern void hid_destroy_device(struct hid_device *);
938 extern void hidinput_hid_event(struct hid_device *, struct hid_field *, struct hid_usage *, __s32);
939 extern void hidinput_report_event(struct hid_device *hid, struct hid_report *report);
940 extern int hidinput_connect(struct hid_device *hid, unsigned int force);
941 extern void hidinput_disconnect(struct hid_device *);
944 int hid_input_report(struct hid_device *hid, enum hid_report_type type, u8 *data, u32 size,
946 struct hid_field *hidinput_get_led_field(struct hid_device *hid);
947 unsigned int hidinput_count_leds(struct hid_device *hid);
950 int __hid_request(struct hid_device *hid, struct hid_report *rep, enum hid_class_request reqtype);
952 struct hid_device *hid_allocate_device(void);
953 struct hid_report *hid_register_report(struct hid_device *device,
956 int hid_parse_report(struct hid_device *hid, __u8 *start, unsigned size);
957 struct hid_report *hid_validate_values(struct hid_device *hid,
962 void hid_setup_resolution_multiplier(struct hid_device *hid);
963 int hid_open_report(struct hid_device *device);
964 int hid_check_keys_pressed(struct hid_device *hid);
965 int hid_connect(struct hid_device *hid, unsigned int connect_mask);
966 void hid_disconnect(struct hid_device *hid);
967 bool hid_match_one_id(const struct hid_device *hdev,
969 const struct hid_device_id *hid_match_id(const struct hid_device *hdev,
971 const struct hid_device_id *hid_match_device(struct hid_device *hdev,
973 bool hid_compare_device_paths(struct hid_device *hdev_a,
974 struct hid_device *hdev_b, char separator);
976 __u32 hid_field_extract(const struct hid_device *hid, __u8 *report,
980 int hid_driver_suspend(struct hid_device *hdev, pm_message_t state);
981 int hid_driver_reset_resume(struct hid_device *hdev);
982 int hid_driver_resume(struct hid_device *hdev);
984 static inline int hid_driver_suspend(struct hid_device *hdev, pm_message_t state) { return 0; } in hid_driver_suspend()
985 static inline int hid_driver_reset_resume(struct hid_device *hdev) { return 0; } in hid_driver_reset_resume()
986 static inline int hid_driver_resume(struct hid_device *hdev) { return 0; } in hid_driver_resume()
998 static inline void hid_device_io_start(struct hid_device *hid) { in hid_device_io_start()
1018 static inline void hid_device_io_stop(struct hid_device *hid) { in hid_device_io_stop()
1116 static inline int __must_check hid_parse(struct hid_device *hdev) in hid_parse()
1121 int __must_check hid_hw_start(struct hid_device *hdev,
1123 void hid_hw_stop(struct hid_device *hdev);
1124 int __must_check hid_hw_open(struct hid_device *hdev);
1125 void hid_hw_close(struct hid_device *hdev);
1126 void hid_hw_request(struct hid_device *hdev,
1128 int hid_hw_raw_request(struct hid_device *hdev,
1132 int hid_hw_output_report(struct hid_device *hdev, __u8 *buf, size_t len);
1144 static inline int hid_hw_power(struct hid_device *hdev, int level) in hid_hw_power()
1158 static inline int hid_hw_idle(struct hid_device *hdev, int report, int idle, in hid_hw_idle()
1172 static inline bool hid_hw_may_wakeup(struct hid_device *hdev) in hid_hw_may_wakeup()
1188 static inline void hid_hw_wait(struct hid_device *hdev) in hid_hw_wait()
1204 int hid_report_raw_event(struct hid_device *hid, enum hid_report_type type, u8 *data, u32 size,
1208 unsigned long hid_lookup_quirk(const struct hid_device *hdev);
1213 int hid_pidff_init(struct hid_device *hid);