Home
last modified time | relevance | path

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

/openbmc/qemu/hw/usb/
H A Dhcd-xhci.c2057 static USBPort *xhci_lookup_uport(XHCIState *xhci, uint32_t *slot_ctx) in xhci_lookup_uport() argument
2063 port = (slot_ctx[1]>>16) & 0xFF; in xhci_lookup_uport()
2070 port = (slot_ctx[0] >> 4*i) & 0x0f; in xhci_lookup_uport()
2094 uint32_t slot_ctx[4]; in xhci_address_slot() local
2117 xhci_dma_read_u32s(xhci, ictx+32, slot_ctx, sizeof(slot_ctx)); in xhci_address_slot()
2121 slot_ctx[0], slot_ctx[1], slot_ctx[2], slot_ctx[3]); in xhci_address_slot()
2126 uport = xhci_lookup_uport(xhci, slot_ctx); in xhci_address_slot()
2153 slot->intr = get_field(slot_ctx[2], TRB_INTR); in xhci_address_slot()
2158 slot_ctx[3] = SLOT_DEFAULT << SLOT_STATE_SHIFT; in xhci_address_slot()
2163 slot_ctx[3] = (SLOT_ADDRESSED << SLOT_STATE_SHIFT) | slotid; in xhci_address_slot()
[all …]
/openbmc/u-boot/drivers/usb/host/
H A Dxhci-mem.c723 struct xhci_slot_ctx *slot_ctx; in xhci_setup_addressable_virt_dev() local
740 slot_ctx = xhci_get_slot_ctx(ctrl, virt_dev->in_ctx); in xhci_setup_addressable_virt_dev()
743 slot_ctx->dev_info |= cpu_to_le32(LAST_CTX(1)); in xhci_setup_addressable_virt_dev()
768 slot_ctx->dev_info |= route; in xhci_setup_addressable_virt_dev()
772 slot_ctx->dev_info |= cpu_to_le32(SLOT_SPEED_SS); in xhci_setup_addressable_virt_dev()
775 slot_ctx->dev_info |= cpu_to_le32(SLOT_SPEED_HS); in xhci_setup_addressable_virt_dev()
778 slot_ctx->dev_info |= cpu_to_le32(SLOT_SPEED_FS); in xhci_setup_addressable_virt_dev()
781 slot_ctx->dev_info |= cpu_to_le32(SLOT_SPEED_LS); in xhci_setup_addressable_virt_dev()
805 slot_ctx->dev_info |= cpu_to_le32(DEV_MTT); in xhci_setup_addressable_virt_dev()
806 slot_ctx->tt_info |= cpu_to_le32(TT_PORT(port_num)); in xhci_setup_addressable_virt_dev()
[all …]
H A Dxhci.c494 struct xhci_slot_ctx *slot_ctx; in xhci_set_configuration() local
538 slot_ctx = xhci_get_slot_ctx(ctrl, in_ctx); in xhci_set_configuration()
539 slot_ctx->dev_info &= ~(cpu_to_le32(LAST_CTX_MASK)); in xhci_set_configuration()
540 slot_ctx->dev_info |= cpu_to_le32(LAST_CTX(max_ep_flag + 1) | 0); in xhci_set_configuration()
628 struct xhci_slot_ctx *slot_ctx; in xhci_address_device() local
689 slot_ctx = xhci_get_slot_ctx(ctrl, virt_dev->out_ctx); in xhci_address_device()
692 le32_to_cpu(slot_ctx->dev_state) & DEV_ADDR_MASK); in xhci_address_device()
1409 struct xhci_slot_ctx *slot_ctx; in xhci_update_hub_device() local
1434 slot_ctx = xhci_get_slot_ctx(ctrl, in_ctx); in xhci_update_hub_device()
1437 slot_ctx->dev_info |= cpu_to_le32(DEV_HUB); in xhci_update_hub_device()
[all …]
/openbmc/linux/drivers/usb/cdns3/
H A Dcdnsp-gadget.c442 struct cdnsp_slot_ctx *slot_ctx; in cdnsp_zero_in_ctx() local
456 slot_ctx = cdnsp_get_slot_ctx(&pdev->in_ctx); in cdnsp_zero_in_ctx()
457 slot_ctx->dev_info &= cpu_to_le32(~LAST_CTX_MASK); in cdnsp_zero_in_ctx()
460 slot_ctx->dev_info |= cpu_to_le32(LAST_CTX(1)); in cdnsp_zero_in_ctx()
639 struct cdnsp_slot_ctx *slot_ctx; in cdnsp_update_eps_configuration() local
655 slot_ctx = cdnsp_get_slot_ctx(&pdev->in_ctx); in cdnsp_update_eps_configuration()
661 slot_ctx->dev_info &= cpu_to_le32(~LAST_CTX_MASK); in cdnsp_update_eps_configuration()
662 slot_ctx->dev_info |= cpu_to_le32(LAST_CTX(i)); in cdnsp_update_eps_configuration()
690 struct cdnsp_slot_ctx *slot_ctx; in cdnsp_reset_device() local
694 slot_ctx = cdnsp_get_slot_ctx(&pdev->in_ctx); in cdnsp_reset_device()
[all …]
H A Dcdnsp-ep0.c88 struct cdnsp_slot_ctx *slot_ctx; in cdnsp_ep0_set_address() local
100 slot_ctx = cdnsp_get_slot_ctx(&pdev->out_ctx); in cdnsp_ep0_set_address()
109 slot_ctx = cdnsp_get_slot_ctx(&pdev->out_ctx); in cdnsp_ep0_set_address()
110 slot_state = GET_SLOT_STATE(le32_to_cpu(slot_ctx->dev_state)); in cdnsp_ep0_set_address()
H A Dcdnsp-mem.c728 struct cdnsp_slot_ctx *slot_ctx; in cdnsp_setup_addressable_priv_dev() local
733 slot_ctx = cdnsp_get_slot_ctx(&pdev->in_ctx); in cdnsp_setup_addressable_priv_dev()
736 slot_ctx->dev_info |= cpu_to_le32(LAST_CTX(1)); in cdnsp_setup_addressable_priv_dev()
740 slot_ctx->dev_info |= cpu_to_le32(SLOT_SPEED_SSP); in cdnsp_setup_addressable_priv_dev()
744 slot_ctx->dev_info |= cpu_to_le32(SLOT_SPEED_SS); in cdnsp_setup_addressable_priv_dev()
748 slot_ctx->dev_info |= cpu_to_le32(SLOT_SPEED_HS); in cdnsp_setup_addressable_priv_dev()
752 slot_ctx->dev_info |= cpu_to_le32(SLOT_SPEED_FS); in cdnsp_setup_addressable_priv_dev()
761 slot_ctx->dev_port |= cpu_to_le32(port); in cdnsp_setup_addressable_priv_dev()
762 slot_ctx->dev_state = cpu_to_le32((pdev->device_address & in cdnsp_setup_addressable_priv_dev()
/openbmc/linux/drivers/usb/host/
H A Dxhci-dbg.c16 struct xhci_slot_ctx *slot_ctx = xhci_get_slot_ctx(xhci, ctx); in xhci_get_slot_state() local
17 int state = GET_SLOT_STATE(le32_to_cpu(slot_ctx->dev_state)); in xhci_get_slot_state()
H A Dxhci.c1981 struct xhci_slot_ctx *slot_ctx; in xhci_zero_in_ctx() local
1998 slot_ctx = xhci_get_slot_ctx(xhci, virt_dev->in_ctx); in xhci_zero_in_ctx()
1999 slot_ctx->dev_info &= cpu_to_le32(~LAST_CTX_MASK); in xhci_zero_in_ctx()
2001 slot_ctx->dev_info |= cpu_to_le32(LAST_CTX(1)); in xhci_zero_in_ctx()
2794 struct xhci_slot_ctx *slot_ctx; in xhci_configure_endpoint() local
2833 slot_ctx = xhci_get_slot_ctx(xhci, command->in_ctx); in xhci_configure_endpoint()
2836 trace_xhci_configure_endpoint(slot_ctx); in xhci_configure_endpoint()
2912 struct xhci_slot_ctx *slot_ctx; in xhci_check_bandwidth() local
2951 slot_ctx = xhci_get_slot_ctx(xhci, virt_dev->in_ctx); in xhci_check_bandwidth()
2957 slot_ctx->dev_info &= cpu_to_le32(~LAST_CTX_MASK); in xhci_check_bandwidth()
[all …]
H A Dxhci-debugfs.c262 struct xhci_slot_ctx *slot_ctx; in xhci_slot_context_show() local
268 slot_ctx = xhci_get_slot_ctx(xhci, dev->out_ctx); in xhci_slot_context_show()
271 le32_to_cpu(slot_ctx->dev_info), in xhci_slot_context_show()
272 le32_to_cpu(slot_ctx->dev_info2), in xhci_slot_context_show()
273 le32_to_cpu(slot_ctx->tt_info), in xhci_slot_context_show()
274 le32_to_cpu(slot_ctx->dev_state))); in xhci_slot_context_show()
H A Dxhci-mem.c1072 struct xhci_slot_ctx *slot_ctx; in xhci_setup_addressable_virt_dev() local
1085 slot_ctx = xhci_get_slot_ctx(xhci, dev->in_ctx); in xhci_setup_addressable_virt_dev()
1088 slot_ctx->dev_info |= cpu_to_le32(LAST_CTX(1) | udev->route); in xhci_setup_addressable_virt_dev()
1091 slot_ctx->dev_info |= cpu_to_le32(SLOT_SPEED_SSP); in xhci_setup_addressable_virt_dev()
1095 slot_ctx->dev_info |= cpu_to_le32(SLOT_SPEED_SS); in xhci_setup_addressable_virt_dev()
1099 slot_ctx->dev_info |= cpu_to_le32(SLOT_SPEED_HS); in xhci_setup_addressable_virt_dev()
1104 slot_ctx->dev_info |= cpu_to_le32(SLOT_SPEED_FS); in xhci_setup_addressable_virt_dev()
1108 slot_ctx->dev_info |= cpu_to_le32(SLOT_SPEED_LS); in xhci_setup_addressable_virt_dev()
1119 slot_ctx->dev_info2 |= cpu_to_le32(ROOT_HUB_PORT(port_num)); in xhci_setup_addressable_virt_dev()
1161 slot_ctx in xhci_setup_addressable_virt_dev()
[all...]
H A Dxhci-ring.c1403 struct xhci_slot_ctx *slot_ctx; in xhci_handle_cmd_set_deq() local
1421 slot_ctx = xhci_get_slot_ctx(xhci, ep->vdev->out_ctx); in xhci_handle_cmd_set_deq()
1422 trace_xhci_handle_cmd_set_deq(slot_ctx); in xhci_handle_cmd_set_deq()
1436 slot_state = le32_to_cpu(slot_ctx->dev_state); in xhci_handle_cmd_set_deq()
1577 struct xhci_slot_ctx *slot_ctx; in xhci_handle_cmd_disable_slot() local
1583 slot_ctx = xhci_get_slot_ctx(xhci, virt_dev->out_ctx); in xhci_handle_cmd_disable_slot()
1584 trace_xhci_handle_cmd_disable_slot(slot_ctx); in xhci_handle_cmd_disable_slot()
1628 struct xhci_slot_ctx *slot_ctx; in xhci_handle_cmd_addr_dev() local
1633 slot_ctx = xhci_get_slot_ctx(xhci, vdev->out_ctx); in xhci_handle_cmd_addr_dev()
1634 trace_xhci_handle_cmd_addr_dev(slot_ctx); in xhci_handle_cmd_addr_dev()
[all …]