Lines Matching refs:trb

143  * dwc3_ep_inc_trb - increment a trb index.
188 if (req->trb)
192 req->trb = NULL;
447 struct dwc3_trb *trb)
449 u32 offset = (char *) trb - (char *) dep->trb_pool;
465 dev_err(dep->dwc->dev, "failed to allocate trb pool for %s\n",
710 struct dwc3_trb *trb;
715 trb = &dep->trb_pool[0];
716 trb_dma = dwc3_trb_dma_offset(dep, trb);
990 struct dwc3_trb *trb;
1007 trb = &dep->trb_pool[dep->trb_enqueue];
1009 if (!req->trb) {
1011 req->trb = trb;
1012 req->trb_dma = dwc3_trb_dma_offset(dep, trb);
1017 trb->size = DWC3_TRB_SIZE_LENGTH(trb_length);
1018 trb->bpl = lower_32_bits(dma);
1019 trb->bph = upper_32_bits(dma);
1023 trb->ctrl = DWC3_TRBCTL_CONTROL_SETUP;
1028 trb->ctrl = DWC3_TRBCTL_ISOCHRONOUS_FIRST;
1063 trb->size |= DWC3_TRB_SIZE_PCM1(mult);
1066 trb->ctrl = DWC3_TRBCTL_ISOCHRONOUS;
1070 trb->ctrl |= DWC3_TRB_CTRL_ISP_IMI;
1075 trb->ctrl = DWC3_TRBCTL_NORMAL;
1092 trb->ctrl |= DWC3_TRB_CTRL_CSP;
1095 trb->ctrl |= DWC3_TRB_CTRL_ISP_IMI;
1099 trb->ctrl |= DWC3_TRB_CTRL_IOC;
1102 trb->ctrl |= DWC3_TRB_CTRL_CHN;
1104 trb->ctrl |= DWC3_TRB_CTRL_LST;
1107 trb->ctrl |= DWC3_TRB_CTRL_SID_SOFN(stream_id);
1122 trb->ctrl |= DWC3_TRB_CTRL_HWO;
1126 trace_dwc3_prepare_trb(dep, trb);
1244 * queued because of insufficient trb number. To handle this
1746 /* If req->trb is not set, then the request has not started */
1747 if (!req->trb)
1761 struct dwc3_trb *trb;
1763 trb = &dep->trb_pool[dep->trb_dequeue];
1764 trb->ctrl &= ~DWC3_TRB_CTRL_HWO;
1855 struct dwc3_trb *trb;
1861 trb = dwc3_ep_prev_trb(dep, dep->trb_enqueue);
1863 trb = &dwc->ep0_trb[dep->trb_enqueue];
1865 transfer_in_flight = trb->ctrl & DWC3_TRB_CTRL_HWO;
2776 struct dwc3_request *req, struct dwc3_trb *trb,
2783 trace_dwc3_complete_trb(dep, trb);
2796 if (chain && (trb->ctrl & DWC3_TRB_CTRL_HWO))
2797 trb->ctrl &= ~DWC3_TRB_CTRL_HWO;
2804 (trb->ctrl & DWC3_TRBCTL_ISOCHRONOUS_FIRST)) {
2807 frame_number = DWC3_TRB_CTRL_GET_SID_SOFN(trb->ctrl);
2817 if (trb->bpl == lower_32_bits(dep->dwc->bounce_addr) &&
2818 trb->bph == upper_32_bits(dep->dwc->bounce_addr)) {
2819 trb->ctrl &= ~DWC3_TRB_CTRL_HWO;
2823 count = trb->size & DWC3_TRB_SIZE_MASK;
2826 if ((trb->ctrl & DWC3_TRB_CTRL_HWO) && status != -ESHUTDOWN)
2832 if ((trb->ctrl & DWC3_TRB_CTRL_ISP_IMI) &&
2833 DWC3_TRB_SIZE_TRBSTS(trb->size) == DWC3_TRBSTS_MISSED_ISOC)
2836 if ((trb->ctrl & DWC3_TRB_CTRL_IOC) ||
2837 (trb->ctrl & DWC3_TRB_CTRL_LST))
2847 struct dwc3_trb *trb = &dep->trb_pool[dep->trb_dequeue];
2855 trb = &dep->trb_pool[dep->trb_dequeue];
2861 trb, event, status, true);
2873 struct dwc3_trb *trb = &dep->trb_pool[dep->trb_dequeue];
2875 return dwc3_gadget_ep_reclaim_completed_trb(dep, req, trb,
2916 struct dwc3_trb *trb;
2918 trb = dwc3_ep_prev_trb(dep, dep->trb_dequeue);
2919 switch (DWC3_TRB_SIZE_TRBSTS(trb->size)) {
3952 dev_err(dwc->dev, "failed to allocate ep0 trb\n");