Lines Matching refs:ud

42 				      port, vdev->ud.status);  in port_show_vhci()
45 port, vdev->ud.status); in port_show_vhci()
47 if (vdev->ud.status == VDEV_ST_USED) { in port_show_vhci()
51 vdev->ud.sockfd, in port_show_vhci()
87 spin_lock(&vdev->ud.lock); in status_show_vhci()
90 spin_unlock(&vdev->ud.lock); in status_show_vhci()
96 spin_lock(&vdev->ud.lock); in status_show_vhci()
99 spin_unlock(&vdev->ud.lock); in status_show_vhci()
188 mutex_lock(&vdev->ud.sysfs_lock); in vhci_port_disconnect()
192 spin_lock(&vdev->ud.lock); in vhci_port_disconnect()
194 if (vdev->ud.status == VDEV_ST_NULL) { in vhci_port_disconnect()
195 pr_err("not connected %d\n", vdev->ud.status); in vhci_port_disconnect()
198 spin_unlock(&vdev->ud.lock); in vhci_port_disconnect()
200 mutex_unlock(&vdev->ud.sysfs_lock); in vhci_port_disconnect()
206 spin_unlock(&vdev->ud.lock); in vhci_port_disconnect()
209 usbip_event_add(&vdev->ud, VDEV_EVENT_DOWN); in vhci_port_disconnect()
211 mutex_unlock(&vdev->ud.sysfs_lock); in vhci_port_disconnect()
357 mutex_lock(&vdev->ud.sysfs_lock); in attach_store()
375 tcp_rx = kthread_create(vhci_rx_loop, &vdev->ud, "vhci_rx"); in attach_store()
381 tcp_tx = kthread_create(vhci_tx_loop, &vdev->ud, "vhci_tx"); in attach_store()
395 spin_lock(&vdev->ud.lock); in attach_store()
397 if (vdev->ud.status != VDEV_ST_NULL) { in attach_store()
399 spin_unlock(&vdev->ud.lock); in attach_store()
422 vdev->ud.sockfd = sockfd; in attach_store()
423 vdev->ud.tcp_socket = socket; in attach_store()
424 vdev->ud.tcp_rx = tcp_rx; in attach_store()
425 vdev->ud.tcp_tx = tcp_tx; in attach_store()
426 vdev->ud.status = VDEV_ST_NOTASSIGNED; in attach_store()
427 usbip_kcov_handle_init(&vdev->ud); in attach_store()
429 spin_unlock(&vdev->ud.lock); in attach_store()
433 wake_up_process(vdev->ud.tcp_rx); in attach_store()
434 wake_up_process(vdev->ud.tcp_tx); in attach_store()
440 mutex_unlock(&vdev->ud.sysfs_lock); in attach_store()
445 mutex_unlock(&vdev->ud.sysfs_lock); in attach_store()