Lines Matching refs:ep_ctx
145 static u32 get_esit(struct xhci_ep_ctx *ep_ctx) in get_esit() argument
149 esit = 1 << CTX_TO_EP_INTERVAL(le32_to_cpu(ep_ctx->ep_info)); in get_esit()
273 static void setup_sch_info(struct xhci_ep_ctx *ep_ctx, in setup_sch_info() argument
283 ep_type = CTX_TO_EP_TYPE(le32_to_cpu(ep_ctx->ep_info2)); in setup_sch_info()
284 maxpkt = MAX_PACKET_DECODED(le32_to_cpu(ep_ctx->ep_info2)); in setup_sch_info()
285 max_burst = CTX_TO_MAX_BURST(le32_to_cpu(ep_ctx->ep_info2)); in setup_sch_info()
286 mult = CTX_TO_EP_MULT(le32_to_cpu(ep_ctx->ep_info)); in setup_sch_info()
289 le32_to_cpu(ep_ctx->ep_info)) << 16) | in setup_sch_info()
290 CTX_TO_MAX_ESIT_PAYLOAD(le32_to_cpu(ep_ctx->tx_info)); in setup_sch_info()
292 sch_ep->esit = get_esit(ep_ctx); in setup_sch_info()
631 struct xhci_ep_ctx *ep_ctx; in add_ep_quirk() local
638 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in add_ep_quirk()
647 ep_ctx->reserved[0] = cpu_to_le32(EP_BPKTS(1)); in add_ep_quirk()
658 setup_sch_info(ep_ctx, sch_ep); in add_ep_quirk()
699 struct xhci_ep_ctx *ep_ctx; in xhci_mtk_check_bandwidth() local
710 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in xhci_mtk_check_bandwidth()
711 ep_ctx->reserved[0] = cpu_to_le32(EP_BPKTS(sch_ep->pkts) in xhci_mtk_check_bandwidth()
714 ep_ctx->reserved[1] = cpu_to_le32(EP_BOFFSET(sch_ep->offset) in xhci_mtk_check_bandwidth()