| /OK3568_Linux_fs/kernel/drivers/usb/host/ |
| H A D | xhci-mtk-sch.c | 146 static u32 get_esit(struct xhci_ep_ctx *ep_ctx) in get_esit() argument 150 esit = 1 << CTX_TO_EP_INTERVAL(le32_to_cpu(ep_ctx->ep_info)); in get_esit() 240 struct usb_host_endpoint *ep, struct xhci_ep_ctx *ep_ctx) in create_sch_ep() argument 251 len_bw_budget_table = get_esit(ep_ctx); in create_sch_ep() 278 static void setup_sch_info(struct xhci_ep_ctx *ep_ctx, in setup_sch_info() argument 290 ep_type = CTX_TO_EP_TYPE(le32_to_cpu(ep_ctx->ep_info2)); in setup_sch_info() 291 maxpkt = MAX_PACKET_DECODED(le32_to_cpu(ep_ctx->ep_info2)); in setup_sch_info() 292 max_burst = CTX_TO_MAX_BURST(le32_to_cpu(ep_ctx->ep_info2)); in setup_sch_info() 293 mult = CTX_TO_EP_MULT(le32_to_cpu(ep_ctx->ep_info)); in setup_sch_info() 296 le32_to_cpu(ep_ctx->ep_info)) << 16) | in setup_sch_info() [all …]
|
| H A D | xhci-ring.c | 554 struct xhci_ep_ctx *ep_ctx; in xhci_get_hw_deq() local 564 ep_ctx = xhci_get_ep_ctx(xhci, vdev->out_ctx, ep_index); in xhci_get_hw_deq() 565 return le64_to_cpu(ep_ctx->deq); in xhci_get_hw_deq() 1076 struct xhci_ep_ctx *ep_ctx; in xhci_handle_cmd_stop_ep() local 1094 ep_ctx = xhci_get_ep_ctx(xhci, ep->vdev->out_ctx, ep_index); in xhci_handle_cmd_stop_ep() 1096 trace_xhci_handle_cmd_stop_ep(ep_ctx); in xhci_handle_cmd_stop_ep() 1113 switch (GET_EP_CTX_STATE(ep_ctx)) { in xhci_handle_cmd_stop_ep() 1360 struct xhci_ep_ctx *ep_ctx; in xhci_handle_cmd_set_deq() local 1378 ep_ctx = xhci_get_ep_ctx(xhci, ep->vdev->out_ctx, ep_index); in xhci_handle_cmd_set_deq() 1381 trace_xhci_handle_cmd_set_deq_ep(ep_ctx); in xhci_handle_cmd_set_deq() [all …]
|
| H A D | xhci-mem.c | 795 struct xhci_ep_ctx *ep_ctx, in xhci_setup_streams_ep_input_ctx() argument 807 ep_ctx->ep_info &= cpu_to_le32(~EP_MAXPSTREAMS_MASK); in xhci_setup_streams_ep_input_ctx() 808 ep_ctx->ep_info |= cpu_to_le32(EP_MAXPSTREAMS(max_primary_streams) in xhci_setup_streams_ep_input_ctx() 810 ep_ctx->deq = cpu_to_le64(stream_info->ctx_array_dma); in xhci_setup_streams_ep_input_ctx() 818 void xhci_setup_no_streams_ep_input_ctx(struct xhci_ep_ctx *ep_ctx, in xhci_setup_no_streams_ep_input_ctx() argument 822 ep_ctx->ep_info &= cpu_to_le32(~(EP_MAXPSTREAMS_MASK | EP_HAS_LSA)); in xhci_setup_no_streams_ep_input_ctx() 824 ep_ctx->deq = cpu_to_le64(addr | ep->ring->cycle_state); in xhci_setup_no_streams_ep_input_ctx() 1505 struct xhci_ep_ctx *ep_ctx; in xhci_endpoint_init() local 1518 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in xhci_endpoint_init() 1589 ep_ctx->ep_info = cpu_to_le32(EP_MAX_ESIT_PAYLOAD_HI(max_esit_payload) | in xhci_endpoint_init() [all …]
|
| H A D | xhci-dbgcap.c | 92 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()
|
| H A D | xhci-debugfs.c | 283 struct xhci_ep_ctx *ep_ctx; in xhci_endpoint_context_show() local 291 ep_ctx = xhci_get_ep_ctx(xhci, dev->out_ctx, ep_index); in xhci_endpoint_context_show() 295 le32_to_cpu(ep_ctx->ep_info), in xhci_endpoint_context_show() 296 le32_to_cpu(ep_ctx->ep_info2), in xhci_endpoint_context_show() 297 le64_to_cpu(ep_ctx->deq), in xhci_endpoint_context_show() 298 le32_to_cpu(ep_ctx->tx_info))); in xhci_endpoint_context_show()
|
| H A D | xhci.c | 1420 struct xhci_ep_ctx *ep_ctx; in xhci_check_maxpacket() local 1427 ep_ctx = xhci_get_ep_ctx(xhci, out_ctx, ep_index); in xhci_check_maxpacket() 1428 hw_max_packet_size = MAX_PACKET_DECODED(le32_to_cpu(ep_ctx->ep_info2)); in xhci_check_maxpacket() 1463 ep_ctx = xhci_get_ep_ctx(xhci, command->in_ctx, ep_index); in xhci_check_maxpacket() 1464 ep_ctx->ep_info &= cpu_to_le32(~EP_STATE_MASK);/* must clear */ in xhci_check_maxpacket() 1465 ep_ctx->ep_info2 &= cpu_to_le32(~MAX_PACKET_MASK); in xhci_check_maxpacket() 1466 ep_ctx->ep_info2 |= cpu_to_le32(MAX_PACKET(max_packet_size)); in xhci_check_maxpacket() 1783 struct xhci_ep_ctx *ep_ctx; in xhci_drop_endpoint() local 1813 ep_ctx = xhci_get_ep_ctx(xhci, out_ctx, ep_index); in xhci_drop_endpoint() 1817 if ((GET_EP_CTX_STATE(ep_ctx) == EP_STATE_DISABLED) || in xhci_drop_endpoint() [all …]
|
| H A D | xhci-hub.c | 411 struct xhci_ep_ctx *ep_ctx; in xhci_stop_device() local 414 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->out_ctx, i); in xhci_stop_device() 417 if (GET_EP_CTX_STATE(ep_ctx) != EP_STATE_RUNNING) in xhci_stop_device()
|
| H A D | xhci.h | 2083 struct xhci_ep_ctx *ep_ctx, 2085 void xhci_setup_no_streams_ep_input_ctx(struct xhci_ep_ctx *ep_ctx,
|
| /OK3568_Linux_fs/u-boot/drivers/usb/host/ |
| H A D | xhci.c | 496 struct xhci_ep_ctx *ep_ctx[MAX_EP_CTX_NUM]; in xhci_set_configuration() local 571 ep_ctx[ep_index] = xhci_get_ep_ctx(ctrl, in_ctx, ep_index); in xhci_set_configuration() 582 ep_ctx[ep_index]->ep_info = in xhci_set_configuration() 586 ep_ctx[ep_index]->ep_info2 = in xhci_set_configuration() 588 ep_ctx[ep_index]->ep_info2 |= in xhci_set_configuration() 595 ep_ctx[ep_index]->ep_info2 |= in xhci_set_configuration() 601 ep_ctx[ep_index]->deq = cpu_to_le64(trb_64 | in xhci_set_configuration() 610 ep_ctx[ep_index]->tx_info = in xhci_set_configuration() 769 struct xhci_ep_ctx *ep_ctx; in xhci_check_maxpacket() local 777 ep_ctx = xhci_get_ep_ctx(ctrl, out_ctx, ep_index); in xhci_check_maxpacket() [all …]
|
| H A D | xhci-ring.c | 568 struct xhci_ep_ctx *ep_ctx; in xhci_bulk_tx() local 589 ep_ctx = xhci_get_ep_ctx(ctrl, virt_dev->out_ctx, ep_index); in xhci_bulk_tx() 622 le32_to_cpu(ep_ctx->ep_info) & EP_STATE_MASK); in xhci_bulk_tx() 789 struct xhci_ep_ctx *ep_ctx = NULL; in xhci_ctrl_tx() local 790 ep_ctx = xhci_get_ep_ctx(ctrl, virt_dev->out_ctx, ep_index); in xhci_ctrl_tx() 808 le32_to_cpu(ep_ctx->ep_info) & EP_STATE_MASK); in xhci_ctrl_tx()
|
| /OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/qemu/qemu/ |
| H A D | 0018_let_ld_pointer_dma_function_propagate_MemTxResult.patch | 78 uint32_t ep_ctx[5];
|
| /OK3568_Linux_fs/kernel/drivers/usb/gadget/udc/ |
| H A D | tegra-xudc.c | 2364 struct tegra_xudc_ep_context *ep_ctx; in tegra_xudc_ep0_get_status() local 2404 ep_ctx = &xudc->ep_context[ep]; in tegra_xudc_ep0_get_status() 2410 if (ep_ctx_read_state(ep_ctx) == EP_STATE_DISABLED) in tegra_xudc_ep0_get_status()
|