Home | History | Annotate | Download | only in co

Lines Matching refs:uhid

23 #include <linux/uhid.h>
38 const char* dev_path = "/dev/uhid";
59 /*Internal function to perform UHID write and error checking*/
66 APPL_TRACE_ERROR("%s: Cannot write to uhid:%s", __func__, strerror(errno));
69 APPL_TRACE_ERROR("%s: Wrong size written to uhid: %zd != %zu", __func__,
77 /* Internal function to parse the events received from UHID driver*/
88 APPL_TRACE_ERROR("%s: Read HUP on uhid-cdev %s", __func__, strerror(errno));
91 APPL_TRACE_ERROR("%s: Cannot read uhid-cdev: %s", __func__,
98 APPL_TRACE_DEBUG("UHID_START from uhid-dev\n");
102 APPL_TRACE_DEBUG("UHID_STOP from uhid-dev\n");
106 APPL_TRACE_DEBUG("UHID_OPEN from uhid-dev\n");
110 APPL_TRACE_DEBUG("UHID_CLOSE from uhid-dev\n");
115 APPL_TRACE_ERROR("%s: Invalid size read from uhid-dev: %zd < %zu",
136 APPL_TRACE_ERROR("%s: Invalid size read from uhid-dev: %zd < %zu",
141 APPL_TRACE_DEBUG("UHID_OUTPUT_EV from uhid-dev\n");
144 APPL_TRACE_DEBUG("UHID_FEATURE from uhid-dev\n");
147 APPL_TRACE_DEBUG("UHID_FEATURE_ANSWER from uhid-dev\n");
151 APPL_TRACE_DEBUG("Invalid event from uhid-dev: %u\n", ev.type);
186 * Description the polling thread which polls for event from UHID driver
199 // Set the uhid fd as non-blocking to ensure we never block the BTU thread
240 APPL_TRACE_VERBOSE("%s: UHID write %d", __func__, len);
295 APPL_TRACE_ERROR("%s: Error: failed to open uhid, err:%s", __func__,
299 APPL_TRACE_DEBUG("%s: uhid fd = %d", __func__, p_dev->fd);
322 // This is a new device,open the uhid driver now.
325 APPL_TRACE_ERROR("%s: Error: failed to open uhid, err:%s", __func__,
329 APPL_TRACE_DEBUG("%s: uhid fd = %d", __func__, p_dev->fd);