Lines Matching refs:slot_id

1539 		if (!udev->slot_id || !xhci->devs[udev->slot_id]) {  in xhci_check_args()
1545 virt_dev = xhci->devs[udev->slot_id]; in xhci_check_args()
1569 static int xhci_check_maxpacket(struct xhci_hcd *xhci, unsigned int slot_id, in xhci_check_maxpacket() argument
1580 out_ctx = xhci->devs[slot_id]->out_ctx; in xhci_check_maxpacket()
1605 command->in_ctx = xhci->devs[slot_id]->in_ctx; in xhci_check_maxpacket()
1614 xhci_endpoint_copy(xhci, xhci->devs[slot_id]->in_ctx, in xhci_check_maxpacket()
1615 xhci->devs[slot_id]->out_ctx, ep_index); in xhci_check_maxpacket()
1648 unsigned int slot_id, ep_index; in xhci_urb_enqueue() local
1660 slot_id = urb->dev->slot_id; in xhci_urb_enqueue()
1662 ep_state = &xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_urb_enqueue()
1667 if (xhci->devs[slot_id]->flags & VDEV_PORT_ERROR) { in xhci_urb_enqueue()
1697 ret = xhci_check_maxpacket(xhci, slot_id, in xhci_urb_enqueue()
1731 slot_id, ep_index); in xhci_urb_enqueue()
1735 slot_id, ep_index); in xhci_urb_enqueue()
1739 slot_id, ep_index); in xhci_urb_enqueue()
1743 slot_id, ep_index); in xhci_urb_enqueue()
1811 vdev = xhci->devs[urb->dev->slot_id]; in xhci_urb_dequeue()
1890 xhci_queue_stop_endpoint(xhci, command, urb->dev->slot_id, in xhci_urb_dequeue()
1947 in_ctx = xhci->devs[udev->slot_id]->in_ctx; in xhci_drop_endpoint()
1948 out_ctx = xhci->devs[udev->slot_id]->out_ctx; in xhci_drop_endpoint()
1965 if (xhci->devs[udev->slot_id]->eps[ep_index].ring != NULL) in xhci_drop_endpoint()
1977 xhci_debugfs_remove_endpoint(xhci, xhci->devs[udev->slot_id], ep_index); in xhci_drop_endpoint()
1979 xhci_endpoint_zero(xhci, xhci->devs[udev->slot_id], ep); in xhci_drop_endpoint()
1983 udev->slot_id, in xhci_drop_endpoint()
2037 virt_dev = xhci->devs[udev->slot_id]; in xhci_add_endpoint()
2097 udev->slot_id, in xhci_add_endpoint()
2512 virt_dev->tt_info->slot_id, in xhci_check_bw_table()
2683 xhci->devs[udev->slot_id]->bw_table->ss_bw_in -= in xhci_drop_ep_from_interval_table()
2686 xhci->devs[udev->slot_id]->bw_table->ss_bw_out -= in xhci_drop_ep_from_interval_table()
2748 xhci->devs[udev->slot_id]->bw_table->ss_bw_in += in xhci_add_ep_to_interval_table()
2751 xhci->devs[udev->slot_id]->bw_table->ss_bw_out += in xhci_add_ep_to_interval_table()
2940 virt_dev = xhci->devs[udev->slot_id]; in xhci_configure_endpoint()
2975 udev->slot_id, must_succeed); in xhci_configure_endpoint()
2979 udev->slot_id, must_succeed); in xhci_configure_endpoint()
3058 virt_dev = xhci->devs[udev->slot_id]; in xhci_check_bandwidth()
3150 virt_dev = xhci->devs[udev->slot_id]; in xhci_reset_bandwidth()
3190 if (!udev || !udev->slot_id) in xhci_endpoint_disable()
3193 vdev = xhci->devs[udev->slot_id]; in xhci_endpoint_disable()
3245 vdev = xhci->devs[udev->slot_id]; in xhci_endpoint_reset()
3252 if (!udev->slot_id || !vdev) in xhci_endpoint_reset()
3301 err = xhci_queue_stop_endpoint(xhci, stop_cmd, udev->slot_id, in xhci_endpoint_reset()
3333 udev->slot_id, false); in xhci_endpoint_reset()
3358 unsigned int slot_id) in xhci_check_streams_endpoint() argument
3377 ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_check_streams_endpoint()
3387 if (!list_empty(&xhci->devs[slot_id]->eps[ep_index].ring->td_list)) { in xhci_check_streams_endpoint()
3434 eps[i], udev->slot_id); in xhci_calculate_streams_and_bitmask()
3459 unsigned int slot_id; in xhci_calculate_no_streams_bitmask() local
3464 slot_id = udev->slot_id; in xhci_calculate_no_streams_bitmask()
3465 if (!xhci->devs[slot_id]) in xhci_calculate_no_streams_bitmask()
3470 ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_calculate_no_streams_bitmask()
3575 vdev = xhci->devs[udev->slot_id]; in xhci_alloc_streams()
3642 udev->slot_id, ep_index); in xhci_alloc_streams()
3692 vdev = xhci->devs[udev->slot_id]; in xhci_free_streams()
3722 xhci->devs[udev->slot_id]->eps[ep_index].ep_state |= in xhci_free_streams()
3816 unsigned int slot_id; in xhci_discover_or_reset_device() local
3826 slot_id = udev->slot_id; in xhci_discover_or_reset_device()
3827 virt_dev = xhci->devs[slot_id]; in xhci_discover_or_reset_device()
3830 "not exist. Re-allocate the device\n", slot_id); in xhci_discover_or_reset_device()
3848 slot_id); in xhci_discover_or_reset_device()
3864 xhci_dbg(xhci, "Resetting device with slot ID %u\n", slot_id); in xhci_discover_or_reset_device()
3880 ret = xhci_queue_reset_device(xhci, reset_device_cmd, slot_id); in xhci_discover_or_reset_device()
3906 slot_id, in xhci_discover_or_reset_device()
3995 virt_dev = xhci->devs[udev->slot_id]; in xhci_free_dev()
4003 xhci_disable_slot(xhci, udev->slot_id); in xhci_free_dev()
4006 xhci_free_virt_device(xhci, udev->slot_id); in xhci_free_dev()
4011 int xhci_disable_slot(struct xhci_hcd *xhci, u32 slot_id) in xhci_disable_slot() argument
4022 xhci_debugfs_remove_slot(xhci, slot_id); in xhci_disable_slot()
4035 slot_id); in xhci_disable_slot()
4048 slot_id, command->status); in xhci_disable_slot()
4088 int ret, slot_id; in xhci_alloc_dev() local
4107 slot_id = command->slot_id; in xhci_alloc_dev()
4109 if (!slot_id || command->status != COMP_SUCCESS) { in xhci_alloc_dev()
4137 if (!xhci_alloc_virt_device(xhci, slot_id, udev, GFP_NOIO)) { in xhci_alloc_dev()
4141 vdev = xhci->devs[slot_id]; in xhci_alloc_dev()
4145 udev->slot_id = slot_id; in xhci_alloc_dev()
4147 xhci_debugfs_create_slot(xhci, slot_id); in xhci_alloc_dev()
4161 xhci_disable_slot(xhci, udev->slot_id); in xhci_alloc_dev()
4162 xhci_free_virt_device(xhci, udev->slot_id); in xhci_alloc_dev()
4191 if (!udev->slot_id) { in xhci_setup_device()
4193 "Bad Slot ID %d", udev->slot_id); in xhci_setup_device()
4198 virt_dev = xhci->devs[udev->slot_id]; in xhci_setup_device()
4207 udev->slot_id); in xhci_setup_device()
4258 udev->slot_id, setup); in xhci_setup_device()
4284 act, udev->slot_id); in xhci_setup_device()
4291 ret = xhci_disable_slot(xhci, udev->slot_id); in xhci_setup_device()
4292 xhci_free_virt_device(xhci, udev->slot_id); in xhci_setup_device()
4322 udev->slot_id, in xhci_setup_device()
4323 &xhci->dcbaa->dev_context_ptrs[udev->slot_id], in xhci_setup_device()
4325 le64_to_cpu(xhci->dcbaa->dev_context_ptrs[udev->slot_id])); in xhci_setup_device()
4399 virt_dev = xhci->devs[udev->slot_id]; in xhci_change_max_exit_latency()
4581 pm_val |= PORT_HIRD(hird) | PORT_RWE | PORT_L1DS(udev->slot_id); in xhci_set_usb2_hardware_lpm()
5063 !xhci->devs[udev->slot_id]) in xhci_enable_usb3_lpm_timeout()
5098 !xhci->devs[udev->slot_id]) in xhci_disable_usb3_lpm_timeout()
5151 vdev = xhci->devs[hdev->slot_id]; in xhci_update_hub_device()
5414 unsigned int slot_id; in xhci_clear_tt_buffer_complete() local
5422 slot_id = udev->slot_id; in xhci_clear_tt_buffer_complete()
5425 xhci->devs[slot_id]->eps[ep_index].ep_state &= ~EP_CLEARING_TT; in xhci_clear_tt_buffer_complete()
5426 xhci_ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_clear_tt_buffer_complete()