Home
last modified time | relevance | path

Searched refs:hid (Results 1 – 25 of 293) sorted by relevance

12345678910>>...12

/kernel/linux/linux-5.10/drivers/hid/
DMakefile5 hid-y := hid-core.o hid-input.o hid-quirks.o
6 hid-$(CONFIG_DEBUG_FS) += hid-debug.o
8 obj-$(CONFIG_HID) += hid.o
11 obj-$(CONFIG_HID_GENERIC) += hid-generic.o
13 hid-$(CONFIG_HIDRAW) += hidraw.o
15 hid-logitech-y := hid-lg.o
16 hid-logitech-$(CONFIG_LOGITECH_FF) += hid-lgff.o
17 hid-logitech-$(CONFIG_LOGIRUMBLEPAD2_FF) += hid-lg2ff.o
18 hid-logitech-$(CONFIG_LOGIG940_FF) += hid-lg3ff.o
19 hid-logitech-$(CONFIG_LOGIWHEELS_FF) += hid-lg4ff.o
[all …]
Dhid-lg4ff.c61 static void lg4ff_set_range_dfp(struct hid_device *hid, u16 range);
62 static void lg4ff_set_range_g25(struct hid_device *hid, u16 range);
79 void (*set_range)(struct hid_device *hid, u16 range);
103 void (*set_range)(struct hid_device *hid, u16 range);
300 int lg4ff_adjust_input_event(struct hid_device *hid, struct hid_field *field, in lg4ff_adjust_input_event() argument
307 hid_err(hid, "Device properties not found"); in lg4ff_adjust_input_event()
408 struct hid_device *hid = input_get_drvdata(dev); in lg4ff_play() local
415 drv_data = hid_get_drvdata(hid); in lg4ff_play()
417 hid_err(hid, "Private driver data not found!\n"); in lg4ff_play()
423 hid_err(hid, "Device properties not found!\n"); in lg4ff_play()
[all …]
Dhid-bigbenff.c175 struct hid_device *hid; member
207 hid_hw_request(bigben->hid, bigben->report, HID_REQ_SET_REPORT); in bigben_worker()
220 hid_hw_request(bigben->hid, bigben->report, HID_REQ_SET_REPORT); in bigben_worker()
227 struct hid_device *hid = input_get_drvdata(dev); in hid_bigben_play_effect() local
228 struct bigben_device *bigben = hid_get_drvdata(hid); in hid_bigben_play_effect()
233 hid_err(hid, "no device data\n"); in hid_bigben_play_effect()
258 struct hid_device *hid = to_hid_device(dev); in bigben_set_led() local
259 struct bigben_device *bigben = hid_get_drvdata(hid); in bigben_set_led()
264 hid_err(hid, "no device data\n"); in bigben_set_led()
290 struct hid_device *hid = to_hid_device(dev); in bigben_get_led() local
[all …]
Dhid-cmedia.c45 struct hid_device *hid; member
49 static void hp_ev(struct hid_device *hid, struct cmhid *cm, int value) in hp_ev() argument
55 static int cmhid_raw_event(struct hid_device *hid, struct hid_report *report, in cmhid_raw_event() argument
58 struct cmhid *cm = hid_get_drvdata(hid); in cmhid_raw_event()
66 hp_ev(hid, cm, 0); in cmhid_raw_event()
70 hp_ev(hid, cm, 1); in cmhid_raw_event()
78 static int cmhid_input_configured(struct hid_device *hid, in cmhid_input_configured() argument
82 struct cmhid *cm = hid_get_drvdata(hid); in cmhid_input_configured()
94 static int cmhid_input_mapping(struct hid_device *hid, in cmhid_input_mapping() argument
101 static int cmhid_probe(struct hid_device *hid, const struct hid_device_id *id) in cmhid_probe() argument
[all …]
Dhid-appleir.c109 struct hid_device *hid; member
151 static void key_up(struct hid_device *hid, struct appleir *appleir, int key) in key_up() argument
157 static void key_down(struct hid_device *hid, struct appleir *appleir, int key) in key_down() argument
171 struct hid_device *hid = appleir->hid; in key_up_tick() local
176 key_up(hid, appleir, appleir->current_key); in key_up_tick()
182 static int appleir_raw_event(struct hid_device *hid, struct hid_report *report, in appleir_raw_event() argument
185 struct appleir *appleir = hid_get_drvdata(hid); in appleir_raw_event()
203 key_up(hid, appleir, appleir->current_key); in appleir_raw_event()
214 key_down(hid, appleir, appleir->current_key); in appleir_raw_event()
232 key_down(hid, appleir, appleir->current_key); in appleir_raw_event()
[all …]
Dhid-mf.c36 struct hid_device *hid = input_get_drvdata(dev); in mf_play() local
52 hid_hw_request(hid, mf->report, HID_REQ_SET_REPORT); in mf_play()
57 static int mf_init(struct hid_device *hid) in mf_init() argument
62 &hid->report_enum[HID_OUTPUT_REPORT].report_list; in mf_init()
67 struct list_head *input_ptr = &hid->inputs; in mf_init()
79 hid_err(hid, "Invalid report, this should never happen!\n"); in mf_init()
83 if (list_is_last(input_ptr, &hid->inputs)) { in mf_init()
84 hid_err(hid, "Missing input, this should never happen!\n"); in mf_init()
107 hid_hw_request(hid, mf->report, HID_REQ_SET_REPORT); in mf_init()
110 hid_info(hid, "Force feedback for HJZ Mayflash game controller " in mf_init()
[all …]
Dhid-input.c64 return (usage->hid & (HID_USAGE_PAGE | HID_USAGE)) == scancode; in match_scancode()
85 static struct hid_usage *hidinput_find_key(struct hid_device *hid, in hidinput_find_key() argument
95 list_for_each_entry(report, &hid->report_enum[k].report_list, list) { in hidinput_find_key()
114 static struct hid_usage *hidinput_locate_usage(struct hid_device *hid, in hidinput_locate_usage() argument
122 usage = hidinput_find_key(hid, match_index, ke->index, index); in hidinput_locate_usage()
124 usage = hidinput_find_key(hid, match_scancode, scancode, index); in hidinput_locate_usage()
134 struct hid_device *hid = input_get_drvdata(dev); in hidinput_getkeycode() local
138 usage = hidinput_locate_usage(hid, ke, &index); in hidinput_getkeycode()
143 scancode = usage->hid & (HID_USAGE_PAGE | HID_USAGE); in hidinput_getkeycode()
156 struct hid_device *hid = input_get_drvdata(dev); in hidinput_setkeycode() local
[all …]
Dhid-holtekff.c76 struct hid_device *hid, in holtekff_send() argument
87 hid_hw_request(hid, holtekff->field->report, HID_REQ_SET_REPORT); in holtekff_send()
93 struct hid_device *hid = input_get_drvdata(dev); in holtekff_play() local
105 holtekff_send(holtekff, hid, stop_all6); in holtekff_play()
117 holtekff_send(holtekff, hid, buf); in holtekff_play()
118 holtekff_send(holtekff, hid, start_effect_1); in holtekff_play()
123 static int holtekff_init(struct hid_device *hid) in holtekff_init() argument
129 &hid->report_enum[HID_OUTPUT_REPORT].report_list; in holtekff_init()
133 if (list_empty(&hid->inputs)) { in holtekff_init()
134 hid_err(hid, "no inputs found\n"); in holtekff_init()
[all …]
Dhid-creative-sb0540.c119 struct hid_device *hid; member
149 static int creative_sb0540_raw_event(struct hid_device *hid, in creative_sb0540_raw_event() argument
152 struct creative_sb0540 *creative_sb0540 = hid_get_drvdata(hid); in creative_sb0540_raw_event()
172 hid_err(hid, "Could not get a key for main_code %llX\n", in creative_sb0540_raw_event()
185 static int creative_sb0540_input_configured(struct hid_device *hid, in creative_sb0540_input_configured() argument
189 struct creative_sb0540 *creative_sb0540 = hid_get_drvdata(hid); in creative_sb0540_input_configured()
209 static int creative_sb0540_input_mapping(struct hid_device *hid, in creative_sb0540_input_mapping() argument
220 static int creative_sb0540_probe(struct hid_device *hid, in creative_sb0540_probe() argument
226 creative_sb0540 = devm_kzalloc(&hid->dev, in creative_sb0540_probe()
232 creative_sb0540->hid = hid; in creative_sb0540_probe()
[all …]
Dhid-tmff.c76 struct hid_device *hid = input_get_drvdata(dev); in tmff_play() local
95 hid_hw_request(hid, tmff->report, HID_REQ_SET_REPORT); in tmff_play()
107 if (hid->product == THRUSTMASTER_DEVICE_ID_2_IN_1_DT) { in tmff_play()
116 hid_hw_request(hid, tmff->report, HID_REQ_SET_REPORT); in tmff_play()
122 static int tmff_init(struct hid_device *hid, const signed short *ff_bits) in tmff_init() argument
132 if (list_empty(&hid->inputs)) { in tmff_init()
133 hid_err(hid, "no inputs found\n"); in tmff_init()
136 hidinput = list_entry(hid->inputs.next, struct hid_input, list); in tmff_init()
144 report_list = &hid->report_enum[HID_OUTPUT_REPORT].report_list; in tmff_init()
154 switch (field->usage[0].hid) { in tmff_init()
[all …]
Dhid-dr.c34 struct hid_device *hid = input_get_drvdata(dev); in drff_play() local
57 hid_hw_request(hid, drff->report, HID_REQ_SET_REPORT); in drff_play()
69 hid_hw_request(hid, drff->report, HID_REQ_SET_REPORT); in drff_play()
74 static int drff_init(struct hid_device *hid) in drff_init() argument
80 &hid->report_enum[HID_OUTPUT_REPORT].report_list; in drff_init()
84 if (list_empty(&hid->inputs)) { in drff_init()
85 hid_err(hid, "no inputs found\n"); in drff_init()
88 hidinput = list_first_entry(&hid->inputs, struct hid_input, list); in drff_init()
92 hid_err(hid, "no output reports found\n"); in drff_init()
98 hid_err(hid, "no fields in the report\n"); in drff_init()
[all …]
Duhid.c47 struct hid_device *hid; member
73 ret = hid_add_device(uhid->hid); in uhid_device_add_worker()
75 hid_err(uhid->hid, "Cannot register HID device: error %d\n", ret); in uhid_device_add_worker()
103 hid_warn(uhid->hid, "Output queue is full\n"); in uhid_queue()
126 static int uhid_hid_start(struct hid_device *hid) in uhid_hid_start() argument
128 struct uhid_device *uhid = hid->driver_data; in uhid_hid_start()
138 if (hid->report_enum[HID_FEATURE_REPORT].numbered) in uhid_hid_start()
140 if (hid->report_enum[HID_OUTPUT_REPORT].numbered) in uhid_hid_start()
142 if (hid->report_enum[HID_INPUT_REPORT].numbered) in uhid_hid_start()
152 static void uhid_hid_stop(struct hid_device *hid) in uhid_hid_stop() argument
[all …]
Dhid-gaff.c32 struct hid_device *hid = input_get_drvdata(dev); in hid_gaff_play() local
51 hid_hw_request(hid, gaff->report, HID_REQ_SET_REPORT); in hid_gaff_play()
58 hid_hw_request(hid, gaff->report, HID_REQ_SET_REPORT); in hid_gaff_play()
63 static int gaff_init(struct hid_device *hid) in gaff_init() argument
69 &hid->report_enum[HID_OUTPUT_REPORT].report_list; in gaff_init()
74 if (list_empty(&hid->inputs)) { in gaff_init()
75 hid_err(hid, "no inputs found\n"); in gaff_init()
78 hidinput = list_entry(hid->inputs.next, struct hid_input, list); in gaff_init()
82 hid_err(hid, "no output reports found\n"); in gaff_init()
90 hid_err(hid, "no fields in the report\n"); in gaff_init()
[all …]
/kernel/linux/linux-5.10/drivers/hid/intel-ish-hid/
Dishtp-hid.c21 static int ishtp_hid_parse(struct hid_device *hid) in ishtp_hid_parse() argument
23 struct ishtp_hid_data *hid_data = hid->driver_data; in ishtp_hid_parse()
27 rv = hid_parse_report(hid, client_data->report_descr[hid_data->index], in ishtp_hid_parse()
36 static int ishtp_hid_start(struct hid_device *hid) in ishtp_hid_start() argument
41 static void ishtp_hid_stop(struct hid_device *hid) in ishtp_hid_stop() argument
45 static int ishtp_hid_open(struct hid_device *hid) in ishtp_hid_open() argument
50 static void ishtp_hid_close(struct hid_device *hid) in ishtp_hid_close() argument
54 static int ishtp_raw_request(struct hid_device *hid, unsigned char reportnum, in ishtp_raw_request() argument
58 struct ishtp_hid_data *hid_data = hid->driver_data; in ishtp_raw_request()
73 hid_ishtp_get_report(hid, reportnum, rtype); in ishtp_raw_request()
[all …]
/kernel/linux/linux-5.10/drivers/hid/usbhid/
Dhid-core.c74 static void hid_io_error(struct hid_device *hid);
75 static int hid_submit_out(struct hid_device *hid);
76 static int hid_submit_ctrl(struct hid_device *hid);
80 static int hid_start_in(struct hid_device *hid) in hid_start_in() argument
84 struct usbhid_device *usbhid = hid->driver_data; in hid_start_in()
108 struct hid_device *hid = usbhid->hid; in hid_retry_timeout() local
111 if (hid_start_in(hid)) in hid_retry_timeout()
112 hid_io_error(hid); in hid_retry_timeout()
120 struct hid_device *hid = usbhid->hid; in hid_reset() local
125 rc = usb_clear_halt(hid_to_usb_dev(hid), usbhid->urbin->pipe); in hid_reset()
[all …]
Dhiddev.c56 hiddev_lookup_report(struct hid_device *hid, struct hiddev_report_info *rinfo) in hiddev_lookup_report() argument
68 report_enum = hid->report_enum + in hiddev_lookup_report()
109 hiddev_lookup_usage(struct hid_device *hid, struct hiddev_usage_ref *uref) in hiddev_lookup_usage() argument
120 report_enum = hid->report_enum + in hiddev_lookup_usage()
127 if (field->usage[j].hid == uref->usage_code) { in hiddev_lookup_usage()
140 static void hiddev_send_event(struct hid_device *hid, in hiddev_send_event() argument
143 struct hiddev *hiddev = hid->hiddev; in hiddev_send_event()
166 void hiddev_hid_event(struct hid_device *hid, struct hid_field *field, in hiddev_hid_event() argument
179 uref.usage_code = usage->hid; in hiddev_hid_event()
182 hiddev_send_event(hid, &uref); in hiddev_hid_event()
[all …]
Dhid-pidff.c145 struct hid_device *hid; member
250 hid_dbg(pidff->hid, "attack %u => %d\n", in pidff_set_envelope_report()
254 hid_hw_request(pidff->hid, pidff->reports[PID_SET_ENVELOPE], in pidff_set_envelope_report()
281 hid_hw_request(pidff->hid, pidff->reports[PID_SET_CONSTANT], in pidff_set_constant_force_report()
316 hid_hw_request(pidff->hid, pidff->reports[PID_SET_EFFECT], in pidff_set_effect_report()
348 hid_hw_request(pidff->hid, pidff->reports[PID_SET_PERIODIC], in pidff_set_periodic_report()
390 hid_hw_request(pidff->hid, pidff->reports[PID_SET_CONDITION], in pidff_set_condition_report()
431 hid_hw_request(pidff->hid, pidff->reports[PID_SET_RAMP], in pidff_set_ramp_force_report()
456 hid_hw_request(pidff->hid, pidff->reports[PID_CREATE_NEW_EFFECT], in pidff_request_effect_upload()
458 hid_dbg(pidff->hid, "create_new_effect sent, type: %d\n", efnum); in pidff_request_effect_upload()
[all …]
/kernel/linux/linux-5.10/drivers/staging/greybus/
Dhid.c22 struct hid_device *hid; member
146 hid_input_report(ghid->hid, HID_INPUT_REPORT, in gb_hid_request_handler()
158 static void gb_hid_find_max_report(struct hid_device *hid, unsigned int type, in gb_hid_find_max_report() argument
164 list_for_each_entry(report, &hid->report_enum[type].report_list, list) { in gb_hid_find_max_report()
204 hid_report_raw_event(ghid->hid, report->type, ghid->inbuf, size, 1); in gb_hid_init_report()
209 struct hid_device *hid = ghid->hid; in gb_hid_init_reports() local
213 &hid->report_enum[HID_INPUT_REPORT].report_list, in gb_hid_init_reports()
218 &hid->report_enum[HID_FEATURE_REPORT].report_list, in gb_hid_init_reports()
223 static int __gb_hid_get_raw_report(struct hid_device *hid, in __gb_hid_get_raw_report() argument
227 struct gb_hid *ghid = hid->driver_data; in __gb_hid_get_raw_report()
[all …]
/kernel/linux/linux-5.10/drivers/block/zram/zram_group/
Dzlist.h55 void zlist_add_nolock(u32 hid, u32 idx, struct zlist_table *tab);
56 void zlist_add_tail_nolock(u32 hid, u32 idx, struct zlist_table *tab);
57 bool zlist_del_nolock(u32 hid, u32 idx, struct zlist_table *tab);
60 static inline void zlist_add(u32 hid, u32 idx, struct zlist_table *tab) in zlist_add() argument
62 zlist_lock(hid, tab); in zlist_add()
63 zlist_add_nolock(hid, idx, tab); in zlist_add()
64 zlist_unlock(hid, tab); in zlist_add()
67 static inline void zlist_add_tail(u32 hid, u32 idx, struct zlist_table *tab) in zlist_add_tail() argument
69 zlist_lock(hid, tab); in zlist_add_tail()
70 zlist_add_tail_nolock(hid, idx, tab); in zlist_add_tail()
[all …]
Dzram_group.c113 u32 hid; in zgrp_obj_insert() local
123 hid = gid + zgrp->nr_obj; in zgrp_obj_insert()
124 zlist_add(hid, index, zgrp->obj_tab); in zgrp_obj_insert()
133 u32 hid; in zgrp_obj_delete() local
144 hid = gid + zgrp->nr_obj; in zgrp_obj_delete()
146 return zlist_del(hid, index, zgrp->obj_tab); in zgrp_obj_delete()
155 u32 hid, idx; in zgrp_isolate_objs() local
169 hid = gid + zgrp->nr_obj; in zgrp_isolate_objs()
170 zlist_lock(hid, zgrp->obj_tab); in zgrp_isolate_objs()
171 zlist_for_each_entry_reverse(idx, hid, zgrp->obj_tab) { in zgrp_isolate_objs()
[all …]
/kernel/linux/patches/linux-4.19/common_patch/
Dhdf.patch70 diff --git a/drivers/hid/Makefile b/drivers/hid/Makefile
72 --- a/drivers/hid/Makefile
73 +++ b/drivers/hid/Makefile
91 hid-y := hid-core.o hid-input.o hid-quirks.o
92 hid-$(CONFIG_DEBUG_FS) += hid-debug.o
94 diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
96 --- a/drivers/hid/hid-core.c
97 +++ b/drivers/hid/hid-core.c
99 #include <linux/hid-debug.h>
105 #include "hid-ids.h"
[all …]
/kernel/linux/patches/linux-5.10/common_patch/
Dhdf.patch72 diff --git a/drivers/hid/Makefile b/drivers/hid/Makefile
74 --- a/drivers/hid/Makefile
75 +++ b/drivers/hid/Makefile
93 hid-y := hid-core.o hid-input.o hid-quirks.o
94 hid-$(CONFIG_DEBUG_FS) += hid-debug.o
96 diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
98 --- a/drivers/hid/hid-core.c
99 +++ b/drivers/hid/hid-core.c
101 #include <linux/hid-debug.h>
107 #include "hid-ids.h"
[all …]
/kernel/linux/patches/linux-5.10/imx8mm_patch/
Dhdf.patch53 diff --git a/drivers/hid/Makefile b/drivers/hid/Makefile
55 --- a/drivers/hid/Makefile
56 +++ b/drivers/hid/Makefile
74 hid-y := hid-core.o hid-input.o hid-quirks.o
75 hid-$(CONFIG_DEBUG_FS) += hid-debug.o
77 diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
79 --- a/drivers/hid/hid-core.c
80 +++ b/drivers/hid/hid-core.c
82 #include <linux/hid-debug.h>
88 #include "hid-ids.h"
[all …]
/kernel/linux/patches/linux-5.10/unionpi_tiger_pacth/
Dhdf.patch44 diff -Naur a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
45 --- a/drivers/hid/hid-core.c 2022-04-15 21:05:13.893124179 +0800
46 +++ b/drivers/hid/hid-core.c 2022-04-20 19:17:58.761084044 +0800
48 #include <linux/hid-debug.h>
54 #include "hid-ids.h"
58 hidinput_hid_event(hid, field, usage, value);
59 if (hid->claimed & HID_CLAIMED_HIDDEV && interrupt && hid->hiddev_hid_event)
60 hid->hiddev_hid_event(hid, field, usage, value);
62 + if (hid->input_dev) {
63 + HidReportEvent(hid->input_dev, usage->type, usage->code, value);
[all …]
/kernel/linux/linux-5.10/drivers/hid/i2c-hid/
Di2c-hid-core.c141 struct hid_device *hid; /* pointer to corresponding HID dev */ member
531 hid_input_report(ihid->hid, HID_INPUT_REPORT, ihid->inbuf + 2, in i2c_hid_get_input()
558 static void i2c_hid_find_max_report(struct hid_device *hid, unsigned int type, in i2c_hid_find_max_report() argument
566 list_for_each_entry(report, &hid->report_enum[type].report_list, list) { in i2c_hid_find_max_report()
611 static int i2c_hid_get_raw_report(struct hid_device *hid, in i2c_hid_get_raw_report() argument
615 struct i2c_client *client = hid->driver_data; in i2c_hid_get_raw_report()
661 static int i2c_hid_output_raw_report(struct hid_device *hid, __u8 *buf, in i2c_hid_output_raw_report() argument
664 struct i2c_client *client = hid->driver_data; in i2c_hid_output_raw_report()
693 static int i2c_hid_output_report(struct hid_device *hid, __u8 *buf, in i2c_hid_output_report() argument
696 return i2c_hid_output_raw_report(hid, buf, count, HID_OUTPUT_REPORT, in i2c_hid_output_report()
[all …]

12345678910>>...12