Lines Matching refs:ep_ctx
153 static u32 get_esit(struct xhci_ep_ctx *ep_ctx) in get_esit() argument
157 esit = 1 << CTX_TO_EP_INTERVAL(le32_to_cpu(ep_ctx->ep_info)); in get_esit()
248 struct usb_host_endpoint *ep, struct xhci_ep_ctx *ep_ctx) in create_sch_ep() argument
263 len = get_esit(ep_ctx); in create_sch_ep()
290 static void setup_sch_info(struct xhci_ep_ctx *ep_ctx, in setup_sch_info() argument
304 ep_type = CTX_TO_EP_TYPE(le32_to_cpu(ep_ctx->ep_info2)); in setup_sch_info()
305 maxpkt = MAX_PACKET_DECODED(le32_to_cpu(ep_ctx->ep_info2)); in setup_sch_info()
306 max_burst = CTX_TO_MAX_BURST(le32_to_cpu(ep_ctx->ep_info2)); in setup_sch_info()
307 mult = CTX_TO_EP_MULT(le32_to_cpu(ep_ctx->ep_info)); in setup_sch_info()
310 le32_to_cpu(ep_ctx->ep_info)) << 16) | in setup_sch_info()
311 CTX_TO_MAX_ESIT_PAYLOAD(le32_to_cpu(ep_ctx->tx_info)); in setup_sch_info()
313 sch_ep->esit = get_esit(ep_ctx); in setup_sch_info()
916 struct xhci_ep_ctx *ep_ctx; in add_ep_quirk() local
923 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in add_ep_quirk()
932 ep_ctx->reserved[0] = cpu_to_le32(EP_BPKTS(1)); in add_ep_quirk()
939 sch_ep = create_sch_ep(mtk, udev, ep, ep_ctx); in add_ep_quirk()
943 setup_sch_info(ep_ctx, sch_ep); in add_ep_quirk()
984 struct xhci_ep_ctx *ep_ctx; in xhci_mtk_check_bandwidth() local
995 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in xhci_mtk_check_bandwidth()
996 ep_ctx->reserved[0] = cpu_to_le32(EP_BPKTS(sch_ep->pkts) in xhci_mtk_check_bandwidth()
999 ep_ctx->reserved[1] = cpu_to_le32(EP_BOFFSET(sch_ep->offset) in xhci_mtk_check_bandwidth()