Lines Matching full:ud
290 struct usbip_device *ud = &sdev->ud; in valid_request() local
294 spin_lock_irq(&ud->lock); in valid_request()
295 if (ud->status == SDEV_ST_USED) { in valid_request()
299 spin_unlock_irq(&ud->lock); in valid_request()
309 struct usbip_device *ud = &sdev->ud; in stub_priv_alloc() local
318 usbip_event_add(ud, SDEV_EVENT_ERROR_MALLOC); in stub_priv_alloc()
450 static int stub_recv_xbuff(struct usbip_device *ud, struct stub_priv *priv) in stub_recv_xbuff() argument
456 ret = usbip_recv_xbuff(ud, priv->urbs[i]); in stub_recv_xbuff()
468 struct usbip_device *ud = &sdev->ud; in stub_recv_cmd_submit() local
565 usbip_event_add(ud, SDEV_EVENT_ERROR_MALLOC); in stub_recv_cmd_submit()
602 if (stub_recv_xbuff(ud, priv) < 0) in stub_recv_cmd_submit()
605 if (usbip_recv_iso(ud, priv->urbs[0]) < 0) in stub_recv_cmd_submit()
625 usbip_event_add(ud, SDEV_EVENT_ERROR_SUBMIT); in stub_recv_cmd_submit()
648 usbip_event_add(ud, SDEV_EVENT_ERROR_MALLOC); in stub_recv_cmd_submit()
652 static void stub_rx_pdu(struct usbip_device *ud) in stub_rx_pdu() argument
656 struct stub_device *sdev = container_of(ud, struct stub_device, ud); in stub_rx_pdu()
664 ret = usbip_recv(ud->tcp_socket, &pdu, sizeof(pdu)); in stub_rx_pdu()
667 usbip_event_add(ud, SDEV_EVENT_ERROR_TCP); in stub_rx_pdu()
678 usbip_event_add(ud, SDEV_EVENT_ERROR_TCP); in stub_rx_pdu()
694 usbip_event_add(ud, SDEV_EVENT_ERROR_TCP); in stub_rx_pdu()
701 struct usbip_device *ud = data; in stub_rx_loop() local
704 if (usbip_event_happened(ud)) in stub_rx_loop()
707 stub_rx_pdu(ud); in stub_rx_loop()