Lines Matching full:ud
98 usbip_event_add(&udc->ud, VUDC_EVENT_ERROR_MALLOC); in v_recv_cmd_submit()
113 usbip_event_add(&udc->ud, VUDC_EVENT_ERROR_TCP); in v_recv_cmd_submit()
144 usbip_event_add(&udc->ud, VUDC_EVENT_ERROR_MALLOC); in v_recv_cmd_submit()
167 ret = usbip_recv_xbuff(&udc->ud, urb_p->urb); in v_recv_cmd_submit()
171 ret = usbip_recv_iso(&udc->ud, urb_p->urb); in v_recv_cmd_submit()
187 static int v_rx_pdu(struct usbip_device *ud) in v_rx_pdu() argument
191 struct vudc *udc = container_of(ud, struct vudc, ud); in v_rx_pdu()
194 ret = usbip_recv(ud->tcp_socket, &pdu, sizeof(pdu)); in v_rx_pdu()
196 usbip_event_add(ud, VUDC_EVENT_ERROR_TCP); in v_rx_pdu()
203 spin_lock_irq(&ud->lock); in v_rx_pdu()
204 ret = (ud->status == SDEV_ST_USED); in v_rx_pdu()
205 spin_unlock_irq(&ud->lock); in v_rx_pdu()
207 usbip_event_add(ud, VUDC_EVENT_ERROR_TCP); in v_rx_pdu()
228 struct usbip_device *ud = data; in v_rx_loop() local
232 if (usbip_event_happened(ud)) in v_rx_loop()
234 ret = v_rx_pdu(ud); in v_rx_loop()