Lines Matching refs:port_id
249 static size_t send_control_event(VirtIOSerial *vser, uint32_t port_id, in send_control_event() argument
255 virtio_stl_p(vdev, &cpkt.id, port_id); in send_control_event()
259 trace_virtio_serial_send_control_event(port_id, event, value); in send_control_event()
886 static void mark_port_added(VirtIOSerial *vser, uint32_t port_id) in mark_port_added() argument
890 i = port_id / 32; in mark_port_added()
891 vser->ports_map[i] |= 1U << (port_id % 32); in mark_port_added()
894 static void add_port(VirtIOSerial *vser, uint32_t port_id) in add_port() argument
896 mark_port_added(vser, port_id); in add_port()
897 send_control_event(vser, port_id, VIRTIO_CONSOLE_PORT_ADD, 1); in add_port()
900 static void remove_port(VirtIOSerial *vser, uint32_t port_id) in remove_port() argument
909 if (port_id) { in remove_port()
912 i = port_id / 32; in remove_port()
913 vser->ports_map[i] &= ~(1U << (port_id % 32)); in remove_port()
916 port = find_port_by_id(vser, port_id); in remove_port()