Lines Matching refs:port
251 struct tty_port port;
382 if (hvcsd->port.count > 0) {
528 struct tty_struct *tty = hvcsd->port.tty;
566 tty = hvcsd->port.tty;
579 if (tty_buffer_request_room(&hvcsd->port, HVCS_BUFF_LEN) >= HVCS_BUFF_LEN) {
583 tty_insert_flip_string(&hvcsd->port, buf, got);
593 tty_flip_buffer_push(&hvcsd->port);
666 struct hvcs_struct *hvcsd = container_of(p, struct hvcs_struct, port);
757 tty_port_init(&hvcsd->port);
758 hvcsd->port.ops = &hvcs_port_ops;
811 tty = tty_port_tty_get(&hvcsd->port);
824 tty_port_put(&hvcsd->port);
1048 tty_port_get(&hvcsd->port);
1090 hvcsd->port.count = 0;
1091 hvcsd->port.tty = tty;
1117 retval = tty_port_install(&hvcsd->port, driver, tty);
1128 tty_port_put(&hvcsd->port);
1143 hvcsd->port.count++;
1179 if (hvcsd->port.count == 0) {
1182 } else if (--hvcsd->port.count == 0) {
1191 hvcsd->port.tty = NULL;
1200 } else if (hvcsd->port.count < 0) {
1202 hvcsd->vdev->unit_address, hvcsd->port.count);
1219 tty_port_put(&hvcsd->port);
1238 hvcsd->port.tty = NULL;
1239 hvcsd->port.count = 0;
1294 if (hvcsd->port.count <= 0) {
1369 if (!hvcsd || hvcsd->port.count <= 0)