Lines Matching refs:_metadata

126 static int uhid_write(struct __test_metadata *_metadata, int fd, const struct uhid_event *ev)
143 static int uhid_create(struct __test_metadata *_metadata, int fd, int rand_nb)
164 return uhid_write(_metadata, fd, &ev);
167 static void uhid_destroy(struct __test_metadata *_metadata, int fd)
174 uhid_write(_metadata, fd, &ev);
177 static int uhid_event(struct __test_metadata *_metadata, int fd)
234 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, int fd, __u8 *buf, size_t size)
315 return uhid_write(_metadata, fd, &ev);
318 static int setup_uhid(struct __test_metadata *_metadata, int rand_nb)
327 ret = uhid_create(_metadata, fd, rand_nb);
485 uhid_destroy(_metadata, self->uhid_fd);
492 hid_bpf_teardown(_metadata, self, variant); \
505 self->uhid_fd = setup_uhid(_metadata, self->dev_id);
512 err = uhid_start_listener(_metadata, &self->tid, self->uhid_fd);
521 load_programs(progs, ARRAY_SIZE(progs), _metadata, self, variant)
523 load_programs(NULL, 0, _metadata, self, variant)
526 struct __test_metadata *_metadata,
614 uhid_send_event(_metadata, self->uhid_fd, buf, 6);
630 uhid_send_event(_metadata, self->uhid_fd, buf, 6);
662 uhid_send_event(_metadata, self->uhid_fd, buf, 6);
692 uhid_send_event(_metadata, self->uhid_fd, buf, 6);
711 uhid_send_event(_metadata, self->uhid_fd, buf, 6);
741 uhid_send_event(_metadata, self->uhid_fd, buf, 6);
907 uhid_send_event(_metadata, self->uhid_fd, buf, 6);