Lines Matching defs:chr
291 CharDriverState *chr;
381 qemu_chr_write(s->chr, buf, len);
2364 static int gdb_monitor_write(CharDriverState *chr, const uint8_t *buf, int len)
2394 CharDriverState *chr = NULL;
2415 chr = qemu_chr_open("gdb", device, NULL);
2416 if (!chr)
2419 qemu_chr_add_handlers(chr, gdb_chr_can_receive, gdb_chr_receive,
2435 if (s->chr)
2436 qemu_chr_close(s->chr);
2442 s->chr = chr;
2443 s->state = chr ? RS_IDLE : RS_INACTIVE;