Home
last modified time | relevance | path

Searched refs:ep_ctx (Results 1 – 9 of 9) sorted by relevance

/Linux-v5.10/drivers/usb/host/
Dxhci-mtk-sch.c73 static u32 get_esit(struct xhci_ep_ctx *ep_ctx) in get_esit() argument
77 esit = 1 << CTX_TO_EP_INTERVAL(le32_to_cpu(ep_ctx->ep_info)); in get_esit()
172 struct usb_host_endpoint *ep, struct xhci_ep_ctx *ep_ctx) in create_sch_ep() argument
183 len_bw_budget_table = get_esit(ep_ctx); in create_sch_ep()
208 struct xhci_ep_ctx *ep_ctx, struct mu3h_sch_ep_info *sch_ep) in setup_sch_info() argument
219 ep_type = CTX_TO_EP_TYPE(le32_to_cpu(ep_ctx->ep_info2)); in setup_sch_info()
220 maxpkt = MAX_PACKET_DECODED(le32_to_cpu(ep_ctx->ep_info2)); in setup_sch_info()
221 max_burst = CTX_TO_MAX_BURST(le32_to_cpu(ep_ctx->ep_info2)); in setup_sch_info()
222 mult = CTX_TO_EP_MULT(le32_to_cpu(ep_ctx->ep_info)); in setup_sch_info()
225 le32_to_cpu(ep_ctx->ep_info)) << 16) | in setup_sch_info()
[all …]
Dxhci-ring.c495 struct xhci_ep_ctx *ep_ctx; in xhci_get_hw_deq() local
505 ep_ctx = xhci_get_ep_ctx(xhci, vdev->out_ctx, ep_index); in xhci_get_hw_deq()
506 return le64_to_cpu(ep_ctx->deq); in xhci_get_hw_deq()
729 struct xhci_ep_ctx *ep_ctx; in xhci_handle_cmd_stop_ep() local
746 ep_ctx = xhci_get_ep_ctx(xhci, vdev->out_ctx, ep_index); in xhci_handle_cmd_stop_ep()
747 trace_xhci_handle_cmd_stop_ep(ep_ctx); in xhci_handle_cmd_stop_ep()
1069 struct xhci_ep_ctx *ep_ctx; in xhci_handle_cmd_set_deq() local
1085 ep_ctx = xhci_get_ep_ctx(xhci, dev->out_ctx, ep_index); in xhci_handle_cmd_set_deq()
1088 trace_xhci_handle_cmd_set_deq_ep(ep_ctx); in xhci_handle_cmd_set_deq()
1100 ep_state = GET_EP_CTX_STATE(ep_ctx); in xhci_handle_cmd_set_deq()
[all …]
Dxhci-mem.c735 struct xhci_ep_ctx *ep_ctx, in xhci_setup_streams_ep_input_ctx() argument
747 ep_ctx->ep_info &= cpu_to_le32(~EP_MAXPSTREAMS_MASK); in xhci_setup_streams_ep_input_ctx()
748 ep_ctx->ep_info |= cpu_to_le32(EP_MAXPSTREAMS(max_primary_streams) in xhci_setup_streams_ep_input_ctx()
750 ep_ctx->deq = cpu_to_le64(stream_info->ctx_array_dma); in xhci_setup_streams_ep_input_ctx()
758 void xhci_setup_no_streams_ep_input_ctx(struct xhci_ep_ctx *ep_ctx, in xhci_setup_no_streams_ep_input_ctx() argument
762 ep_ctx->ep_info &= cpu_to_le32(~(EP_MAXPSTREAMS_MASK | EP_HAS_LSA)); in xhci_setup_no_streams_ep_input_ctx()
764 ep_ctx->deq = cpu_to_le64(addr | ep->ring->cycle_state); in xhci_setup_no_streams_ep_input_ctx()
1437 struct xhci_ep_ctx *ep_ctx; in xhci_endpoint_init() local
1450 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in xhci_endpoint_init()
1513 ep_ctx->ep_info = cpu_to_le32(EP_MAX_ESIT_PAYLOAD_HI(max_esit_payload) | in xhci_endpoint_init()
[all …]
Dxhci-dbgcap.c92 struct xhci_ep_ctx *ep_ctx; in xhci_dbc_init_contexts() local
110 ep_ctx = dbc_bulkout_ctx(dbc); in xhci_dbc_init_contexts()
113 ep_ctx->ep_info = 0; in xhci_dbc_init_contexts()
114 ep_ctx->ep_info2 = dbc_epctx_info2(BULK_OUT_EP, 1024, max_burst); in xhci_dbc_init_contexts()
115 ep_ctx->deq = cpu_to_le64(deq | dbc->ring_out->cycle_state); in xhci_dbc_init_contexts()
118 ep_ctx = dbc_bulkin_ctx(dbc); in xhci_dbc_init_contexts()
120 ep_ctx->ep_info = 0; in xhci_dbc_init_contexts()
121 ep_ctx->ep_info2 = dbc_epctx_info2(BULK_IN_EP, 1024, max_burst); in xhci_dbc_init_contexts()
122 ep_ctx->deq = cpu_to_le64(deq | dbc->ring_in->cycle_state); in xhci_dbc_init_contexts()
Dxhci-debugfs.c280 struct xhci_ep_ctx *ep_ctx; in xhci_endpoint_context_show() local
287 ep_ctx = xhci_get_ep_ctx(xhci, dev->out_ctx, ep_index); in xhci_endpoint_context_show()
290 xhci_decode_ep_context(le32_to_cpu(ep_ctx->ep_info), in xhci_endpoint_context_show()
291 le32_to_cpu(ep_ctx->ep_info2), in xhci_endpoint_context_show()
292 le64_to_cpu(ep_ctx->deq), in xhci_endpoint_context_show()
293 le32_to_cpu(ep_ctx->tx_info))); in xhci_endpoint_context_show()
Dxhci.c1392 struct xhci_ep_ctx *ep_ctx; in xhci_check_maxpacket() local
1399 ep_ctx = xhci_get_ep_ctx(xhci, out_ctx, ep_index); in xhci_check_maxpacket()
1400 hw_max_packet_size = MAX_PACKET_DECODED(le32_to_cpu(ep_ctx->ep_info2)); in xhci_check_maxpacket()
1435 ep_ctx = xhci_get_ep_ctx(xhci, command->in_ctx, ep_index); in xhci_check_maxpacket()
1436 ep_ctx->ep_info &= cpu_to_le32(~EP_STATE_MASK);/* must clear */ in xhci_check_maxpacket()
1437 ep_ctx->ep_info2 &= cpu_to_le32(~MAX_PACKET_MASK); in xhci_check_maxpacket()
1438 ep_ctx->ep_info2 |= cpu_to_le32(MAX_PACKET(max_packet_size)); in xhci_check_maxpacket()
1742 struct xhci_ep_ctx *ep_ctx; in xhci_drop_endpoint() local
1772 ep_ctx = xhci_get_ep_ctx(xhci, out_ctx, ep_index); in xhci_drop_endpoint()
1776 if ((GET_EP_CTX_STATE(ep_ctx) == EP_STATE_DISABLED) || in xhci_drop_endpoint()
[all …]
Dxhci-hub.c410 struct xhci_ep_ctx *ep_ctx; in xhci_stop_device() local
413 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->out_ctx, i); in xhci_stop_device()
416 if (GET_EP_CTX_STATE(ep_ctx) != EP_STATE_RUNNING) in xhci_stop_device()
Dxhci.h2035 struct xhci_ep_ctx *ep_ctx,
2037 void xhci_setup_no_streams_ep_input_ctx(struct xhci_ep_ctx *ep_ctx,
/Linux-v5.10/drivers/usb/gadget/udc/
Dtegra-xudc.c2362 struct tegra_xudc_ep_context *ep_ctx; in tegra_xudc_ep0_get_status() local
2402 ep_ctx = &xudc->ep_context[ep]; in tegra_xudc_ep0_get_status()
2408 if (ep_ctx_read_state(ep_ctx) == EP_STATE_DISABLED) in tegra_xudc_ep0_get_status()