Home
last modified time | relevance | path

Searched refs:hid_device (Results 1 - 25 of 327) sorted by relevance

12345678910>>...14

/kernel/linux/linux-6.6/include/linux/
H A Dhid.h536 struct hid_device *device; /* associated device */
602 struct hid_device { /* device report descriptor */ struct
665 int (*ff_init)(struct hid_device *);
668 int (*hiddev_connect)(struct hid_device *, unsigned int);
669 void (*hiddev_disconnect)(struct hid_device *);
670 void (*hiddev_hid_event) (struct hid_device *, struct hid_field *field,
672 void (*hiddev_report_event) (struct hid_device *, struct hid_report *);
694 container_of(pdev, struct hid_device, dev)
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 *hde
[all...]
H A Dhiddev.h29 struct hid_device *hid;
35 struct hid_device;
41 int hiddev_connect(struct hid_device *hid, unsigned int force);
42 void hiddev_disconnect(struct hid_device *);
43 void hiddev_hid_event(struct hid_device *hid, struct hid_field *field,
45 void hiddev_report_event(struct hid_device *hid, struct hid_report *report);
47 static inline int hiddev_connect(struct hid_device *hid, in hiddev_connect()
50 static inline void hiddev_disconnect(struct hid_device *hid) { } in hiddev_disconnect()
51 static inline void hiddev_hid_event(struct hid_device *hid, struct hid_field *field, in hiddev_hid_event()
53 static inline void hiddev_report_event(struct hid_device *hi in hiddev_hid_event()
[all...]
H A Dhid_bpf.h10 struct hid_device;
30 * @hid: the ``struct hid_device`` representing the device itself
51 const struct hid_device *hid;
113 int (*hid_hw_raw_request)(struct hid_device *hdev,
149 u8 *dispatch_hid_bpf_device_event(struct hid_device *hid, enum hid_report_type type, u8 *data,
151 int hid_bpf_connect_device(struct hid_device *hdev);
152 void hid_bpf_disconnect_device(struct hid_device *hdev);
153 void hid_bpf_destroy_device(struct hid_device *hid);
154 void hid_bpf_device_init(struct hid_device *hid);
155 u8 *call_hid_bpf_rdesc_fixup(struct hid_device *hde
[all...]
H A Dhidraw.h16 struct hid_device *hid;
40 int hidraw_report_event(struct hid_device *, u8 *, int);
41 int hidraw_connect(struct hid_device *);
42 void hidraw_disconnect(struct hid_device *);
46 static inline int hidraw_report_event(struct hid_device *hid, u8 *data, int len) { return 0; } in hidraw_report_event()
47 static inline int hidraw_connect(struct hid_device *hid) { return -1; } in hidraw_connect()
48 static inline void hidraw_disconnect(struct hid_device *hid) { } in hidraw_disconnect()
H A Dhid-debug.h19 void hid_dump_input(struct hid_device *, struct hid_usage *, __s32);
20 void hid_dump_report(struct hid_device *, int , u8 *, int);
21 void hid_dump_device(struct hid_device *, struct seq_file *);
24 void hid_debug_register(struct hid_device *, const char *);
25 void hid_debug_unregister(struct hid_device *);
28 void hid_debug_event(struct hid_device *, char *);
33 struct hid_device *hdev;
/kernel/linux/linux-5.10/include/linux/
H A Dhid.h489 struct hid_device *device; /* associated device */
551 struct hid_device { /* device report descriptor */ struct
610 int (*ff_init)(struct hid_device *);
613 int (*hiddev_connect)(struct hid_device *, unsigned int);
614 void (*hiddev_disconnect)(struct hid_device *);
615 void (*hiddev_hid_event) (struct hid_device *, struct hid_field *field,
617 void (*hiddev_report_event) (struct hid_device *, struct hid_report *);
635 container_of(pdev, struct hid_device, dev)
637 static inline void *hid_get_drvdata(struct hid_device *hdev) in hid_get_drvdata()
642 static inline void hid_set_drvdata(struct hid_device *hde
[all...]
H A Dhiddev.h29 struct hid_device *hid;
35 struct hid_device;
41 int hiddev_connect(struct hid_device *hid, unsigned int force);
42 void hiddev_disconnect(struct hid_device *);
43 void hiddev_hid_event(struct hid_device *hid, struct hid_field *field,
45 void hiddev_report_event(struct hid_device *hid, struct hid_report *report);
47 static inline int hiddev_connect(struct hid_device *hid, in hiddev_connect()
50 static inline void hiddev_disconnect(struct hid_device *hid) { } in hiddev_disconnect()
51 static inline void hiddev_hid_event(struct hid_device *hid, struct hid_field *field, in hiddev_hid_event()
53 static inline void hiddev_report_event(struct hid_device *hi in hiddev_hid_event()
[all...]
H A Dhidraw.h16 struct hid_device *hid;
40 int hidraw_report_event(struct hid_device *, u8 *, int);
41 int hidraw_connect(struct hid_device *);
42 void hidraw_disconnect(struct hid_device *);
46 static inline int hidraw_report_event(struct hid_device *hid, u8 *data, int len) { return 0; } in hidraw_report_event()
47 static inline int hidraw_connect(struct hid_device *hid) { return -1; } in hidraw_connect()
48 static inline void hidraw_disconnect(struct hid_device *hid) { } in hidraw_disconnect()
H A Dhid-debug.h19 void hid_dump_input(struct hid_device *, struct hid_usage *, __s32);
20 void hid_dump_report(struct hid_device *, int , u8 *, int);
21 void hid_dump_device(struct hid_device *, struct seq_file *);
24 void hid_debug_register(struct hid_device *, const char *);
25 void hid_debug_unregister(struct hid_device *);
28 void hid_debug_event(struct hid_device *, char *);
33 struct hid_device *hdev;
/kernel/linux/linux-5.10/drivers/hid/
H A Dhid-lg4ff.h8 int lg4ff_adjust_input_event(struct hid_device *hid, struct hid_field *field,
10 int lg4ff_raw_event(struct hid_device *hdev, struct hid_report *report,
12 int lg4ff_init(struct hid_device *hdev);
13 int lg4ff_deinit(struct hid_device *hdev);
15 static inline int lg4ff_adjust_input_event(struct hid_device *hid, struct hid_field *field, in lg4ff_adjust_input_event()
17 static inline int lg4ff_raw_event(struct hid_device *hdev, struct hid_report *report, in lg4ff_raw_event()
19 static inline int lg4ff_init(struct hid_device *hdev) { return -1; } in lg4ff_init()
20 static inline int lg4ff_deinit(struct hid_device *hdev) { return -1; } in lg4ff_deinit()
H A Dhid-lenovo.c46 struct hid_device *hdev;
73 static int lenovo_led_set_tp10ubkbd(struct hid_device *hdev, u8 led_code, in lenovo_led_set_tp10ubkbd()
118 static __u8 *lenovo_report_fixup(struct hid_device *hdev, __u8 *rdesc, in lenovo_report_fixup()
138 static int lenovo_input_mapping_tpkbd(struct hid_device *hdev, in lenovo_input_mapping_tpkbd()
151 static int lenovo_input_mapping_cptkbd(struct hid_device *hdev, in lenovo_input_mapping_cptkbd()
225 static int lenovo_input_mapping_scrollpoint(struct hid_device *hdev, in lenovo_input_mapping_scrollpoint()
236 static int lenovo_input_mapping_tp10_ultrabook_kbd(struct hid_device *hdev, in lenovo_input_mapping_tp10_ultrabook_kbd()
274 static int lenovo_input_mapping(struct hid_device *hdev, in lenovo_input_mapping()
305 static int lenovo_send_cmd_cptkbd(struct hid_device *hdev, in lenovo_send_cmd_cptkbd()
337 static void lenovo_features_set_cptkbd(struct hid_device *hde
[all...]
H A Dhid-lg.h11 int lgff_init(struct hid_device *hdev);
13 static inline int lgff_init(struct hid_device *hdev) { return -1; } in lgff_init()
17 int lg2ff_init(struct hid_device *hdev);
19 static inline int lg2ff_init(struct hid_device *hdev) { return -1; } in lg2ff_init()
23 int lg3ff_init(struct hid_device *hdev);
25 static inline int lg3ff_init(struct hid_device *hdev) { return -1; } in lg3ff_init()
H A Dhid-rmi.c72 * @hdev: pointer to the struct hid_device
95 struct hid_device *hdev;
105 static int rmi_write_report(struct hid_device *hdev, u8 *report, int len);
109 * @hdev: The pointer to the hid_device struct
121 static int rmi_set_page(struct hid_device *hdev, u8 page) in rmi_set_page()
143 static int rmi_set_mode(struct hid_device *hdev, u8 mode) in rmi_set_mode()
165 static int rmi_write_report(struct hid_device *hdev, u8 *report, int len) in rmi_write_report()
192 struct hid_device *hdev = data->hdev; in rmi_hid_read_block()
264 struct hid_device *hdev = data->hdev; in rmi_hid_write_block()
296 static int rmi_reset_attn_mode(struct hid_device *hde
[all...]
H A Dhid-cmedia.c45 struct hid_device *hid;
49 static void hp_ev(struct hid_device *hid, struct cmhid *cm, int value) in hp_ev()
55 static int cmhid_raw_event(struct hid_device *hid, struct hid_report *report, in cmhid_raw_event()
78 static int cmhid_input_configured(struct hid_device *hid, in cmhid_input_configured()
94 static int cmhid_input_mapping(struct hid_device *hid, in cmhid_input_mapping()
101 static int cmhid_probe(struct hid_device *hid, const struct hid_device_id *id) in cmhid_probe()
136 static void cmhid_remove(struct hid_device *hid) in cmhid_remove()
H A Dhid-appleir.c109 struct hid_device *hid;
151 static void key_up(struct hid_device *hid, struct appleir *appleir, int key) in key_up()
157 static void key_down(struct hid_device *hid, struct appleir *appleir, int key) in key_down()
171 struct hid_device *hid = appleir->hid; in key_up_tick()
182 static int appleir_raw_event(struct hid_device *hid, struct hid_report *report, in appleir_raw_event()
251 static int appleir_input_configured(struct hid_device *hid, in appleir_input_configured()
274 static int appleir_input_mapping(struct hid_device *hid, in appleir_input_mapping()
281 static int appleir_probe(struct hid_device *hid, const struct hid_device_id *id) in appleir_probe()
318 static void appleir_remove(struct hid_device *hid) in appleir_remove()
/kernel/linux/linux-6.6/drivers/hid/
H A Dhid-lg4ff.h8 int lg4ff_adjust_input_event(struct hid_device *hid, struct hid_field *field,
10 int lg4ff_raw_event(struct hid_device *hdev, struct hid_report *report,
12 int lg4ff_init(struct hid_device *hdev);
13 int lg4ff_deinit(struct hid_device *hdev);
15 static inline int lg4ff_adjust_input_event(struct hid_device *hid, struct hid_field *field, in lg4ff_adjust_input_event()
17 static inline int lg4ff_raw_event(struct hid_device *hdev, struct hid_report *report, in lg4ff_raw_event()
19 static inline int lg4ff_init(struct hid_device *hdev) { return -1; } in lg4ff_init()
20 static inline int lg4ff_deinit(struct hid_device *hdev) { return -1; } in lg4ff_deinit()
H A Dhid-lg.h11 int lgff_init(struct hid_device *hdev);
13 static inline int lgff_init(struct hid_device *hdev) { return -1; } in lgff_init()
17 int lg2ff_init(struct hid_device *hdev);
19 static inline int lg2ff_init(struct hid_device *hdev) { return -1; } in lg2ff_init()
23 int lg3ff_init(struct hid_device *hdev);
25 static inline int lg3ff_init(struct hid_device *hdev) { return -1; } in lg3ff_init()
H A Dhid-lenovo.c47 struct hid_device *hdev;
74 static int lenovo_led_set_tp10ubkbd(struct hid_device *hdev, u8 led_code, in lenovo_led_set_tp10ubkbd()
136 static __u8 *lenovo_report_fixup(struct hid_device *hdev, __u8 *rdesc, in lenovo_report_fixup()
169 static int lenovo_input_mapping_tpkbd(struct hid_device *hdev, in lenovo_input_mapping_tpkbd()
182 static int lenovo_input_mapping_cptkbd(struct hid_device *hdev, in lenovo_input_mapping_cptkbd()
256 static int lenovo_input_mapping_tpIIkbd(struct hid_device *hdev, in lenovo_input_mapping_tpIIkbd()
351 static int lenovo_input_mapping_scrollpoint(struct hid_device *hdev, in lenovo_input_mapping_scrollpoint()
362 static int lenovo_input_mapping_tp10_ultrabook_kbd(struct hid_device *hdev, in lenovo_input_mapping_tp10_ultrabook_kbd()
400 static int lenovo_input_mapping_x1_tab_kbd(struct hid_device *hdev, in lenovo_input_mapping_x1_tab_kbd()
448 static int lenovo_input_mapping(struct hid_device *hde
[all...]
H A Dhid-rmi.c72 * @hdev: pointer to the struct hid_device
95 struct hid_device *hdev;
105 static int rmi_write_report(struct hid_device *hdev, u8 *report, int len);
109 * @hdev: The pointer to the hid_device struct
121 static int rmi_set_page(struct hid_device *hdev, u8 page) in rmi_set_page()
143 static int rmi_set_mode(struct hid_device *hdev, u8 mode) in rmi_set_mode()
165 static int rmi_write_report(struct hid_device *hdev, u8 *report, int len) in rmi_write_report()
192 struct hid_device *hdev = data->hdev; in rmi_hid_read_block()
263 struct hid_device *hdev = data->hdev; in rmi_hid_write_block()
295 static int rmi_reset_attn_mode(struct hid_device *hde
[all...]
/kernel/linux/linux-6.6/drivers/hid/amd-sfh-hid/
H A Damd_sfh_hid.c27 static int amdtp_hid_parse(struct hid_device *hid) in amdtp_hid_parse()
37 static int amdtp_hid_start(struct hid_device *hid) in amdtp_hid_start()
42 static void amdtp_hid_stop(struct hid_device *hid) in amdtp_hid_stop()
46 static int amdtp_hid_open(struct hid_device *hid) in amdtp_hid_open()
51 static void amdtp_hid_close(struct hid_device *hid) in amdtp_hid_close()
55 static int amdtp_raw_request(struct hid_device *hdev, u8 reportnum, in amdtp_raw_request()
61 static void amdtp_hid_request(struct hid_device *hid, struct hid_report *rep, int reqtype) in amdtp_hid_request()
79 static int amdtp_wait_for_response(struct hid_device *hid) in amdtp_wait_for_response()
102 void amdtp_hid_wakeup(struct hid_device *hid) in amdtp_hid_wakeup()
130 struct hid_device *hi in amdtp_hid_probe()
[all...]
H A Damd_sfh_hid.h19 struct hid_device *hid;
41 struct hid_device *hid_sensor_hubs[MAX_HID_DEVICES];
76 void hid_amdtp_set_feature(struct hid_device *hid, char *buf, u32 len, int report_id);
77 void hid_amdtp_get_report(struct hid_device *hid, int report_id, int report_type);
80 int amd_sfh_get_report(struct hid_device *hid, int report_id, int report_type);
81 void amd_sfh_set_report(struct hid_device *hid, int report_id, int report_type);
82 void amdtp_hid_wakeup(struct hid_device *hid);
/kernel/linux/linux-5.10/drivers/hid/intel-ish-hid/
H A Dishtp-hid.c21 static int ishtp_hid_parse(struct hid_device *hid) in ishtp_hid_parse()
36 static int ishtp_hid_start(struct hid_device *hid) in ishtp_hid_start()
41 static void ishtp_hid_stop(struct hid_device *hid) in ishtp_hid_stop()
45 static int ishtp_hid_open(struct hid_device *hid) in ishtp_hid_open()
50 static void ishtp_hid_close(struct hid_device *hid) in ishtp_hid_close()
54 static int ishtp_raw_request(struct hid_device *hid, unsigned char reportnum, in ishtp_raw_request()
104 static void ishtp_hid_request(struct hid_device *hid, struct hid_report *rep, in ishtp_hid_request()
145 static int ishtp_wait_for_response(struct hid_device *hid) in ishtp_wait_for_response()
178 void ishtp_hid_wakeup(struct hid_device *hid) in ishtp_hid_wakeup()
210 struct hid_device *hi in ishtp_hid_probe()
[all...]
/kernel/linux/linux-6.6/drivers/hid/intel-ish-hid/
H A Dishtp-hid.c21 static int ishtp_hid_parse(struct hid_device *hid) in ishtp_hid_parse()
36 static int ishtp_hid_start(struct hid_device *hid) in ishtp_hid_start()
41 static void ishtp_hid_stop(struct hid_device *hid) in ishtp_hid_stop()
45 static int ishtp_hid_open(struct hid_device *hid) in ishtp_hid_open()
50 static void ishtp_hid_close(struct hid_device *hid) in ishtp_hid_close()
54 static int ishtp_raw_request(struct hid_device *hid, unsigned char reportnum, in ishtp_raw_request()
104 static void ishtp_hid_request(struct hid_device *hid, struct hid_report *rep, in ishtp_hid_request()
145 static int ishtp_wait_for_response(struct hid_device *hid) in ishtp_wait_for_response()
178 void ishtp_hid_wakeup(struct hid_device *hid) in ishtp_hid_wakeup()
210 struct hid_device *hi in ishtp_hid_probe()
[all...]
/kernel/linux/linux-6.6/drivers/hid/bpf/
H A Dhid_bpf_dispatch.h16 int __hid_bpf_attach_prog(struct hid_device *hdev, enum hid_bpf_prog_type prog_type, int prog_fd,
18 void __hid_bpf_destroy_device(struct hid_device *hdev);
19 int hid_bpf_prog_run(struct hid_device *hdev, enum hid_bpf_prog_type type,
21 int hid_bpf_reconnect(struct hid_device *hdev);
H A Dhid_bpf_dispatch.c49 dispatch_hid_bpf_device_event(struct hid_device *hdev, enum hid_report_type type, u8 *data, in dispatch_hid_bpf_device_event()
108 u8 *call_hid_bpf_rdesc_fixup(struct hid_device *hdev, u8 *rdesc, unsigned int *size) in call_hid_bpf_rdesc_fixup()
186 struct hid_device *hdev = to_hid_device(dev); in device_match_id()
191 static int __hid_bpf_allocate_data(struct hid_device *hdev, u8 **data, u32 *size) in __hid_bpf_allocate_data()
227 static int hid_bpf_allocate_event_data(struct hid_device *hdev) in hid_bpf_allocate_event_data()
236 int hid_bpf_reconnect(struct hid_device *hdev) in hid_bpf_reconnect()
244 static int do_hid_bpf_attach_prog(struct hid_device *hdev, int prog_fd, struct bpf_prog *prog, in do_hid_bpf_attach_prog()
292 struct hid_device *hdev; in hid_bpf_attach_prog()
344 struct hid_device *hdev; in hid_bpf_allocate_context()
378 struct hid_device *hi in hid_bpf_release_context()
[all...]

Completed in 15 milliseconds

12345678910>>...14