Home
last modified time | relevance | path

Searched refs:bufferspace (Results 1 – 6 of 6) sorted by relevance

/linux/drivers/usb/gadget/udc/
H A Dpxa25x_udc.c725 unsigned bufferspace, count, is_short; in read_fifo() local
736 bufferspace = req->req.length - req->req.actual; in read_fifo()
741 req->req.actual += min (count, bufferspace); in read_fifo()
752 if (unlikely (bufferspace == 0)) { in read_fifo()
763 bufferspace--; in read_fifo()
800 unsigned bufferspace; in read_ep0_fifo() local
803 bufferspace = req->req.length - req->req.actual; in read_ep0_fifo()
808 if (unlikely (bufferspace == 0)) { in read_ep0_fifo()
819 bufferspace--; in read_ep0_fifo()
H A Dat91_udc.c316 unsigned int count, bufferspace, is_done; in read_fifo() local
319 bufferspace = req->req.length - req->req.actual; in read_fifo()
333 if (count > bufferspace) { in read_fifo()
336 count = bufferspace; in read_fifo()
356 if (count == bufferspace) in read_fifo()
376 bufferspace -= count; in read_fifo()
H A Dgoku_udc.c413 unsigned bufferspace, is_short, dbuff; in read_fifo() local
431 bufferspace = req->req.length - req->req.actual; in read_fifo()
434 if (likely(ep->num != 0 || bufferspace != 0)) { in read_fifo()
459 if (unlikely(bufferspace == 0)) { in read_fifo()
470 bufferspace--; in read_fifo()
H A Dlpc32xx_udc.c1482 u32 tr, bufferspace; in udc_ep0_out_req() local
1498 bufferspace = req->req.length - req->req.actual; in udc_ep0_out_req()
1499 if (bufferspace > ep0->ep.maxpacket) in udc_ep0_out_req()
1500 bufferspace = ep0->ep.maxpacket; in udc_ep0_out_req()
1505 bufferspace); in udc_ep0_out_req()
1506 req->req.actual += bufferspace; in udc_ep0_out_req()
H A Dudc-xilinx.c589 u32 is_short, count, bufferspace; in xudc_read_fifo() local
613 bufferspace = req->usb_req.length - req->usb_req.actual; in xudc_read_fifo()
616 if (unlikely(!bufferspace)) { in xudc_read_fifo()
633 req->usb_req.actual += min(count, bufferspace); in xudc_read_fifo()
H A Dpxa27x_udc.c792 int bytes_ep, bufferspace, count, i; in read_packet() local
795 bufferspace = req->req.length - req->req.actual; in read_packet()
801 count = min(bytes_ep, bufferspace); in read_packet()