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