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()
855 struct dwc3_trb *trb; in dwc3_ep0_complete_data() local
866 trb = dwc->ep0_trb; in dwc3_ep0_complete_data()
867 trace_dwc3_complete_trb(ep0, trb); in dwc3_ep0_complete_data()
873 status = DWC3_TRB_SIZE_TRBSTS(trb->size); in dwc3_ep0_complete_data()
884 length = trb->size & DWC3_TRB_SIZE_MASK; in dwc3_ep0_complete_data()
890 trb++; in dwc3_ep0_complete_data()
891 trb->ctrl &= ~DWC3_TRB_CTRL_HWO; in dwc3_ep0_complete_data()
892 trace_dwc3_complete_trb(ep0, trb); in dwc3_ep0_complete_data()
913 struct dwc3_trb *trb; in dwc3_ep0_complete_status() local
917 trb = dwc->ep0_trb; in dwc3_ep0_complete_status()
919 trace_dwc3_complete_trb(dep, trb); in dwc3_ep0_complete_status()
939 status = DWC3_TRB_SIZE_TRBSTS(trb->size); in dwc3_ep0_complete_status()
1008 req->trb = &dwc->ep0_trb[dep->trb_enqueue - 1]; in __dwc3_ep0_do_control_data()
1030 req->trb = &dwc->ep0_trb[dep->trb_enqueue - 1]; in __dwc3_ep0_do_control_data()
1050 req->trb = &dwc->ep0_trb[dep->trb_enqueue]; in __dwc3_ep0_do_control_data()