Lines Matching defs:breq

586  * @breq: Request containing the transaction data.
596 struct bcm63xx_req *breq)
599 unsigned int bytes_left = breq->req.length - breq->offset;
604 breq->bd_bytes = 0;
605 breq->iudma = iudma;
607 if ((bytes_left % iudma->max_pkt == 0) && bytes_left && breq->req.zero)
649 d->address = breq->req.dma + breq->offset;
653 breq->offset += n_bytes;
654 breq->bd_bytes += n_bytes;
1078 struct bcm63xx_req *breq, *n;
1094 list_for_each_entry_safe(breq, n, &bep->queue, queue) {
1095 usb_gadget_unmap_request(&udc->gadget, &breq->req,
1097 list_del(&breq->queue);
1098 breq->req.status = -ESHUTDOWN;
1101 usb_gadget_giveback_request(&iudma->bep->ep, &breq->req);
1119 struct bcm63xx_req *breq;
1121 breq = kzalloc(sizeof(*breq), mem_flags);
1122 if (!breq)
1124 return &breq->req;
1135 struct bcm63xx_req *breq = our_req(req);
1136 kfree(breq);
1158 struct bcm63xx_req *breq = our_req(req);
1167 breq->offset = 0;
1187 list_add_tail(&breq->queue, &bep->queue);
1189 iudma_write(udc, bep->iudma, breq);
1210 struct bcm63xx_req *breq = our_req(req), *cur;
1221 usb_gadget_unmap_request(&udc->gadget, &breq->req, bep->iudma->is_tx);
1223 if (breq == cur) {
1225 list_del(&breq->queue);
1235 list_del(&breq->queue);
1387 struct bcm63xx_req *breq = our_req(req);
1394 breq->offset = 0;
1396 iudma_write(udc, iudma, breq);
2048 struct bcm63xx_req *breq = NULL;
2063 breq = our_req(req);
2069 if (req->actual >= req->length || breq->bd_bytes > rc) {
2078 iudma_write(udc, iudma, breq);
2082 breq = list_first_entry(&bep->queue, struct bcm63xx_req, queue);
2083 req = &breq->req;
2088 if (req->actual >= req->length || breq->bd_bytes > rc) {
2090 list_del(&breq->queue);
2102 iudma_write(udc, iudma, breq);