Lines Matching refs:trb
245 req->trb = NULL; in dwc3_gadget_giveback()
325 struct dwc3_trb *trb) in dwc3_trb_dma_offset() argument
327 u32 offset = (char *) trb - (char *) dep->trb_pool; in dwc3_trb_dma_offset()
704 struct dwc3_trb *trb; in dwc3_prepare_one_trb() local
712 trb = &dep->trb_pool[dep->free_slot & DWC3_TRB_MASK]; in dwc3_prepare_one_trb()
714 if (!req->trb) { in dwc3_prepare_one_trb()
716 req->trb = trb; in dwc3_prepare_one_trb()
717 req->trb_dma = dwc3_trb_dma_offset(dep, trb); in dwc3_prepare_one_trb()
727 trb->size = DWC3_TRB_SIZE_LENGTH(length); in dwc3_prepare_one_trb()
728 trb->bpl = lower_32_bits(dma); in dwc3_prepare_one_trb()
729 trb->bph = upper_32_bits(dma); in dwc3_prepare_one_trb()
733 trb->ctrl = DWC3_TRBCTL_CONTROL_SETUP; in dwc3_prepare_one_trb()
738 trb->ctrl = DWC3_TRBCTL_ISOCHRONOUS_FIRST; in dwc3_prepare_one_trb()
740 trb->ctrl = DWC3_TRBCTL_ISOCHRONOUS; in dwc3_prepare_one_trb()
745 trb->ctrl = DWC3_TRBCTL_NORMAL; in dwc3_prepare_one_trb()
756 trb->ctrl |= DWC3_TRB_CTRL_IOC; in dwc3_prepare_one_trb()
759 trb->ctrl |= DWC3_TRB_CTRL_ISP_IMI; in dwc3_prepare_one_trb()
760 trb->ctrl |= DWC3_TRB_CTRL_CSP; in dwc3_prepare_one_trb()
762 trb->ctrl |= DWC3_TRB_CTRL_LST; in dwc3_prepare_one_trb()
766 trb->ctrl |= DWC3_TRB_CTRL_CHN; in dwc3_prepare_one_trb()
769 trb->ctrl |= DWC3_TRB_CTRL_SID_SOFN(req->request.stream_id); in dwc3_prepare_one_trb()
771 trb->ctrl |= DWC3_TRB_CTRL_HWO; in dwc3_prepare_one_trb()
774 dwc3_flush_cache((uintptr_t)trb, sizeof(*trb)); in dwc3_prepare_one_trb()
1676 struct dwc3_request *req, struct dwc3_trb *trb, in __dwc3_cleanup_done_trbs() argument
1683 if ((trb->ctrl & DWC3_TRB_CTRL_HWO) && status != -ESHUTDOWN) in __dwc3_cleanup_done_trbs()
1693 dep->name, trb); in __dwc3_cleanup_done_trbs()
1694 count = trb->size & DWC3_TRB_SIZE_MASK; in __dwc3_cleanup_done_trbs()
1698 trb_status = DWC3_TRB_SIZE_TRBSTS(trb->size); in __dwc3_cleanup_done_trbs()
1742 (trb->ctrl & (DWC3_TRB_CTRL_LST | in __dwc3_cleanup_done_trbs()
1746 (trb->ctrl & DWC3_TRB_CTRL_IOC)) in __dwc3_cleanup_done_trbs()
1755 struct dwc3_trb *trb; in dwc3_cleanup_done_reqs() local
1769 trb = &dep->trb_pool[slot]; in dwc3_cleanup_done_reqs()
1771 dwc3_flush_cache((uintptr_t)trb, sizeof(*trb)); in dwc3_cleanup_done_reqs()
1772 __dwc3_cleanup_done_trbs(dwc, dep, req, trb, event, status); in dwc3_cleanup_done_reqs()