Lines Matching defs:slot_id
1400 if (!udev->slot_id || !xhci->devs[udev->slot_id]) {
1406 virt_dev = xhci->devs[udev->slot_id];
1430 static int xhci_check_maxpacket(struct xhci_hcd *xhci, unsigned int slot_id,
1441 out_ctx = xhci->devs[slot_id]->out_ctx;
1466 command->in_ctx = xhci->devs[slot_id]->in_ctx;
1475 xhci_endpoint_copy(xhci, xhci->devs[slot_id]->in_ctx,
1476 xhci->devs[slot_id]->out_ctx, ep_index);
1509 unsigned int slot_id, ep_index;
1521 slot_id = urb->dev->slot_id;
1523 ep_state = &xhci->devs[slot_id]->eps[ep_index].ep_state;
1530 if (xhci->devs[slot_id]->flags & VDEV_PORT_ERROR) {
1560 ret = xhci_check_maxpacket(xhci, slot_id,
1594 slot_id, ep_index);
1598 slot_id, ep_index);
1602 slot_id, ep_index);
1606 slot_id, ep_index);
1674 vdev = xhci->devs[urb->dev->slot_id];
1751 xhci_queue_stop_endpoint(xhci, command, urb->dev->slot_id,
1779 * the xhci->devs[slot_id] structure.
1808 in_ctx = xhci->devs[udev->slot_id]->in_ctx;
1809 out_ctx = xhci->devs[udev->slot_id]->out_ctx;
1826 if (xhci->devs[udev->slot_id]->eps[ep_index].ring != NULL)
1838 xhci_debugfs_remove_endpoint(xhci, xhci->devs[udev->slot_id], ep_index);
1840 xhci_endpoint_zero(xhci, xhci->devs[udev->slot_id], ep);
1847 udev->slot_id,
1864 * for mutual exclusion to protect the xhci->devs[slot_id] structure.
1900 virt_dev = xhci->devs[udev->slot_id];
1969 udev->slot_id,
2383 virt_dev->tt_info->slot_id,
2554 xhci->devs[udev->slot_id]->bw_table->ss_bw_in -=
2557 xhci->devs[udev->slot_id]->bw_table->ss_bw_out -=
2619 xhci->devs[udev->slot_id]->bw_table->ss_bw_in +=
2622 xhci->devs[udev->slot_id]->bw_table->ss_bw_out +=
2811 virt_dev = xhci->devs[udev->slot_id];
2846 udev->slot_id, must_succeed);
2850 udev->slot_id, must_succeed);
2907 * else should be touching the xhci->devs[slot_id] structure, so we
2929 virt_dev = xhci->devs[udev->slot_id];
3020 virt_dev = xhci->devs[udev->slot_id];
3045 unsigned int slot_id, unsigned int ep_index,
3054 in_ctx = xhci->devs[slot_id]->in_ctx;
3062 xhci_endpoint_copy(xhci, xhci->devs[slot_id]->in_ctx,
3063 xhci->devs[slot_id]->out_ctx, ep_index);
3078 xhci_setup_input_ctx_for_config_ep(xhci, xhci->devs[slot_id]->in_ctx,
3079 xhci->devs[slot_id]->out_ctx, ctrl_ctx,
3083 void xhci_cleanup_stalled_ring(struct xhci_hcd *xhci, unsigned int slot_id,
3094 xhci_find_new_dequeue_state(xhci, slot_id, ep_index, stream_id, td,
3106 xhci_queue_new_dequeue_state(xhci, slot_id,
3117 xhci_setup_input_ctx_for_quirk(xhci, slot_id,
3137 if (!udev || !udev->slot_id)
3140 vdev = xhci->devs[udev->slot_id];
3194 vdev = xhci->devs[udev->slot_id];
3201 if (!udev->slot_id || !vdev)
3252 err = xhci_queue_stop_endpoint(xhci, stop_cmd, udev->slot_id,
3284 udev->slot_id, false);
3309 unsigned int slot_id)
3328 ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state;
3338 if (!list_empty(&xhci->devs[slot_id]->eps[ep_index].ring->td_list)) {
3385 eps[i], udev->slot_id);
3410 unsigned int slot_id;
3415 slot_id = udev->slot_id;
3416 if (!xhci->devs[slot_id])
3421 ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state;
3526 vdev = xhci->devs[udev->slot_id];
3593 udev->slot_id, ep_index);
3643 vdev = xhci->devs[udev->slot_id];
3673 xhci->devs[udev->slot_id]->eps[ep_index].ep_state |=
3767 unsigned int slot_id;
3777 slot_id = udev->slot_id;
3778 virt_dev = xhci->devs[slot_id];
3781 "not exist. Re-allocate the device\n", slot_id);
3799 slot_id);
3815 xhci_dbg(xhci, "Resetting device with slot ID %u\n", slot_id);
3831 ret = xhci_queue_reset_device(xhci, reset_device_cmd, slot_id);
3857 slot_id,
3946 virt_dev = xhci->devs[udev->slot_id];
3956 xhci_disable_slot(xhci, udev->slot_id);
3959 xhci_free_virt_device(xhci, udev->slot_id);
3964 int xhci_disable_slot(struct xhci_hcd *xhci, u32 slot_id)
3975 xhci_debugfs_remove_slot(xhci, slot_id);
3988 slot_id);
4001 slot_id, command->status);
4041 int ret, slot_id;
4060 slot_id = command->slot_id;
4062 if (!slot_id || command->status != COMP_SUCCESS) {
4089 if (!xhci_alloc_virt_device(xhci, slot_id, udev, GFP_NOIO)) {
4093 vdev = xhci->devs[slot_id];
4097 udev->slot_id = slot_id;
4099 xhci_debugfs_create_slot(xhci, slot_id);
4113 xhci_disable_slot(xhci, udev->slot_id);
4114 xhci_free_virt_device(xhci, udev->slot_id);
4143 if (!udev->slot_id) {
4145 "Bad Slot ID %d", udev->slot_id);
4150 virt_dev = xhci->devs[udev->slot_id];
4158 xhci_warn(xhci, "Virt dev invalid for slot_id 0x%x!\n",
4159 udev->slot_id);
4210 udev->slot_id, setup);
4236 act, udev->slot_id);
4243 ret = xhci_disable_slot(xhci, udev->slot_id);
4244 xhci_free_virt_device(xhci, udev->slot_id);
4276 udev->slot_id,
4277 &xhci->dcbaa->dev_context_ptrs[udev->slot_id],
4279 le64_to_cpu(xhci->dcbaa->dev_context_ptrs[udev->slot_id]));
4349 virt_dev = xhci->devs[udev->slot_id];
4538 pm_val |= PORT_HIRD(hird) | PORT_RWE | PORT_L1DS(udev->slot_id);
5031 !xhci->devs[udev->slot_id])
5063 !xhci->devs[udev->slot_id])
5116 vdev = xhci->devs[hdev->slot_id];
5371 unsigned int slot_id;
5379 slot_id = udev->slot_id;
5382 xhci->devs[slot_id]->eps[ep_index].ep_state &= ~EP_CLEARING_TT;
5383 xhci_ring_doorbell_for_active_rings(xhci, slot_id, ep_index);