unsigned int trb_status;
dep->queued_requests--;
+ dwc3_ep_inc_deq(dep);
trace_dwc3_complete_trb(dep, trb);
/*
return 1;
count = trb->size & DWC3_TRB_SIZE_MASK;
+ req->request.actual += count;
if (dep->direction) {
if (count) {
{
struct dwc3_request *req, *n;
struct dwc3_trb *trb;
- int count = 0;
int ret;
list_for_each_entry_safe(req, n, &dep->started_list, list) {
for_each_sg(sg, s, pending, i) {
trb = &dep->trb_pool[dep->trb_dequeue];
- count += trb->size & DWC3_TRB_SIZE_MASK;
- dwc3_ep_inc_deq(dep);
req->sg = sg_next(s);
req->num_pending_sgs--;
}
} else {
trb = &dep->trb_pool[dep->trb_dequeue];
- count += trb->size & DWC3_TRB_SIZE_MASK;
- dwc3_ep_inc_deq(dep);
-
ret = __dwc3_cleanup_done_trbs(dwc, dep, req, trb,
event, status, chain);
}