Lines Matching refs:slot_id
1385 if (!udev->slot_id || !xhci->devs[udev->slot_id]) { in xhci_check_args()
1391 virt_dev = xhci->devs[udev->slot_id]; in xhci_check_args()
1415 static int xhci_check_maxpacket(struct xhci_hcd *xhci, unsigned int slot_id, in xhci_check_maxpacket() argument
1426 out_ctx = xhci->devs[slot_id]->out_ctx; in xhci_check_maxpacket()
1451 command->in_ctx = xhci->devs[slot_id]->in_ctx; in xhci_check_maxpacket()
1460 xhci_endpoint_copy(xhci, xhci->devs[slot_id]->in_ctx, in xhci_check_maxpacket()
1461 xhci->devs[slot_id]->out_ctx, ep_index); in xhci_check_maxpacket()
1494 unsigned int slot_id, ep_index; in xhci_urb_enqueue() local
1506 slot_id = urb->dev->slot_id; in xhci_urb_enqueue()
1508 ep_state = &xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_urb_enqueue()
1515 if (xhci->devs[slot_id]->flags & VDEV_PORT_ERROR) { in xhci_urb_enqueue()
1550 ret = xhci_check_maxpacket(xhci, slot_id, in xhci_urb_enqueue()
1584 slot_id, ep_index); in xhci_urb_enqueue()
1588 slot_id, ep_index); in xhci_urb_enqueue()
1592 slot_id, ep_index); in xhci_urb_enqueue()
1596 slot_id, ep_index); in xhci_urb_enqueue()
1664 vdev = xhci->devs[urb->dev->slot_id]; in xhci_urb_dequeue()
1746 xhci_queue_stop_endpoint(xhci, command, urb->dev->slot_id, in xhci_urb_dequeue()
1803 in_ctx = xhci->devs[udev->slot_id]->in_ctx; in xhci_drop_endpoint()
1804 out_ctx = xhci->devs[udev->slot_id]->out_ctx; in xhci_drop_endpoint()
1821 if (xhci->devs[udev->slot_id]->eps[ep_index].ring != NULL) in xhci_drop_endpoint()
1833 xhci_debugfs_remove_endpoint(xhci, xhci->devs[udev->slot_id], ep_index); in xhci_drop_endpoint()
1835 xhci_endpoint_zero(xhci, xhci->devs[udev->slot_id], ep); in xhci_drop_endpoint()
1839 udev->slot_id, in xhci_drop_endpoint()
1893 virt_dev = xhci->devs[udev->slot_id]; in xhci_add_endpoint()
1953 udev->slot_id, in xhci_add_endpoint()
2368 virt_dev->tt_info->slot_id, in xhci_check_bw_table()
2539 xhci->devs[udev->slot_id]->bw_table->ss_bw_in -= in xhci_drop_ep_from_interval_table()
2542 xhci->devs[udev->slot_id]->bw_table->ss_bw_out -= in xhci_drop_ep_from_interval_table()
2604 xhci->devs[udev->slot_id]->bw_table->ss_bw_in += in xhci_add_ep_to_interval_table()
2607 xhci->devs[udev->slot_id]->bw_table->ss_bw_out += in xhci_add_ep_to_interval_table()
2796 virt_dev = xhci->devs[udev->slot_id]; in xhci_configure_endpoint()
2831 udev->slot_id, must_succeed); in xhci_configure_endpoint()
2835 udev->slot_id, must_succeed); in xhci_configure_endpoint()
2871 ret = xhci_vendor_sync_dev_ctx(xhci, udev->slot_id); in xhci_configure_endpoint()
2922 virt_dev = xhci->devs[udev->slot_id]; in xhci_check_bandwidth()
3014 virt_dev = xhci->devs[udev->slot_id]; in xhci_reset_bandwidth()
3058 if (!udev || !udev->slot_id) in xhci_endpoint_disable()
3061 vdev = xhci->devs[udev->slot_id]; in xhci_endpoint_disable()
3115 vdev = xhci->devs[udev->slot_id]; in xhci_endpoint_reset()
3122 if (!udev->slot_id || !vdev) in xhci_endpoint_reset()
3173 err = xhci_queue_stop_endpoint(xhci, stop_cmd, udev->slot_id, in xhci_endpoint_reset()
3188 err = xhci_vendor_sync_dev_ctx(xhci, udev->slot_id); in xhci_endpoint_reset()
3212 udev->slot_id, false); in xhci_endpoint_reset()
3226 err = xhci_vendor_sync_dev_ctx(xhci, udev->slot_id); in xhci_endpoint_reset()
3242 unsigned int slot_id) in xhci_check_streams_endpoint() argument
3261 ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_check_streams_endpoint()
3271 if (!list_empty(&xhci->devs[slot_id]->eps[ep_index].ring->td_list)) { in xhci_check_streams_endpoint()
3318 eps[i], udev->slot_id); in xhci_calculate_streams_and_bitmask()
3343 unsigned int slot_id; in xhci_calculate_no_streams_bitmask() local
3348 slot_id = udev->slot_id; in xhci_calculate_no_streams_bitmask()
3349 if (!xhci->devs[slot_id]) in xhci_calculate_no_streams_bitmask()
3354 ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_calculate_no_streams_bitmask()
3459 vdev = xhci->devs[udev->slot_id]; in xhci_alloc_streams()
3526 udev->slot_id, ep_index); in xhci_alloc_streams()
3576 vdev = xhci->devs[udev->slot_id]; in xhci_free_streams()
3606 xhci->devs[udev->slot_id]->eps[ep_index].ep_state |= in xhci_free_streams()
3700 unsigned int slot_id; in xhci_discover_or_reset_device() local
3710 slot_id = udev->slot_id; in xhci_discover_or_reset_device()
3711 virt_dev = xhci->devs[slot_id]; in xhci_discover_or_reset_device()
3714 "not exist. Re-allocate the device\n", slot_id); in xhci_discover_or_reset_device()
3732 slot_id); in xhci_discover_or_reset_device()
3748 xhci_dbg(xhci, "Resetting device with slot ID %u\n", slot_id); in xhci_discover_or_reset_device()
3764 ret = xhci_queue_reset_device(xhci, reset_device_cmd, slot_id); in xhci_discover_or_reset_device()
3776 ret = xhci_vendor_sync_dev_ctx(xhci, slot_id); in xhci_discover_or_reset_device()
3797 slot_id, in xhci_discover_or_reset_device()
3885 virt_dev = xhci->devs[udev->slot_id]; in xhci_free_dev()
3895 xhci_disable_slot(xhci, udev->slot_id); in xhci_free_dev()
3896 xhci_free_virt_device(xhci, udev->slot_id); in xhci_free_dev()
3899 int xhci_disable_slot(struct xhci_hcd *xhci, u32 slot_id) in xhci_disable_slot() argument
3910 xhci_debugfs_remove_slot(xhci, slot_id); in xhci_disable_slot()
3923 slot_id); in xhci_disable_slot()
3936 slot_id, command->status); in xhci_disable_slot()
3976 int ret, slot_id; in xhci_alloc_dev() local
3995 slot_id = command->slot_id; in xhci_alloc_dev()
3997 if (!slot_id || command->status != COMP_SUCCESS) { in xhci_alloc_dev()
4024 if (!xhci_alloc_virt_device(xhci, slot_id, udev, GFP_NOIO)) { in xhci_alloc_dev()
4029 ret = xhci_vendor_sync_dev_ctx(xhci, slot_id); in xhci_alloc_dev()
4036 vdev = xhci->devs[slot_id]; in xhci_alloc_dev()
4040 udev->slot_id = slot_id; in xhci_alloc_dev()
4042 xhci_debugfs_create_slot(xhci, slot_id); in xhci_alloc_dev()
4056 xhci_disable_slot(xhci, udev->slot_id); in xhci_alloc_dev()
4057 xhci_free_virt_device(xhci, udev->slot_id); in xhci_alloc_dev()
4086 if (!udev->slot_id) { in xhci_setup_device()
4088 "Bad Slot ID %d", udev->slot_id); in xhci_setup_device()
4093 virt_dev = xhci->devs[udev->slot_id]; in xhci_setup_device()
4102 udev->slot_id); in xhci_setup_device()
4153 udev->slot_id, setup); in xhci_setup_device()
4166 ret = xhci_vendor_sync_dev_ctx(xhci, udev->slot_id); in xhci_setup_device()
4186 act, udev->slot_id); in xhci_setup_device()
4193 ret = xhci_disable_slot(xhci, udev->slot_id); in xhci_setup_device()
4194 xhci_free_virt_device(xhci, udev->slot_id); in xhci_setup_device()
4224 udev->slot_id, in xhci_setup_device()
4225 &xhci->dcbaa->dev_context_ptrs[udev->slot_id], in xhci_setup_device()
4227 le64_to_cpu(xhci->dcbaa->dev_context_ptrs[udev->slot_id])); in xhci_setup_device()
4298 virt_dev = xhci->devs[udev->slot_id]; in xhci_change_max_exit_latency()
4321 ret = xhci_vendor_sync_dev_ctx(xhci, udev->slot_id); in xhci_change_max_exit_latency()
4359 int xhci_vendor_sync_dev_ctx(struct xhci_hcd *xhci, unsigned int slot_id) in xhci_vendor_sync_dev_ctx() argument
4364 return ops->sync_dev_ctx(xhci, slot_id); in xhci_vendor_sync_dev_ctx()
4519 pm_val |= PORT_HIRD(hird) | PORT_RWE | PORT_L1DS(udev->slot_id); in xhci_set_usb2_hardware_lpm()
5011 !xhci->devs[udev->slot_id]) in xhci_enable_usb3_lpm_timeout()
5036 !xhci->devs[udev->slot_id]) in xhci_disable_usb3_lpm_timeout()
5089 vdev = xhci->devs[hdev->slot_id]; in xhci_update_hub_device()
5116 ret = xhci_vendor_sync_dev_ctx(xhci, hdev->slot_id); in xhci_update_hub_device()
5352 unsigned int slot_id; in xhci_clear_tt_buffer_complete() local
5360 slot_id = udev->slot_id; in xhci_clear_tt_buffer_complete()
5363 xhci->devs[slot_id]->eps[ep_index].ep_state &= ~EP_CLEARING_TT; in xhci_clear_tt_buffer_complete()
5364 xhci_ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_clear_tt_buffer_complete()