Lines Matching refs:actual_length
63 if (!urb || !urb->actual_length) in udc_write_urb()
66 n = min_t(unsigned int, urb->actual_length - endpoint->sent, in udc_write_urb()
74 urb->buffer, urb->buffer_length, urb->actual_length); in udc_write_urb()
118 if (endpoint->sent >= urb->actual_length) { in udc_write_urb()
119 urb->actual_length = 0; in udc_write_urb()
124 if ((endpoint->sent >= urb->actual_length) && (!ep_num)) { in udc_write_urb()
145 urb->buffer, urb->buffer_length, urb->actual_length); in udc_read_urb()
157 data32[urb->actual_length / 4 + i / 4] = readl(UDCDN(ep_num)); in udc_read_urb()
159 udc_dump_buffer("urb read", (u8 *) data32, urb->actual_length + n); in udc_read_urb()
174 ep0_urb->buffer, ep0_urb->buffer_length, ep0_urb->actual_length); in udc_read_urb_ep0()
182 data32[ep0_urb->actual_length / 4 + i] = readl(UDCDN(0)); in udc_read_urb_ep0()
187 data8[ep0_urb->actual_length + w * 4 + i] = readb(UDCDN(0)); in udc_read_urb_ep0()
191 ep0_urb->actual_length += n; in udc_read_urb_ep0()
193 udc_dump_buffer("urb read", (u8 *) data32, ep0_urb->actual_length); in udc_read_urb_ep0()
196 if (ep0_urb->actual_length == ep0_urb->device_request.wLength) in udc_read_urb_ep0()
269 ep0_urb->actual_length = 0; in udc_handle_ep0()
336 ep0_urb->actual_length) in udc_handle_ep0()