/openbmc/qemu/include/chardev/ |
H A D | char.h | 59 struct Chardev { struct 86 Chardev *qemu_chr_new_from_opts(QemuOpts *opts, argument 120 Chardev *qemu_chr_new(const char *label, const char *filename, 134 Chardev *qemu_chr_new_mux_mon(const char *label, const char *filename, 165 Chardev *qemu_chr_new_noreplay(const char *label, const char *filename, 178 int qemu_chr_be_can_write(Chardev *s); 189 void qemu_chr_be_write(Chardev *s, const uint8_t *buf, int len); 198 void qemu_chr_be_write_impl(Chardev *s, const uint8_t *buf, int len); 206 void qemu_chr_be_update_read_handlers(Chardev *s, 215 void qemu_chr_be_event(Chardev *s, QEMUChrEvent event); [all …]
|
H A D | char-win.h | 31 Chardev parent; 50 void win_chr_set_file(Chardev *chr, HANDLE file, bool keep_open); 51 int win_chr_serial_init(Chardev *chr, const char *filename, Error **errp);
|
H A D | char-fe.h | 17 Chardev *chr; 36 bool qemu_chr_fe_init(CharBackend *b, Chardev *s, Error **errp); 58 Chardev *qemu_chr_fe_get_driver(CharBackend *be);
|
H A D | char-fd.h | 32 Chardev parent; 44 void qemu_chr_open_fd(Chardev *chr, int fd_in, int fd_out);
|
H A D | char-io.h | 32 GSource *io_add_watch_poll(Chardev *chr, 39 void remove_fd_in_watch(Chardev *chr);
|
/openbmc/qemu/chardev/ |
H A D | char.c | 54 static void chr_be_event(Chardev *s, QEMUChrEvent event) in chr_be_event() 65 void qemu_chr_be_event(Chardev *s, QEMUChrEvent event) in qemu_chr_be_event() 87 static void qemu_chr_write_log(Chardev *s, const uint8_t *buf, size_t len) in qemu_chr_write_log() 111 static int qemu_chr_write_buffer(Chardev *s, in qemu_chr_write_buffer() 162 int qemu_chr_write(Chardev *s, const uint8_t *buf, int len, bool write_all) in qemu_chr_write() 198 int qemu_chr_be_can_write(Chardev *s) in qemu_chr_be_can_write() 209 void qemu_chr_be_write_impl(Chardev *s, const uint8_t *buf, int len) in qemu_chr_be_write_impl() 218 void qemu_chr_be_write(Chardev *s, const uint8_t *buf, int len) in qemu_chr_be_write() 230 void qemu_chr_be_update_read_handlers(Chardev *s, in qemu_chr_be_update_read_handlers() 243 int qemu_chr_add_client(Chardev *s, int fd) in qemu_chr_add_client() [all …]
|
H A D | char-fe.c | 35 Chardev *s = be->chr; in qemu_chr_fe_write() 46 Chardev *s = be->chr; in qemu_chr_fe_write_all() 57 Chardev *s = be->chr; in qemu_chr_fe_read_all() 100 Chardev *s = be->chr; in qemu_chr_fe_ioctl() 114 Chardev *s = be->chr; in qemu_chr_fe_get_msgfd() 127 Chardev *s = be->chr; in qemu_chr_fe_get_msgfds() 139 Chardev *s = be->chr; in qemu_chr_fe_set_msgfds() 151 Chardev *s = be->chr; in qemu_chr_fe_accept_input() 175 Chardev *qemu_chr_fe_get_driver(CharBackend *be) in qemu_chr_fe_get_driver() 192 bool qemu_chr_fe_init(CharBackend *b, Chardev *s, Error **errp) in qemu_chr_fe_init() [all …]
|
H A D | char-mux.c | 45 static int mux_chr_write(Chardev *chr, const uint8_t *buf, int len) in mux_chr_write() 100 static void mux_print_help(Chardev *chr) in mux_print_help() 138 static void mux_chr_be_event(Chardev *chr, QEMUChrEvent event) in mux_chr_be_event() 147 static int mux_proc_byte(Chardev *chr, MuxChardev *d, int ch) in mux_proc_byte() 199 static void mux_chr_accept_input(Chardev *chr) in mux_chr_accept_input() 231 Chardev *chr = CHARDEV(opaque); in mux_chr_read() 251 void mux_chr_send_all_event(Chardev *chr, QEMUChrEvent event) in mux_chr_send_all_event() 272 static GSource *mux_chr_add_watch(Chardev *s, GIOCondition cond) in mux_chr_add_watch() 275 Chardev *chr = qemu_chr_fe_get_driver(&d->chr); in mux_chr_add_watch() 300 static void mux_chr_update_read_handlers(Chardev *chr) in mux_chr_update_read_handlers() [all …]
|
H A D | char-socket.c | 42 static void tcp_chr_telnet_init(Chardev *chr); 68 static void qemu_chr_socket_restart_timer(Chardev *chr) in qemu_chr_socket_restart_timer() 84 static void check_report_connect_error(Chardev *chr, in check_report_connect_error() 105 static void tcp_chr_disconnect_locked(Chardev *chr); 108 static int tcp_chr_write(Chardev *chr, const uint8_t *buf, int len) in tcp_chr_write() 145 Chardev *chr = CHARDEV(opaque); in tcp_chr_read_poll() 154 static void tcp_chr_process_IAC_bytes(Chardev *chr, in tcp_chr_process_IAC_bytes() 225 static int tcp_get_msgfds(Chardev *chr, int *fds, int num) in tcp_get_msgfds() 251 static int tcp_set_msgfds(Chardev *chr, int *fds, int num) in tcp_set_msgfds() 276 static ssize_t tcp_chr_recv(Chardev *chr, char *buf, size_t len) in tcp_chr_recv() [all …]
|
H A D | spice.c | 20 Chardev *chr = CHARDEV(scd); in vmc_write() 63 Chardev *chr = CHARDEV(scd); in vmc_event() 81 Chardev *chr = CHARDEV(scd); in vmc_state() 129 Chardev *chr = CHARDEV(src->scd); in spice_char_source_prepare() 143 Chardev *chr = CHARDEV(src->scd); in spice_char_source_check() 156 Chardev *chr = CHARDEV(src->scd); in spice_char_source_dispatch() 169 static GSource *spice_chr_add_watch(Chardev *chr, GIOCondition cond) in spice_chr_add_watch() 183 static int spice_chr_write(Chardev *chr, const uint8_t *buf, int len) in spice_chr_write() 218 static void spice_vmc_set_fe_open(struct Chardev *chr, int fe_open) in spice_vmc_set_fe_open() 228 static void spice_port_set_fe_open(struct Chardev *chr, int fe_open) in spice_port_set_fe_open() [all …]
|
H A D | char-pty.c | 39 Chardev parent; 52 static void pty_chr_state(Chardev *chr, int connected); 65 struct Chardev *chr = CHARDEV(opaque); in pty_chr_timer() 76 static void pty_chr_rearm_timer(Chardev *chr, int ms) in pty_chr_rearm_timer() 88 static void pty_chr_update_read_handler(Chardev *chr) in pty_chr_update_read_handler() 108 static int char_pty_chr_write(Chardev *chr, const uint8_t *buf, int len) in char_pty_chr_write() 134 static GSource *pty_chr_add_watch(Chardev *chr, GIOCondition cond) in pty_chr_add_watch() 145 Chardev *chr = CHARDEV(opaque); in pty_chr_read_poll() 154 Chardev *chr = CHARDEV(opaque); in pty_chr_read() 178 static void pty_chr_state(Chardev *chr, int connected) in pty_chr_state() [all …]
|
H A D | char-udp.c | 39 Chardev parent; 52 static int udp_chr_write(Chardev *chr, const uint8_t *buf, int len) in DECLARE_INSTANCE_CHECKER() 62 Chardev *chr = CHARDEV(s); in udp_chr_flush_buffer() 74 Chardev *chr = CHARDEV(opaque); in udp_chr_read_poll() 89 Chardev *chr = CHARDEV(opaque); in udp_chr_read() 109 static void udp_chr_update_read_handler(Chardev *chr) in udp_chr_update_read_handler() 124 Chardev *chr = CHARDEV(obj); in char_udp_finalize() 192 static void qmp_chardev_open_udp(Chardev *chr, in qmp_chardev_open_udp()
|
H A D | char-parallel.c | 53 Chardev parent; 73 static int pp_ioctl(Chardev *chr, int cmd, void *arg) in pp_ioctl() 160 static void qemu_chr_open_pp_fd(Chardev *chr, in qemu_chr_open_pp_fd() 181 Chardev parent; 188 static int pp_ioctl(Chardev *chr, int cmd, void *arg) in pp_ioctl() 230 static void qemu_chr_open_pp_fd(Chardev *chr, in qemu_chr_open_pp_fd() 242 static void qmp_chardev_open_parallel(Chardev *chr, in qmp_chardev_open_parallel() 284 Chardev *chr = CHARDEV(obj); in char_parallel_finalize()
|
H A D | char-ringbuf.c | 37 Chardev parent; 48 static size_t ringbuf_count(const Chardev *chr) in DECLARE_INSTANCE_CHECKER() 55 static int ringbuf_chr_write(Chardev *chr, const uint8_t *buf, int len) in ringbuf_chr_write() 74 static int ringbuf_chr_read(Chardev *chr, uint8_t *buf, int len) in ringbuf_chr_read() 95 static void qemu_chr_open_ringbuf(Chardev *chr, in qemu_chr_open_ringbuf() 120 Chardev *chr; in qmp_ringbuf_write() 164 Chardev *chr; in qmp_ringbuf_read()
|
H A D | char-win.c | 31 static void win_chr_read(Chardev *chr, DWORD len) in win_chr_read() 63 Chardev *chr = CHARDEV(opaque); in win_chr_serial_poll() 76 int win_chr_serial_init(Chardev *chr, const char *filename, Error **errp) in win_chr_serial_init() 144 Chardev *chr = CHARDEV(opaque); in win_chr_pipe_poll() 157 static int win_chr_write(Chardev *chr, const uint8_t *buf, int len1) in win_chr_write() 194 Chardev *chr = CHARDEV(obj); in char_win_finalize() 215 void win_chr_set_file(Chardev *chr, HANDLE file, bool keep_open) in win_chr_set_file()
|
H A D | char-fd.c | 37 static int fd_chr_write(Chardev *chr, const uint8_t *buf, int len) in fd_chr_write() 50 Chardev *chr = CHARDEV(opaque); in fd_chr_read() 80 Chardev *chr = CHARDEV(opaque); in fd_chr_read_poll() 149 static GSource *fd_chr_add_watch(Chardev *chr, GIOCondition cond) in fd_chr_add_watch() 168 static void fd_chr_update_read_handler(Chardev *chr) in fd_chr_update_read_handler() 183 Chardev *chr = CHARDEV(obj); in char_fd_finalize() 209 void qemu_chr_open_fd(Chardev *chr, in qemu_chr_open_fd()
|
H A D | chardev-internal.h | 37 Chardev parent; 65 void mux_set_focus(Chardev *chr, unsigned int focus); 66 void mux_chr_send_all_event(Chardev *chr, QEMUChrEvent event);
|
H A D | char-win-stdio.c | 34 Chardev parent; 49 Chardev *chr = CHARDEV(opaque); in DECLARE_INSTANCE_CHECKER() 121 Chardev *chr = CHARDEV(opaque); in win_stdio_thread_wait_func() 131 static void qemu_chr_set_echo_win_stdio(Chardev *chr, bool echo) in qemu_chr_set_echo_win_stdio() 145 static void qemu_chr_open_stdio(Chardev *chr, in qemu_chr_open_stdio() 240 static int win_stdio_write(Chardev *chr, const uint8_t *buf, int len) in win_stdio_write()
|
H A D | msmouse.c | 58 Chardev parent; 73 static void msmouse_chr_accept_input(Chardev *chr) in DECLARE_INSTANCE_CHECKER() 157 Chardev *chr = CHARDEV(dev); in msmouse_input_sync() 168 static int msmouse_chr_write(struct Chardev *s, const uint8_t *buf, int len) in msmouse_chr_write() 181 static int msmouse_ioctl(Chardev *chr, int cmd, void *arg) in msmouse_ioctl() 256 static void msmouse_chr_open(Chardev *chr, in msmouse_chr_open()
|
H A D | wctablet.c | 69 Chardev parent; 93 static void wctablet_chr_accept_input(Chardev *chr); 188 static void wctablet_chr_accept_input(Chardev *chr) in wctablet_chr_accept_input() 208 static int wctablet_chr_write(struct Chardev *chr, in wctablet_chr_write() 298 static int wctablet_chr_ioctl(Chardev *chr, int cmd, void *arg) in wctablet_chr_ioctl() 327 static void wctablet_chr_open(Chardev *chr, in wctablet_chr_open()
|
H A D | char-null.c | 29 static void null_chr_open(Chardev *chr, in null_chr_open() 47 .instance_size = sizeof(Chardev),
|
/openbmc/qemu/replay/ |
H A D | replay-char.c | 20 static Chardev **char_drivers; 30 static int find_char_driver(Chardev *chr) in find_char_driver() 41 void replay_register_char_driver(Chardev *chr) in replay_register_char_driver() 51 void replay_chr_be_write(Chardev *s, const uint8_t *buf, int len) in replay_chr_be_write()
|
/openbmc/qemu/tests/unit/ |
H A D | test-char.c | 85 Chardev *chr; in char_console_test_subprocess() 109 Chardev *chr; in char_stdio_test_subprocess() 134 Chardev *chr; in char_ringbuf_test() 184 Chardev *chr, *base; in char_mux_test() 406 Chardev *chr_client = opaque; in websock_client_read() 436 Chardev *chr_client; in char_websock_test() 437 Chardev *chr = qemu_chr_new("server", in char_websock_test() 492 Chardev *chr; in char_pipe_test() 555 Chardev *chr; 594 static void char_udp_test_internal(Chardev *reuse_chr, int sock) in char_udp_test_internal() [all …]
|
/openbmc/qemu/include/hw/m68k/ |
H A D | mcf.h | 13 DeviceState *mcf_uart_create(qemu_irq irq, Chardev *chr); 14 DeviceState *mcf_uart_create_mmap(hwaddr base, qemu_irq irq, Chardev *chr);
|
/openbmc/qemu/stubs/ |
H A D | replay-tools.c | 52 void replay_register_char_driver(struct Chardev *chr) in replay_register_char_driver() 56 void replay_chr_be_write(struct Chardev *s, const uint8_t *buf, int len) in replay_chr_be_write()
|