Lines Matching refs:tx_urb
350 struct urb *tx_urb; in usbd_tx_complete() local
353 if ((tx_urb = endpoint->tx_urb)) { in usbd_tx_complete()
358 if( (endpoint->tx_urb->actual_length - endpoint->sent) <= 0 ) { in usbd_tx_complete()
359 tx_urb->actual_length = 0; in usbd_tx_complete()
364 urb_detach(tx_urb); in usbd_tx_complete()
365 urb_append(&endpoint->done, tx_urb); in usbd_tx_complete()
369 endpoint->tx_urb = first_urb_detached(&endpoint->tx); in usbd_tx_complete()
370 if( endpoint->tx_urb ) { in usbd_tx_complete()
374 if( !endpoint->tx_urb ) { in usbd_tx_complete()
376 endpoint->tx_urb = first_urb_detached(&endpoint->done); in usbd_tx_complete()
378 if( !endpoint->tx_urb ) { in usbd_tx_complete()
380 endpoint->tx_urb = usbd_alloc_urb(tx_urb->device, endpoint); in usbd_tx_complete()