Lines Matching full:port
28 #define TYPE_VIRTIO_SERIAL_PORT "virtio-serial-port"
45 * The per-port (or per-app) realize function that's called when a
50 * Per-port unrealize function that's called when a port gets
57 void (*set_guest_connected)(VirtIOSerialPort *port, int guest_connected);
59 /* Enable/disable backend for virtio serial port */
60 void (*enable_backend)(VirtIOSerialPort *port, bool enable);
63 void (*guest_ready)(VirtIOSerialPort *port);
74 void (*guest_writable)(VirtIOSerialPort *port);
77 * Guest wrote some data to the port. This data is handed over to
79 * 'len'. In this case, throttling will be enabled for this port.
81 ssize_t (*have_data)(VirtIOSerialPort *port, const uint8_t *buf,
164 VirtIOSerialPort *port; member
173 /* Arrays of ivqs and ovqs: one per port */
195 * Open a connection to the port
198 int virtio_serial_open(VirtIOSerialPort *port);
201 * Close the connection to the port
204 int virtio_serial_close(VirtIOSerialPort *port);
209 ssize_t virtio_serial_write(VirtIOSerialPort *port, const uint8_t *buf,
215 size_t virtio_serial_guest_ready(VirtIOSerialPort *port);
222 void virtio_serial_throttle_port(VirtIOSerialPort *port, bool throttle);