Lines Matching refs:gser
667 struct gserial *gser = port->port_usb; in gs_open() local
672 if (gser->connect) in gs_open()
673 gser->connect(gser); in gs_open()
700 struct gserial *gser; in gs_close() local
720 gser = port->port_usb; in gs_close()
721 if (gser && gser->disconnect) in gs_close()
722 gser->disconnect(gser); in gs_close()
727 if (kfifo_len(&port->port_write_buf) > 0 && gser) { in gs_close()
733 gser = port->port_usb; in gs_close()
740 if (gser == NULL) in gs_close()
860 struct gserial *gser; in gs_break_ctl() local
866 gser = port->port_usb; in gs_break_ctl()
867 if (gser && gser->send_break) in gs_break_ctl()
868 status = gser->send_break(gser, duration); in gs_break_ctl()
1275 int gserial_connect(struct gserial *gser, u8 port_num) in gserial_connect() argument
1295 status = usb_ep_enable(gser->in); in gserial_connect()
1298 gser->in->driver_data = port; in gserial_connect()
1300 status = usb_ep_enable(gser->out); in gserial_connect()
1303 gser->out->driver_data = port; in gserial_connect()
1307 gser->ioport = port; in gserial_connect()
1308 port->port_usb = gser; in gserial_connect()
1313 gser->port_line_coding = port->port_line_coding; in gserial_connect()
1323 if (gser->connect) in gserial_connect()
1324 gser->connect(gser); in gserial_connect()
1326 if (gser->disconnect) in gserial_connect()
1327 gser->disconnect(gser); in gserial_connect()
1336 usb_ep_disable(gser->in); in gserial_connect()
1351 void gserial_disconnect(struct gserial *gser) in gserial_disconnect() argument
1353 struct gs_port *port = gser->ioport; in gserial_disconnect()
1363 port->port_line_coding = gser->port_line_coding; in gserial_disconnect()
1366 gser->ioport = NULL; in gserial_disconnect()
1375 usb_ep_disable(gser->out); in gserial_disconnect()
1376 usb_ep_disable(gser->in); in gserial_disconnect()
1382 gs_free_requests(gser->out, &port->read_pool, NULL); in gserial_disconnect()
1383 gs_free_requests(gser->out, &port->read_queue, NULL); in gserial_disconnect()
1384 gs_free_requests(gser->in, &port->write_pool, NULL); in gserial_disconnect()
1389 gs_console_disconnect(gser->in); in gserial_disconnect()