Home | History | Annotate | Download | only in qemu

Lines Matching refs:chr

150     CharDriverState *chr;
1080 static int console_puts(CharDriverState *chr, const uint8_t *buf, int len)
1082 TextConsole *s = chr->opaque;
1102 static void console_send_event(CharDriverState *chr, int event)
1104 TextConsole *s = chr->opaque;
1123 len = qemu_chr_can_read(s->chr);
1130 qemu_chr_read(s->chr, buf, len);
1181 if (s->chr->chr_read) {
1322 static void text_console_do_init(CharDriverState *chr, DisplayState *ds, const char *p)
1331 free(chr);
1334 chr->opaque = s;
1335 chr->chr_write = console_puts;
1336 chr->chr_send_event = console_send_event;
1338 s->chr = chr;
1389 qemu_chr_reset(chr);
1390 if (chr->init)
1391 chr->init(chr);
1396 CharDriverState *chr;
1398 chr = qemu_mallocz(sizeof(CharDriverState));
1404 text_consoles[n_text_consoles] = chr;
1408 return chr;