Lines Matching defs:chunk
185 unsigned int chunk;
205 * Next chunk cropped to max packet size. Also check if this
208 chunk = req->req.length - req->req.actual;
209 if (chunk > ep->ep.maxpacket)
210 chunk = ep->ep.maxpacket;
211 else if ((chunk < ep->ep.maxpacket) || !req->req.zero)
214 EPVDBG(ep, "send chunk=%d last=%d, req->act=%d mp=%d\n",
215 chunk, req->last_desc, req->req.actual, ep->ep.maxpacket);
221 if (chunk && req->req.buf)
222 memcpy(ep->buf, req->req.buf + req->req.actual, chunk);
226 /* Remember chunk size and trigger send */
227 reg = VHUB_EP0_SET_TX_LEN(chunk);
230 req->req.actual += chunk;