Home | History | Annotate | Download | only in linux

Lines Matching full:hid_device

412 	struct hid_device *device;			/* associated device */
460 struct hid_device { /* device report descriptor */
496 int (*ff_init)(struct hid_device *);
499 int (*hiddev_connect)(struct hid_device *, unsigned int);
500 void (*hiddev_disconnect)(struct hid_device *);
501 void (*hiddev_hid_event) (struct hid_device *, struct hid_field *field,
503 void (*hiddev_report_event) (struct hid_device *, struct hid_report *);
506 int (*hid_output_raw_report) (struct hid_device *, __u8 *, size_t, unsigned char);
517 static inline void *hid_get_drvdata(struct hid_device *hdev)
522 static inline void hid_set_drvdata(struct hid_device *hdev, void *data)
537 struct hid_device *device;
555 #define HID_DEVICE(b, ven, prod) \
559 #define HID_USB_DEVICE(ven, prod) HID_DEVICE(BUS_USB, ven, prod)
560 #define HID_BLUETOOTH_DEVICE(ven, prod) HID_DEVICE(BUS_BLUETOOTH, ven, prod)
618 int (*probe)(struct hid_device *dev, const struct hid_device_id *id);
619 void (*remove)(struct hid_device *dev);
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);
682 extern int hid_add_device(struct hid_device *);
683 extern void hid_destroy_device(struct hid_device *);
693 extern void hidinput_hid_event(struct hid_device *, struct hid_field *, struct hid_usage *, __s32);
694 extern void hidinput_report_event(struct hid_device *hid, struct hid_report *report);
695 extern int hidinput_connect(struct hid_device *hid, unsigned int force);
696 extern void hidinput_disconnect(struct hid_device *);
699 int hid_input_report(struct hid_device *, int type, u8 *, int, int);
700 int hidinput_find_field(struct hid_device *hid, unsigned int type, unsigned int code, struct hid_field **field);
702 struct hid_device *hid_allocate_device(void);
703 struct hid_report *hid_register_report(struct hid_device *device, unsigned type, unsigned id);
704 int hid_parse_report(struct hid_device *hid, __u8 *start, unsigned size);
705 int hid_check_keys_pressed(struct hid_device *hid);
706 int hid_connect(struct hid_device *hid, unsigned int connect_mask);
707 void hid_disconnect(struct hid_device *hid);
771 static inline int __must_check hid_parse(struct hid_device *hdev)
795 static inline int __must_check hid_hw_start(struct hid_device *hdev,
815 static inline void hid_hw_stop(struct hid_device *hdev)
821 void hid_report_raw_event(struct hid_device *hid, int type, u8 *data, int size,
831 void usbhid_set_leds(struct hid_device *hid);
834 int hid_pidff_init(struct hid_device *hid);