Lines Matching full:ud

279 	struct usbip_device *ud = &sdev->ud;  in valid_request()  local
283 spin_lock_irq(&ud->lock); in valid_request()
284 if (ud->status == SDEV_ST_USED) { in valid_request()
288 spin_unlock_irq(&ud->lock); in valid_request()
298 struct usbip_device *ud = &sdev->ud; in stub_priv_alloc() local
307 usbip_event_add(ud, SDEV_EVENT_ERROR_MALLOC); in stub_priv_alloc()
439 static int stub_recv_xbuff(struct usbip_device *ud, struct stub_priv *priv) in stub_recv_xbuff() argument
445 ret = usbip_recv_xbuff(ud, priv->urbs[i]); in stub_recv_xbuff()
457 struct usbip_device *ud = &sdev->ud; in stub_recv_cmd_submit() local
553 usbip_event_add(ud, SDEV_EVENT_ERROR_MALLOC); in stub_recv_cmd_submit()
587 if (stub_recv_xbuff(ud, priv) < 0) in stub_recv_cmd_submit()
590 if (usbip_recv_iso(ud, priv->urbs[0]) < 0) in stub_recv_cmd_submit()
609 usbip_event_add(ud, SDEV_EVENT_ERROR_SUBMIT); in stub_recv_cmd_submit()
623 usbip_event_add(ud, SDEV_EVENT_ERROR_MALLOC); in stub_recv_cmd_submit()
627 static void stub_rx_pdu(struct usbip_device *ud) in stub_rx_pdu() argument
631 struct stub_device *sdev = container_of(ud, struct stub_device, ud); in stub_rx_pdu()
639 ret = usbip_recv(ud->tcp_socket, &pdu, sizeof(pdu)); in stub_rx_pdu()
642 usbip_event_add(ud, SDEV_EVENT_ERROR_TCP); in stub_rx_pdu()
653 usbip_event_add(ud, SDEV_EVENT_ERROR_TCP); in stub_rx_pdu()
669 usbip_event_add(ud, SDEV_EVENT_ERROR_TCP); in stub_rx_pdu()
676 struct usbip_device *ud = data; in stub_rx_loop() local
679 if (usbip_event_happened(ud)) in stub_rx_loop()
682 stub_rx_pdu(ud); in stub_rx_loop()