Lines Matching full: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()
358 mutex_lock(&vdev->ud.sysfs_lock); in attach_store()
376 tcp_rx = kthread_create(vhci_rx_loop, &vdev->ud, "vhci_rx"); in attach_store()
382 tcp_tx = kthread_create(vhci_tx_loop, &vdev->ud, "vhci_tx"); in attach_store()
396 spin_lock(&vdev->ud.lock); in attach_store()
398 if (vdev->ud.status != VDEV_ST_NULL) { in attach_store()
400 spin_unlock(&vdev->ud.lock); in attach_store()
423 vdev->ud.sockfd = sockfd; in attach_store()
424 vdev->ud.tcp_socket = socket; in attach_store()
425 vdev->ud.tcp_rx = tcp_rx; in attach_store()
426 vdev->ud.tcp_tx = tcp_tx; in attach_store()
427 vdev->ud.status = VDEV_ST_NOTASSIGNED; in attach_store()
428 usbip_kcov_handle_init(&vdev->ud); in attach_store()
430 spin_unlock(&vdev->ud.lock); in attach_store()
434 wake_up_process(vdev->ud.tcp_rx); in attach_store()
435 wake_up_process(vdev->ud.tcp_tx); in attach_store()
441 mutex_unlock(&vdev->ud.sysfs_lock); in attach_store()
446 mutex_unlock(&vdev->ud.sysfs_lock); in attach_store()