Lines Matching +full:0 +full:- +full:mon

10  * the COPYING file in the top-level directory.
12 * Contributions after 2012-01-13 are licensed under the terms of the
21 #include "qapi/qapi-commands-char.h"
23 #include "qemu/config-file.h"
26 void hmp_info_chardev(Monitor *mon, const QDict *qdict) in hmp_info_chardev() argument
31 for (info = char_info; info; info = info->next) { in hmp_info_chardev()
32 monitor_printf(mon, "%s: filename=%s\n", info->value->label, in hmp_info_chardev()
33 info->value->filename); in hmp_info_chardev()
39 void hmp_ringbuf_write(Monitor *mon, const QDict *qdict) in hmp_ringbuf_write() argument
45 qmp_ringbuf_write(chardev, data, false, 0, &err); in hmp_ringbuf_write()
47 hmp_handle_error(mon, err); in hmp_ringbuf_write()
50 void hmp_ringbuf_read(Monitor *mon, const QDict *qdict) in hmp_ringbuf_read() argument
58 data = qmp_ringbuf_read(chardev, size, false, 0, &err); in hmp_ringbuf_read()
59 if (hmp_handle_error(mon, err)) { in hmp_ringbuf_read()
63 for (i = 0; data[i]; i++) { in hmp_ringbuf_read()
67 monitor_printf(mon, "\\\\"); in hmp_ringbuf_read()
68 } else if ((ch < 0x20 && ch != '\n' && ch != '\t') || ch == 0x7F) { in hmp_ringbuf_read()
69 monitor_printf(mon, "\\u%04X", ch); in hmp_ringbuf_read()
71 monitor_printf(mon, "%c", ch); in hmp_ringbuf_read()
75 monitor_printf(mon, "\n"); in hmp_ringbuf_read()
79 void hmp_chardev_add(Monitor *mon, const QDict *qdict) in hmp_chardev_add() argument
92 hmp_handle_error(mon, err); in hmp_chardev_add()
95 void hmp_chardev_change(Monitor *mon, const QDict *qdict) in hmp_chardev_change() argument
126 hmp_handle_error(mon, err); in hmp_chardev_change()
129 void hmp_chardev_remove(Monitor *mon, const QDict *qdict) in hmp_chardev_remove() argument
134 hmp_handle_error(mon, local_err); in hmp_chardev_remove()
137 void hmp_chardev_send_break(Monitor *mon, const QDict *qdict) in hmp_chardev_send_break() argument
142 hmp_handle_error(mon, local_err); in hmp_chardev_send_break()
158 const char *chr_name = list->value->name; in chardev_add_completion()
163 list = list->next; in chardev_add_completion()
181 ChardevInfo *chr = list->value; in chardev_remove_completion()
183 if (!strncmp(chr->label, str, len)) { in chardev_remove_completion()
184 readline_add_completion(rs, chr->label); in chardev_remove_completion()
186 list = list->next; in chardev_remove_completion()
201 ChardevInfo *chr_info = list->value; in ringbuf_completion()
203 if (!strncmp(chr_info->label, str, len)) { in ringbuf_completion()
204 Chardev *chr = qemu_chr_find(chr_info->label); in ringbuf_completion()
206 readline_add_completion(rs, chr_info->label); in ringbuf_completion()
209 list = list->next; in ringbuf_completion()