Searched refs:serial_priv (Results 1 - 2 of 2) sorted by relevance
/linux-4.1.27/drivers/usb/serial/ |
H A D | quatech2.c | 140 struct qt2_serial_private *serial_priv; qt2_release() local 142 serial_priv = usb_get_serial_data(serial); qt2_release() 144 usb_kill_urb(serial_priv->read_urb); qt2_release() 145 usb_free_urb(serial_priv->read_urb); qt2_release() 146 kfree(serial_priv->read_buffer); qt2_release() 147 kfree(serial_priv); qt2_release() 456 struct qt2_serial_private *serial_priv = usb_get_serial_data(serial); qt2_disconnect() local 458 usb_kill_urb(serial_priv->read_urb); qt2_disconnect() 530 struct qt2_serial_private *serial_priv; qt2_process_read_urb() local 544 serial_priv = usb_get_serial_data(serial); qt2_process_read_urb() 545 port = serial->port[serial_priv->current_port]; qt2_process_read_urb() 596 serial_priv->current_port = newport; qt2_process_read_urb() 597 port = serial->port[serial_priv->current_port]; qt2_process_read_urb() 672 struct qt2_serial_private *serial_priv; qt2_setup_urbs() local 677 serial_priv = usb_get_serial_data(serial); qt2_setup_urbs() 678 serial_priv->read_urb = usb_alloc_urb(0, GFP_KERNEL); qt2_setup_urbs() 679 if (!serial_priv->read_urb) qt2_setup_urbs() 682 usb_fill_bulk_urb(serial_priv->read_urb, serial->dev, qt2_setup_urbs() 685 serial_priv->read_buffer, qt2_setup_urbs() 689 status = usb_submit_urb(serial_priv->read_urb, GFP_KERNEL); qt2_setup_urbs() 693 usb_free_urb(serial_priv->read_urb); qt2_setup_urbs() 702 struct qt2_serial_private *serial_priv; qt2_attach() local 715 serial_priv = kzalloc(sizeof(*serial_priv), GFP_KERNEL); qt2_attach() 716 if (!serial_priv) qt2_attach() 719 serial_priv->read_buffer = kmalloc(QT2_READ_BUFFER_SIZE, GFP_KERNEL); qt2_attach() 720 if (!serial_priv->read_buffer) { qt2_attach() 725 usb_set_serial_data(serial, serial_priv); qt2_attach() 734 kfree(serial_priv->read_buffer); qt2_attach() 736 kfree(serial_priv); qt2_attach()
|
H A D | digi_acceleport.c | 986 struct digi_serial *serial_priv; digi_write_bulk_callback() local 997 if (serial == NULL || (serial_priv = usb_get_serial_data(serial)) == NULL) { digi_write_bulk_callback() 1005 if (priv->dp_port_num == serial_priv->ds_oob_port_num) { digi_write_bulk_callback() 1202 struct digi_serial *serial_priv = usb_get_serial_data(serial); digi_startup_device() local 1206 spin_lock(&serial_priv->ds_serial_lock); digi_startup_device() 1207 if (serial_priv->ds_device_started) { digi_startup_device() 1208 spin_unlock(&serial_priv->ds_serial_lock); digi_startup_device() 1211 serial_priv->ds_device_started = 1; digi_startup_device() 1212 spin_unlock(&serial_priv->ds_serial_lock); digi_startup_device() 1255 struct digi_serial *serial_priv; digi_startup() local 1276 serial_priv = kzalloc(sizeof(*serial_priv), GFP_KERNEL); digi_startup() 1277 if (!serial_priv) digi_startup() 1280 spin_lock_init(&serial_priv->ds_serial_lock); digi_startup() 1281 serial_priv->ds_oob_port_num = serial->type->num_ports; digi_startup() 1282 serial_priv->ds_oob_port = serial->port[serial_priv->ds_oob_port_num]; digi_startup() 1284 ret = digi_port_init(serial_priv->ds_oob_port, digi_startup() 1285 serial_priv->ds_oob_port_num); digi_startup() 1287 kfree(serial_priv); digi_startup() 1291 usb_set_serial_data(serial, serial_priv); digi_startup() 1311 struct digi_serial *serial_priv; digi_release() local 1314 serial_priv = usb_get_serial_data(serial); digi_release() 1316 priv = usb_get_serial_port_data(serial_priv->ds_oob_port); digi_release() 1319 kfree(serial_priv); digi_release() 1341 struct digi_serial *serial_priv; digi_read_bulk_callback() local 1355 (serial_priv = usb_get_serial_data(port->serial)) == NULL) { digi_read_bulk_callback() 1370 if (priv->dp_port_num == serial_priv->ds_oob_port_num) { digi_read_bulk_callback()
|
Completed in 71 milliseconds