Lines Matching refs:slot_ctx
1835 struct xhci_slot_ctx *slot_ctx; in xhci_zero_in_ctx() local
1852 slot_ctx = xhci_get_slot_ctx(xhci, virt_dev->in_ctx); in xhci_zero_in_ctx()
1853 slot_ctx->dev_info &= cpu_to_le32(~LAST_CTX_MASK); in xhci_zero_in_ctx()
1855 slot_ctx->dev_info |= cpu_to_le32(LAST_CTX(1)); in xhci_zero_in_ctx()
2760 struct xhci_slot_ctx *slot_ctx; in xhci_check_bandwidth() local
2799 slot_ctx = xhci_get_slot_ctx(xhci, virt_dev->in_ctx); in xhci_check_bandwidth()
2805 slot_ctx->dev_info &= cpu_to_le32(~LAST_CTX_MASK); in xhci_check_bandwidth()
2806 slot_ctx->dev_info |= cpu_to_le32(LAST_CTX(i)); in xhci_check_bandwidth()
2812 LAST_CTX_TO_EP_NUM(le32_to_cpu(slot_ctx->dev_info))); in xhci_check_bandwidth()
2822 LAST_CTX_TO_EP_NUM(le32_to_cpu(slot_ctx->dev_info))); in xhci_check_bandwidth()
3461 struct xhci_slot_ctx *slot_ctx; in xhci_discover_or_reset_device() local
3499 slot_ctx = xhci_get_slot_ctx(xhci, virt_dev->out_ctx); in xhci_discover_or_reset_device()
3500 if (GET_SLOT_STATE(le32_to_cpu(slot_ctx->dev_state)) == in xhci_discover_or_reset_device()
3810 struct xhci_slot_ctx *slot_ctx; in xhci_setup_device() local
3842 slot_ctx = xhci_get_slot_ctx(xhci, virt_dev->out_ctx); in xhci_setup_device()
3843 if (GET_SLOT_STATE(le32_to_cpu(slot_ctx->dev_state)) == in xhci_setup_device()
3859 slot_ctx = xhci_get_slot_ctx(xhci, virt_dev->in_ctx); in xhci_setup_device()
3872 if (!slot_ctx->dev_info) in xhci_setup_device()
3883 le32_to_cpu(slot_ctx->dev_info) >> 27); in xhci_setup_device()
3956 le32_to_cpu(slot_ctx->dev_info) >> 27); in xhci_setup_device()
3963 slot_ctx = xhci_get_slot_ctx(xhci, virt_dev->out_ctx); in xhci_setup_device()
3965 le32_to_cpu(slot_ctx->dev_info) >> 27); in xhci_setup_device()
3972 le32_to_cpu(slot_ctx->dev_state) & DEV_ADDR_MASK); in xhci_setup_device()
4021 struct xhci_slot_ctx *slot_ctx; in xhci_change_max_exit_latency() local
4054 slot_ctx = xhci_get_slot_ctx(xhci, command->in_ctx); in xhci_change_max_exit_latency()
4055 slot_ctx->dev_info2 &= cpu_to_le32(~((u32) MAX_EXIT)); in xhci_change_max_exit_latency()
4056 slot_ctx->dev_info2 |= cpu_to_le32(max_exit_latency); in xhci_change_max_exit_latency()
4057 slot_ctx->dev_state = 0; in xhci_change_max_exit_latency()
4761 struct xhci_slot_ctx *slot_ctx; in xhci_update_hub_device() local
4799 slot_ctx = xhci_get_slot_ctx(xhci, config_cmd->in_ctx); in xhci_update_hub_device()
4800 slot_ctx->dev_info |= cpu_to_le32(DEV_HUB); in xhci_update_hub_device()
4807 slot_ctx->dev_info |= cpu_to_le32(DEV_MTT); in xhci_update_hub_device()
4809 slot_ctx->dev_info &= cpu_to_le32(~DEV_MTT); in xhci_update_hub_device()
4815 slot_ctx->dev_info2 |= cpu_to_le32(XHCI_MAX_PORTS(hdev->maxchild)); in xhci_update_hub_device()
4827 slot_ctx->tt_info |= in xhci_update_hub_device()
4834 slot_ctx->dev_state = 0; in xhci_update_hub_device()