Lines Matching refs:trb

37 	struct dwc3_trb			*trb;  in dwc3_ep0_prepare_one_trb()  local
41 trb = &dwc->ep0_trb[dep->trb_enqueue]; in dwc3_ep0_prepare_one_trb()
46 trb->bpl = lower_32_bits(buf_dma); in dwc3_ep0_prepare_one_trb()
47 trb->bph = upper_32_bits(buf_dma); in dwc3_ep0_prepare_one_trb()
48 trb->size = len; in dwc3_ep0_prepare_one_trb()
49 trb->ctrl = type; in dwc3_ep0_prepare_one_trb()
51 trb->ctrl |= (DWC3_TRB_CTRL_HWO in dwc3_ep0_prepare_one_trb()
55 trb->ctrl |= DWC3_TRB_CTRL_CHN; in dwc3_ep0_prepare_one_trb()
57 trb->ctrl |= (DWC3_TRB_CTRL_IOC in dwc3_ep0_prepare_one_trb()
60 trace_dwc3_prepare_trb(dep, trb); in dwc3_ep0_prepare_one_trb()
824 struct dwc3_trb *trb; in dwc3_ep0_complete_data() local
835 trb = dwc->ep0_trb; in dwc3_ep0_complete_data()
836 trace_dwc3_complete_trb(ep0, trb); in dwc3_ep0_complete_data()
842 status = DWC3_TRB_SIZE_TRBSTS(trb->size); in dwc3_ep0_complete_data()
853 length = trb->size & DWC3_TRB_SIZE_MASK; in dwc3_ep0_complete_data()
859 trb++; in dwc3_ep0_complete_data()
860 trb->ctrl &= ~DWC3_TRB_CTRL_HWO; in dwc3_ep0_complete_data()
861 trace_dwc3_complete_trb(ep0, trb); in dwc3_ep0_complete_data()
882 struct dwc3_trb *trb; in dwc3_ep0_complete_status() local
886 trb = dwc->ep0_trb; in dwc3_ep0_complete_status()
888 trace_dwc3_complete_trb(dep, trb); in dwc3_ep0_complete_status()
908 status = DWC3_TRB_SIZE_TRBSTS(trb->size); in dwc3_ep0_complete_status()
973 req->trb = &dwc->ep0_trb[dep->trb_enqueue - 1]; in __dwc3_ep0_do_control_data()
995 req->trb = &dwc->ep0_trb[dep->trb_enqueue - 1]; in __dwc3_ep0_do_control_data()
1012 req->trb = &dwc->ep0_trb[dep->trb_enqueue]; in __dwc3_ep0_do_control_data()