Home
last modified time | relevance | path

Searched refs:host_connected (Results 1 – 4 of 4) sorted by relevance

/openbmc/qemu/hw/char/
H A Dvirtio-serial-bus.c87 if (vsc->is_console && port->host_connected) { in find_first_connected_console()
267 if (port->host_connected) { in virtio_serial_open()
271 port->host_connected = true; in virtio_serial_open()
279 port->host_connected = false; in virtio_serial_close()
297 if (!port || !port->host_connected || !port->guest_connected) { in virtio_serial_write()
429 if (port->host_connected) { in handle_control_message()
507 if (!port || !port->host_connected) { in handle_output()
548 if (port->guest_connected && port->host_connected && vsc->guest_writable) { in handle_input()
700 qemu_put_byte(f, port->host_connected); in virtio_serial_save_device()
720 uint8_t host_connected; in virtio_serial_post_load_timer_cb() local
[all …]
/openbmc/qemu/include/hw/virtio/
H A Dvirtio-serial.h144 bool host_connected; member
165 uint8_t host_connected; member
/openbmc/linux/drivers/char/
H A Dvirtio_console.c227 bool host_connected; member
705 return !port_has_data(port) && port->host_connected; in will_read_block()
716 if (!port->host_connected) in will_write_block()
749 if (!port->host_connected) in port_fops_read()
772 if (!port_has_data(port) && !port->host_connected) in port_fops_read()
980 if (!port->host_connected) in port_fops_poll()
1300 seq_printf(s, "host_connected: %d\n", port->host_connected); in port_debugfs_show()
1380 port->host_connected = port->guest_connected = false; in add_port()
1434 port->host_connected = true; in add_port()
1520 port->host_connected = false; in unplug_port()
[all …]
/openbmc/linux/drivers/extcon/
H A Dextcon-usbc-cros-ec.c301 bool host_connected = false, device_connected = false; in extcon_cros_ec_detect_cable() local
315 host_connected = true; in extcon_cros_ec_detect_cable()
318 extcon_set_state(info->edev, EXTCON_USB_HOST, host_connected); in extcon_cros_ec_detect_cable()