Lines Matching defs:chunk
179 unsigned int chunk;
199 * Next chunk cropped to max packet size. Also check if this
202 chunk = req->req.length - req->req.actual;
203 if (chunk > ep->ep.maxpacket)
204 chunk = ep->ep.maxpacket;
205 else if ((chunk < ep->ep.maxpacket) || !req->req.zero)
208 EPVDBG(ep, "send chunk=%d last=%d, req->act=%d mp=%d\n",
209 chunk, req->last_desc, req->req.actual, ep->ep.maxpacket);
215 if (chunk && req->req.buf)
216 memcpy(ep->buf, req->req.buf + req->req.actual, chunk);
220 /* Remember chunk size and trigger send */
221 reg = VHUB_EP0_SET_TX_LEN(chunk);
224 req->req.actual += chunk;