Lines Matching refs:slot_ctx
2108 struct xhci_slot_ctx *slot_ctx; in xhci_zero_in_ctx() local
2125 slot_ctx = xhci_get_slot_ctx(xhci, virt_dev->in_ctx); in xhci_zero_in_ctx()
2126 slot_ctx->dev_info &= cpu_to_le32(~LAST_CTX_MASK); in xhci_zero_in_ctx()
2128 slot_ctx->dev_info |= cpu_to_le32(LAST_CTX(1)); in xhci_zero_in_ctx()
2928 struct xhci_slot_ctx *slot_ctx; in xhci_configure_endpoint() local
2967 slot_ctx = xhci_get_slot_ctx(xhci, command->in_ctx); in xhci_configure_endpoint()
2970 trace_xhci_configure_endpoint(slot_ctx); in xhci_configure_endpoint()
3046 struct xhci_slot_ctx *slot_ctx; in xhci_check_bandwidth() local
3085 slot_ctx = xhci_get_slot_ctx(xhci, virt_dev->in_ctx); in xhci_check_bandwidth()
3091 slot_ctx->dev_info &= cpu_to_le32(~LAST_CTX_MASK); in xhci_check_bandwidth()
3092 slot_ctx->dev_info |= cpu_to_le32(LAST_CTX(i)); in xhci_check_bandwidth()
3819 struct xhci_slot_ctx *slot_ctx; in xhci_discover_or_reset_device() local
3857 slot_ctx = xhci_get_slot_ctx(xhci, virt_dev->out_ctx); in xhci_discover_or_reset_device()
3858 if (GET_SLOT_STATE(le32_to_cpu(slot_ctx->dev_state)) == in xhci_discover_or_reset_device()
3862 trace_xhci_discover_or_reset_device(slot_ctx); in xhci_discover_or_reset_device()
3976 struct xhci_slot_ctx *slot_ctx; in xhci_free_dev() local
3996 slot_ctx = xhci_get_slot_ctx(xhci, virt_dev->out_ctx); in xhci_free_dev()
3997 trace_xhci_free_dev(slot_ctx); in xhci_free_dev()
4086 struct xhci_slot_ctx *slot_ctx; in xhci_alloc_dev() local
4142 slot_ctx = xhci_get_slot_ctx(xhci, vdev->out_ctx); in xhci_alloc_dev()
4143 trace_xhci_alloc_dev(slot_ctx); in xhci_alloc_dev()
4179 struct xhci_slot_ctx *slot_ctx; in xhci_setup_device() local
4211 slot_ctx = xhci_get_slot_ctx(xhci, virt_dev->out_ctx); in xhci_setup_device()
4212 trace_xhci_setup_device_slot(slot_ctx); in xhci_setup_device()
4215 if (GET_SLOT_STATE(le32_to_cpu(slot_ctx->dev_state)) == in xhci_setup_device()
4230 slot_ctx = xhci_get_slot_ctx(xhci, virt_dev->in_ctx); in xhci_setup_device()
4243 if (!slot_ctx->dev_info) in xhci_setup_device()
4252 le32_to_cpu(slot_ctx->dev_info) >> 27); in xhci_setup_device()
4330 le32_to_cpu(slot_ctx->dev_info) >> 27); in xhci_setup_device()
4336 le32_to_cpu(slot_ctx->dev_info) >> 27); in xhci_setup_device()
4340 slot_ctx = xhci_get_slot_ctx(xhci, virt_dev->out_ctx); in xhci_setup_device()
4341 udev->devaddr = (u8)(le32_to_cpu(slot_ctx->dev_state) & DEV_ADDR_MASK); in xhci_setup_device()
4345 le32_to_cpu(slot_ctx->dev_state) & DEV_ADDR_MASK); in xhci_setup_device()
4389 struct xhci_slot_ctx *slot_ctx; in xhci_change_max_exit_latency() local
4426 slot_ctx = xhci_get_slot_ctx(xhci, command->in_ctx); in xhci_change_max_exit_latency()
4427 slot_ctx->dev_info2 &= cpu_to_le32(~((u32) MAX_EXIT)); in xhci_change_max_exit_latency()
4428 slot_ctx->dev_info2 |= cpu_to_le32(max_exit_latency); in xhci_change_max_exit_latency()
4429 slot_ctx->dev_state = 0; in xhci_change_max_exit_latency()
5142 struct xhci_slot_ctx *slot_ctx; in xhci_update_hub_device() local
5180 slot_ctx = xhci_get_slot_ctx(xhci, config_cmd->in_ctx); in xhci_update_hub_device()
5181 slot_ctx->dev_info |= cpu_to_le32(DEV_HUB); in xhci_update_hub_device()
5188 slot_ctx->dev_info |= cpu_to_le32(DEV_MTT); in xhci_update_hub_device()
5190 slot_ctx->dev_info &= cpu_to_le32(~DEV_MTT); in xhci_update_hub_device()
5196 slot_ctx->dev_info2 |= cpu_to_le32(XHCI_MAX_PORTS(hdev->maxchild)); in xhci_update_hub_device()
5208 slot_ctx->tt_info |= in xhci_update_hub_device()
5215 slot_ctx->dev_state = 0; in xhci_update_hub_device()