Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/usb/host/
Dxhci-mtk-sch.c153 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()
[all …]
Dxhci-ring.c616 struct xhci_ep_ctx *ep_ctx; in xhci_get_hw_deq() local
626 ep_ctx = xhci_get_ep_ctx(xhci, vdev->out_ctx, ep_index); in xhci_get_hw_deq()
627 return le64_to_cpu(ep_ctx->deq); in xhci_get_hw_deq()
1098 struct xhci_ep_ctx *ep_ctx; in xhci_handle_cmd_stop_ep() local
1116 ep_ctx = xhci_get_ep_ctx(xhci, ep->vdev->out_ctx, ep_index); in xhci_handle_cmd_stop_ep()
1118 trace_xhci_handle_cmd_stop_ep(ep_ctx); in xhci_handle_cmd_stop_ep()
1135 switch (GET_EP_CTX_STATE(ep_ctx)) { in xhci_handle_cmd_stop_ep()
1339 struct xhci_ep_ctx *ep_ctx; in xhci_handle_cmd_set_deq() local
1358 ep_ctx = xhci_get_ep_ctx(xhci, ep->vdev->out_ctx, ep_index); in xhci_handle_cmd_set_deq()
1361 trace_xhci_handle_cmd_set_deq_ep(ep_ctx); in xhci_handle_cmd_set_deq()
[all …]
Dxhci-mem.c703 struct xhci_ep_ctx *ep_ctx, in xhci_setup_streams_ep_input_ctx() argument
715 ep_ctx->ep_info &= cpu_to_le32(~EP_MAXPSTREAMS_MASK); in xhci_setup_streams_ep_input_ctx()
716 ep_ctx->ep_info |= cpu_to_le32(EP_MAXPSTREAMS(max_primary_streams) in xhci_setup_streams_ep_input_ctx()
718 ep_ctx->deq = cpu_to_le64(stream_info->ctx_array_dma); in xhci_setup_streams_ep_input_ctx()
726 void xhci_setup_no_streams_ep_input_ctx(struct xhci_ep_ctx *ep_ctx, in xhci_setup_no_streams_ep_input_ctx() argument
730 ep_ctx->ep_info &= cpu_to_le32(~(EP_MAXPSTREAMS_MASK | EP_HAS_LSA)); in xhci_setup_no_streams_ep_input_ctx()
732 ep_ctx->deq = cpu_to_le64(addr | ep->ring->cycle_state); in xhci_setup_no_streams_ep_input_ctx()
1396 struct xhci_ep_ctx *ep_ctx; in xhci_endpoint_init() local
1409 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in xhci_endpoint_init()
1472 ep_ctx->ep_info = cpu_to_le32(EP_MAX_ESIT_PAYLOAD_HI(max_esit_payload) | in xhci_endpoint_init()
[all …]
Dxhci-dbgcap.c107 struct xhci_ep_ctx *ep_ctx; in xhci_dbc_init_contexts() local
125 ep_ctx = dbc_bulkout_ctx(dbc); in xhci_dbc_init_contexts()
128 ep_ctx->ep_info = 0; in xhci_dbc_init_contexts()
129 ep_ctx->ep_info2 = dbc_epctx_info2(BULK_OUT_EP, 1024, max_burst); in xhci_dbc_init_contexts()
130 ep_ctx->deq = cpu_to_le64(deq | dbc->ring_out->cycle_state); in xhci_dbc_init_contexts()
133 ep_ctx = dbc_bulkin_ctx(dbc); in xhci_dbc_init_contexts()
135 ep_ctx->ep_info = 0; in xhci_dbc_init_contexts()
136 ep_ctx->ep_info2 = dbc_epctx_info2(BULK_IN_EP, 1024, max_burst); in xhci_dbc_init_contexts()
137 ep_ctx->deq = cpu_to_le64(deq | dbc->ring_in->cycle_state); in xhci_dbc_init_contexts()
718 struct xhci_ep_ctx *ep_ctx; in dbc_handle_xfer_event() local
[all …]
Dxhci-debugfs.c284 struct xhci_ep_ctx *ep_ctx; in xhci_endpoint_context_show() local
292 ep_ctx = xhci_get_ep_ctx(xhci, dev->out_ctx, ep_index); in xhci_endpoint_context_show()
296 le32_to_cpu(ep_ctx->ep_info), in xhci_endpoint_context_show()
297 le32_to_cpu(ep_ctx->ep_info2), in xhci_endpoint_context_show()
298 le64_to_cpu(ep_ctx->deq), in xhci_endpoint_context_show()
299 le32_to_cpu(ep_ctx->tx_info))); in xhci_endpoint_context_show()
Dxhci.c1473 struct xhci_ep_ctx *ep_ctx; in xhci_check_ep0_maxpacket() local
1479 ep_ctx = xhci_get_ep_ctx(xhci, vdev->out_ctx, 0); in xhci_check_ep0_maxpacket()
1480 hw_max_packet_size = MAX_PACKET_DECODED(le32_to_cpu(ep_ctx->ep_info2)); in xhci_check_ep0_maxpacket()
1514 ep_ctx = xhci_get_ep_ctx(xhci, command->in_ctx, 0); in xhci_check_ep0_maxpacket()
1515 ep_ctx->ep_info &= cpu_to_le32(~EP_STATE_MASK);/* must clear */ in xhci_check_ep0_maxpacket()
1516 ep_ctx->ep_info2 &= cpu_to_le32(~MAX_PACKET_MASK); in xhci_check_ep0_maxpacket()
1517 ep_ctx->ep_info2 |= cpu_to_le32(MAX_PACKET(max_packet_size)); in xhci_check_ep0_maxpacket()
1818 struct xhci_ep_ctx *ep_ctx; in xhci_drop_endpoint() local
1848 ep_ctx = xhci_get_ep_ctx(xhci, out_ctx, ep_index); in xhci_drop_endpoint()
1852 if ((GET_EP_CTX_STATE(ep_ctx) == EP_STATE_DISABLED) || in xhci_drop_endpoint()
[all …]
Dxhci-hub.c479 struct xhci_ep_ctx *ep_ctx; in xhci_stop_device() local
482 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->out_ctx, i); in xhci_stop_device()
485 if (GET_EP_CTX_STATE(ep_ctx) != EP_STATE_RUNNING) in xhci_stop_device()
Dxhci.h1809 struct xhci_ep_ctx *ep_ctx,
1811 void xhci_setup_no_streams_ep_input_ctx(struct xhci_ep_ctx *ep_ctx,
/linux-6.12.1/drivers/usb/cdns3/
Dcdnsp-gadget.c443 struct cdnsp_ep_ctx *ep_ctx; in cdnsp_zero_in_ctx() local
462 ep_ctx = cdnsp_get_ep_ctx(&pdev->in_ctx, i); in cdnsp_zero_in_ctx()
463 ep_ctx->ep_info = 0; in cdnsp_zero_in_ctx()
464 ep_ctx->ep_info2 = 0; in cdnsp_zero_in_ctx()
465 ep_ctx->deq = 0; in cdnsp_zero_in_ctx()
466 ep_ctx->tx_info = 0; in cdnsp_zero_in_ctx()
743 struct cdnsp_ep_ctx *ep_ctx, in cdnsp_setup_streams_ep_input_ctx() argument
753 ep_ctx->ep_info &= cpu_to_le32(~EP_MAXPSTREAMS_MASK); in cdnsp_setup_streams_ep_input_ctx()
754 ep_ctx->ep_info |= cpu_to_le32(EP_MAXPSTREAMS(max_primary_streams) in cdnsp_setup_streams_ep_input_ctx()
756 ep_ctx->deq = cpu_to_le64(stream_info->ctx_array_dma); in cdnsp_setup_streams_ep_input_ctx()
Dcdnsp-mem.c946 struct cdnsp_ep_ctx *ep_ctx; in cdnsp_endpoint_init() local
957 ep_ctx = pep->in_ctx; in cdnsp_endpoint_init()
996 ep_ctx->ep_info = cpu_to_le32(EP_MAX_ESIT_PAYLOAD_HI(max_esit_payload) | in cdnsp_endpoint_init()
998 ep_ctx->ep_info2 = cpu_to_le32(EP_TYPE(endpoint_type) | in cdnsp_endpoint_init()
1001 ep_ctx->deq = cpu_to_le64(pep->ring->first_seg->dma | in cdnsp_endpoint_init()
1004 ep_ctx->tx_info = cpu_to_le32(EP_MAX_ESIT_PAYLOAD_LO(max_esit_payload) | in cdnsp_endpoint_init()
/linux-6.12.1/drivers/usb/gadget/udc/
Dtegra-xudc.c2375 struct tegra_xudc_ep_context *ep_ctx; in tegra_xudc_ep0_get_status() local
2415 ep_ctx = &xudc->ep_context[ep]; in tegra_xudc_ep0_get_status()
2421 if (ep_ctx_read_state(ep_ctx) == EP_STATE_DISABLED) in tegra_xudc_ep0_get_status()