Lines Matching refs:trb
154 struct cdns3_trb *trb) in cdns3_trb_virt_to_dma() argument
156 u32 offset = (char *)trb - (char *)priv_ep->trb_pool; in cdns3_trb_virt_to_dma()
776 struct cdns3_trb *trb) in cdns3_wa1_update_guard() argument
788 priv_ep->wa1_trb = trb; in cdns3_wa1_update_guard()
821 struct cdns3_trb *trb; in cdns3_ep_run_transfer() local
851 trb = priv_ep->trb_pool + priv_ep->enqueue; in cdns3_ep_run_transfer()
853 priv_req->trb = trb; in cdns3_ep_run_transfer()
891 togle_pcs = cdns3_wa1_update_guard(priv_ep, trb); in cdns3_ep_run_transfer()
902 trb->buffer = TRB_BUFFER(request->num_sgs == 0 in cdns3_ep_run_transfer()
914 trb->length = TRB_BURST_LEN(priv_ep->trb_burst_size) | in cdns3_ep_run_transfer()
917 trb->length |= TRB_TDL_SS_SIZE(td_size); in cdns3_ep_run_transfer()
939 trb->control = control; in cdns3_ep_run_transfer()
941 priv_req->trb->control = control; in cdns3_ep_run_transfer()
947 trb = priv_ep->trb_pool + priv_ep->enqueue; in cdns3_ep_run_transfer()
950 trb = priv_req->trb; in cdns3_ep_run_transfer()
955 trb->control |= TRB_IOC | TRB_ISP; in cdns3_ep_run_transfer()
964 trb->control = trb->control ^ 1; in cdns3_ep_run_transfer()
969 trace_cdns3_prepare_trb(priv_ep, priv_req->trb); in cdns3_ep_run_transfer()
1092 struct cdns3_trb *trb = priv_req->trb; in cdns3_request_handled() local
1100 trb = &priv_ep->trb_pool[priv_req->start_trb]; in cdns3_request_handled()
1102 if ((trb->control & TRB_CYCLE) != priv_ep->ccs) in cdns3_request_handled()
1142 struct cdns3_trb *trb; in cdns3_transfer_completed() local
1148 trb = priv_ep->trb_pool + priv_ep->dequeue; in cdns3_transfer_completed()
1151 if (TRB_FIELD_TO_TYPE(trb->control) == TRB_LINK) { in cdns3_transfer_completed()
1152 trace_cdns3_complete_trb(priv_ep, trb); in cdns3_transfer_completed()
1164 trb = priv_ep->trb_pool + priv_ep->dequeue; in cdns3_transfer_completed()
1165 trace_cdns3_complete_trb(priv_ep, trb); in cdns3_transfer_completed()
1167 if (trb != priv_req->trb) in cdns3_transfer_completed()
1170 priv_req->trb, trb); in cdns3_transfer_completed()
1172 request->actual = TRB_LEN(le32_to_cpu(trb->length)); in cdns3_transfer_completed()
2110 link_trb = priv_req->trb; in cdns3_gadget_ep_dequeue()
2119 if (priv_ep->wa1_trb == priv_req->trb) in cdns3_gadget_ep_dequeue()