Lines Matching refs:CharDriverState
116 static QTAILQ_HEAD(CharDriverStateHead, CharDriverState) chardevs =
120 static void qemu_chr_event(CharDriverState *s, int event)
139 CharDriverState *s = opaque;
145 void qemu_chr_generic_open(CharDriverState *s)
153 void qemu_chr_reset(CharDriverState *s)
163 CharDriverState *chr;
172 int qemu_chr_write(CharDriverState *s, const uint8_t *buf, int len)
177 int qemu_chr_ioctl(CharDriverState *s, int cmd, void *arg)
184 int qemu_chr_can_read(CharDriverState *s)
191 void qemu_chr_read(CharDriverState *s, uint8_t *buf, int len)
196 int qemu_chr_get_msgfd(CharDriverState *s)
201 void qemu_chr_accept_input(CharDriverState *s)
207 void qemu_chr_printf(CharDriverState *s, const char *fmt, ...)
217 void qemu_chr_send_event(CharDriverState *s, int event)
223 void qemu_chr_add_handlers(CharDriverState *s,
247 static int null_chr_write(CharDriverState *chr, const uint8_t *buf, int len)
252 static CharDriverState *qemu_chr_open_null(QemuOpts *opts)
254 CharDriverState *chr;
256 chr = qemu_mallocz(sizeof(CharDriverState));
270 CharDriverState *drv;
287 static int mux_chr_write(CharDriverState *chr, const uint8_t *buf, int len)
338 static void mux_print_help(CharDriverState *chr)
369 static int mux_proc_byte(CharDriverState *chr, MuxDriver *d, int ch)
416 static void mux_chr_accept_input(CharDriverState *chr)
431 CharDriverState *chr = opaque;
444 CharDriverState *chr = opaque;
464 CharDriverState *chr = opaque;
473 static void mux_chr_update_read_handler(CharDriverState *chr)
498 static CharDriverState *qemu_chr_open_mux(CharDriverState *drv)
500 CharDriverState *chr;
503 chr = qemu_mallocz(sizeof(CharDriverState));
574 static CharDriverState *qemu_chr_open_android_modem(QemuOpts* opts)
576 CharDriverState* cs;
580 static CharDriverState *qemu_chr_open_android_gps(QemuOpts* opts)
582 CharDriverState* cs;
587 static CharDriverState *qemu_chr_open_android_kmsg(QemuOpts* opts)
592 static CharDriverState *qemu_chr_open_android_qemud(QemuOpts* opts)
608 static int fd_chr_write(CharDriverState *chr, const uint8_t *buf, int len)
616 CharDriverState *chr = opaque;
625 CharDriverState *chr = opaque;
647 static void fd_chr_update_read_handler(CharDriverState *chr)
660 static void fd_chr_close(struct CharDriverState *chr)
676 static CharDriverState *qemu_chr_open_fd(int fd_in, int fd_out)
678 CharDriverState *chr;
681 chr = qemu_mallocz(sizeof(CharDriverState));
695 static CharDriverState *qemu_chr_open_file_out(QemuOpts *opts)
706 static CharDriverState *qemu_chr_open_pipe(QemuOpts *opts)
734 static CharDriverState *qemu_chr_open_fdpair(QemuOpts* opts)
756 CharDriverState *chr = opaque;
774 CharDriverState *chr = opaque;
803 static void qemu_chr_set_echo_stdio(CharDriverState *chr, bool echo)
825 static void qemu_chr_close_stdio(struct CharDriverState *chr)
833 static CharDriverState *qemu_chr_open_stdio(QemuOpts *opts)
835 CharDriverState *chr;
925 static void pty_chr_update_read_handler(CharDriverState *chr);
926 static void pty_chr_state(CharDriverState *chr, int connected);
928 static int pty_chr_write(CharDriverState *chr, const uint8_t *buf, int len)
942 CharDriverState *chr = opaque;
951 CharDriverState *chr = opaque;
973 static void pty_chr_update_read_handler(CharDriverState *chr)
991 static void pty_chr_state(CharDriverState *chr, int connected)
1012 struct CharDriverState *chr = opaque;
1028 static void pty_chr_close(struct CharDriverState *chr)
1040 static CharDriverState *qemu_chr_open_pty(QemuOpts *opts)
1042 CharDriverState *chr;
1055 chr = qemu_mallocz(sizeof(CharDriverState));
1199 static int tty_serial_ioctl(CharDriverState *chr, int cmd, void *arg)
1266 CharDriverState *chr)
1282 static CharDriverState *qemu_chr_open_tty(QemuOpts *opts)
1285 CharDriverState *chr;
1303 static CharDriverState *qemu_chr_open_pty(QemuOpts *opts)
1326 static int pp_ioctl(CharDriverState *chr, int cmd, void *arg)
1407 static void pp_close(CharDriverState *chr)
1419 static CharDriverState *qemu_chr_open_pp(QemuOpts *opts)
1422 CharDriverState *chr;
1439 chr = qemu_mallocz(sizeof(CharDriverState));
1452 static int pp_ioctl(CharDriverState *chr, int cmd, void *arg)
1489 static CharDriverState *qemu_chr_open_pp(QemuOpts *opts)
1492 CharDriverState *chr;
1499 chr = qemu_mallocz(sizeof(CharDriverState));
1525 static void win_chr_close(CharDriverState *chr)
1549 static int win_chr_init(CharDriverState *chr, const char *filename)
1616 static int win_chr_write(CharDriverState *chr, const uint8_t *buf, int len1)
1650 static int win_chr_read_poll(CharDriverState *chr)
1658 static void win_chr_readfile(CharDriverState *chr)
1680 static void win_chr_read(CharDriverState *chr)
1694 CharDriverState *chr = opaque;
1709 static CharDriverState *qemu_chr_open_win(QemuOpts *opts)
1712 CharDriverState *chr;
1715 chr = qemu_mallocz(sizeof(CharDriverState));
1732 CharDriverState *chr = opaque;
1746 static int win_chr_pipe_init(CharDriverState *chr, const char *filename)
1809 static CharDriverState *qemu_chr_open_win_pipe(QemuOpts *opts)
1812 CharDriverState *chr;
1815 chr = qemu_mallocz(sizeof(CharDriverState));
1830 static CharDriverState *qemu_chr_open_win_file(HANDLE fd_out)
1832 CharDriverState *chr;
1835 chr = qemu_mallocz(sizeof(CharDriverState));
1844 static CharDriverState *qemu_chr_open_win_con(QemuOpts *opts)
1849 static CharDriverState *qemu_chr_open_win_file_out(QemuOpts *opts)
1875 static int udp_chr_write(CharDriverState *chr, const uint8_t *buf, int len)
1884 CharDriverState *chr = opaque;
1902 CharDriverState *chr = opaque;
1920 static void udp_chr_update_read_handler(CharDriverState *chr)
1930 static void udp_chr_close(CharDriverState *chr)
1940 static CharDriverState *qemu_chr_open_udp(QemuOpts *opts)
1942 CharDriverState *chr = NULL;
1946 chr = qemu_mallocz(sizeof(CharDriverState));
1989 static int tcp_chr_write(CharDriverState *chr, const uint8_t *buf, int len)
2002 CharDriverState *chr = opaque;
2012 static void tcp_chr_process_IAC_bytes(CharDriverState *chr,
2060 static int tcp_get_msgfd(CharDriverState *chr)
2069 static void unix_process_msgfd(CharDriverState *chr, struct msghdr *msg)
2092 static ssize_t tcp_chr_recv(CharDriverState *chr, char *buf, size_t len)
2118 static ssize_t tcp_chr_recv(CharDriverState *chr, char *buf, size_t len)
2127 CharDriverState *chr = opaque;
2157 CharDriverState *qemu_chr_open_eventfd(int eventfd)
2165 CharDriverState *chr = opaque;
2191 CharDriverState *chr = opaque;
2213 static void tcp_chr_close(CharDriverState *chr)
2228 static CharDriverState *qemu_chr_open_socket(QemuOpts *opts)
2230 CharDriverState *chr = NULL;
2247 chr = qemu_mallocz(sizeof(CharDriverState));
2334 static int mem_chr_write(CharDriverState *chr, const uint8_t *buf, int len)
2353 void qemu_chr_init_mem(CharDriverState *chr)
2367 QString *qemu_chr_mem_to_qs(CharDriverState *chr)
2374 void qemu_chr_close_mem(CharDriverState *chr)
2384 size_t qemu_chr_mem_osize(const CharDriverState *chr)
2550 CharDriverState *(*open)(QemuOpts *opts);
2591 CharDriverState *qemu_chr_open_opts(QemuOpts *opts,
2592 void (*init)(struct CharDriverState *s))
2594 CharDriverState *chr;
2630 CharDriverState *base = chr;
2645 CharDriverState *qemu_chr_open(const char *label, const char *filename, void (*init)(struct CharDriverState *s))
2648 CharDriverState *chr;
2667 void qemu_chr_set_echo(struct CharDriverState *chr, bool echo)
2674 void qemu_chr_guest_open(struct CharDriverState *chr)
2681 void qemu_chr_guest_close(struct CharDriverState *chr)
2688 void qemu_chr_close(CharDriverState *chr)
2716 CharDriverState *chr;
2729 CharDriverState *qemu_chr_find(const char *name)
2731 CharDriverState *chr;