Home
last modified time | relevance | path

Searched refs:gser (Results 1 – 2 of 2) sorted by relevance

/drivers/usb/gadget/
Df_serial.c151 struct f_gser *gser = func_to_gser(f); in gser_set_alt() local
156 if (gser->port.in->driver_data) { in gser_set_alt()
157 DBG(cdev, "reset generic ttyGS%d\n", gser->port_num); in gser_set_alt()
158 gserial_disconnect(&gser->port); in gser_set_alt()
160 if (!gser->port.in->desc || !gser->port.out->desc) { in gser_set_alt()
161 DBG(cdev, "activate generic ttyGS%d\n", gser->port_num); in gser_set_alt()
162 if (config_ep_by_speed(cdev->gadget, f, gser->port.in) || in gser_set_alt()
163 config_ep_by_speed(cdev->gadget, f, gser->port.out)) { in gser_set_alt()
164 gser->port.in->desc = NULL; in gser_set_alt()
165 gser->port.out->desc = NULL; in gser_set_alt()
[all …]
Du_serial.c803 struct gserial *gser = port->port_usb; in gs_open() local
808 if (gser->connect) in gs_open()
809 gser->connect(gser); in gs_open()
836 struct gserial *gser; in gs_close() local
856 gser = port->port_usb; in gs_close()
857 if (gser && gser->disconnect) in gs_close()
858 gser->disconnect(gser); in gs_close()
863 if (gs_buf_data_avail(&port->port_write_buf) > 0 && gser) { in gs_close()
869 gser = port->port_usb; in gs_close()
876 if (gser == NULL) in gs_close()
[all …]