Lines Matching refs:CharDriverState
109 static TAILQ_HEAD(CharDriverStateHead, CharDriverState) chardevs =
113 static void qemu_chr_event(CharDriverState *s, int event) in qemu_chr_event()
122 CharDriverState *s = opaque; in qemu_chr_reset_bh()
128 void qemu_chr_reset(CharDriverState *s) in qemu_chr_reset()
138 CharDriverState *chr; in qemu_chr_initial_reset()
147 int qemu_chr_write(CharDriverState *s, const uint8_t *buf, int len) in qemu_chr_write()
152 int qemu_chr_ioctl(CharDriverState *s, int cmd, void *arg) in qemu_chr_ioctl()
159 int qemu_chr_can_read(CharDriverState *s) in qemu_chr_can_read()
166 void qemu_chr_read(CharDriverState *s, uint8_t *buf, int len) in qemu_chr_read()
171 void qemu_chr_accept_input(CharDriverState *s) in qemu_chr_accept_input()
177 void qemu_chr_printf(CharDriverState *s, const char *fmt, ...) in qemu_chr_printf()
187 void qemu_chr_send_event(CharDriverState *s, int event) in qemu_chr_send_event()
193 void qemu_chr_add_handlers(CharDriverState *s, in qemu_chr_add_handlers()
207 static int null_chr_write(CharDriverState *chr, const uint8_t *buf, int len) in null_chr_write()
212 static CharDriverState *qemu_chr_open_null(void) in qemu_chr_open_null()
214 CharDriverState *chr; in qemu_chr_open_null()
216 chr = qemu_mallocz(sizeof(CharDriverState)); in qemu_chr_open_null()
230 CharDriverState *drv;
246 static int mux_chr_write(CharDriverState *chr, const uint8_t *buf, int len) in mux_chr_write()
297 static void mux_print_help(CharDriverState *chr) in mux_print_help()
328 static int mux_proc_byte(CharDriverState *chr, MuxDriver *d, int ch) in mux_proc_byte()
380 static void mux_chr_accept_input(CharDriverState *chr) in mux_chr_accept_input()
395 CharDriverState *chr = opaque; in mux_chr_can_read()
408 CharDriverState *chr = opaque; in mux_chr_read()
428 CharDriverState *chr = opaque; in mux_chr_event()
437 static void mux_chr_update_read_handler(CharDriverState *chr) in mux_chr_update_read_handler()
458 static CharDriverState *qemu_chr_open_mux(CharDriverState *drv) in qemu_chr_open_mux()
460 CharDriverState *chr; in qemu_chr_open_mux()
463 chr = qemu_mallocz(sizeof(CharDriverState)); in qemu_chr_open_mux()
537 static int fd_chr_write(CharDriverState *chr, const uint8_t *buf, int len) in fd_chr_write()
545 CharDriverState *chr = opaque; in fd_chr_read_poll()
554 CharDriverState *chr = opaque; in fd_chr_read()
575 static void fd_chr_update_read_handler(CharDriverState *chr) in fd_chr_update_read_handler()
588 static void fd_chr_close(struct CharDriverState *chr) in fd_chr_close()
603 static CharDriverState *qemu_chr_open_fd(int fd_in, int fd_out) in qemu_chr_open_fd()
605 CharDriverState *chr; in qemu_chr_open_fd()
608 chr = qemu_mallocz(sizeof(CharDriverState)); in qemu_chr_open_fd()
622 static CharDriverState *qemu_chr_open_file_out(const char *file_out) in qemu_chr_open_file_out()
632 static CharDriverState *qemu_chr_open_pipe(const char *filename) in qemu_chr_open_pipe()
664 CharDriverState *chr = opaque; in stdio_read_poll()
682 CharDriverState *chr = opaque; in stdio_read()
738 static void qemu_chr_close_stdio(struct CharDriverState *chr) in qemu_chr_close_stdio()
746 static CharDriverState *qemu_chr_open_stdio(void) in qemu_chr_open_stdio()
748 CharDriverState *chr; in qemu_chr_open_stdio()
829 static void pty_chr_update_read_handler(CharDriverState *chr);
830 static void pty_chr_state(CharDriverState *chr, int connected);
832 static int pty_chr_write(CharDriverState *chr, const uint8_t *buf, int len) in pty_chr_write()
846 CharDriverState *chr = opaque; in pty_chr_read_poll()
855 CharDriverState *chr = opaque; in pty_chr_read()
877 static void pty_chr_update_read_handler(CharDriverState *chr) in pty_chr_update_read_handler()
895 static void pty_chr_state(CharDriverState *chr, int connected) in pty_chr_state()
916 struct CharDriverState *chr = opaque; in pty_chr_timer()
932 static void pty_chr_close(struct CharDriverState *chr) in pty_chr_close()
943 static CharDriverState *qemu_chr_open_pty(void) in qemu_chr_open_pty()
945 CharDriverState *chr; in qemu_chr_open_pty()
957 chr = qemu_mallocz(sizeof(CharDriverState)); in qemu_chr_open_pty()
1065 static int tty_serial_ioctl(CharDriverState *chr, int cmd, void *arg) in tty_serial_ioctl()
1132 static CharDriverState *qemu_chr_open_tty(const char *filename) in qemu_chr_open_tty()
1134 CharDriverState *chr; in qemu_chr_open_tty()
1149 static CharDriverState *qemu_chr_open_pty(void) in qemu_chr_open_pty()
1172 static int pp_ioctl(CharDriverState *chr, int cmd, void *arg) in pp_ioctl()
1253 static void pp_close(CharDriverState *chr) in pp_close()
1264 static CharDriverState *qemu_chr_open_pp(const char *filename) in qemu_chr_open_pp()
1266 CharDriverState *chr; in qemu_chr_open_pp()
1283 chr = qemu_mallocz(sizeof(CharDriverState)); in qemu_chr_open_pp()
1296 static int pp_ioctl(CharDriverState *chr, int cmd, void *arg) in pp_ioctl()
1333 static CharDriverState *qemu_chr_open_pp(const char *filename) in qemu_chr_open_pp()
1335 CharDriverState *chr; in qemu_chr_open_pp()
1342 chr = qemu_mallocz(sizeof(CharDriverState)); in qemu_chr_open_pp()
1368 static void win_chr_close(CharDriverState *chr) in win_chr_close()
1390 static int win_chr_init(CharDriverState *chr, const char *filename) in win_chr_init()
1457 static int win_chr_write(CharDriverState *chr, const uint8_t *buf, int len1) in win_chr_write()
1491 static int win_chr_read_poll(CharDriverState *chr) in win_chr_read_poll()
1499 static void win_chr_readfile(CharDriverState *chr) in win_chr_readfile()
1521 static void win_chr_read(CharDriverState *chr) in win_chr_read()
1535 CharDriverState *chr = opaque; in win_chr_poll()
1550 static CharDriverState *qemu_chr_open_win(const char *filename) in qemu_chr_open_win()
1552 CharDriverState *chr; in qemu_chr_open_win()
1555 chr = qemu_mallocz(sizeof(CharDriverState)); in qemu_chr_open_win()
1572 CharDriverState *chr = opaque; in win_chr_pipe_poll()
1586 static int win_chr_pipe_init(CharDriverState *chr, const char *filename) in win_chr_pipe_init()
1649 static CharDriverState *qemu_chr_open_win_pipe(const char *filename) in qemu_chr_open_win_pipe()
1651 CharDriverState *chr; in qemu_chr_open_win_pipe()
1654 chr = qemu_mallocz(sizeof(CharDriverState)); in qemu_chr_open_win_pipe()
1669 static CharDriverState *qemu_chr_open_win_file(HANDLE fd_out) in qemu_chr_open_win_file()
1671 CharDriverState *chr; in qemu_chr_open_win_file()
1674 chr = qemu_mallocz(sizeof(CharDriverState)); in qemu_chr_open_win_file()
1683 static CharDriverState *qemu_chr_open_win_con(const char *filename) in qemu_chr_open_win_con()
1688 static CharDriverState *qemu_chr_open_win_file_out(const char *file_out) in qemu_chr_open_win_file_out()
1713 static int udp_chr_write(CharDriverState *chr, const uint8_t *buf, int len) in udp_chr_write()
1723 CharDriverState *chr = opaque; in udp_chr_read_poll()
1741 CharDriverState *chr = opaque; in udp_chr_read()
1759 static void udp_chr_update_read_handler(CharDriverState *chr) in udp_chr_update_read_handler()
1769 static void udp_chr_close(CharDriverState *chr) in udp_chr_close()
1779 static CharDriverState *qemu_chr_open_udp(const char *def) in qemu_chr_open_udp()
1781 CharDriverState *chr = NULL; in qemu_chr_open_udp()
1786 chr = qemu_mallocz(sizeof(CharDriverState)); in qemu_chr_open_udp()
1839 static int tcp_chr_write(CharDriverState *chr, const uint8_t *buf, int len) in tcp_chr_write()
1852 CharDriverState *chr = opaque; in tcp_chr_read_poll()
1862 static void tcp_chr_process_IAC_bytes(CharDriverState *chr, in tcp_chr_process_IAC_bytes()
1912 CharDriverState *chr = opaque; in tcp_chr_read()
1942 CharDriverState *chr = opaque; in tcp_chr_connect()
1974 CharDriverState *chr = opaque; in tcp_chr_accept()
2012 static void tcp_chr_close(CharDriverState *chr) in tcp_chr_close()
2026 static CharDriverState *qemu_chr_open_tcp(const char *host_str, in qemu_chr_open_tcp()
2030 CharDriverState *chr = NULL; in qemu_chr_open_tcp()
2061 chr = qemu_mallocz(sizeof(CharDriverState)); in qemu_chr_open_tcp()
2133 CharDriverState *qemu_chr_open(const char *label, const char *filename, void (*init)(struct CharDri… in qemu_chr_open()
2136 CharDriverState *chr; in qemu_chr_open()
2227 void qemu_chr_close(CharDriverState *chr) in qemu_chr_close()
2239 CharDriverState *chr; in qemu_chr_info()