Lines Matching refs:thread
286 struct thread;
288 static ssize_t read_wrap(struct thread *t, void *buf, size_t nbytes);
289 static ssize_t write_wrap(struct thread *t, const void *buf, size_t nbytes);
290 static ssize_t ep0_consume(struct thread *t, const void *buf, size_t nbytes);
291 static ssize_t fill_in_buf(struct thread *t, void *buf, size_t nbytes);
292 static ssize_t empty_out_buf(struct thread *t, const void *buf, size_t nbytes);
295 static struct thread { struct
299 ssize_t (*in)(struct thread *, void *, size_t); argument
302 ssize_t (*out)(struct thread *, const void *, size_t); argument
331 static void init_thread(struct thread *t) in init_thread() argument
342 struct thread *t = arg; in cleanup_thread()
374 struct thread *t = arg; in start_thread_helper()
416 static void start_thread(struct thread *t) in start_thread()
424 static void join_thread(struct thread *t) in join_thread()
435 static ssize_t read_wrap(struct thread *t, void *buf, size_t nbytes) in read_wrap()
440 static ssize_t write_wrap(struct thread *t, const void *buf, size_t nbytes) in write_wrap()
453 fill_in_buf(struct thread *ignore, void *buf, size_t nbytes) in fill_in_buf()
478 empty_out_buf(struct thread *ignore, const void *buf, size_t nbytes) in empty_out_buf()
540 ep0_consume(struct thread *ignore, const void *buf, size_t nbytes) in ep0_consume()
578 static void ep0_init(struct thread *t, bool legacy_descriptors) in ep0_init()