Searched refs:uhid (Results 1 - 7 of 7) sorted by relevance

/linux-master/samples/uhid/
H A DMakefile2 userprogs-always-y += uhid-example
H A Duhid-example.c9 * applications using uhid.
32 * If uhid is not available as /dev/uhid, then you can pass a different path as
34 * If <linux/uhid.h> is not installed in /usr, then compile this with:
35 * gcc -o ./uhid_test -Wall -I./include ./samples/uhid/uhid-example.c
37 * use the installed uhid.h if available.
49 #include <linux/uhid.h>
165 fprintf(stderr, "Cannot write to uhid: %m\n");
168 fprintf(stderr, "Wrong size written to uhid
[all...]
/linux-master/drivers/hid/
H A Duhid.c23 #include <linux/uhid.h>
26 #define UHID_NAME "uhid"
70 struct uhid_device *uhid = container_of(work, struct uhid_device, worker); local
73 ret = hid_add_device(uhid->hid);
75 hid_err(uhid->hid, "Cannot register HID device: error %d\n", ret);
80 * of using uhid->hid.
81 * Just leave uhid->hid as-is for now, and clean it up when
82 * userspace tries to close or reinitialize the uhid instance.
87 WRITE_ONCE(uhid->running, false);
88 wake_up_interruptible(&uhid
92 uhid_queue(struct uhid_device *uhid, struct uhid_event *ev) argument
108 uhid_queue_event(struct uhid_device *uhid, __u32 event) argument
128 struct uhid_device *uhid = hid->driver_data; local
154 struct uhid_device *uhid = hid->driver_data; local
162 struct uhid_device *uhid = hid->driver_data; local
169 struct uhid_device *uhid = hid->driver_data; local
176 struct uhid_device *uhid = hid->driver_data; local
182 __uhid_report_queue_and_wait(struct uhid_device *uhid, struct uhid_event *ev, __u32 *report_id) argument
211 uhid_report_wake_up(struct uhid_device *uhid, u32 id, const struct uhid_event *ev) argument
235 struct uhid_device *uhid = hid->driver_data; local
278 struct uhid_device *uhid = hid->driver_data; local
349 struct uhid_device *uhid = hid->driver_data; local
489 uhid_dev_create2(struct uhid_device *uhid, const struct uhid_event *ev) argument
551 uhid_dev_create(struct uhid_device *uhid, struct uhid_event *ev) argument
576 uhid_dev_destroy(struct uhid_device *uhid) argument
593 uhid_dev_input(struct uhid_device *uhid, struct uhid_event *ev) argument
604 uhid_dev_input2(struct uhid_device *uhid, struct uhid_event *ev) argument
615 uhid_dev_get_report_reply(struct uhid_device *uhid, struct uhid_event *ev) argument
625 uhid_dev_set_report_reply(struct uhid_device *uhid, struct uhid_event *ev) argument
637 struct uhid_device *uhid; local
659 struct uhid_device *uhid = file->private_data; local
675 struct uhid_device *uhid = file->private_data; local
723 struct uhid_device *uhid = file->private_data; local
788 struct uhid_device *uhid = file->private_data; local
[all...]
H A DMakefile11 obj-$(CONFIG_UHID) += uhid.o
/linux-master/samples/
H A DMakefile30 subdir-$(CONFIG_SAMPLE_UHID) += uhid
/linux-master/include/linux/
H A Dhid.h751 #define HID_USAGE_ID(uhid, utype, ucode) \
752 .usage_hid = (uhid), .usage_type = (utype), .usage_code = (ucode)
/linux-master/tools/testing/selftests/hid/
H A Dhid_bpf.c15 #include <linux/uhid.h>
123 TH_LOG("Cannot write to uhid: %m");
126 TH_LOG("Wrong size written to uhid: %zd != %zu",
139 sprintf(buf, "test-uhid-device-%d", rand_nb);
176 UHID_LOG("Read HUP on uhid-cdev");
179 UHID_LOG("Cannot read uhid-cdev: %m");
182 UHID_LOG("Invalid size read from uhid-dev: %zd != %zu",
193 UHID_LOG("UHID_START from uhid-dev");
198 UHID_LOG("UHID_STOP from uhid-dev");
201 UHID_LOG("UHID_OPEN from uhid
[all...]

Completed in 116 milliseconds