Lines Matching defs:_metadata
118 static int uhid_write(struct __test_metadata *_metadata, int fd, const struct uhid_event *ev)
135 static int uhid_create(struct __test_metadata *_metadata, int fd, int rand_nb,
158 return uhid_write(_metadata, fd, &ev);
161 static void uhid_destroy(struct __test_metadata *_metadata, struct uhid_device *hid)
168 uhid_write(_metadata, hid->uhid_fd, &ev);
171 static int uhid_event(struct __test_metadata *_metadata, int fd)
228 uhid_write(_metadata, fd, &answer);
238 uhid_write(_metadata, fd, &answer);
249 struct __test_metadata *_metadata;
254 struct __test_metadata *_metadata = args->_metadata;
271 ret = uhid_event(_metadata, fd);
280 static int uhid_start_listener(struct __test_metadata *_metadata, pthread_t *tid, int uhid_fd)
284 ._metadata = _metadata,
302 static int uhid_send_event(struct __test_metadata *_metadata, struct uhid_device *hid,
316 return uhid_write(_metadata, hid->uhid_fd, &ev);
441 static int setup_uhid(struct __test_metadata *_metadata, struct uhid_device *hid,
459 ret = uhid_create(_metadata, hid->uhid_fd, hid->dev_id, bus, vid, pid,
472 ret = uhid_start_listener(_metadata, &hid->tid, hid->uhid_fd);