Lines Matching refs:tx_req
1066 /* send data from a frame, no matter what tx_req */
1138 * handle the tx_req, not include ep0 */
1141 if (ep->tx_req != NULL) {
1142 struct qe_req *req = ep->tx_req;
1167 if (((ep->tx_req->req.length - ep->sent) <= 0) && !zlp) {
1168 done(ep, ep->tx_req, 0);
1169 ep->tx_req = NULL;
1175 /* we should gain a new tx_req fot this endpoint */
1176 if (ep->tx_req == NULL) {
1178 ep->tx_req = list_entry(ep->queue.next, struct qe_req,
1188 /* give a frame and a tx_req, send some data */
1195 size = min_t(u32, (ep->tx_req->req.length - ep->sent),
1197 buf = (u8 *)ep->tx_req->req.buf + ep->sent;
1200 ep->tx_req->req.actual += size;
1229 struct qe_req *req = ep->tx_req;
1306 struct qe_req *tx_req = NULL;
1317 tx_req = ep->tx_req;
1318 if (tx_req != NULL) {
1328 if ((ep->tx_req->req.length - ep->sent) <= 0) {
1329 ep->tx_req->req.actual = (unsigned int)ep->sent;
1330 ep0_req_complete(ep->udc, ep->tx_req);
1331 ep->tx_req = NULL;
1460 if (ep->tx_req == NULL) {
1463 txcomplete(ep, 0); /* can gain a new tx_req */
1633 ep->tx_req = NULL;
1904 ep->tx_req = NULL;
2438 ep->tx_req = NULL;