Lines Matching defs:trb
227 * Skip LINK TRB. We can't use req->trb and check for
236 req->trb = NULL;
317 struct dwc3_trb *trb)
319 u32 offset = (char *) trb - (char *) dep->trb_pool;
338 dev_err(dep->dwc->dev, "failed to allocate trb pool for %s\n",
682 struct dwc3_trb *trb;
691 trb = &dep->trb_pool[dep->free_slot & DWC3_TRB_MASK];
700 if (!req->trb) {
702 req->trb = trb;
703 req->trb_dma = dwc3_trb_dma_offset(dep, trb);
706 trb->size = DWC3_TRB_SIZE_LENGTH(length);
707 trb->bpl = lower_32_bits(dma);
708 trb->bph = upper_32_bits(dma);
712 trb->ctrl = DWC3_TRBCTL_CONTROL_SETUP;
716 trb->ctrl = DWC3_TRBCTL_ISOCHRONOUS_FIRST;
720 trb->ctrl |= DWC3_TRB_CTRL_IOC;
725 trb->ctrl = DWC3_TRBCTL_NORMAL;
736 trb->ctrl |= DWC3_TRB_CTRL_ISP_IMI;
737 trb->ctrl |= DWC3_TRB_CTRL_CSP;
740 trb->ctrl |= DWC3_TRB_CTRL_CHN;
743 trb->ctrl |= DWC3_TRB_CTRL_LST;
747 trb->ctrl |= DWC3_TRB_CTRL_SID_SOFN(req->request.stream_id);
749 trb->ctrl |= DWC3_TRB_CTRL_HWO;
1503 struct dwc3_trb *trb;
1514 trb = req->trb;
1516 if ((trb->ctrl & DWC3_TRB_CTRL_HWO) && status != -ESHUTDOWN)
1526 dep->name, req->trb);
1527 count = trb->size & DWC3_TRB_SIZE_MASK;
1552 (trb->ctrl & DWC3_TRB_CTRL_LST))
1555 (trb->ctrl & DWC3_TRB_CTRL_IOC))
1560 (trb->ctrl & DWC3_TRB_CTRL_IOC))
2261 dev_err(dwc->dev, "failed to allocate ep0 trb\n");