Searched refs:hid (Results 1 - 25 of 93) sorted by relevance

1234

/drivers/hid/
H A DMakefile4 hid-y := hid-core.o hid-input.o
7 hid-objs += hid-debug.o
10 obj-$(CONFIG_HID) += hid.o
12 hid-$(CONFIG_HIDRAW) += hidraw.o
14 hid-logitech-y := hid-lg.o
16 hid
[all...]
H A Dhid-primax.c20 #include <linux/hid.h>
23 #include "hid-ids.h"
25 static int px_raw_event(struct hid_device *hid, struct hid_report *report, argument
55 hid_report_raw_event(hid, HID_INPUT_REPORT, data, size, 0);
60 hid_info(hid, "unknown report type %d\n", report->id);
67 static int px_probe(struct hid_device *hid, const struct hid_device_id *id) argument
71 ret = hid_parse(hid);
73 hid_err(hid, "parse failed\n");
77 ret = hid_hw_start(hid, HID_CONNECT_DEFAULT);
79 hid_err(hid, "h
85 px_remove(struct hid_device *hid) argument
[all...]
H A Dhid-lg3ff.c26 #include <linux/hid.h>
29 #include "hid-lg.h"
65 struct hid_device *hid = input_get_drvdata(dev); local
66 struct list_head *report_list = &hid->report_enum[HID_OUTPUT_REPORT].report_list;
95 usbhid_submit_report(hid, report, USB_DIR_OUT);
102 struct hid_device *hid = input_get_drvdata(dev); local
103 struct list_head *report_list = &hid->report_enum[HID_OUTPUT_REPORT].report_list;
121 usbhid_submit_report(hid, report, USB_DIR_OUT);
131 int lg3ff_init(struct hid_device *hid) argument
133 struct hid_input *hidinput = list_entry(hid
[all...]
H A Dhid-zpff.c24 #include <linux/hid.h>
30 #include "hid-ids.h"
42 struct hid_device *hid = input_get_drvdata(dev); local
62 usbhid_submit_report(hid, zpff->report, USB_DIR_OUT);
67 static int zpff_init(struct hid_device *hid) argument
71 struct hid_input *hidinput = list_entry(hid->inputs.next,
74 &hid->report_enum[HID_OUTPUT_REPORT].report_list;
79 hid_err(hid, "no output report found\n");
86 hid_err(hid, "not enough fields in report\n");
107 usbhid_submit_report(hid, zpf
114 zpff_init(struct hid_device *hid) argument
[all...]
H A Dhid-holtekff.c26 #include <linux/hid.h>
32 #include "hid-ids.h"
94 struct hid_device *hid,
106 usbhid_submit_report(hid, holtekff->field->report, USB_DIR_OUT);
112 struct hid_device *hid = input_get_drvdata(dev); local
124 holtekff_send(holtekff, hid, stop_all6);
136 holtekff_send(holtekff, hid, buf);
137 holtekff_send(holtekff, hid, start_effect_1);
142 static int holtekff_init(struct hid_device *hid) argument
146 struct hid_input *hidinput = list_entry(hid
93 holtekff_send(struct holtekff_device *holtekff, struct hid_device *hid, const u8 data[HOLTEKFF_MSG_LENGTH]) argument
188 holtekff_init(struct hid_device *hid) argument
[all...]
H A Dhid-kensington.c16 #include <linux/hid.h>
19 #include "hid-ids.h"
27 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_MSVENDOR)
30 switch (usage->hid & HID_USAGE) {
43 MODULE_DEVICE_TABLE(hid, ks_devices);
H A Dhid-lg2ff.c27 #include <linux/hid.h>
30 #include "hid-lg.h"
39 struct hid_device *hid = input_get_drvdata(dev); local
59 usbhid_submit_report(hid, lg2ff->report, USB_DIR_OUT);
63 int lg2ff_init(struct hid_device *hid) argument
67 struct hid_input *hidinput = list_entry(hid->inputs.next,
70 &hid->report_enum[HID_OUTPUT_REPORT].report_list;
75 hid_err(hid, "no output report found\n");
82 hid_err(hid, "output report is empty\n");
86 hid_err(hid, "no
[all...]
H A Dhid-pl.c39 #define debug(format, arg...) pr_debug("hid-plff: " format "\n" , ## arg)
45 #include <linux/hid.h>
47 #include "hid-ids.h"
61 struct hid_device *hid = input_get_drvdata(dev); local
75 usbhid_submit_report(hid, plff->report, USB_DIR_OUT);
80 static int plff_init(struct hid_device *hid) argument
86 &hid->report_enum[HID_OUTPUT_REPORT].report_list;
103 Zeroplus (hid-zpff) devices.
107 hid_err(hid, "no output reports found\n");
111 list_for_each_entry(hidinput, &hid
172 plff_init(struct hid_device *hid) argument
[all...]
H A Dhid-gaff.c33 #include <linux/hid.h>
35 #include "hid-ids.h"
47 struct hid_device *hid = input_get_drvdata(dev); local
66 usbhid_submit_report(hid, gaff->report, USB_DIR_OUT);
73 usbhid_submit_report(hid, gaff->report, USB_DIR_OUT);
78 static int gaff_init(struct hid_device *hid) argument
82 struct hid_input *hidinput = list_entry(hid->inputs.next,
85 &hid->report_enum[HID_OUTPUT_REPORT].report_list;
91 hid_err(hid, "no output reports found\n");
99 hid_err(hid, "n
[all...]
H A Dhid-sjoy.c6 * Based of hid-pl.c and hid-gaff.c
32 #include <linux/hid.h>
34 #include "hid-ids.h"
46 struct hid_device *hid = input_get_drvdata(dev); local
60 usbhid_submit_report(hid, sjoyff->report, USB_DIR_OUT);
65 static int sjoyff_init(struct hid_device *hid) argument
71 &hid->report_enum[HID_OUTPUT_REPORT].report_list;
77 hid_err(hid, "no output reports found\n");
81 list_for_each_entry(hidinput, &hid
126 sjoyff_init(struct hid_device *hid) argument
[all...]
H A Dhid-lgff.c2 * Force feedback support for hid-compliant for some of the devices from
34 #include <linux/hid.h>
37 #include "hid-lg.h"
73 struct hid_device *hid = input_get_drvdata(dev); local
74 struct list_head *report_list = &hid->report_enum[HID_OUTPUT_REPORT].report_list;
92 usbhid_submit_report(hid, report, USB_DIR_OUT);
107 usbhid_submit_report(hid, report, USB_DIR_OUT);
115 struct hid_device *hid = input_get_drvdata(dev); local
116 struct list_head *report_list = &hid->report_enum[HID_OUTPUT_REPORT].report_list;
127 usbhid_submit_report(hid, repor
130 lgff_init(struct hid_device* hid) argument
[all...]
H A Dhid-lg4ff.c28 #include <linux/hid.h>
31 #include "hid-lg.h"
32 #include "hid-ids.h"
47 static void hid_lg4ff_set_range_dfp(struct hid_device *hid, u16 range);
48 static void hid_lg4ff_set_range_g25(struct hid_device *hid, u16 range);
63 void (*set_range)(struct hid_device *hid, u16 range);
79 void (*set_range)(struct hid_device *hid, u16 range);
135 struct hid_device *hid = input_get_drvdata(dev); local
136 struct list_head *report_list = &hid->report_enum[HID_OUTPUT_REPORT].report_list;
154 usbhid_submit_report(hid, repor
164 struct hid_device *hid = input_get_drvdata(dev); local
182 struct hid_device *hid = input_get_drvdata(dev); local
200 hid_lg4ff_set_range_g25(struct hid_device *hid, u16 range) argument
218 hid_lg4ff_set_range_dfp(struct hid_device *hid, __u16 range) argument
270 hid_lg4ff_switch_native(struct hid_device *hid, const struct lg4ff_native_cmd *cmd) argument
290 struct hid_device *hid = to_hid_device(dev); local
313 struct hid_device *hid = to_hid_device(dev); local
339 lg4ff_init(struct hid_device *hid) argument
464 lg4ff_deinit(struct hid_device *hid) argument
[all...]
H A Dhid-axff.c33 #include <linux/hid.h>
36 #include "hid-ids.h"
47 struct hid_device *hid = input_get_drvdata(dev); local
71 usbhid_submit_report(hid, axff->report, USB_DIR_OUT);
76 static int axff_init(struct hid_device *hid) argument
80 struct hid_input *hidinput = list_first_entry(&hid->inputs, struct hid_input, list);
81 struct list_head *report_list =&hid->report_enum[HID_OUTPUT_REPORT].report_list;
88 hid_err(hid, "no output reports found\n");
101 hid_err(hid, "not enough fields in the report: %d\n",
117 usbhid_submit_report(hid, axf
128 axff_init(struct hid_device *hid) argument
[all...]
H A Dhid-emsff.c24 #include <linux/hid.h>
29 #include "hid-ids.h"
39 struct hid_device *hid = input_get_drvdata(dev); local
55 usbhid_submit_report(hid, emsff->report, USB_DIR_OUT);
60 static int emsff_init(struct hid_device *hid) argument
64 struct hid_input *hidinput = list_first_entry(&hid->inputs,
67 &hid->report_enum[HID_OUTPUT_REPORT].report_list;
72 hid_err(hid, "no output reports found\n");
78 hid_err(hid, "no fields in the report\n");
83 hid_err(hid, "no
[all...]
H A Dhid-speedlink.c17 #include <linux/hid.h>
21 #include "hid-ids.h"
40 switch (usage->hid & HID_USAGE_PAGE) {
61 MODULE_DEVICE_TABLE(hid, speedlink_devices);
H A Dhid-gyration.c21 #include <linux/hid.h>
24 #include "hid-ids.h"
32 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_LOGIVENDOR)
36 switch (usage->hid & HID_USAGE) {
65 if ((usage->hid & HID_USAGE_PAGE) == HID_UP_GENDESK &&
66 (usage->hid & 0xff) == 0x82) {
84 MODULE_DEVICE_TABLE(hid, gyration_devices);
H A Dhid-petalynx.c20 #include <linux/hid.h>
23 #include "hid-ids.h"
45 if ((usage->hid & HID_USAGE_PAGE) == HID_UP_LOGIVENDOR) {
46 switch (usage->hid & HID_USAGE) {
58 if ((usage->hid & HID_USAGE_PAGE) == HID_UP_CONSUMER) {
59 switch (usage->hid & HID_USAGE) {
98 MODULE_DEVICE_TABLE(hid, pl_devices);
H A Dhid-elecom.c5 * (This module is based on "hid-ortek".)
18 #include <linux/hid.h>
21 #include "hid-ids.h"
37 MODULE_DEVICE_TABLE(hid, elecom_devices);
H A Dhid-tmff.c30 #include <linux/hid.h>
36 #include "hid-ids.h"
88 struct hid_device *hid = input_get_drvdata(dev); local
106 usbhid_submit_report(hid, tmff->report, USB_DIR_OUT);
120 usbhid_submit_report(hid, tmff->report, USB_DIR_OUT);
126 static int tmff_init(struct hid_device *hid, const signed short *ff_bits) argument
131 struct hid_input *hidinput = list_entry(hid->inputs.next,
142 report_list = &hid->report_enum[HID_OUTPUT_REPORT].report_list;
152 switch (field->usage[0].hid) {
155 hid_warn(hid, "ignorin
209 tmff_init(struct hid_device *hid, const signed short *ff_bits) argument
[all...]
H A Dhid-input.c32 #include <linux/hid.h>
33 #include <linux/hid-debug.h>
35 #include "hid-ids.h"
76 return (usage->hid & (HID_USAGE_PAGE | HID_USAGE)) == scancode;
97 static struct hid_usage *hidinput_find_key(struct hid_device *hid, argument
107 list_for_each_entry(report, &hid->report_enum[k].report_list, list) {
126 static struct hid_usage *hidinput_locate_usage(struct hid_device *hid, argument
134 usage = hidinput_find_key(hid, match_index, ke->index, index);
136 usage = hidinput_find_key(hid, match_scancode, scancode, index);
146 struct hid_device *hid local
168 struct hid_device *hid = input_get_drvdata(dev); local
917 hidinput_hid_event(struct hid_device *hid, struct hid_field *field, struct hid_usage *usage, __s32 value) argument
1005 hidinput_report_event(struct hid_device *hid, struct hid_report *report) argument
1017 hidinput_find_field(struct hid_device *hid, unsigned int type, unsigned int code, struct hid_field **field) argument
1034 hidinput_get_led_field(struct hid_device *hid) argument
1054 hidinput_count_leds(struct hid_device *hid) argument
1078 struct hid_device *hid = input_get_drvdata(dev); local
1085 struct hid_device *hid = input_get_drvdata(dev); local
1090 report_features(struct hid_device *hid) argument
1116 hidinput_connect(struct hid_device *hid, unsigned int force) argument
1230 hidinput_disconnect(struct hid_device *hid) argument
[all...]
/drivers/hid/usbhid/
H A DMakefile6 usbhid-y := hid-core.o hid-quirks.o
14 usbhid-y += hid-pidff.o
H A Dhid-core.c34 #include <linux/hid.h>
36 #include <linux/hid-debug.h>
71 static void hid_io_error(struct hid_device *hid);
72 static int hid_submit_out(struct hid_device *hid);
73 static int hid_submit_ctrl(struct hid_device *hid);
77 static int hid_start_in(struct hid_device *hid) argument
81 struct usbhid_device *usbhid = hid->driver_data;
84 if (hid->open > 0 &&
99 struct hid_device *hid = (struct hid_device *) _hid; local
100 struct usbhid_device *usbhid = hid
112 struct hid_device *hid = usbhid->hid; local
151 hid_io_error(struct hid_device *hid) argument
198 struct hid_device *hid = usb_get_intfdata(usbhid->intf); local
224 struct hid_device *hid = usb_get_intfdata(usbhid->intf); local
255 struct hid_device *hid = urb->context; local
313 hid_submit_out(struct hid_device *hid) argument
341 hid_submit_ctrl(struct hid_device *hid) argument
404 struct hid_device *hid = urb->context; local
449 struct hid_device *hid = urb->context; local
491 __usbhid_submit_report(struct hid_device *hid, struct hid_report *report, unsigned char dir) argument
594 usbhid_submit_report(struct hid_device *hid, struct hid_report *report, unsigned char dir) argument
610 struct hid_device *hid = usbhid->hid; local
631 struct hid_device *hid = input_get_drvdata(dev); local
661 usbhid_wait_io(struct hid_device *hid) argument
700 usbhid_open(struct hid_device *hid) argument
724 usbhid_close(struct hid_device *hid) argument
750 usbhid_init_reports(struct hid_device *hid) argument
780 hid_find_field_early(struct hid_device *hid, unsigned int page, unsigned int hid_code, struct hid_field **pfield) argument
804 usbhid_set_leds(struct hid_device *hid) argument
819 hid_find_max_report(struct hid_device *hid, unsigned int type, unsigned int *max) argument
832 hid_alloc_buffers(struct usb_device *dev, struct hid_device *hid) argument
850 usbhid_get_raw_report(struct hid_device *hid, unsigned char report_number, __u8 *buf, size_t count, unsigned char report_type) argument
884 usbhid_output_raw_report(struct hid_device *hid, __u8 *buf, size_t count, unsigned char report_type) argument
943 hid_free_buffers(struct usb_device *dev, struct hid_device *hid) argument
953 usbhid_parse(struct hid_device *hid) argument
1026 usbhid_start(struct hid_device *hid) argument
1143 usbhid_stop(struct hid_device *hid) argument
1169 hid_free_buffers(hid_to_usb_dev(hid), hid); local
1172 usbhid_power(struct hid_device *hid, int lvl) argument
1202 struct hid_device *hid; local
1304 struct hid_device *hid = usb_get_intfdata(intf); local
1333 struct hid_device *hid = usb_get_intfdata(intf); local
1348 struct hid_device *hid = usb_get_intfdata(intf); local
1364 usbhid_get_power(struct hid_device *hid) argument
1371 usbhid_put_power(struct hid_device *hid) argument
1382 struct hid_device *hid = usb_get_intfdata(intf); local
1438 struct hid_device *hid = usb_get_intfdata (intf); local
1468 struct hid_device *hid = usb_get_intfdata(intf); local
[all...]
H A Dusbhid.h36 /* API provided by hid-core.c for USB HID drivers */
37 int usbhid_wait_io(struct hid_device* hid);
38 void usbhid_close(struct hid_device *hid);
39 int usbhid_open(struct hid_device *hid);
40 void usbhid_init_reports(struct hid_device *hid);
42 (struct hid_device *hid, struct hid_report *report, unsigned char dir);
43 int usbhid_get_power(struct hid_device *hid);
44 void usbhid_put_power(struct hid_device *hid);
65 struct hid_device *hid; /* pointer to corresponding HID dev */ member in struct:usbhid_device
H A Dhiddev.c34 #include <linux/hid.h>
53 struct hid_device *hid; member in struct:hiddev
76 hiddev_lookup_report(struct hid_device *hid, struct hiddev_report_info *rinfo) argument
88 report_enum = hid->report_enum +
129 hiddev_lookup_usage(struct hid_device *hid, struct hiddev_usage_ref *uref) argument
140 report_enum = hid->report_enum +
147 if (field->usage[j].hid == uref->usage_code) {
160 static void hiddev_send_event(struct hid_device *hid, argument
163 struct hiddev *hiddev = hid->hiddev;
183 * This is where hid
186 hiddev_hid_event(struct hid_device *hid, struct hid_field *field, struct hid_usage *usage, __s32 value) argument
206 hiddev_report_event(struct hid_device *hid, struct hid_report *report) argument
271 struct hid_device *hid; local
311 struct hid_device *hid = hiddev->hid; local
450 struct hid_device *hid = hiddev->hid; local
569 struct hid_device *hid = hiddev->hid; local
599 struct hid_device *hid; local
877 hiddev_connect(struct hid_device *hid, unsigned int force) argument
920 hiddev_disconnect(struct hid_device *hid) argument
[all...]
H A Dhid-pidff.c31 #include <linux/hid.h>
157 struct hid_device *hid; member in struct:pidff_device
262 hid_dbg(pidff->hid, "attack %u => %d\n",
266 usbhid_submit_report(pidff->hid, pidff->reports[PID_SET_ENVELOPE],
293 usbhid_submit_report(pidff->hid, pidff->reports[PID_SET_CONSTANT],
328 usbhid_submit_report(pidff->hid, pidff->reports[PID_SET_EFFECT],
360 usbhid_submit_report(pidff->hid, pidff->reports[PID_SET_PERIODIC],
402 usbhid_submit_report(pidff->hid, pidff->reports[PID_SET_CONDITION],
443 usbhid_submit_report(pidff->hid, pidff->reports[PID_SET_RAMP],
468 usbhid_submit_report(pidff->hid, pidf
818 pidff_find_reports(struct hid_device *hid, int report_type, struct pidff_device *pidff) argument
1156 struct hid_device *hid = pidff->hid; local
1232 hid_pidff_init(struct hid_device *hid) argument
[all...]

Completed in 213 milliseconds

1234