Lines Matching refs:current_urb
811 struct urb *current_urb = NULL; in next_urb() local
816 current_urb = endpoint->tx_urb; in next_urb()
819 current_urb = in next_urb()
824 space = current_urb->buffer_length - current_urb->actual_length; in next_urb()
826 return current_urb; in next_urb()
829 current_urb = first_urb_detached (&endpoint->done); in next_urb()
830 if (!current_urb) { in next_urb()
831 current_urb = usbd_alloc_urb (device, endpoint); in next_urb()
834 urb_append (&endpoint->tx, current_urb); in next_urb()
837 return current_urb; in next_urb()
848 struct urb *current_urb = NULL; in write_buffer() local
850 current_urb = next_urb (device_instance, endpoint); in write_buffer()
852 if (!current_urb) { in write_buffer()
860 if(endpoint->sent < current_urb->actual_length){ in write_buffer()
879 dest = (char*)current_urb->buffer + in write_buffer()
880 current_urb->actual_length; in write_buffer()
883 current_urb->buffer_length - in write_buffer()
884 current_urb->actual_length; in write_buffer()
892 current_urb->actual_length += popped; in write_buffer()