Home
last modified time | relevance | path

Searched refs:hid_device (Results 1 – 25 of 144) sorted by relevance

123456

/linux/include/linux/
H A Dhid.h574 struct hid_device *device; /* associated device */
655 struct hid_device *dev;
674 struct hid_device { struct
731 int (*ff_init)(struct hid_device *); argument
734 int (*hiddev_connect)(struct hid_device *, unsigned int); argument
735 void (*hiddev_disconnect)(struct hid_device *); argument
736 void (*hiddev_hid_event) (struct hid_device *, struct hid_field *field, argument
738 void (*hiddev_report_event) (struct hid_device *, struct hid_report *); argument
760 container_of(pdev, struct hid_device, dev) argument
762 static inline void *hid_get_drvdata(struct hid_device *hdev) in hid_get_drvdata()
[all …]
H A Dhid_bpf.h11 struct hid_device;
47 struct hid_device *hid;
67 int (*hid_hw_raw_request)(struct hid_device *hdev,
72 int (*hid_hw_output_report)(struct hid_device *hdev, __u8 *buf, size_t len,
74 int (*hid_input_report)(struct hid_device *hid, enum hid_report_type type,
183 struct hid_device *hdev;
202 u8 *dispatch_hid_bpf_device_event(struct hid_device *hid, enum hid_report_type type, u8 *data,
205 int dispatch_hid_bpf_raw_requests(struct hid_device *hdev,
210 int dispatch_hid_bpf_output_report(struct hid_device *hdev, __u8 *buf, u32 size,
212 int hid_bpf_connect_device(struct hid_device *hdev);
[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 *hid, struct hid_report *report) { } in hiddev_report_event()
H A Dhidraw.h16 struct hid_device *hid;
41 int hidraw_report_event(struct hid_device *, u8 *, int);
42 int hidraw_connect(struct hid_device *);
43 void hidraw_disconnect(struct hid_device *);
47 static inline int hidraw_report_event(struct hid_device *hid, u8 *data, int len) { return 0; } in hidraw_report_event()
48 static inline int hidraw_connect(struct hid_device *hid) { return -1; } in hidraw_connect()
49 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;
/linux/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-rmi.c95 struct hid_device *hdev;
105 static int rmi_write_report(struct hid_device *hdev, u8 *report, int len);
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()
279 struct hid_device *hdev = data->hdev; in rmi_hid_write_block()
316 static int rmi_reset_attn_mode(struct hid_device *hdev) in rmi_reset_attn_mode()
341 static int rmi_input_event(struct hid_device *hdev, u8 *data, int size) in rmi_input_event()
363 static int rmi_read_data_event(struct hid_device *hdev, u8 *data, int size) in rmi_read_data_event()
[all …]
H A Dhid-ntrig.c109 static inline int ntrig_get_mode(struct hid_device *hdev) in ntrig_get_mode()
123 static inline void ntrig_set_mode(struct hid_device *hdev, const int mode) in ntrig_set_mode()
140 static void ntrig_report_version(struct hid_device *hdev) in ntrig_report_version()
172 struct hid_device *hdev = to_hid_device(dev); in show_phys_width()
184 struct hid_device *hdev = to_hid_device(dev); in show_phys_height()
196 struct hid_device *hdev = to_hid_device(dev); in show_log_width()
208 struct hid_device *hdev = to_hid_device(dev); in show_log_height()
220 struct hid_device *hdev = to_hid_device(dev); in show_min_width()
232 struct hid_device *hdev = to_hid_device(dev); in set_min_width()
255 struct hid_device *hdev = to_hid_device(dev); in show_min_height()
[all …]
H A Dhid-cmedia.c87 struct hid_device *hid;
91 static void hp_ev(struct hid_device *hid, struct cmhid *cm, int value) in hp_ev()
97 static int cmhid_raw_event(struct hid_device *hid, struct hid_report *report, in cmhid_raw_event()
120 static int cmhid_input_configured(struct hid_device *hid, in cmhid_input_configured()
136 static int cmhid_input_mapping(struct hid_device *hid, in cmhid_input_mapping()
143 static int cmhid_probe(struct hid_device *hid, const struct hid_device_id *id) in cmhid_probe()
178 static void cmhid_remove(struct hid_device *hid) in cmhid_remove()
202 static const __u8 *cmhid_hs100b_report_fixup(struct hid_device *hid, __u8 *rdesc, in cmhid_hs100b_report_fixup()
H A Dhid-core.c87 struct hid_report *hid_register_report(struct hid_device *device, in hid_register_report()
717 static void hid_close_report(struct hid_device *device) in hid_close_report()
753 static inline void hid_free_bpf_rdesc(struct hid_device *hdev) in hid_free_bpf_rdesc()
767 struct hid_device *hid = container_of(ref, struct hid_device, ref); in hiddev_free()
777 struct hid_device *hid = to_hid_device(dev); in hid_device_release()
845 struct hid_device *hid = parser->device; in hid_scan_input_usage()
864 struct hid_device *hid = parser->device; in hid_scan_collection()
934 static int hid_scan_report(struct hid_device *hid) in hid_scan_report()
1011 int hid_parse_report(struct hid_device *hid, const __u8 *start, unsigned size) in hid_parse_report()
1038 struct hid_report *hid_validate_values(struct hid_device *hid, in hid_validate_values()
[all …]
H A Dhid-kysona.c21 struct hid_device *hdev;
94 static int kysona_m600_fetch_online(struct hid_device *hdev) in kysona_m600_fetch_online()
115 static void kysona_fetch_online(struct hid_device *hdev) in kysona_fetch_online()
124 static int kysona_m600_fetch_battery(struct hid_device *hdev) in kysona_m600_fetch_battery()
145 static void kysona_fetch_battery(struct hid_device *hdev) in kysona_fetch_battery()
158 struct hid_device *hdev = drv_data->hdev; in kysona_battery_timer_tick()
166 static int kysona_battery_probe(struct hid_device *hdev) in kysona_battery_probe()
208 static int kysona_probe(struct hid_device *hdev, const struct hid_device_id *id) in kysona_probe()
242 static int kysona_raw_event(struct hid_device *hdev, in kysona_raw_event()
262 static void kysona_remove(struct hid_device *hdev) in kysona_remove()
H A Dhid-appleir.c109 struct hid_device *hid;
152 static void key_up(struct hid_device *hid, struct appleir *appleir, int key) in key_up()
158 static void key_down(struct hid_device *hid, struct appleir *appleir, int key) in key_down()
172 struct hid_device *hid = appleir->hid; in key_up_tick()
183 static int appleir_raw_event(struct hid_device *hid, struct hid_report *report, in appleir_raw_event()
264 static int appleir_input_configured(struct hid_device *hid, in appleir_input_configured()
287 static int appleir_input_mapping(struct hid_device *hid, in appleir_input_mapping()
294 static int appleir_probe(struct hid_device *hid, const struct hid_device_id *id) in appleir_probe()
331 static void appleir_remove(struct hid_device *hid) in appleir_remove()
H A Dhid-picolcd.h65 struct hid_device *hdev;
130 struct hid_report *picolcd_report(int id, struct hid_device *hdev, int dir);
134 struct hid_device *hdev, struct hid_report *report);
142 struct hid_device *hdev, struct hid_report *report,
153 struct hid_device *hdev, struct hid_report *report) in picolcd_debug_out_report()
157 struct hid_device *hdev, struct hid_report *report, in picolcd_debug_raw_event()
297 int picolcd_reset(struct hid_device *hdev);
298 struct picolcd_pending *picolcd_send_and_wait(struct hid_device *hdev,
H A Dhid-samsung.c51 static inline void samsung_irda_dev_trace(struct hid_device *hdev, in samsung_irda_dev_trace()
58 static __u8 *samsung_irda_report_fixup(struct hid_device *hdev, __u8 *rdesc, in samsung_irda_report_fixup()
87 static int samsung_kbd_mouse_input_mapping(struct hid_device *hdev, in samsung_kbd_mouse_input_mapping()
142 static int samsung_kbd_input_mapping(struct hid_device *hdev, in samsung_kbd_input_mapping()
235 static int samsung_gamepad_input_mapping(struct hid_device *hdev, in samsung_gamepad_input_mapping()
326 static int samsung_actionmouse_input_mapping(struct hid_device *hdev, in samsung_actionmouse_input_mapping()
349 static int samsung_universal_kbd_input_mapping(struct hid_device *hdev, in samsung_universal_kbd_input_mapping()
472 static const __u8 *samsung_report_fixup(struct hid_device *hdev, __u8 *rdesc, in samsung_report_fixup()
480 static int samsung_input_mapping(struct hid_device *hdev, struct hid_input *hi, in samsung_input_mapping()
508 static int samsung_probe(struct hid_device *hdev, in samsung_probe()
H A Dhid-hyperv.c146 struct hid_device *hid_device; member
323 hid_input_report(input_dev->hid_device, HID_INPUT_REPORT, in mousevsc_on_receive()
418 static int mousevsc_hid_parse(struct hid_device *hid) in mousevsc_hid_parse()
427 static int mousevsc_hid_open(struct hid_device *hid) in mousevsc_hid_open()
432 static int mousevsc_hid_start(struct hid_device *hid) in mousevsc_hid_start()
437 static void mousevsc_hid_close(struct hid_device *hid) in mousevsc_hid_close()
441 static void mousevsc_hid_stop(struct hid_device *hid) in mousevsc_hid_stop()
445 static int mousevsc_hid_raw_request(struct hid_device *hid, in mousevsc_hid_raw_request()
454 static int mousevsc_hid_probe(struct hid_device *hid_dev, const struct hid_device_id *id) in mousevsc_hid_probe()
498 struct hid_device *hid_dev; in mousevsc_probe()
[all …]
H A Dhid-winwing.c21 struct hid_device *hdev;
38 struct hid_device *hdev;
86 static int winwing_init_led(struct hid_device *hdev, in winwing_init_led()
184 static int winwing_input_mapping(struct hid_device *hdev, in winwing_input_mapping()
318 struct hid_device *hdev = input_get_drvdata(dev); in winwing_play_effect()
332 static int winwing_init_ff(struct hid_device *hdev, struct hid_input *hidinput) in winwing_init_ff()
355 static int winwing_probe(struct hid_device *hdev, in winwing_probe()
388 static void winwing_remove(struct hid_device *hdev) in winwing_remove()
401 static int winwing_input_configured(struct hid_device *hdev, in winwing_input_configured()
H A Dhid-steelseries-arctis.c31 int (*request_status)(struct hid_device *hdev);
38 struct hid_device *hdev;
65 static int steelseries_send_report(struct hid_device *hdev, const u8 *data, in steelseries_send_report()
87 static inline int steelseries_send_output_report(struct hid_device *hdev, in steelseries_send_output_report()
97 static int steelseries_arctis_1_request_status(struct hid_device *hdev) in steelseries_arctis_1_request_status()
104 static int steelseries_arctis_7_2018_request_status(struct hid_device *hdev) in steelseries_arctis_7_2018_request_status()
117 static int steelseries_arctis_9_request_status(struct hid_device *hdev) in steelseries_arctis_9_request_status()
124 static int steelseries_arctis_nova_request_status(struct hid_device *hdev) in steelseries_arctis_nova_request_status()
306 steelseries_headset_set_wireless_status(struct hid_device *hdev, in steelseries_headset_set_wireless_status()
442 steelseries_get_sibling_sd(struct hid_device *hdev, int interface_num) in steelseries_get_sibling_sd()
[all …]
/linux/drivers/hid/intel-thc-hid/intel-quicki2c/
H A Dquicki2c-hid.c21 static int quicki2c_hid_parse(struct hid_device *hid) in quicki2c_hid_parse()
33 static int quicki2c_hid_start(struct hid_device *hid) in quicki2c_hid_start()
38 static void quicki2c_hid_stop(struct hid_device *hid) in quicki2c_hid_stop()
42 static int quicki2c_hid_open(struct hid_device *hid) in quicki2c_hid_open()
47 static void quicki2c_hid_close(struct hid_device *hid) in quicki2c_hid_close()
51 static int quicki2c_hid_raw_request(struct hid_device *hid, in quicki2c_hid_raw_request()
80 static int quicki2c_hid_power(struct hid_device *hid, int lvl) in quicki2c_hid_power()
85 static int quicki2c_hid_output_report(struct hid_device *hid, u8 *buf, size_t count) in quicki2c_hid_output_report()
114 struct hid_device *hid; in quicki2c_hid_probe()
/linux/drivers/hid/bpf/
H A Dhid_bpf_dispatch.h14 struct hid_device *hid_get_device(unsigned int hid_id);
15 void hid_put_device(struct hid_device *hid);
16 int hid_bpf_allocate_event_data(struct hid_device *hdev);
17 void __hid_bpf_ops_destroy_device(struct hid_device *hdev);
18 int hid_bpf_reconnect(struct hid_device *hdev);
H A Dhid_bpf_dispatch.c27 dispatch_hid_bpf_device_event(struct hid_device *hdev, enum hid_report_type type, u8 *data, in dispatch_hid_bpf_device_event()
84 int dispatch_hid_bpf_raw_requests(struct hid_device *hdev, in dispatch_hid_bpf_raw_requests()
126 int dispatch_hid_bpf_output_report(struct hid_device *hdev, in dispatch_hid_bpf_output_report()
163 const u8 *call_hid_bpf_rdesc_fixup(struct hid_device *hdev, const u8 *rdesc, unsigned int *size) in call_hid_bpf_rdesc_fixup()
204 struct hid_device *hdev = to_hid_device(dev); in device_match_id()
209 struct hid_device *hid_get_device(unsigned int hid_id) in hid_get_device()
223 void hid_put_device(struct hid_device *hid) in hid_put_device()
228 static int __hid_bpf_allocate_data(struct hid_device *hdev, u8 **data, u32 *size) in __hid_bpf_allocate_data()
264 int hid_bpf_allocate_event_data(struct hid_device *hdev) in hid_bpf_allocate_event_data()
273 int hid_bpf_reconnect(struct hid_device *hde
[all...]
/linux/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 *hid; in ishtp_hid_probe()
/linux/sound/soc/sdca/
H A Dsdca_hid.c25 static int sdwhid_parse(struct hid_device *hid) in sdwhid_parse()
47 static int sdwhid_start(struct hid_device *hid)
52 static void sdwhid_stop(struct hid_device *hid) in sdwhid_raw_request()
56 static int sdwhid_raw_request(struct hid_device *hid, unsigned char reportnum, in sdwhid_raw_request()
71 static int sdwhid_open(struct hid_device *hid)
76 static void sdwhid_close(struct hid_device *hid)
99 struct hid_device *hid; in sdca_add_hid_device()
137 struct hid_device *hid = interrupt->priv;
152 struct hid_device *hid = interrupt->priv;
/linux/drivers/platform/x86/tuxedo/nb04/
H A Dwmi_ab.c411 struct hid_device *hdev;
421 static int tux_ll_start(struct hid_device *hdev) in tux_ll_start()
456 static void tux_ll_stop(struct hid_device *hdev __always_unused) in tux_ll_stop()
460 static int tux_ll_open(struct hid_device *hdev __always_unused) in tux_ll_open()
465 static void tux_ll_close(struct hid_device *hdev __always_unused) in tux_ll_close()
469 static int tux_ll_parse(struct hid_device *hdev) in tux_ll_parse()
485 static int handle_lamp_array_attributes_report(struct hid_device *hdev, in handle_lamp_array_attributes_report()
510 static int handle_lamp_attributes_request_report(struct hid_device *hdev, in handle_lamp_attributes_request_report()
539 static int handle_lamp_attributes_response_report(struct hid_device *hdev, in handle_lamp_attributes_response_report()
598 static int handle_lamp_multi_update_report(struct hid_device *hdev, in handle_lamp_multi_update_report()
[all …]
/linux/drivers/hid/amd-sfh-hid/
H A Damd_sfh_hid.h19 struct hid_device *hid;
41 struct hid_device *hid_sensor_hubs[MAX_HID_DEVICES];
78 int amd_sfh_get_report(struct hid_device *hid, int report_id, int report_type);
79 void amd_sfh_set_report(struct hid_device *hid, int report_id, int report_type);
80 void amdtp_hid_wakeup(struct hid_device *hid);

123456