Lines Matching defs:thread
334 struct thread;
336 static ssize_t read_wrap(struct thread *t, void *buf, size_t nbytes);
337 static ssize_t write_wrap(struct thread *t, const void *buf, size_t nbytes);
338 static ssize_t ep0_consume(struct thread *t, const void *buf, size_t nbytes);
339 static ssize_t fill_in_buf(struct thread *t, void *buf, size_t nbytes);
340 static ssize_t empty_out_buf(struct thread *t, const void *buf, size_t nbytes);
343 static struct thread {
347 ssize_t (*in)(struct thread *, void *, size_t);
350 ssize_t (*out)(struct thread *, const void *, size_t);
379 static void init_thread(struct thread *t)
390 struct thread *t = arg;
422 struct thread *t = arg;
464 static void start_thread(struct thread *t)
472 static void join_thread(struct thread *t)
477 err("%s: joining thread", t->filename);
483 static ssize_t read_wrap(struct thread *t, void *buf, size_t nbytes)
488 static ssize_t write_wrap(struct thread *t, const void *buf, size_t nbytes)
501 fill_in_buf(struct thread *ignore, void *buf, size_t nbytes)
526 empty_out_buf(struct thread *ignore, const void *buf, size_t nbytes)
588 ep0_consume(struct thread *ignore, const void *buf, size_t nbytes)
626 static void ep0_init(struct thread *t, bool legacy_descriptors)