Lines Matching defs:slot_id
1389 if (!udev->slot_id || !xhci->devs[udev->slot_id]) {
1395 virt_dev = xhci->devs[udev->slot_id];
1419 static int xhci_check_maxpacket(struct xhci_hcd *xhci, unsigned int slot_id,
1430 out_ctx = xhci->devs[slot_id]->out_ctx;
1455 command->in_ctx = xhci->devs[slot_id]->in_ctx;
1464 xhci_endpoint_copy(xhci, xhci->devs[slot_id]->in_ctx,
1465 xhci->devs[slot_id]->out_ctx, ep_index);
1498 unsigned int slot_id, ep_index;
1510 slot_id = urb->dev->slot_id;
1512 ep_state = &xhci->devs[slot_id]->eps[ep_index].ep_state;
1517 if (xhci->devs[slot_id]->flags & VDEV_PORT_ERROR) {
1547 ret = xhci_check_maxpacket(xhci, slot_id,
1581 slot_id, ep_index);
1585 slot_id, ep_index);
1589 slot_id, ep_index);
1593 slot_id, ep_index);
1661 vdev = xhci->devs[urb->dev->slot_id];
1740 xhci_queue_stop_endpoint(xhci, command, urb->dev->slot_id,
1768 * the xhci->devs[slot_id] structure.
1797 in_ctx = xhci->devs[udev->slot_id]->in_ctx;
1798 out_ctx = xhci->devs[udev->slot_id]->out_ctx;
1815 if (xhci->devs[udev->slot_id]->eps[ep_index].ring != NULL)
1827 xhci_debugfs_remove_endpoint(xhci, xhci->devs[udev->slot_id], ep_index);
1829 xhci_endpoint_zero(xhci, xhci->devs[udev->slot_id], ep);
1833 udev->slot_id,
1851 * for mutual exclusion to protect the xhci->devs[slot_id] structure.
1887 virt_dev = xhci->devs[udev->slot_id];
1947 udev->slot_id,
2361 virt_dev->tt_info->slot_id,
2532 xhci->devs[udev->slot_id]->bw_table->ss_bw_in -=
2535 xhci->devs[udev->slot_id]->bw_table->ss_bw_out -=
2594 xhci->devs[udev->slot_id]->bw_table->ss_bw_in +=
2597 xhci->devs[udev->slot_id]->bw_table->ss_bw_out +=
2783 virt_dev = xhci->devs[udev->slot_id];
2818 udev->slot_id, must_succeed);
2822 udev->slot_id, must_succeed);
2879 * else should be touching the xhci->devs[slot_id] structure, so we
2901 virt_dev = xhci->devs[udev->slot_id];
2993 virt_dev = xhci->devs[udev->slot_id];
3033 if (!udev || !udev->slot_id)
3036 vdev = xhci->devs[udev->slot_id];
3088 vdev = xhci->devs[udev->slot_id];
3095 if (!udev->slot_id || !vdev)
3144 err = xhci_queue_stop_endpoint(xhci, stop_cmd, udev->slot_id,
3176 udev->slot_id, false);
3201 unsigned int slot_id)
3220 ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state;
3230 if (!list_empty(&xhci->devs[slot_id]->eps[ep_index].ring->td_list)) {
3277 eps[i], udev->slot_id);
3302 unsigned int slot_id;
3307 slot_id = udev->slot_id;
3308 if (!xhci->devs[slot_id])
3313 ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state;
3418 vdev = xhci->devs[udev->slot_id];
3485 udev->slot_id, ep_index);
3535 vdev = xhci->devs[udev->slot_id];
3565 xhci->devs[udev->slot_id]->eps[ep_index].ep_state |=
3659 unsigned int slot_id;
3669 slot_id = udev->slot_id;
3670 virt_dev = xhci->devs[slot_id];
3673 "not exist. Re-allocate the device\n", slot_id);
3691 slot_id);
3707 xhci_dbg(xhci, "Resetting device with slot ID %u\n", slot_id);
3723 ret = xhci_queue_reset_device(xhci, reset_device_cmd, slot_id);
3749 slot_id,
3838 virt_dev = xhci->devs[udev->slot_id];
3846 xhci_disable_slot(xhci, udev->slot_id);
3849 xhci_free_virt_device(xhci, udev->slot_id);
3854 int xhci_disable_slot(struct xhci_hcd *xhci, u32 slot_id)
3865 xhci_debugfs_remove_slot(xhci, slot_id);
3878 slot_id);
3891 slot_id, command->status);
3931 int ret, slot_id;
3950 slot_id = command->slot_id;
3952 if (!slot_id || command->status != COMP_SUCCESS) {
3980 if (!xhci_alloc_virt_device(xhci, slot_id, udev, GFP_NOIO)) {
3984 vdev = xhci->devs[slot_id];
3988 udev->slot_id = slot_id;
3990 xhci_debugfs_create_slot(xhci, slot_id);
4004 xhci_disable_slot(xhci, udev->slot_id);
4005 xhci_free_virt_device(xhci, udev->slot_id);
4034 if (!udev->slot_id) {
4036 "Bad Slot ID %d", udev->slot_id);
4041 virt_dev = xhci->devs[udev->slot_id];
4049 xhci_warn(xhci, "Virt dev invalid for slot_id 0x%x!\n",
4050 udev->slot_id);
4101 udev->slot_id, setup);
4127 act, udev->slot_id);
4134 ret = xhci_disable_slot(xhci, udev->slot_id);
4135 xhci_free_virt_device(xhci, udev->slot_id);
4165 udev->slot_id,
4166 &xhci->dcbaa->dev_context_ptrs[udev->slot_id],
4168 le64_to_cpu(xhci->dcbaa->dev_context_ptrs[udev->slot_id]));
4242 virt_dev = xhci->devs[udev->slot_id];
4425 pm_val |= PORT_HIRD(hird) | PORT_RWE | PORT_L1DS(udev->slot_id);
4900 !xhci->devs[udev->slot_id])
4935 !xhci->devs[udev->slot_id])
4988 vdev = xhci->devs[hdev->slot_id];
5257 unsigned int slot_id;
5265 slot_id = udev->slot_id;
5268 xhci->devs[slot_id]->eps[ep_index].ep_state &= ~EP_CLEARING_TT;
5269 xhci_ring_doorbell_for_active_rings(xhci, slot_id, ep_index);