Lines Matching full:ud

115 	mutex_lock(&udc->ud.sysfs_lock);  in usbip_sockfd_store()
131 spin_lock(&udc->ud.lock); in usbip_sockfd_store()
133 if (udc->ud.status != SDEV_ST_AVAILABLE) { in usbip_sockfd_store()
153 spin_unlock(&udc->ud.lock); in usbip_sockfd_store()
156 tcp_rx = kthread_create(&v_rx_loop, &udc->ud, "vudc_rx"); in usbip_sockfd_store()
159 mutex_unlock(&udc->ud.sysfs_lock); in usbip_sockfd_store()
162 tcp_tx = kthread_create(&v_tx_loop, &udc->ud, "vudc_tx"); in usbip_sockfd_store()
166 mutex_unlock(&udc->ud.sysfs_lock); in usbip_sockfd_store()
174 /* lock and update udc->ud state */ in usbip_sockfd_store()
176 spin_lock(&udc->ud.lock); in usbip_sockfd_store()
178 udc->ud.tcp_socket = socket; in usbip_sockfd_store()
179 udc->ud.tcp_rx = tcp_rx; in usbip_sockfd_store()
180 udc->ud.tcp_tx = tcp_tx; in usbip_sockfd_store()
181 udc->ud.status = SDEV_ST_USED; in usbip_sockfd_store()
183 spin_unlock(&udc->ud.lock); in usbip_sockfd_store()
191 wake_up_process(udc->ud.tcp_rx); in usbip_sockfd_store()
192 wake_up_process(udc->ud.tcp_tx); in usbip_sockfd_store()
194 mutex_unlock(&udc->ud.sysfs_lock); in usbip_sockfd_store()
204 spin_lock(&udc->ud.lock); in usbip_sockfd_store()
205 if (udc->ud.status != SDEV_ST_USED) { in usbip_sockfd_store()
209 spin_unlock(&udc->ud.lock); in usbip_sockfd_store()
211 usbip_event_add(&udc->ud, VUDC_EVENT_DOWN); in usbip_sockfd_store()
215 mutex_unlock(&udc->ud.sysfs_lock); in usbip_sockfd_store()
222 spin_unlock(&udc->ud.lock); in usbip_sockfd_store()
225 mutex_unlock(&udc->ud.sysfs_lock); in usbip_sockfd_store()
241 spin_lock_irq(&udc->ud.lock); in usbip_status_show()
242 status = udc->ud.status; in usbip_status_show()
243 spin_unlock_irq(&udc->ud.lock); in usbip_status_show()