Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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); in uhid_device_add_worker() local
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()
80 * of using uhid->hid. in uhid_device_add_worker()
81 * Just leave uhid->hid as-is for now, and clean it up when in uhid_device_add_worker()
82 * userspace tries to close or reinitialize the uhid instance. in uhid_device_add_worker()
87 uhid->running = false; in uhid_device_add_worker()
88 wake_up_interruptible(&uhid in uhid_device_add_worker()
92 uhid_queue(struct uhid_device *uhid, struct uhid_event *ev) uhid_queue() argument
108 uhid_queue_event(struct uhid_device *uhid, __u32 event) uhid_queue_event() argument
128 struct uhid_device *uhid = hid->driver_data; uhid_hid_start() local
154 struct uhid_device *uhid = hid->driver_data; uhid_hid_stop() local
162 struct uhid_device *uhid = hid->driver_data; uhid_hid_open() local
169 struct uhid_device *uhid = hid->driver_data; uhid_hid_close() local
176 struct uhid_device *uhid = hid->driver_data; uhid_hid_parse() local
182 __uhid_report_queue_and_wait(struct uhid_device *uhid, struct uhid_event *ev, __u32 *report_id) __uhid_report_queue_and_wait() argument
211 uhid_report_wake_up(struct uhid_device *uhid, u32 id, const struct uhid_event *ev) uhid_report_wake_up() argument
235 struct uhid_device *uhid = hid->driver_data; uhid_hid_get_report() local
278 struct uhid_device *uhid = hid->driver_data; uhid_hid_set_report() local
349 struct uhid_device *uhid = hid->driver_data; uhid_hid_output_raw() local
490 uhid_dev_create2(struct uhid_device *uhid, const struct uhid_event *ev) uhid_dev_create2() argument
553 uhid_dev_create(struct uhid_device *uhid, struct uhid_event *ev) uhid_dev_create() argument
578 uhid_dev_destroy(struct uhid_device *uhid) uhid_dev_destroy() argument
595 uhid_dev_input(struct uhid_device *uhid, struct uhid_event *ev) uhid_dev_input() argument
606 uhid_dev_input2(struct uhid_device *uhid, struct uhid_event *ev) uhid_dev_input2() argument
617 uhid_dev_get_report_reply(struct uhid_device *uhid, struct uhid_event *ev) uhid_dev_get_report_reply() argument
627 uhid_dev_set_report_reply(struct uhid_device *uhid, struct uhid_event *ev) uhid_dev_set_report_reply() argument
639 struct uhid_device *uhid; uhid_char_open() local
661 struct uhid_device *uhid = file->private_data; uhid_char_release() local
677 struct uhid_device *uhid = file->private_data; uhid_char_read() local
725 struct uhid_device *uhid = file->private_data; uhid_char_write() local
790 struct uhid_device *uhid = file->private_data; uhid_char_poll() local
[all...]
H A DMakefile9 obj-$(CONFIG_UHID) += uhid.o
/kernel/linux/linux-6.6/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); in uhid_device_add_worker() local
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()
80 * of using uhid->hid. in uhid_device_add_worker()
81 * Just leave uhid->hid as-is for now, and clean it up when in uhid_device_add_worker()
82 * userspace tries to close or reinitialize the uhid instance. in uhid_device_add_worker()
87 WRITE_ONCE(uhid->running, false); in uhid_device_add_worker()
88 wake_up_interruptible(&uhid in uhid_device_add_worker()
92 uhid_queue(struct uhid_device *uhid, struct uhid_event *ev) uhid_queue() argument
108 uhid_queue_event(struct uhid_device *uhid, __u32 event) uhid_queue_event() argument
128 struct uhid_device *uhid = hid->driver_data; uhid_hid_start() local
154 struct uhid_device *uhid = hid->driver_data; uhid_hid_stop() local
162 struct uhid_device *uhid = hid->driver_data; uhid_hid_open() local
169 struct uhid_device *uhid = hid->driver_data; uhid_hid_close() local
176 struct uhid_device *uhid = hid->driver_data; uhid_hid_parse() local
182 __uhid_report_queue_and_wait(struct uhid_device *uhid, struct uhid_event *ev, __u32 *report_id) __uhid_report_queue_and_wait() argument
211 uhid_report_wake_up(struct uhid_device *uhid, u32 id, const struct uhid_event *ev) uhid_report_wake_up() argument
235 struct uhid_device *uhid = hid->driver_data; uhid_hid_get_report() local
278 struct uhid_device *uhid = hid->driver_data; uhid_hid_set_report() local
349 struct uhid_device *uhid = hid->driver_data; uhid_hid_output_raw() local
489 uhid_dev_create2(struct uhid_device *uhid, const struct uhid_event *ev) uhid_dev_create2() argument
552 uhid_dev_create(struct uhid_device *uhid, struct uhid_event *ev) uhid_dev_create() argument
577 uhid_dev_destroy(struct uhid_device *uhid) uhid_dev_destroy() argument
594 uhid_dev_input(struct uhid_device *uhid, struct uhid_event *ev) uhid_dev_input() argument
605 uhid_dev_input2(struct uhid_device *uhid, struct uhid_event *ev) uhid_dev_input2() argument
616 uhid_dev_get_report_reply(struct uhid_device *uhid, struct uhid_event *ev) uhid_dev_get_report_reply() argument
626 uhid_dev_set_report_reply(struct uhid_device *uhid, struct uhid_event *ev) uhid_dev_set_report_reply() argument
638 struct uhid_device *uhid; uhid_char_open() local
660 struct uhid_device *uhid = file->private_data; uhid_char_release() local
676 struct uhid_device *uhid = file->private_data; uhid_char_read() local
724 struct uhid_device *uhid = file->private_data; uhid_char_write() local
789 struct uhid_device *uhid = file->private_data; uhid_char_poll() local
[all...]
H A DMakefile11 obj-$(CONFIG_UHID) += uhid.o
/kernel/liteos_a/bsd/dev/usb/
H A DMakefile134 LOCAL_SRCS += $(INPUT_SRC)/uhid.c \
/kernel/linux/linux-5.10/samples/uhid/
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"); in uhid_write()
168 fprintf(stderr, "Wrong size written to uhid in uhid_write()
[all...]
/kernel/linux/linux-6.6/samples/uhid/
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"); in uhid_write()
168 fprintf(stderr, "Wrong size written to uhid in uhid_write()
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Dhid.h692 #define HID_USAGE_ID(uhid, utype, ucode) \
693 .usage_hid = (uhid), .usage_type = (utype), .usage_code = (ucode)
/kernel/linux/linux-6.6/include/linux/
H A Dhid.h751 #define HID_USAGE_ID(uhid, utype, ucode) \
752 .usage_hid = (uhid), .usage_type = (utype), .usage_code = (ucode)
/kernel/linux/linux-6.6/tools/testing/selftests/hid/
H A Dhid_bpf.c15 #include <linux/uhid.h>
123 TH_LOG("Cannot write to uhid: %m"); in uhid_write()
126 TH_LOG("Wrong size written to uhid: %zd != %zu", in uhid_write()
139 sprintf(buf, "test-uhid-device-%d", rand_nb); in uhid_create()
176 UHID_LOG("Read HUP on uhid-cdev"); in uhid_event()
179 UHID_LOG("Cannot read uhid-cdev: %m"); in uhid_event()
182 UHID_LOG("Invalid size read from uhid-dev: %zd != %zu", in uhid_event()
193 UHID_LOG("UHID_START from uhid-dev"); in uhid_event()
198 UHID_LOG("UHID_STOP from uhid-dev"); in uhid_event()
201 UHID_LOG("UHID_OPEN from uhid in uhid_event()
[all...]

Completed in 11 milliseconds