Lines Matching refs:urb
25 static struct urb *ep0_urb;
57 struct urb *urb = endpoint->tx_urb; in udc_write_urb() local
59 u32 *data32 = (u32 *) urb->buffer; in udc_write_urb()
60 u8 *data8 = (u8 *) urb->buffer; in udc_write_urb()
64 if (!urb || !urb->actual_length) in udc_write_urb()
67 n = min_t(unsigned int, urb->actual_length - endpoint->sent, in udc_write_urb()
75 urb->buffer, urb->buffer_length, urb->actual_length); in udc_write_urb()
119 if (endpoint->sent >= urb->actual_length) { in udc_write_urb()
120 urb->actual_length = 0; in udc_write_urb()
125 if ((endpoint->sent >= urb->actual_length) && (!ep_num)) { in udc_write_urb()
138 struct urb *urb = endpoint->rcv_urb; in udc_read_urb() local
140 u32 *data32 = (u32 *) urb->buffer; in udc_read_urb()
146 urb->buffer, urb->buffer_length, urb->actual_length); in udc_read_urb()
158 data32[urb->actual_length / 4 + i / 4] = readl(UDCDN(ep_num)); in udc_read_urb()
160 udc_dump_buffer("urb read", (u8 *) data32, urb->actual_length + n); in udc_read_urb()