Lines Matching refs:left
560 unsigned int left;
566 left = req->req.length - req->req.actual;
568 if (left == 0) {
588 if (left > ep0->ep.maxpacket)
589 left = ep0->ep.maxpacket;
594 nb = left / sizeof(u32);
599 left -= (nb * sizeof(u32));
603 if (left) {
604 memcpy(&last, buf, left);
606 ctrl |= USBF_EP0_DW(left);
607 req->req.actual += left;
622 unsigned int left;
634 left = req->req.length - req->req.actual;
636 dev_dbg(ep0->udc->dev, "ep0 recv %u, left %u\n", count, left);
638 if (left > ep0->ep.maxpacket)
639 left = ep0->ep.maxpacket;
641 if (count > left) {
643 count = left;
739 unsigned int left;
743 left = req->req.length - req->req.actual;
745 if (left == 0) {
766 if (left > epn->ep.maxpacket)
767 left = epn->ep.maxpacket;
772 nb = left / sizeof(u32);
777 left -= (nb * sizeof(u32));
780 if (left) {
781 usbf_epn_send_residue(epn, buf, left);
782 req->req.actual += left;
802 unsigned int left;
813 left = req->req.length - req->req.actual;
818 if (left == 0) {
824 if (left < 4) {
826 left);
828 req->req.buf + req->req.actual, left);
829 req->req.actual += left;
842 npkt = DIV_ROUND_UP(left, epn->ep.maxpacket);
843 lastpkt = (left % epn->ep.maxpacket);
906 left = req->req.length - req->req.actual;
907 if (left) {
911 left);
913 req->req.buf + req->req.actual, left);
914 req->req.actual += left;
979 unsigned int left;
991 left = req->req.length - req->req.actual;
993 dev_dbg(epn->udc->dev, "ep%u recv %u, left %u, mpkt %u\n", epn->id,
994 recv, left, epn->ep.maxpacket);
996 if (left > epn->ep.maxpacket)
997 left = epn->ep.maxpacket;
999 if (count > left) {
1001 count = left;
1178 * Compute the left DMA size based on this value.
1191 unsigned int left;
1229 left = req->req.length - req->req.actual;
1231 dev_dbg(epn->udc->dev, "ep%u recv %u, left %u, mpkt %u\n", epn->id,
1232 recv, left, epn->ep.maxpacket);
1234 if (recv > left) {
1236 epn->id, recv, left);
1286 * transfer with the left size computed from
1289 npkt = left / epn->ep.maxpacket;
1375 left = req->req.length - req->req.actual;
1376 if (recv > left) {
1379 recv, left);
1444 left = req->req.length - req->req.actual;
1445 if (!left) {