Lines Matching refs:k
67 VirtIOSerialPortClass *k = VIRTIO_SERIAL_PORT_GET_CLASS(port); in flush_buf() local
98 if (!k->is_console) { in flush_buf()
115 VirtIOSerialPortClass *k = VIRTIO_SERIAL_PORT_GET_CLASS(port); in set_guest_connected() local
117 if (!k->is_console) { in set_guest_connected()
180 VirtIOSerialPortClass *k = VIRTIO_SERIAL_PORT_GET_CLASS(port); in chr_be_change() local
182 if (k->is_console) { in chr_be_change()
209 VirtIOSerialPortClass *k = VIRTIO_SERIAL_PORT_GET_CLASS(port); in virtconsole_enable_backend() local
212 k->is_console ? NULL : chr_event, in virtconsole_enable_backend()
224 VirtIOSerialPortClass *k = VIRTIO_SERIAL_PORT_GET_CLASS(dev); in virtconsole_realize() local
226 if (port->id == 0 && !k->is_console) { in virtconsole_realize()
242 if (k->is_console) { in virtconsole_realize()
266 VirtIOSerialPortClass *k = VIRTIO_SERIAL_PORT_CLASS(klass); in virtconsole_class_init() local
268 k->is_console = true; in virtconsole_class_init()
285 VirtIOSerialPortClass *k = VIRTIO_SERIAL_PORT_CLASS(klass); in virtserialport_class_init() local
287 k->realize = virtconsole_realize; in virtserialport_class_init()
288 k->unrealize = virtconsole_unrealize; in virtserialport_class_init()
289 k->have_data = flush_buf; in virtserialport_class_init()
290 k->set_guest_connected = set_guest_connected; in virtserialport_class_init()
291 k->enable_backend = virtconsole_enable_backend; in virtserialport_class_init()
292 k->guest_writable = guest_writable; in virtserialport_class_init()