Home
last modified time | relevance | path

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

12345678

/openbmc/linux/include/linux/
H A Dhid.h665 int (*ff_init)(struct hid_device *); argument
721 struct hid_device *device;
815 void (*remove)(struct hid_device *dev);
841 int (*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);
877 int (*parse)(struct hid_device *hdev);
879 void (*request)(struct hid_device *hdev,
[all …]
H A Dhid_bpf.h10 struct hid_device;
51 const struct hid_device *hid;
113 int (*hid_hw_raw_request)(struct hid_device *hdev,
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);
159 static inline int hid_bpf_connect_device(struct hid_device *hdev) { return 0; } in hid_bpf_connect_device()
160 static inline void hid_bpf_disconnect_device(struct hid_device *hdev) {} in hid_bpf_disconnect_device()
161 static inline void hid_bpf_destroy_device(struct hid_device *hid) {} in hid_bpf_destroy_device()
[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;
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;
/openbmc/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-lenovo.c47 struct hid_device *hdev;
555 struct hid_device *hdev = to_hid_device(dev); in attr_fn_lock_show()
566 struct hid_device *hdev = to_hid_device(dev); in attr_fn_lock_store()
599 struct hid_device *hdev = to_hid_device(dev); in attr_sensitivity_show_cptkbd()
611 struct hid_device *hdev = to_hid_device(dev); in attr_sensitivity_store_cptkbd()
628 struct hid_device *hdev = to_hid_device(dev); in attr_middleclick_workaround_show_cptkbd()
640 struct hid_device *hdev = to_hid_device(dev); in attr_middleclick_workaround_store_cptkbd()
809 struct hid_device *hdev = to_hid_device(dev); in attr_press_to_select_show_tpkbd()
820 struct hid_device *hdev = to_hid_device(dev); in attr_press_to_select_store_tpkbd()
839 struct hid_device *hdev = to_hid_device(dev); in attr_dragging_show_tpkbd()
[all …]
H A Dhid-rmi.c95 struct hid_device *hdev;
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()
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 *hdev) in rmi_reset_attn_mode()
374 static int rmi_raw_event(struct hid_device *hdev, in rmi_raw_event()
458 static int rmi_post_resume(struct hid_device *hdev) in rmi_post_resume()
491 struct hid_device *hdev = data->hdev; in rmi_hid_reset()
541 static int rmi_input_mapping(struct hid_device *hdev, in rmi_input_mapping()
[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 __u8 *cmhid_hs100b_report_fixup(struct hid_device *hid, __u8 *rdesc, in cmhid_hs100b_report_fixup()
H A Dhid-ntrig.c172 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()
267 struct hid_device *hdev = to_hid_device(dev); in set_min_height()
291 struct hid_device *hdev = to_hid_device(dev); in show_activate_slack()
301 struct hid_device *hdev = to_hid_device(dev); in set_activate_slack()
[all …]
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()
H A Dhid-core.c707 struct hid_device *hid = container_of(ref, struct hid_device, ref); in hiddev_free()
716 struct hid_device *hid = to_hid_device(dev); in hid_device_release()
790 struct hid_device *hid = parser->device; in hid_scan_input_usage()
809 struct hid_device *hid = parser->device; in hid_scan_collection()
2275 void hid_disconnect(struct hid_device *hdev) in hid_disconnect()
2326 void hid_hw_stop(struct hid_device *hdev) in hid_hw_stop()
2341 int hid_hw_open(struct hid_device *hdev) in hid_hw_open()
2369 void hid_hw_close(struct hid_device *hdev) in hid_hw_close()
2706 struct hid_device *hdev = container_of(dev, struct hid_device, dev); in modalias_show()
2762 int hid_add_device(struct hid_device *hdev) in hid_add_device()
[all …]
H A Dhid-steelseries.c24 struct hid_device *hdev;
161 struct hid_device *hid = to_hid_device(dev); in steelseries_srws1_led_all_set_brightness()
180 struct hid_device *hid = to_hid_device(dev); in steelseries_srws1_led_all_get_brightness()
197 struct hid_device *hid = to_hid_device(dev); in steelseries_srws1_led_set_brightness()
225 struct hid_device *hid = to_hid_device(dev); in steelseries_srws1_led_get_brightness()
245 static int steelseries_srws1_probe(struct hid_device *hdev, in steelseries_srws1_probe()
349 static void steelseries_srws1_remove(struct hid_device *hdev) in steelseries_srws1_remove()
418 struct hid_device *hdev = sd->hdev; in steelseries_headset_battery_timer_tick()
453 steelseries_headset_set_wireless_status(struct hid_device *hdev, in steelseries_headset_set_wireless_status()
551 static void steelseries_remove(struct hid_device *hdev) in steelseries_remove()
[all …]
H A Dhid-hyperv.c143 struct hid_device *hid_device; member
294 hid_input_report(input_dev->hid_device, HID_INPUT_REPORT, in mousevsc_on_receive()
389 static int mousevsc_hid_parse(struct hid_device *hid) in mousevsc_hid_parse()
398 static int mousevsc_hid_open(struct hid_device *hid) in mousevsc_hid_open()
403 static int mousevsc_hid_start(struct hid_device *hid) in mousevsc_hid_start()
408 static void mousevsc_hid_close(struct hid_device *hid) in mousevsc_hid_close()
412 static void mousevsc_hid_stop(struct hid_device *hid) in mousevsc_hid_stop()
441 struct hid_device *hid_dev; in mousevsc_probe()
481 input_dev->hid_device = hid_dev; in mousevsc_probe()
531 hid_hw_stop(input_dev->hid_device); in mousevsc_remove()
[all …]
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()
95 static int samsung_kbd_mouse_input_mapping(struct hid_device *hdev, in samsung_kbd_mouse_input_mapping()
128 static __u8 *samsung_report_fixup(struct hid_device *hdev, __u8 *rdesc, in samsung_report_fixup()
136 static int samsung_input_mapping(struct hid_device *hdev, struct hid_input *hi, in samsung_input_mapping()
149 static int samsung_probe(struct hid_device *hdev, in samsung_probe()
H A Dhid-cypress.c32 static __u8 *cp_rdesc_fixup(struct hid_device *hdev, __u8 *rdesc, in cp_rdesc_fixup()
49 static __u8 *va_logical_boundary_fixup(struct hid_device *hdev, __u8 *rdesc, in va_logical_boundary_fixup()
70 static __u8 *cp_report_fixup(struct hid_device *hdev, __u8 *rdesc, in cp_report_fixup()
83 static int cp_input_mapped(struct hid_device *hdev, struct hid_input *hi, in cp_input_mapped()
100 static int cp_event(struct hid_device *hdev, struct hid_field *field, in cp_event()
128 static int cp_probe(struct hid_device *hdev, const struct hid_device_id *id) in cp_probe()
/openbmc/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];
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);
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 *hid; in amdtp_hid_probe()
/openbmc/linux/drivers/hid/bpf/
H A Dhid_bpf_dispatch.c186 struct hid_device *hdev = to_hid_device(dev); in device_match_id()
236 int hid_bpf_reconnect(struct hid_device *hdev) in hid_bpf_reconnect()
292 struct hid_device *hdev; in hid_bpf_attach_prog()
344 struct hid_device *hdev; in hid_bpf_allocate_context()
378 struct hid_device *hid; in hid_bpf_release_context()
404 struct hid_device *hdev; in hid_bpf_hw_request()
439 hdev = (struct hid_device *)ctx->hid; /* discard const */ in hid_bpf_hw_request()
494 int hid_bpf_connect_device(struct hid_device *hdev) in hid_bpf_connect_device()
510 void hid_bpf_disconnect_device(struct hid_device *hdev) in hid_bpf_disconnect_device()
518 void hid_bpf_destroy_device(struct hid_device *hdev) in hid_bpf_destroy_device()
[all …]
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);
/openbmc/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()
/openbmc/linux/drivers/staging/greybus/
H A Dhid.c22 struct hid_device *hid;
209 struct hid_device *hid = ghid->hid; in gb_hid_init_reports()
223 static int __gb_hid_get_raw_report(struct hid_device *hid, in __gb_hid_get_raw_report()
279 static int gb_hid_parse(struct hid_device *hid) in gb_hid_parse()
312 static int gb_hid_start(struct hid_device *hid) in gb_hid_start()
335 static void gb_hid_stop(struct hid_device *hid) in gb_hid_stop()
342 static int gb_hid_open(struct hid_device *hid) in gb_hid_open()
355 static void gb_hid_close(struct hid_device *hid) in gb_hid_close()
369 static int gb_hid_power(struct hid_device *hid, int lvl) in gb_hid_power()
396 struct hid_device *hid = ghid->hid; in gb_hid_init()
[all …]
/openbmc/linux/drivers/hid/usbhid/
H A Dhid-core.c74 static void hid_io_error(struct hid_device *hid);
75 static int hid_submit_out(struct hid_device *hid);
80 static int hid_start_in(struct hid_device *hid) in hid_start_in()
108 struct hid_device *hid = usbhid->hid; in hid_retry_timeout()
120 struct hid_device *hid = usbhid->hid; in hid_reset()
143 static void hid_io_error(struct hid_device *hid) in hid_io_error()
273 struct hid_device *hid = urb->context; in hid_irq_in()
427 struct hid_device *hid = urb->context; in hid_irq_out()
475 struct hid_device *hid = urb->context; in hid_ctrl()
678 static int usbhid_open(struct hid_device *hid) in usbhid_open()
[all …]

12345678