Lines Matching refs:gser
784 struct gserial *gser = port->port_usb;
789 if (gser->connect)
790 gser->connect(gser);
817 struct gserial *gser;
837 gser = port->port_usb;
838 if (gser && gser->disconnect)
839 gser->disconnect(gser);
844 if (gs_buf_data_avail(&port->port_write_buf) > 0 && gser) {
850 gser = port->port_usb;
857 if (gser == NULL)
979 struct gserial *gser;
985 gser = port->port_usb;
986 if (gser && gser->send_break)
987 status = gser->send_break(gser, duration);
1196 * @gser: the function, set up with endpoints and descriptors
1215 int gserial_connect(struct gserial *gser, u8 port_num)
1228 status = usb_ep_enable(gser->in, gser->in_desc);
1231 gser->in->driver_data = port;
1233 status = usb_ep_enable(gser->out, gser->out_desc);
1236 gser->out->driver_data = port;
1240 gser->ioport = port;
1241 port->port_usb = gser;
1246 gser->port_line_coding = port->port_line_coding;
1256 if (gser->connect)
1257 gser->connect(gser);
1259 if (gser->disconnect)
1260 gser->disconnect(gser);
1268 usb_ep_disable(gser->in);
1269 gser->in->driver_data = NULL;
1275 * @gser: the function, on which gserial_connect() was called
1284 void gserial_disconnect(struct gserial *gser)
1286 struct gs_port *port = gser->ioport;
1296 port->port_line_coding = gser->port_line_coding;
1299 gser->ioport = NULL;
1308 usb_ep_disable(gser->out);
1309 gser->out->driver_data = NULL;
1311 usb_ep_disable(gser->in);
1312 gser->in->driver_data = NULL;
1318 gs_free_requests(gser->out, &port->read_pool);
1319 gs_free_requests(gser->out, &port->read_queue);
1320 gs_free_requests(gser->in, &port->write_pool);