Lines Matching refs:hid_device
541 struct hid_device *device; /* associated device */
607 struct hid_device { struct
672 int (*ff_init)(struct hid_device *); argument
675 int (*hiddev_connect)(struct hid_device *, unsigned int); argument
676 void (*hiddev_disconnect)(struct hid_device *); argument
677 void (*hiddev_hid_event) (struct hid_device *, struct hid_field *field, argument
679 void (*hiddev_report_event) (struct hid_device *, struct hid_report *); argument
701 container_of(pdev, struct hid_device, dev) argument
703 static inline void *hid_get_drvdata(struct hid_device *hdev) in hid_get_drvdata()
708 static inline void hid_set_drvdata(struct hid_device *hdev, void *data) in hid_set_drvdata()
728 struct hid_device *device;
820 bool (*match)(struct hid_device *dev, bool ignore_special_driver);
821 int (*probe)(struct hid_device *dev, const struct hid_device_id *id);
822 void (*remove)(struct hid_device *dev);
825 int (*raw_event)(struct hid_device *hdev, struct hid_report *report,
828 int (*event)(struct hid_device *hdev, struct hid_field *field,
830 void (*report)(struct hid_device *hdev, struct hid_report *report);
832 const __u8 *(*report_fixup)(struct hid_device *hdev, __u8 *buf,
835 int (*input_mapping)(struct hid_device *hdev,
838 int (*input_mapped)(struct hid_device *hdev,
841 int (*input_configured)(struct hid_device *hdev,
843 void (*feature_mapping)(struct hid_device *hdev,
847 int (*suspend)(struct hid_device *hdev, pm_message_t message);
848 int (*resume)(struct hid_device *hdev);
849 int (*reset_resume)(struct hid_device *hdev);
876 int (*start)(struct hid_device *hdev);
877 void (*stop)(struct hid_device *hdev);
879 int (*open)(struct hid_device *hdev);
880 void (*close)(struct hid_device *hdev);
882 int (*power)(struct hid_device *hdev, int level);
884 int (*parse)(struct hid_device *hdev);
886 void (*request)(struct hid_device *hdev,
889 int (*wait)(struct hid_device *hdev);
891 int (*raw_request) (struct hid_device *hdev, unsigned char reportnum,
895 int (*output_report) (struct hid_device *hdev, __u8 *buf, size_t len);
897 int (*idle)(struct hid_device *hdev, int report, int idle, int reqtype);
898 bool (*may_wakeup)(struct hid_device *hdev);
903 extern bool hid_is_usb(const struct hid_device *hdev);
918 extern bool hid_ignore(struct hid_device *);
919 extern int hid_add_device(struct hid_device *);
920 extern void hid_destroy_device(struct hid_device *);
945 extern void hidinput_hid_event(struct hid_device *, struct hid_field *, struct hid_usage *, __s32);
946 extern void hidinput_report_event(struct hid_device *hid, struct hid_report *report);
947 extern int hidinput_connect(struct hid_device *hid, unsigned int force);
948 extern void hidinput_disconnect(struct hid_device *);
950 struct hid_field *hid_find_field(struct hid_device *hdev, unsigned int report_type,
953 int hid_input_report(struct hid_device *hid, enum hid_report_type type, u8 *data, u32 size,
955 struct hid_field *hidinput_get_led_field(struct hid_device *hid);
956 unsigned int hidinput_count_leds(struct hid_device *hid);
959 int __hid_request(struct hid_device *hid, struct hid_report *rep, enum hid_class_request reqtype);
961 struct hid_device *hid_allocate_device(void);
962 struct hid_report *hid_register_report(struct hid_device *device,
965 int hid_parse_report(struct hid_device *hid, const __u8 *start, unsigned size);
966 struct hid_report *hid_validate_values(struct hid_device *hid,
971 void hid_setup_resolution_multiplier(struct hid_device *hid);
972 int hid_open_report(struct hid_device *device);
973 int hid_check_keys_pressed(struct hid_device *hid);
974 int hid_connect(struct hid_device *hid, unsigned int connect_mask);
975 void hid_disconnect(struct hid_device *hid);
976 bool hid_match_one_id(const struct hid_device *hdev,
978 const struct hid_device_id *hid_match_id(const struct hid_device *hdev,
980 const struct hid_device_id *hid_match_device(struct hid_device *hdev,
982 bool hid_compare_device_paths(struct hid_device *hdev_a,
983 struct hid_device *hdev_b, char separator);
984 __u32 hid_field_extract(const struct hid_device *hid, __u8 *report,
988 int hid_driver_suspend(struct hid_device *hdev, pm_message_t state);
989 int hid_driver_reset_resume(struct hid_device *hdev);
990 int hid_driver_resume(struct hid_device *hdev);
992 static inline int hid_driver_suspend(struct hid_device *hdev, pm_message_t state) { return 0; } in hid_driver_suspend()
993 static inline int hid_driver_reset_resume(struct hid_device *hdev) { return 0; } in hid_driver_reset_resume()
994 static inline int hid_driver_resume(struct hid_device *hdev) { return 0; } in hid_driver_resume()
1006 static inline void hid_device_io_start(struct hid_device *hid) { in hid_device_io_start()
1026 static inline void hid_device_io_stop(struct hid_device *hid) { in hid_device_io_stop()
1124 static inline int __must_check hid_parse(struct hid_device *hdev) in hid_parse()
1129 int __must_check hid_hw_start(struct hid_device *hdev,
1131 void hid_hw_stop(struct hid_device *hdev);
1132 int __must_check hid_hw_open(struct hid_device *hdev);
1133 void hid_hw_close(struct hid_device *hdev);
1134 void hid_hw_request(struct hid_device *hdev,
1136 int __hid_hw_raw_request(struct hid_device *hdev,
1141 int __hid_hw_output_report(struct hid_device *hdev, __u8 *buf, size_t len, __u64 source,
1143 int hid_hw_raw_request(struct hid_device *hdev,
1147 int hid_hw_output_report(struct hid_device *hdev, __u8 *buf, size_t len);
1159 static inline int hid_hw_power(struct hid_device *hdev, int level) in hid_hw_power()
1173 static inline int hid_hw_idle(struct hid_device *hdev, int report, int idle, in hid_hw_idle()
1187 static inline bool hid_hw_may_wakeup(struct hid_device *hdev) in hid_hw_may_wakeup()
1203 static inline void hid_hw_wait(struct hid_device *hdev) in hid_hw_wait()
1219 int hid_report_raw_event(struct hid_device *hid, enum hid_report_type type, u8 *data, u32 size,
1223 unsigned long hid_lookup_quirk(const struct hid_device *hdev);