Home
last modified time | relevance | path

Searched refs:in_ctx (Results 1 – 15 of 15) sorted by relevance

/openbmc/u-boot/drivers/usb/host/
H A Dxhci.c451 struct xhci_container_ctx *in_ctx; in xhci_configure_endpoints() local
457 in_ctx = virt_dev->in_ctx; in xhci_configure_endpoints()
459 xhci_flush_cache((uintptr_t)in_ctx->bytes, in_ctx->size); in xhci_configure_endpoints()
460 xhci_queue_command(ctrl, in_ctx->bytes, udev->slot_id, 0, in xhci_configure_endpoints()
491 struct xhci_container_ctx *in_ctx; in xhci_set_configuration() local
516 in_ctx = virt_dev->in_ctx; in xhci_set_configuration()
521 ctrl_ctx = xhci_get_input_control_ctx(in_ctx); in xhci_set_configuration()
537 xhci_slot_copy(ctrl, in_ctx, out_ctx); in xhci_set_configuration()
538 slot_ctx = xhci_get_slot_ctx(ctrl, in_ctx); in xhci_set_configuration()
542 xhci_endpoint_copy(ctrl, in_ctx, out_ctx, 0); in xhci_set_configuration()
[all …]
H A Dxhci-mem.c155 if (virt_dev->in_ctx) in xhci_free_virt_devices()
156 xhci_free_container_ctx(virt_dev->in_ctx); in xhci_free_virt_devices()
473 virt_dev->in_ctx = xhci_alloc_container_ctx(ctrl, in xhci_alloc_virt_device()
475 if (!virt_dev->in_ctx) { in xhci_alloc_virt_device()
669 struct xhci_container_ctx *in_ctx, in xhci_endpoint_copy() argument
677 in_ep_ctx = xhci_get_ep_ctx(ctrl, in_ctx, ep_index); in xhci_endpoint_copy()
697 void xhci_slot_copy(struct xhci_ctrl *ctrl, struct xhci_container_ctx *in_ctx, in xhci_slot_copy() argument
703 in_slot_ctx = xhci_get_slot_ctx(ctrl, in_ctx); in xhci_slot_copy()
739 ep0_ctx = xhci_get_ep_ctx(ctrl, virt_dev->in_ctx, 0); in xhci_setup_addressable_virt_dev()
740 slot_ctx = xhci_get_slot_ctx(ctrl, virt_dev->in_ctx); in xhci_setup_addressable_virt_dev()
H A Dxhci.h1086 struct xhci_container_ctx *in_ctx; member
1244 struct xhci_container_ctx *in_ctx,
1248 struct xhci_container_ctx *in_ctx,
/openbmc/linux/drivers/usb/cdns3/
H A Dcdnsp-mem.c474 pdev->in_ctx.type = CDNSP_CTX_TYPE_INPUT; in cdnsp_init_device_ctx()
475 pdev->in_ctx.ctx_size = pdev->out_ctx.ctx_size; in cdnsp_init_device_ctx()
476 pdev->in_ctx.size = size + pdev->out_ctx.ctx_size; in cdnsp_init_device_ctx()
477 pdev->in_ctx.bytes = dma_pool_zalloc(pdev->device_pool, GFP_ATOMIC, in cdnsp_init_device_ctx()
478 &pdev->in_ctx.dma); in cdnsp_init_device_ctx()
480 if (!pdev->in_ctx.bytes) { in cdnsp_init_device_ctx()
675 if (pdev->in_ctx.bytes) in cdnsp_free_priv_device()
676 dma_pool_free(pdev->device_pool, pdev->in_ctx.bytes, in cdnsp_free_priv_device()
677 pdev->in_ctx.dma); in cdnsp_free_priv_device()
683 pdev->in_ctx.bytes = NULL; in cdnsp_free_priv_device()
[all …]
H A Dcdnsp-gadget.c446 ctrl_ctx = cdnsp_get_input_control_ctx(&pdev->in_ctx); in cdnsp_zero_in_ctx()
456 slot_ctx = cdnsp_get_slot_ctx(&pdev->in_ctx); in cdnsp_zero_in_ctx()
462 ep_ctx = cdnsp_get_ep_ctx(&pdev->in_ctx, i); in cdnsp_zero_in_ctx()
475 cdnsp_queue_configure_endpoint(pdev, pdev->cmd.in_ctx->dma); in cdnsp_configure_endpoint()
644 ctrl_ctx = cdnsp_get_input_control_ctx(&pdev->in_ctx); in cdnsp_update_eps_configuration()
655 slot_ctx = cdnsp_get_slot_ctx(&pdev->in_ctx); in cdnsp_update_eps_configuration()
694 slot_ctx = cdnsp_get_slot_ctx(&pdev->in_ctx); in cdnsp_reset_device()
793 cdnsp_setup_streams_ep_input_ctx(pdev, pep->in_ctx, &pep->stream_info); in cdnsp_alloc_streams()
816 memset(pdev->in_ctx.bytes, 0, CDNSP_CTX_SIZE); in cdnsp_disable_slot()
876 slot_ctx = cdnsp_get_slot_ctx(&pdev->in_ctx); in cdnsp_setup_device()
[all …]
H A Dcdnsp-trace.h414 __field(dma_addr_t, in_ctx)
420 __entry->in_ctx = pdev->in_ctx.dma;
426 __entry->pdev, __entry->gadget, &__entry->in_ctx,
H A Dcdnsp-gadget.h733 struct cdnsp_container_ctx *in_ctx; member
827 struct cdnsp_ep_ctx *in_ctx; member
1445 struct cdnsp_container_ctx in_ctx; member
/openbmc/linux/drivers/infiniband/hw/mlx5/
H A Dqos.c33 void *in_ctx; in UVERBS_HANDLER() local
52 in_ctx = uverbs_attr_get_alloced_ptr(attrs, in UVERBS_HANDLER()
56 memcpy(rl_raw, in_ctx, inlen); in UVERBS_HANDLER()
/openbmc/linux/drivers/usb/host/
H A Dxhci.c1465 command->in_ctx = xhci->devs[slot_id]->in_ctx; in xhci_check_maxpacket()
1466 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_check_maxpacket()
1474 xhci_endpoint_copy(xhci, xhci->devs[slot_id]->in_ctx, in xhci_check_maxpacket()
1477 ep_ctx = xhci_get_ep_ctx(xhci, command->in_ctx, ep_index); in xhci_check_maxpacket()
1784 struct xhci_container_ctx *in_ctx, *out_ctx; in xhci_drop_endpoint() local
1807 in_ctx = xhci->devs[udev->slot_id]->in_ctx; in xhci_drop_endpoint()
1809 ctrl_ctx = xhci_get_input_control_ctx(in_ctx); in xhci_drop_endpoint()
1867 struct xhci_container_ctx *in_ctx; in xhci_add_endpoint() local
1898 in_ctx = virt_dev->in_ctx; in xhci_add_endpoint()
1899 ctrl_ctx = xhci_get_input_control_ctx(in_ctx); in xhci_add_endpoint()
[all …]
H A Dxhci-trace.h174 __field(unsigned long long, in_ctx)
182 __entry->in_ctx = (unsigned long long) vdev->in_ctx->dma;
189 __entry->vdev, __entry->in_ctx, __entry->out_ctx,
205 __field(unsigned long long, in_ctx)
215 __entry->in_ctx = (unsigned long long) vdev->in_ctx->dma;
225 __entry->vdev, __entry->in_ctx, __entry->out_ctx,
H A Dxhci-mem.c893 if (dev->in_ctx) in xhci_free_virt_device()
894 xhci_free_container_ctx(xhci, dev->in_ctx); in xhci_free_virt_device()
972 dev->in_ctx = xhci_alloc_container_ctx(xhci, XHCI_CTX_TYPE_INPUT, flags); in xhci_alloc_virt_device()
973 if (!dev->in_ctx) in xhci_alloc_virt_device()
976 xhci_dbg(xhci, "Slot %d input ctx = 0x%pad (dma)\n", slot_id, &dev->in_ctx->dma); in xhci_alloc_virt_device()
1008 if (dev->in_ctx) in xhci_alloc_virt_device()
1009 xhci_free_container_ctx(xhci, dev->in_ctx); in xhci_alloc_virt_device()
1025 ep0_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, 0); in xhci_copy_ep0_dequeue_into_input_ctx()
1084 ep0_ctx = xhci_get_ep_ctx(xhci, dev->in_ctx, 0); in xhci_setup_addressable_virt_dev()
1085 slot_ctx = xhci_get_slot_ctx(xhci, dev->in_ctx); in xhci_setup_addressable_virt_dev()
[all …]
H A Dxhci.h557 struct xhci_container_ctx *in_ctx; member
768 struct xhci_container_ctx *in_ctx; member
1815 struct xhci_container_ctx *in_ctx,
1819 struct xhci_container_ctx *in_ctx,
1823 struct xhci_container_ctx *in_ctx,
H A Dxhci-mtk-sch.c638 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in add_ep_quirk()
710 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in xhci_mtk_check_bandwidth()
H A Dxhci-ring.c1567 ctrl_ctx = xhci_get_input_control_ctx(virt_dev->in_ctx); in xhci_handle_cmd_config_ep()
/openbmc/linux/sound/usb/
H A Dendpoint.c1771 struct snd_urb_ctx *in_ctx; in snd_usb_handle_sync_urb() local
1774 in_ctx = urb->context; in snd_usb_handle_sync_urb()
1777 for (i = 0; i < in_ctx->packets; i++) in snd_usb_handle_sync_urb()
1810 out_packet->packets = in_ctx->packets; in snd_usb_handle_sync_urb()
1811 for (i = 0; i < in_ctx->packets; i++) { in snd_usb_handle_sync_urb()