Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/usb/gadget/function/
Df_serial.c148 struct f_gser *gser = func_to_gser(f); in gser_set_alt() local
153 if (gser->port.in->enabled) { in gser_set_alt()
155 "reset generic ttyGS%d\n", gser->port_num); in gser_set_alt()
156 gserial_disconnect(&gser->port); in gser_set_alt()
158 if (!gser->port.in->desc || !gser->port.out->desc) { in gser_set_alt()
160 "activate generic ttyGS%d\n", gser->port_num); in gser_set_alt()
161 if (config_ep_by_speed(cdev->gadget, f, gser->port.in) || in gser_set_alt()
162 config_ep_by_speed(cdev->gadget, f, gser->port.out)) { in gser_set_alt()
163 gser->port.in->desc = NULL; in gser_set_alt()
164 gser->port.out->desc = NULL; in gser_set_alt()
[all …]
Du_serial.c667 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()
[all …]
/Linux-v5.4/Documentation/ABI/testing/
Dconfigfs-usb-gadget-serial1 What: /config/usb-gadget/gadget/functions/gser.name
8 associated with gser function's instance "name".
/Linux-v5.4/Documentation/usb/
Dgadget-testing.rst619 The function name to use when creating the function directory is "gser".