• Home
  • Raw
  • Download

Lines Matching refs:ep_ctx

150 static u32 get_esit(struct xhci_ep_ctx *ep_ctx)  in get_esit()  argument
154 esit = 1 << CTX_TO_EP_INTERVAL(le32_to_cpu(ep_ctx->ep_info)); in get_esit()
245 struct usb_host_endpoint *ep, struct xhci_ep_ctx *ep_ctx) in create_sch_ep() argument
261 len_bw_budget_table = 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
302 ep_type = CTX_TO_EP_TYPE(le32_to_cpu(ep_ctx->ep_info2)); in setup_sch_info()
303 maxpkt = MAX_PACKET_DECODED(le32_to_cpu(ep_ctx->ep_info2)); in setup_sch_info()
304 max_burst = CTX_TO_MAX_BURST(le32_to_cpu(ep_ctx->ep_info2)); in setup_sch_info()
305 mult = CTX_TO_EP_MULT(le32_to_cpu(ep_ctx->ep_info)); in setup_sch_info()
308 le32_to_cpu(ep_ctx->ep_info)) << 16) | in setup_sch_info()
309 CTX_TO_MAX_ESIT_PAYLOAD(le32_to_cpu(ep_ctx->tx_info)); in setup_sch_info()
311 sch_ep->esit = get_esit(ep_ctx); in setup_sch_info()
682 struct xhci_ep_ctx *ep_ctx; in add_ep_quirk() local
689 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in add_ep_quirk()
698 ep_ctx->reserved[0] = cpu_to_le32(EP_BPKTS(1)); in add_ep_quirk()
705 sch_ep = create_sch_ep(mtk, udev, ep, ep_ctx); in add_ep_quirk()
709 setup_sch_info(ep_ctx, sch_ep); in add_ep_quirk()
750 struct xhci_ep_ctx *ep_ctx; in xhci_mtk_check_bandwidth() local
761 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in xhci_mtk_check_bandwidth()
762 ep_ctx->reserved[0] = cpu_to_le32(EP_BPKTS(sch_ep->pkts) in xhci_mtk_check_bandwidth()
765 ep_ctx->reserved[1] = cpu_to_le32(EP_BOFFSET(sch_ep->offset) in xhci_mtk_check_bandwidth()