Lines Matching refs:_metadata
118 static int uhid_write(struct __test_metadata *_metadata, int fd, const struct uhid_event *ev) in uhid_write() argument
135 static int uhid_create(struct __test_metadata *_metadata, int fd, int rand_nb, in uhid_create() argument
158 return uhid_write(_metadata, fd, &ev); in uhid_create()
161 static void uhid_destroy(struct __test_metadata *_metadata, struct uhid_device *hid) in uhid_destroy() argument
168 uhid_write(_metadata, hid->uhid_fd, &ev); in uhid_destroy()
171 static int uhid_event(struct __test_metadata *_metadata, int fd) in uhid_event() argument
228 uhid_write(_metadata, fd, &answer); in uhid_event()
243 struct __test_metadata *_metadata; member
248 struct __test_metadata *_metadata = args->_metadata; in uhid_read_events_thread() local
265 ret = uhid_event(_metadata, fd); in uhid_read_events_thread()
274 static int uhid_start_listener(struct __test_metadata *_metadata, pthread_t *tid, int uhid_fd) in uhid_start_listener() argument
278 ._metadata = _metadata, in uhid_start_listener()
296 static int uhid_send_event(struct __test_metadata *_metadata, struct uhid_device *hid, in uhid_send_event() argument
310 return uhid_write(_metadata, hid->uhid_fd, &ev); in uhid_send_event()
435 static int setup_uhid(struct __test_metadata *_metadata, struct uhid_device *hid, in setup_uhid() argument
453 ret = uhid_create(_metadata, hid->uhid_fd, hid->dev_id, bus, vid, pid, in setup_uhid()
466 ret = uhid_start_listener(_metadata, &hid->tid, hid->uhid_fd); in setup_uhid()