serial_priv       985 drivers/usb/serial/digi_acceleport.c 	struct digi_serial *serial_priv;
serial_priv       997 drivers/usb/serial/digi_acceleport.c 	if (serial == NULL || (serial_priv = usb_get_serial_data(serial)) == NULL) {
serial_priv      1005 drivers/usb/serial/digi_acceleport.c 	if (priv->dp_port_num == serial_priv->ds_oob_port_num) {
serial_priv      1202 drivers/usb/serial/digi_acceleport.c 	struct digi_serial *serial_priv = usb_get_serial_data(serial);
serial_priv      1206 drivers/usb/serial/digi_acceleport.c 	spin_lock(&serial_priv->ds_serial_lock);
serial_priv      1207 drivers/usb/serial/digi_acceleport.c 	if (serial_priv->ds_device_started) {
serial_priv      1208 drivers/usb/serial/digi_acceleport.c 		spin_unlock(&serial_priv->ds_serial_lock);
serial_priv      1211 drivers/usb/serial/digi_acceleport.c 	serial_priv->ds_device_started = 1;
serial_priv      1212 drivers/usb/serial/digi_acceleport.c 	spin_unlock(&serial_priv->ds_serial_lock);
serial_priv      1254 drivers/usb/serial/digi_acceleport.c 	struct digi_serial *serial_priv;
serial_priv      1257 drivers/usb/serial/digi_acceleport.c 	serial_priv = kzalloc(sizeof(*serial_priv), GFP_KERNEL);
serial_priv      1258 drivers/usb/serial/digi_acceleport.c 	if (!serial_priv)
serial_priv      1261 drivers/usb/serial/digi_acceleport.c 	spin_lock_init(&serial_priv->ds_serial_lock);
serial_priv      1262 drivers/usb/serial/digi_acceleport.c 	serial_priv->ds_oob_port_num = serial->type->num_ports;
serial_priv      1263 drivers/usb/serial/digi_acceleport.c 	serial_priv->ds_oob_port = serial->port[serial_priv->ds_oob_port_num];
serial_priv      1265 drivers/usb/serial/digi_acceleport.c 	ret = digi_port_init(serial_priv->ds_oob_port,
serial_priv      1266 drivers/usb/serial/digi_acceleport.c 						serial_priv->ds_oob_port_num);
serial_priv      1268 drivers/usb/serial/digi_acceleport.c 		kfree(serial_priv);
serial_priv      1272 drivers/usb/serial/digi_acceleport.c 	usb_set_serial_data(serial, serial_priv);
serial_priv      1292 drivers/usb/serial/digi_acceleport.c 	struct digi_serial *serial_priv;
serial_priv      1295 drivers/usb/serial/digi_acceleport.c 	serial_priv = usb_get_serial_data(serial);
serial_priv      1297 drivers/usb/serial/digi_acceleport.c 	priv = usb_get_serial_port_data(serial_priv->ds_oob_port);
serial_priv      1300 drivers/usb/serial/digi_acceleport.c 	kfree(serial_priv);
serial_priv      1322 drivers/usb/serial/digi_acceleport.c 	struct digi_serial *serial_priv;
serial_priv      1336 drivers/usb/serial/digi_acceleport.c 		(serial_priv = usb_get_serial_data(port->serial)) == NULL) {
serial_priv      1351 drivers/usb/serial/digi_acceleport.c 	if (priv->dp_port_num == serial_priv->ds_oob_port_num) {
serial_priv       196 drivers/usb/serial/f81534.c 	struct f81534_serial_private *serial_priv =
serial_priv       202 drivers/usb/serial/f81534.c 		if (serial_priv->conf_data[i] & F81534_PORT_UNAVAILABLE)
serial_priv       838 drivers/usb/serial/f81534.c 	struct f81534_serial_private *serial_priv;
serial_priv       853 drivers/usb/serial/f81534.c 	serial_priv = devm_kzalloc(&serial->interface->dev,
serial_priv       854 drivers/usb/serial/f81534.c 					sizeof(*serial_priv), GFP_KERNEL);
serial_priv       855 drivers/usb/serial/f81534.c 	if (!serial_priv)
serial_priv       858 drivers/usb/serial/f81534.c 	usb_set_serial_data(serial, serial_priv);
serial_priv       859 drivers/usb/serial/f81534.c 	mutex_init(&serial_priv->urb_mutex);
serial_priv       862 drivers/usb/serial/f81534.c 	status = f81534_find_config_idx(serial, &serial_priv->setting_idx);
serial_priv       873 drivers/usb/serial/f81534.c 	if (serial_priv->setting_idx != F81534_CUSTOM_NO_CUSTOM_DATA) {
serial_priv       877 drivers/usb/serial/f81534.c 						sizeof(serial_priv->conf_data),
serial_priv       878 drivers/usb/serial/f81534.c 						serial_priv->conf_data);
serial_priv       888 drivers/usb/serial/f81534.c 				serial_priv->setting_idx);
serial_priv       893 drivers/usb/serial/f81534.c 				sizeof(serial_priv->conf_data),
serial_priv       894 drivers/usb/serial/f81534.c 				serial_priv->conf_data);
serial_priv       909 drivers/usb/serial/f81534.c 			serial_priv->conf_data[i] |= F81534_PORT_UNAVAILABLE;
serial_priv       911 drivers/usb/serial/f81534.c 		if (serial_priv->conf_data[i] & F81534_PORT_UNAVAILABLE)
serial_priv       925 drivers/usb/serial/f81534.c 		if (serial_priv->conf_data[i] & F81534_PORT_UNAVAILABLE)
serial_priv       928 drivers/usb/serial/f81534.c 		serial_priv->tty_idx[i] = index++;
serial_priv       931 drivers/usb/serial/f81534.c 				serial_priv->tty_idx[i]);
serial_priv      1080 drivers/usb/serial/f81534.c 	struct f81534_serial_private *serial_priv =
serial_priv      1101 drivers/usb/serial/f81534.c 	mutex_lock(&serial_priv->urb_mutex);
serial_priv      1104 drivers/usb/serial/f81534.c 	if (!serial_priv->opened_port) {
serial_priv      1110 drivers/usb/serial/f81534.c 	serial_priv->opened_port++;
serial_priv      1113 drivers/usb/serial/f81534.c 	mutex_unlock(&serial_priv->urb_mutex);
serial_priv      1121 drivers/usb/serial/f81534.c 	struct f81534_serial_private *serial_priv =
serial_priv      1134 drivers/usb/serial/f81534.c 	mutex_lock(&serial_priv->urb_mutex);
serial_priv      1135 drivers/usb/serial/f81534.c 	serial_priv->opened_port--;
serial_priv      1137 drivers/usb/serial/f81534.c 	if (!serial_priv->opened_port) {
serial_priv      1142 drivers/usb/serial/f81534.c 	mutex_unlock(&serial_priv->urb_mutex);
serial_priv      1254 drivers/usb/serial/f81534.c 	struct f81534_serial_private *serial_priv;
serial_priv      1270 drivers/usb/serial/f81534.c 	serial_priv = usb_get_serial_data(serial);
serial_priv      1281 drivers/usb/serial/f81534.c 		tty_port_num = serial_priv->tty_idx[phy_port_num];
serial_priv      1330 drivers/usb/serial/f81534.c 	struct f81534_serial_private *serial_priv;
serial_priv      1340 drivers/usb/serial/f81534.c 	serial_priv = usb_get_serial_data(serial);
serial_priv      1344 drivers/usb/serial/f81534.c 	value = serial_priv->conf_data[idx];
serial_priv      1351 drivers/usb/serial/f81534.c 		value = serial_priv->conf_data[idx];
serial_priv      1372 drivers/usb/serial/f81534.c 	struct f81534_serial_private *serial_priv;
serial_priv      1377 drivers/usb/serial/f81534.c 	serial_priv = usb_get_serial_data(port->serial);
serial_priv      1414 drivers/usb/serial/f81534.c 	value = serial_priv->conf_data[port_priv->phy_num];
serial_priv      1516 drivers/usb/serial/f81534.c 	struct f81534_serial_private *serial_priv =
serial_priv      1527 drivers/usb/serial/f81534.c 	mutex_lock(&serial_priv->urb_mutex);
serial_priv      1529 drivers/usb/serial/f81534.c 	if (serial_priv->opened_port) {
serial_priv      1532 drivers/usb/serial/f81534.c 			mutex_unlock(&serial_priv->urb_mutex);
serial_priv      1537 drivers/usb/serial/f81534.c 	mutex_unlock(&serial_priv->urb_mutex);
serial_priv       136 drivers/usb/serial/quatech2.c 	struct qt2_serial_private *serial_priv;
serial_priv       138 drivers/usb/serial/quatech2.c 	serial_priv = usb_get_serial_data(serial);
serial_priv       140 drivers/usb/serial/quatech2.c 	usb_kill_urb(serial_priv->read_urb);
serial_priv       141 drivers/usb/serial/quatech2.c 	usb_free_urb(serial_priv->read_urb);
serial_priv       142 drivers/usb/serial/quatech2.c 	kfree(serial_priv->read_buffer);
serial_priv       143 drivers/usb/serial/quatech2.c 	kfree(serial_priv);
serial_priv       451 drivers/usb/serial/quatech2.c 	struct qt2_serial_private *serial_priv = usb_get_serial_data(serial);
serial_priv       453 drivers/usb/serial/quatech2.c 	usb_kill_urb(serial_priv->read_urb);
serial_priv       501 drivers/usb/serial/quatech2.c 	struct qt2_serial_private *serial_priv;
serial_priv       514 drivers/usb/serial/quatech2.c 	serial_priv = usb_get_serial_data(serial);
serial_priv       515 drivers/usb/serial/quatech2.c 	port = serial->port[serial_priv->current_port];
serial_priv       565 drivers/usb/serial/quatech2.c 				serial_priv->current_port = newport;
serial_priv       566 drivers/usb/serial/quatech2.c 				port = serial->port[serial_priv->current_port];
serial_priv       639 drivers/usb/serial/quatech2.c 	struct qt2_serial_private *serial_priv;
serial_priv       644 drivers/usb/serial/quatech2.c 	serial_priv = usb_get_serial_data(serial);
serial_priv       645 drivers/usb/serial/quatech2.c 	serial_priv->read_urb = usb_alloc_urb(0, GFP_KERNEL);
serial_priv       646 drivers/usb/serial/quatech2.c 	if (!serial_priv->read_urb)
serial_priv       649 drivers/usb/serial/quatech2.c 	usb_fill_bulk_urb(serial_priv->read_urb, serial->dev,
serial_priv       652 drivers/usb/serial/quatech2.c 			  serial_priv->read_buffer,
serial_priv       656 drivers/usb/serial/quatech2.c 	status = usb_submit_urb(serial_priv->read_urb, GFP_KERNEL);
serial_priv       660 drivers/usb/serial/quatech2.c 		usb_free_urb(serial_priv->read_urb);
serial_priv       669 drivers/usb/serial/quatech2.c 	struct qt2_serial_private *serial_priv;
serial_priv       682 drivers/usb/serial/quatech2.c 	serial_priv = kzalloc(sizeof(*serial_priv), GFP_KERNEL);
serial_priv       683 drivers/usb/serial/quatech2.c 	if (!serial_priv)
serial_priv       686 drivers/usb/serial/quatech2.c 	serial_priv->read_buffer = kmalloc(QT2_READ_BUFFER_SIZE, GFP_KERNEL);
serial_priv       687 drivers/usb/serial/quatech2.c 	if (!serial_priv->read_buffer) {
serial_priv       692 drivers/usb/serial/quatech2.c 	usb_set_serial_data(serial, serial_priv);
serial_priv       701 drivers/usb/serial/quatech2.c 	kfree(serial_priv->read_buffer);
serial_priv       703 drivers/usb/serial/quatech2.c 	kfree(serial_priv);