Home
last modified time | relevance | path

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

/linux/drivers/usb/gadget/function/
H A 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 …]
H A Du_serial.c647 struct gserial *gser = port->port_usb; in gs_open() local
652 if (gser->connect) in gs_open()
653 gser->connect(gser); in gs_open()
685 struct gserial *gser; in gs_close() local
700 gser = port->port_usb; in gs_close()
701 if (gser && !port->suspended && gser->disconnect) in gs_close()
702 gser->disconnect(gser); in gs_close()
707 if (kfifo_len(&port->port_write_buf) > 0 && gser) { in gs_close()
717 gser = port->port_usb; in gs_close()
724 if (gser == NULL) in gs_close()
[all …]
/linux/Documentation/ABI/testing/
H A Dconfigfs-usb-gadget-serial1 What: /config/usb-gadget/gadget/functions/gser.name
8 associated with gser function's instance "name".
/linux/Documentation/usb/
H A Dgadget-testing.rst636 The function name to use when creating the function directory is "gser".