Lines Matching refs:slot_ctx
1305 struct xhci_slot_ctx *slot_ctx; in xhci_drop_endpoint() local
1348 slot_ctx = xhci_get_slot_ctx(xhci, in_ctx); in xhci_drop_endpoint()
1350 if ((slot_ctx->dev_info & LAST_CTX_MASK) > LAST_CTX(last_ctx)) { in xhci_drop_endpoint()
1351 slot_ctx->dev_info &= ~LAST_CTX_MASK; in xhci_drop_endpoint()
1352 slot_ctx->dev_info |= LAST_CTX(last_ctx); in xhci_drop_endpoint()
1354 new_slot_info = slot_ctx->dev_info; in xhci_drop_endpoint()
1387 struct xhci_slot_ctx *slot_ctx; in xhci_add_endpoint() local
1451 slot_ctx = xhci_get_slot_ctx(xhci, in_ctx); in xhci_add_endpoint()
1453 if ((slot_ctx->dev_info & LAST_CTX_MASK) < LAST_CTX(last_ctx)) { in xhci_add_endpoint()
1454 slot_ctx->dev_info &= ~LAST_CTX_MASK; in xhci_add_endpoint()
1455 slot_ctx->dev_info |= LAST_CTX(last_ctx); in xhci_add_endpoint()
1457 new_slot_info = slot_ctx->dev_info; in xhci_add_endpoint()
1475 struct xhci_slot_ctx *slot_ctx; in xhci_zero_in_ctx() local
1486 slot_ctx = xhci_get_slot_ctx(xhci, virt_dev->in_ctx); in xhci_zero_in_ctx()
1487 slot_ctx->dev_info &= ~LAST_CTX_MASK; in xhci_zero_in_ctx()
1489 slot_ctx->dev_info |= LAST_CTX(1); in xhci_zero_in_ctx()
1663 struct xhci_slot_ctx *slot_ctx; in xhci_check_bandwidth() local
1680 slot_ctx = xhci_get_slot_ctx(xhci, virt_dev->in_ctx); in xhci_check_bandwidth()
1682 LAST_CTX_TO_EP_NUM(slot_ctx->dev_info)); in xhci_check_bandwidth()
1693 LAST_CTX_TO_EP_NUM(slot_ctx->dev_info)); in xhci_check_bandwidth()
2534 struct xhci_slot_ctx *slot_ctx; in xhci_address_device() local
2545 slot_ctx = xhci_get_slot_ctx(xhci, virt_dev->in_ctx); in xhci_address_device()
2551 if (!slot_ctx->dev_info) in xhci_address_device()
2626 slot_ctx = xhci_get_slot_ctx(xhci, virt_dev->out_ctx); in xhci_address_device()
2629 virt_dev->address = (slot_ctx->dev_state & DEV_ADDR_MASK) + 1; in xhci_address_device()
2650 struct xhci_slot_ctx *slot_ctx; in xhci_update_hub_device() local
2674 slot_ctx = xhci_get_slot_ctx(xhci, config_cmd->in_ctx); in xhci_update_hub_device()
2675 slot_ctx->dev_info |= DEV_HUB; in xhci_update_hub_device()
2677 slot_ctx->dev_info |= DEV_MTT; in xhci_update_hub_device()
2682 slot_ctx->dev_info2 |= XHCI_MAX_PORTS(hdev->maxchild); in xhci_update_hub_device()
2690 slot_ctx->tt_info |= TT_THINK_TIME(think_time); in xhci_update_hub_device()
2696 slot_ctx->dev_state = 0; in xhci_update_hub_device()