Searched refs:gser (Results 1 - 3 of 3) sorted by relevance
/linux-4.1.27/drivers/usb/gadget/function/ |
H A D | f_serial.c | 152 struct f_gser *gser = func_to_gser(f); gser_set_alt() local 157 if (gser->port.in->driver_data) { gser_set_alt() 159 "reset generic ttyGS%d\n", gser->port_num); gser_set_alt() 160 gserial_disconnect(&gser->port); gser_set_alt() 162 if (!gser->port.in->desc || !gser->port.out->desc) { gser_set_alt() 164 "activate generic ttyGS%d\n", gser->port_num); gser_set_alt() 165 if (config_ep_by_speed(cdev->gadget, f, gser->port.in) || gser_set_alt() 166 config_ep_by_speed(cdev->gadget, f, gser->port.out)) { gser_set_alt() 167 gser->port.in->desc = NULL; gser_set_alt() 168 gser->port.out->desc = NULL; gser_set_alt() 172 gserial_connect(&gser->port, gser->port_num); gser_set_alt() 178 struct f_gser *gser = func_to_gser(f); gser_disable() local 182 "generic ttyGS%d deactivated\n", gser->port_num); gser_disable() 183 gserial_disconnect(&gser->port); gser_disable() 193 struct f_gser *gser = func_to_gser(f); gser_bind() local 213 gser->data_id = status; gser_bind() 222 gser->port.in = ep; gser_bind() 228 gser->port.out = ep; gser_bind() 246 gser->port_num, gser_bind() 249 gser->port.in->name, gser->port.out->name); gser_bind() 254 if (gser->port.out) gser_bind() 255 gser->port.out->driver_data = NULL; gser_bind() 256 if (gser->port.in) gser_bind() 257 gser->port.in->driver_data = NULL; gser_bind() 362 struct f_gser *gser; gser_alloc() local 366 gser = kzalloc(sizeof(*gser), GFP_KERNEL); gser_alloc() 367 if (!gser) gser_alloc() 372 gser->port_num = opts->port_num; gser_alloc() 374 gser->port.func.name = "gser"; gser_alloc() 375 gser->port.func.strings = gser_strings; gser_alloc() 376 gser->port.func.bind = gser_bind; gser_alloc() 377 gser->port.func.unbind = gser_unbind; gser_alloc() 378 gser->port.func.set_alt = gser_set_alt; gser_alloc() 379 gser->port.func.disable = gser_disable; gser_alloc() 380 gser->port.func.free_func = gser_free; gser_alloc() 382 return &gser->port.func; gser_alloc() 385 DECLARE_USB_FUNCTION_INIT(gser, gser_alloc_inst, gser_alloc);
|
H A D | u_serial.c | 801 struct gserial *gser = port->port_usb; gs_open() local 806 if (gser->connect) gs_open() 807 gser->connect(gser); gs_open() 834 struct gserial *gser; gs_close() local 854 gser = port->port_usb; gs_close() 855 if (gser && gser->disconnect) gs_close() 856 gser->disconnect(gser); gs_close() 861 if (gs_buf_data_avail(&port->port_write_buf) > 0 && gser) { gs_close() 867 gser = port->port_usb; gs_close() 874 if (gser == NULL) gs_close() 996 struct gserial *gser; gs_break_ctl() local 1002 gser = port->port_usb; gs_break_ctl() 1003 if (gser && gser->send_break) gs_break_ctl() 1004 status = gser->send_break(gser, duration); gs_break_ctl() 1147 * @gser: the function, set up with endpoints and descriptors 1166 int gserial_connect(struct gserial *gser, u8 port_num) gserial_connect() argument 1186 status = usb_ep_enable(gser->in); gserial_connect() 1189 gser->in->driver_data = port; gserial_connect() 1191 status = usb_ep_enable(gser->out); gserial_connect() 1194 gser->out->driver_data = port; gserial_connect() 1198 gser->ioport = port; gserial_connect() 1199 port->port_usb = gser; gserial_connect() 1204 gser->port_line_coding = port->port_line_coding; gserial_connect() 1214 if (gser->connect) gserial_connect() 1215 gser->connect(gser); gserial_connect() 1217 if (gser->disconnect) gserial_connect() 1218 gser->disconnect(gser); gserial_connect() 1226 usb_ep_disable(gser->in); gserial_connect() 1227 gser->in->driver_data = NULL; gserial_connect() 1233 * @gser: the function, on which gserial_connect() was called 1242 void gserial_disconnect(struct gserial *gser) gserial_disconnect() argument 1244 struct gs_port *port = gser->ioport; gserial_disconnect() 1254 port->port_line_coding = gser->port_line_coding; gserial_disconnect() 1257 gser->ioport = NULL; gserial_disconnect() 1266 usb_ep_disable(gser->out); gserial_disconnect() 1267 gser->out->driver_data = NULL; gserial_disconnect() 1269 usb_ep_disable(gser->in); gserial_disconnect() 1270 gser->in->driver_data = NULL; gserial_disconnect() 1276 gs_free_requests(gser->out, &port->read_pool, NULL); gserial_disconnect() 1277 gs_free_requests(gser->out, &port->read_queue, NULL); gserial_disconnect() 1278 gs_free_requests(gser->in, &port->write_pool, NULL); gserial_disconnect()
|
/linux-4.1.27/drivers/usb/gadget/legacy/ |
H A D | serial.c | 208 "gser"); gs_bind()
|
Completed in 149 milliseconds