• Home
  • Raw
  • Download

Lines Matching refs:slot_id

1400 		if (!udev->slot_id || !xhci->devs[udev->slot_id]) {  in xhci_check_args()
1406 virt_dev = xhci->devs[udev->slot_id]; in xhci_check_args()
1430 static int xhci_check_maxpacket(struct xhci_hcd *xhci, unsigned int slot_id, in xhci_check_maxpacket() argument
1441 out_ctx = xhci->devs[slot_id]->out_ctx; in xhci_check_maxpacket()
1466 command->in_ctx = xhci->devs[slot_id]->in_ctx; in xhci_check_maxpacket()
1475 xhci_endpoint_copy(xhci, xhci->devs[slot_id]->in_ctx, in xhci_check_maxpacket()
1476 xhci->devs[slot_id]->out_ctx, ep_index); in xhci_check_maxpacket()
1509 unsigned int slot_id, ep_index; in xhci_urb_enqueue() local
1521 slot_id = urb->dev->slot_id; in xhci_urb_enqueue()
1523 ep_state = &xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_urb_enqueue()
1530 if (xhci->devs[slot_id]->flags & VDEV_PORT_ERROR) { in xhci_urb_enqueue()
1560 ret = xhci_check_maxpacket(xhci, slot_id, in xhci_urb_enqueue()
1594 slot_id, ep_index); in xhci_urb_enqueue()
1598 slot_id, ep_index); in xhci_urb_enqueue()
1602 slot_id, ep_index); in xhci_urb_enqueue()
1606 slot_id, ep_index); in xhci_urb_enqueue()
1674 vdev = xhci->devs[urb->dev->slot_id]; in xhci_urb_dequeue()
1751 xhci_queue_stop_endpoint(xhci, command, urb->dev->slot_id, in xhci_urb_dequeue()
1808 in_ctx = xhci->devs[udev->slot_id]->in_ctx; in xhci_drop_endpoint()
1809 out_ctx = xhci->devs[udev->slot_id]->out_ctx; in xhci_drop_endpoint()
1826 if (xhci->devs[udev->slot_id]->eps[ep_index].ring != NULL) in xhci_drop_endpoint()
1838 xhci_debugfs_remove_endpoint(xhci, xhci->devs[udev->slot_id], ep_index); in xhci_drop_endpoint()
1840 xhci_endpoint_zero(xhci, xhci->devs[udev->slot_id], ep); in xhci_drop_endpoint()
1847 udev->slot_id, in xhci_drop_endpoint()
1900 virt_dev = xhci->devs[udev->slot_id]; in xhci_add_endpoint()
1969 udev->slot_id, in xhci_add_endpoint()
2383 virt_dev->tt_info->slot_id, in xhci_check_bw_table()
2554 xhci->devs[udev->slot_id]->bw_table->ss_bw_in -= in xhci_drop_ep_from_interval_table()
2557 xhci->devs[udev->slot_id]->bw_table->ss_bw_out -= in xhci_drop_ep_from_interval_table()
2619 xhci->devs[udev->slot_id]->bw_table->ss_bw_in += in xhci_add_ep_to_interval_table()
2622 xhci->devs[udev->slot_id]->bw_table->ss_bw_out += in xhci_add_ep_to_interval_table()
2811 virt_dev = xhci->devs[udev->slot_id]; in xhci_configure_endpoint()
2846 udev->slot_id, must_succeed); in xhci_configure_endpoint()
2850 udev->slot_id, must_succeed); in xhci_configure_endpoint()
2929 virt_dev = xhci->devs[udev->slot_id]; in xhci_check_bandwidth()
3020 virt_dev = xhci->devs[udev->slot_id]; in xhci_reset_bandwidth()
3045 unsigned int slot_id, unsigned int ep_index, in xhci_setup_input_ctx_for_quirk() argument
3054 in_ctx = xhci->devs[slot_id]->in_ctx; in xhci_setup_input_ctx_for_quirk()
3062 xhci_endpoint_copy(xhci, xhci->devs[slot_id]->in_ctx, in xhci_setup_input_ctx_for_quirk()
3063 xhci->devs[slot_id]->out_ctx, ep_index); in xhci_setup_input_ctx_for_quirk()
3078 xhci_setup_input_ctx_for_config_ep(xhci, xhci->devs[slot_id]->in_ctx, in xhci_setup_input_ctx_for_quirk()
3079 xhci->devs[slot_id]->out_ctx, ctrl_ctx, in xhci_setup_input_ctx_for_quirk()
3083 void xhci_cleanup_stalled_ring(struct xhci_hcd *xhci, unsigned int slot_id, in xhci_cleanup_stalled_ring() argument
3094 xhci_find_new_dequeue_state(xhci, slot_id, ep_index, stream_id, td, in xhci_cleanup_stalled_ring()
3106 xhci_queue_new_dequeue_state(xhci, slot_id, in xhci_cleanup_stalled_ring()
3117 xhci_setup_input_ctx_for_quirk(xhci, slot_id, in xhci_cleanup_stalled_ring()
3137 if (!udev || !udev->slot_id) in xhci_endpoint_disable()
3140 vdev = xhci->devs[udev->slot_id]; in xhci_endpoint_disable()
3194 vdev = xhci->devs[udev->slot_id]; in xhci_endpoint_reset()
3201 if (!udev->slot_id || !vdev) in xhci_endpoint_reset()
3252 err = xhci_queue_stop_endpoint(xhci, stop_cmd, udev->slot_id, in xhci_endpoint_reset()
3284 udev->slot_id, false); in xhci_endpoint_reset()
3309 unsigned int slot_id) in xhci_check_streams_endpoint() argument
3328 ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_check_streams_endpoint()
3338 if (!list_empty(&xhci->devs[slot_id]->eps[ep_index].ring->td_list)) { in xhci_check_streams_endpoint()
3385 eps[i], udev->slot_id); in xhci_calculate_streams_and_bitmask()
3410 unsigned int slot_id; in xhci_calculate_no_streams_bitmask() local
3415 slot_id = udev->slot_id; in xhci_calculate_no_streams_bitmask()
3416 if (!xhci->devs[slot_id]) in xhci_calculate_no_streams_bitmask()
3421 ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_calculate_no_streams_bitmask()
3526 vdev = xhci->devs[udev->slot_id]; in xhci_alloc_streams()
3593 udev->slot_id, ep_index); in xhci_alloc_streams()
3643 vdev = xhci->devs[udev->slot_id]; in xhci_free_streams()
3673 xhci->devs[udev->slot_id]->eps[ep_index].ep_state |= in xhci_free_streams()
3767 unsigned int slot_id; in xhci_discover_or_reset_device() local
3777 slot_id = udev->slot_id; in xhci_discover_or_reset_device()
3778 virt_dev = xhci->devs[slot_id]; in xhci_discover_or_reset_device()
3781 "not exist. Re-allocate the device\n", slot_id); in xhci_discover_or_reset_device()
3799 slot_id); in xhci_discover_or_reset_device()
3815 xhci_dbg(xhci, "Resetting device with slot ID %u\n", slot_id); in xhci_discover_or_reset_device()
3831 ret = xhci_queue_reset_device(xhci, reset_device_cmd, slot_id); in xhci_discover_or_reset_device()
3857 slot_id, in xhci_discover_or_reset_device()
3946 virt_dev = xhci->devs[udev->slot_id]; in xhci_free_dev()
3956 xhci_disable_slot(xhci, udev->slot_id); in xhci_free_dev()
3959 xhci_free_virt_device(xhci, udev->slot_id); in xhci_free_dev()
3964 int xhci_disable_slot(struct xhci_hcd *xhci, u32 slot_id) in xhci_disable_slot() argument
3975 xhci_debugfs_remove_slot(xhci, slot_id); in xhci_disable_slot()
3988 slot_id); in xhci_disable_slot()
4001 slot_id, command->status); in xhci_disable_slot()
4041 int ret, slot_id; in xhci_alloc_dev() local
4060 slot_id = command->slot_id; in xhci_alloc_dev()
4062 if (!slot_id || command->status != COMP_SUCCESS) { in xhci_alloc_dev()
4089 if (!xhci_alloc_virt_device(xhci, slot_id, udev, GFP_NOIO)) { in xhci_alloc_dev()
4093 vdev = xhci->devs[slot_id]; in xhci_alloc_dev()
4097 udev->slot_id = slot_id; in xhci_alloc_dev()
4099 xhci_debugfs_create_slot(xhci, slot_id); in xhci_alloc_dev()
4113 xhci_disable_slot(xhci, udev->slot_id); in xhci_alloc_dev()
4114 xhci_free_virt_device(xhci, udev->slot_id); in xhci_alloc_dev()
4143 if (!udev->slot_id) { in xhci_setup_device()
4145 "Bad Slot ID %d", udev->slot_id); in xhci_setup_device()
4150 virt_dev = xhci->devs[udev->slot_id]; in xhci_setup_device()
4159 udev->slot_id); in xhci_setup_device()
4210 udev->slot_id, setup); in xhci_setup_device()
4236 act, udev->slot_id); in xhci_setup_device()
4243 ret = xhci_disable_slot(xhci, udev->slot_id); in xhci_setup_device()
4244 xhci_free_virt_device(xhci, udev->slot_id); in xhci_setup_device()
4274 udev->slot_id, in xhci_setup_device()
4275 &xhci->dcbaa->dev_context_ptrs[udev->slot_id], in xhci_setup_device()
4277 le64_to_cpu(xhci->dcbaa->dev_context_ptrs[udev->slot_id])); in xhci_setup_device()
4347 virt_dev = xhci->devs[udev->slot_id]; in xhci_change_max_exit_latency()
4536 pm_val |= PORT_HIRD(hird) | PORT_RWE | PORT_L1DS(udev->slot_id); in xhci_set_usb2_hardware_lpm()
5029 !xhci->devs[udev->slot_id]) in xhci_enable_usb3_lpm_timeout()
5061 !xhci->devs[udev->slot_id]) in xhci_disable_usb3_lpm_timeout()
5114 vdev = xhci->devs[hdev->slot_id]; in xhci_update_hub_device()
5369 unsigned int slot_id; in xhci_clear_tt_buffer_complete() local
5377 slot_id = udev->slot_id; in xhci_clear_tt_buffer_complete()
5380 xhci->devs[slot_id]->eps[ep_index].ep_state &= ~EP_CLEARING_TT; in xhci_clear_tt_buffer_complete()
5381 xhci_ring_doorbell_for_active_rings(xhci, slot_id, ep_index); in xhci_clear_tt_buffer_complete()