• Home
  • Raw
  • Download

Lines Matching refs:chr

184     CharDriverState *chr;  member
1125 static int console_puts(CharDriverState *chr, const uint8_t *buf, int len) in console_puts() argument
1127 TextConsole *s = chr->opaque; in console_puts()
1147 static void console_send_event(CharDriverState *chr, int event) in console_send_event() argument
1149 TextConsole *s = chr->opaque; in console_send_event()
1168 len = qemu_chr_can_read(s->chr); in kbd_send_chars()
1175 qemu_chr_read(s->chr, buf, len); in kbd_send_chars()
1224 console_puts(s->chr, (const uint8_t *) "\r", 1); in kbd_put_keysym()
1230 console_puts(s->chr, buf, q - buf); in kbd_put_keysym()
1232 if (s->chr->chr_read) { in kbd_put_keysym()
1489 static void text_console_set_echo(CharDriverState *chr, bool echo) in text_console_set_echo() argument
1491 TextConsole *s = chr->opaque; in text_console_set_echo()
1496 static void text_console_do_init(CharDriverState *chr, DisplayState *ds) in text_console_do_init() argument
1501 s = chr->opaque; in text_console_do_init()
1503 chr->chr_write = console_puts; in text_console_do_init()
1504 chr->chr_send_event = console_send_event; in text_console_do_init()
1541 if (chr->label) { in text_console_do_init()
1546 len = snprintf(msg, sizeof(msg), "%s console\r\n", chr->label); in text_console_do_init()
1547 console_puts(chr, (uint8_t*)msg, len); in text_console_do_init()
1551 qemu_chr_generic_open(chr); in text_console_do_init()
1552 if (chr->init) in text_console_do_init()
1553 chr->init(chr); in text_console_do_init()
1558 CharDriverState *chr; in text_console_init() local
1563 chr = qemu_mallocz(sizeof(CharDriverState)); in text_console_init()
1569 text_consoles[n_text_consoles] = chr; in text_console_init()
1587 free(chr); in text_console_init()
1591 s->chr = chr; in text_console_init()
1594 chr->opaque = s; in text_console_init()
1595 chr->chr_set_echo = text_console_set_echo; in text_console_init()
1596 return chr; in text_console_init()