Lines Matching defs:breq

583  * @breq: Request containing the transaction data.
593 struct bcm63xx_req *breq)
596 unsigned int bytes_left = breq->req.length - breq->offset;
601 breq->bd_bytes = 0;
602 breq->iudma = iudma;
604 if ((bytes_left % iudma->max_pkt == 0) && bytes_left && breq->req.zero)
646 d->address = breq->req.dma + breq->offset;
650 breq->offset += n_bytes;
651 breq->bd_bytes += n_bytes;
1075 struct bcm63xx_req *breq, *n;
1091 list_for_each_entry_safe(breq, n, &bep->queue, queue) {
1092 usb_gadget_unmap_request(&udc->gadget, &breq->req,
1094 list_del(&breq->queue);
1095 breq->req.status = -ESHUTDOWN;
1098 usb_gadget_giveback_request(&iudma->bep->ep, &breq->req);
1116 struct bcm63xx_req *breq;
1118 breq = kzalloc(sizeof(*breq), mem_flags);
1119 if (!breq)
1121 return &breq->req;
1132 struct bcm63xx_req *breq = our_req(req);
1133 kfree(breq);
1155 struct bcm63xx_req *breq = our_req(req);
1164 breq->offset = 0;
1184 list_add_tail(&breq->queue, &bep->queue);
1186 iudma_write(udc, bep->iudma, breq);
1207 struct bcm63xx_req *breq = our_req(req), *cur;
1218 usb_gadget_unmap_request(&udc->gadget, &breq->req, bep->iudma->is_tx);
1220 if (breq == cur) {
1222 list_del(&breq->queue);
1232 list_del(&breq->queue);
1384 struct bcm63xx_req *breq = our_req(req);
1391 breq->offset = 0;
1393 iudma_write(udc, iudma, breq);
2044 struct bcm63xx_req *breq = NULL;
2059 breq = our_req(req);
2065 if (req->actual >= req->length || breq->bd_bytes > rc) {
2074 iudma_write(udc, iudma, breq);
2078 breq = list_first_entry(&bep->queue, struct bcm63xx_req, queue);
2079 req = &breq->req;
2084 if (req->actual >= req->length || breq->bd_bytes > rc) {
2086 list_del(&breq->queue);
2098 iudma_write(udc, iudma, breq);