Lines Matching refs:udev

1476 static int xhci_check_args(struct usb_hcd *hcd, struct usb_device *udev,  in xhci_check_args()  argument
1482 if (!hcd || (check_ep && !ep) || !udev) { in xhci_check_args()
1486 if (!udev->parent) { in xhci_check_args()
1493 if (!udev->slot_id || !xhci->devs[udev->slot_id]) { in xhci_check_args()
1499 virt_dev = xhci->devs[udev->slot_id]; in xhci_check_args()
1500 if (virt_dev->udev != udev) { in xhci_check_args()
1514 struct usb_device *udev, struct xhci_command *command,
1874 int xhci_drop_endpoint(struct usb_hcd *hcd, struct usb_device *udev, in xhci_drop_endpoint() argument
1886 ret = xhci_check_args(hcd, udev, ep, 1, true, __func__); in xhci_drop_endpoint()
1893 xhci_dbg(xhci, "%s called for udev %p\n", __func__, udev); in xhci_drop_endpoint()
1901 in_ctx = xhci->devs[udev->slot_id]->in_ctx; in xhci_drop_endpoint()
1902 out_ctx = xhci->devs[udev->slot_id]->out_ctx; in xhci_drop_endpoint()
1919 if (xhci->devs[udev->slot_id]->eps[ep_index].ring != NULL) in xhci_drop_endpoint()
1931 xhci_debugfs_remove_endpoint(xhci, xhci->devs[udev->slot_id], ep_index); in xhci_drop_endpoint()
1933 xhci_endpoint_zero(xhci, xhci->devs[udev->slot_id], ep); in xhci_drop_endpoint()
1937 udev->slot_id, in xhci_drop_endpoint()
1957 int xhci_add_endpoint(struct usb_hcd *hcd, struct usb_device *udev, in xhci_add_endpoint() argument
1970 ret = xhci_check_args(hcd, udev, ep, 1, true, __func__); in xhci_add_endpoint()
1991 virt_dev = xhci->devs[udev->slot_id]; in xhci_add_endpoint()
2026 if (xhci_endpoint_init(xhci, virt_dev, udev, ep, GFP_NOIO) < 0) { in xhci_add_endpoint()
2027 dev_dbg(&udev->dev, "%s - could not initialize ep %#x\n", in xhci_add_endpoint()
2044 ep->hcpriv = udev; in xhci_add_endpoint()
2051 udev->slot_id, in xhci_add_endpoint()
2093 struct usb_device *udev, u32 *cmd_status) in xhci_configure_endpoint_result() argument
2104 dev_warn(&udev->dev, in xhci_configure_endpoint_result()
2111 dev_warn(&udev->dev, in xhci_configure_endpoint_result()
2118 dev_warn(&udev->dev, "ERROR: Endpoint drop flag = 0, " in xhci_configure_endpoint_result()
2124 dev_warn(&udev->dev, in xhci_configure_endpoint_result()
2143 struct usb_device *udev, u32 *cmd_status) in xhci_evaluate_context_result() argument
2154 dev_warn(&udev->dev, in xhci_evaluate_context_result()
2159 dev_warn(&udev->dev, in xhci_evaluate_context_result()
2164 dev_warn(&udev->dev, in xhci_evaluate_context_result()
2169 dev_warn(&udev->dev, in xhci_evaluate_context_result()
2175 dev_warn(&udev->dev, "WARN: Max Exit Latency too large\n"); in xhci_evaluate_context_result()
2299 static unsigned int xhci_get_block_size(struct usb_device *udev) in xhci_get_block_size() argument
2301 switch (udev->speed) { in xhci_get_block_size()
2434 if (virt_dev->udev->speed >= USB_SPEED_SUPER) in xhci_check_bw_table()
2437 if (virt_dev->udev->speed == USB_SPEED_HIGH) { in xhci_check_bw_table()
2450 block_size = xhci_get_block_size(virt_dev->udev); in xhci_check_bw_table()
2567 if (!virt_dev->tt_info && virt_dev->udev->speed == USB_SPEED_HIGH) { in xhci_check_bw_table()
2625 struct usb_device *udev, in xhci_drop_ep_from_interval_table() argument
2635 if (udev->speed >= USB_SPEED_SUPER) { in xhci_drop_ep_from_interval_table()
2637 xhci->devs[udev->slot_id]->bw_table->ss_bw_in -= in xhci_drop_ep_from_interval_table()
2640 xhci->devs[udev->slot_id]->bw_table->ss_bw_out -= in xhci_drop_ep_from_interval_table()
2653 if (udev->speed == USB_SPEED_HIGH) in xhci_drop_ep_from_interval_table()
2662 switch (udev->speed) { in xhci_drop_ep_from_interval_table()
2689 struct usb_device *udev, in xhci_add_ep_to_interval_table() argument
2700 if (udev->speed == USB_SPEED_SUPER) { in xhci_add_ep_to_interval_table()
2702 xhci->devs[udev->slot_id]->bw_table->ss_bw_in += in xhci_add_ep_to_interval_table()
2705 xhci->devs[udev->slot_id]->bw_table->ss_bw_out += in xhci_add_ep_to_interval_table()
2713 if (udev->speed == USB_SPEED_HIGH) in xhci_add_ep_to_interval_table()
2722 switch (udev->speed) { in xhci_add_ep_to_interval_table()
2813 virt_dev->udev, in xhci_reserve_bandwidth()
2825 virt_dev->udev, in xhci_reserve_bandwidth()
2850 virt_dev->udev, in xhci_reserve_bandwidth()
2862 virt_dev->udev, in xhci_reserve_bandwidth()
2874 struct usb_device *udev, in xhci_configure_endpoint() argument
2894 virt_dev = xhci->devs[udev->slot_id]; in xhci_configure_endpoint()
2929 udev->slot_id, must_succeed); in xhci_configure_endpoint()
2933 udev->slot_id, must_succeed); in xhci_configure_endpoint()
2949 ret = xhci_configure_endpoint_result(xhci, udev, in xhci_configure_endpoint()
2952 ret = xhci_evaluate_context_result(xhci, udev, in xhci_configure_endpoint()
2993 int xhci_check_bandwidth(struct usb_hcd *hcd, struct usb_device *udev) in xhci_check_bandwidth() argument
3003 ret = xhci_check_args(hcd, udev, NULL, 0, true, __func__); in xhci_check_bandwidth()
3011 xhci_dbg(xhci, "%s called for udev %p\n", __func__, udev); in xhci_check_bandwidth()
3012 virt_dev = xhci->devs[udev->slot_id]; in xhci_check_bandwidth()
3051 ret = xhci_configure_endpoint(xhci, udev, command, in xhci_check_bandwidth()
3092 void xhci_reset_bandwidth(struct usb_hcd *hcd, struct usb_device *udev) in xhci_reset_bandwidth() argument
3098 ret = xhci_check_args(hcd, udev, NULL, 0, true, __func__); in xhci_reset_bandwidth()
3103 xhci_dbg(xhci, "%s called for udev %p\n", __func__, udev); in xhci_reset_bandwidth()
3104 virt_dev = xhci->devs[udev->slot_id]; in xhci_reset_bandwidth()
3135 struct usb_device *udev; in xhci_endpoint_disable() local
3143 udev = (struct usb_device *)host_ep->hcpriv; in xhci_endpoint_disable()
3144 if (!udev || !udev->slot_id) in xhci_endpoint_disable()
3147 vdev = xhci->devs[udev->slot_id]; in xhci_endpoint_disable()
3187 struct usb_device *udev; in xhci_endpoint_reset() local
3200 udev = (struct usb_device *) host_ep->hcpriv; in xhci_endpoint_reset()
3201 vdev = xhci->devs[udev->slot_id]; in xhci_endpoint_reset()
3208 if (!udev->slot_id || !vdev) in xhci_endpoint_reset()
3253 dev_err(&udev->dev, "EP not empty, refuse reset\n"); in xhci_endpoint_reset()
3259 err = xhci_queue_stop_endpoint(xhci, stop_cmd, udev->slot_id, in xhci_endpoint_reset()
3291 udev->slot_id, false); in xhci_endpoint_reset()
3315 struct usb_device *udev, struct usb_host_endpoint *ep, in xhci_check_streams_endpoint() argument
3324 ret = xhci_check_args(xhci_to_hcd(xhci), udev, ep, 1, true, __func__); in xhci_check_streams_endpoint()
3381 struct usb_device *udev, in xhci_calculate_streams_and_bitmask() argument
3391 ret = xhci_check_streams_endpoint(xhci, udev, in xhci_calculate_streams_and_bitmask()
3392 eps[i], udev->slot_id); in xhci_calculate_streams_and_bitmask()
3413 struct usb_device *udev, in xhci_calculate_no_streams_bitmask() argument
3422 slot_id = udev->slot_id; in xhci_calculate_no_streams_bitmask()
3469 static int xhci_alloc_streams(struct usb_hcd *hcd, struct usb_device *udev, in xhci_alloc_streams() argument
3519 ret = xhci_calculate_streams_and_bitmask(xhci, udev, eps, in xhci_alloc_streams()
3533 vdev = xhci->devs[udev->slot_id]; in xhci_alloc_streams()
3585 ret = xhci_configure_endpoint(xhci, udev, config_cmd, in xhci_alloc_streams()
3600 udev->slot_id, ep_index); in xhci_alloc_streams()
3636 static int xhci_free_streams(struct usb_hcd *hcd, struct usb_device *udev, in xhci_free_streams() argument
3650 vdev = xhci->devs[udev->slot_id]; in xhci_free_streams()
3655 udev, eps, num_eps); in xhci_free_streams()
3680 xhci->devs[udev->slot_id]->eps[ep_index].ep_state |= in xhci_free_streams()
3696 ret = xhci_configure_endpoint(xhci, udev, command, in xhci_free_streams()
3769 struct usb_device *udev) in xhci_discover_or_reset_device() argument
3780 ret = xhci_check_args(hcd, udev, NULL, 0, false, __func__); in xhci_discover_or_reset_device()
3784 slot_id = udev->slot_id; in xhci_discover_or_reset_device()
3789 ret = xhci_alloc_dev(hcd, udev); in xhci_discover_or_reset_device()
3799 if (virt_dev->udev != udev) { in xhci_discover_or_reset_device()
3807 ret = xhci_alloc_dev(hcd, udev); in xhci_discover_or_reset_device()
3910 udev, in xhci_discover_or_reset_device()
3930 static void xhci_free_dev(struct usb_hcd *hcd, struct usb_device *udev) in xhci_free_dev() argument
3945 ret = xhci_check_args(hcd, udev, NULL, 0, true, __func__); in xhci_free_dev()
3952 virt_dev = xhci->devs[udev->slot_id]; in xhci_free_dev()
3961 virt_dev->udev = NULL; in xhci_free_dev()
3962 xhci_disable_slot(xhci, udev->slot_id); in xhci_free_dev()
3963 xhci_free_virt_device(xhci, udev->slot_id); in xhci_free_dev()
4037 int xhci_alloc_dev(struct usb_hcd *hcd, struct usb_device *udev) in xhci_alloc_dev() argument
4091 if (!xhci_alloc_virt_device(xhci, slot_id, udev, GFP_NOIO)) { in xhci_alloc_dev()
4099 udev->slot_id = slot_id; in xhci_alloc_dev()
4115 xhci_disable_slot(xhci, udev->slot_id); in xhci_alloc_dev()
4116 xhci_free_virt_device(xhci, udev->slot_id); in xhci_alloc_dev()
4125 static int xhci_setup_device(struct usb_hcd *hcd, struct usb_device *udev, in xhci_setup_device() argument
4145 if (!udev->slot_id) { in xhci_setup_device()
4147 "Bad Slot ID %d", udev->slot_id); in xhci_setup_device()
4152 virt_dev = xhci->devs[udev->slot_id]; in xhci_setup_device()
4161 udev->slot_id); in xhci_setup_device()
4198 xhci_setup_addressable_virt_dev(xhci, udev); in xhci_setup_device()
4201 xhci_copy_ep0_dequeue_into_input_ctx(xhci, udev); in xhci_setup_device()
4212 udev->slot_id, setup); in xhci_setup_device()
4238 act, udev->slot_id); in xhci_setup_device()
4242 dev_warn(&udev->dev, "Device not responding to setup %s.\n", act); in xhci_setup_device()
4245 ret = xhci_disable_slot(xhci, udev->slot_id); in xhci_setup_device()
4246 xhci_free_virt_device(xhci, udev->slot_id); in xhci_setup_device()
4248 xhci_alloc_dev(hcd, udev); in xhci_setup_device()
4253 dev_warn(&udev->dev, in xhci_setup_device()
4276 udev->slot_id, in xhci_setup_device()
4277 &xhci->dcbaa->dev_context_ptrs[udev->slot_id], in xhci_setup_device()
4279 le64_to_cpu(xhci->dcbaa->dev_context_ptrs[udev->slot_id])); in xhci_setup_device()
4295 udev->devaddr = (u8)(le32_to_cpu(slot_ctx->dev_state) & DEV_ADDR_MASK); in xhci_setup_device()
4309 static int xhci_address_device(struct usb_hcd *hcd, struct usb_device *udev) in xhci_address_device() argument
4311 return xhci_setup_device(hcd, udev, SETUP_CONTEXT_ADDRESS); in xhci_address_device()
4314 static int xhci_enable_device(struct usb_hcd *hcd, struct usb_device *udev) in xhci_enable_device() argument
4316 return xhci_setup_device(hcd, udev, SETUP_CONTEXT_ONLY); in xhci_enable_device()
4338 struct usb_device *udev, u16 max_exit_latency) in xhci_change_max_exit_latency() argument
4349 virt_dev = xhci->devs[udev->slot_id]; in xhci_change_max_exit_latency()
4385 ret = xhci_configure_endpoint(xhci, udev, command, in xhci_change_max_exit_latency()
4404 struct usb_device *udev) in xhci_calculate_hird_besl() argument
4411 field = le32_to_cpu(udev->bos->ext_cap->bmAttributes); in xhci_calculate_hird_besl()
4438 static int xhci_calculate_usb2_hw_lpm_params(struct usb_device *udev) in xhci_calculate_usb2_hw_lpm_params() argument
4445 field = le32_to_cpu(udev->bos->ext_cap->bmAttributes); in xhci_calculate_usb2_hw_lpm_params()
4448 l1 = udev->l1_params.timeout / 256; in xhci_calculate_usb2_hw_lpm_params()
4460 struct usb_device *udev, int enable) in xhci_set_usb2_hardware_lpm() argument
4475 !udev->lpm_capable) in xhci_set_usb2_hardware_lpm()
4478 if (!udev->parent || udev->parent->parent || in xhci_set_usb2_hardware_lpm()
4479 udev->descriptor.bDeviceClass == USB_CLASS_HUB) in xhci_set_usb2_hardware_lpm()
4482 if (udev->usb2_hw_lpm_capable != 1) in xhci_set_usb2_hardware_lpm()
4488 port_num = udev->portnum - 1; in xhci_set_usb2_hardware_lpm()
4498 if (udev->usb2_hw_lpm_besl_capable) { in xhci_set_usb2_hardware_lpm()
4503 field = le32_to_cpu(udev->bos->ext_cap->bmAttributes); in xhci_set_usb2_hardware_lpm()
4508 hird = udev->l1_params.besl; in xhci_set_usb2_hardware_lpm()
4521 ret = xhci_change_max_exit_latency(xhci, udev, in xhci_set_usb2_hardware_lpm()
4529 hlpm_val = xhci_calculate_usb2_hw_lpm_params(udev); in xhci_set_usb2_hardware_lpm()
4534 hird = xhci_calculate_hird_besl(xhci, udev); in xhci_set_usb2_hardware_lpm()
4538 pm_val |= PORT_HIRD(hird) | PORT_RWE | PORT_L1DS(udev->slot_id); in xhci_set_usb2_hardware_lpm()
4550 if (udev->usb2_hw_lpm_besl_capable) { in xhci_set_usb2_hardware_lpm()
4553 xhci_change_max_exit_latency(xhci, udev, 0); in xhci_set_usb2_hardware_lpm()
4589 static int xhci_update_device(struct usb_hcd *hcd, struct usb_device *udev) in xhci_update_device() argument
4592 int portnum = udev->portnum - 1; in xhci_update_device()
4594 if (hcd->speed >= HCD_USB3 || !udev->lpm_capable) in xhci_update_device()
4598 if (!udev->parent || udev->parent->parent || in xhci_update_device()
4599 udev->descriptor.bDeviceClass == USB_CLASS_HUB) in xhci_update_device()
4605 udev->usb2_hw_lpm_capable = 1; in xhci_update_device()
4606 udev->l1_params.timeout = XHCI_L1_TIMEOUT; in xhci_update_device()
4607 udev->l1_params.besl = XHCI_DEFAULT_BESL; in xhci_update_device()
4610 udev->usb2_hw_lpm_besl_capable = 1; in xhci_update_device()
4625 static u16 xhci_get_timeout_no_hub_lpm(struct usb_device *udev, in xhci_get_timeout_no_hub_lpm() argument
4636 sel = DIV_ROUND_UP(udev->u1_params.sel, 1000); in xhci_get_timeout_no_hub_lpm()
4637 pel = DIV_ROUND_UP(udev->u1_params.pel, 1000); in xhci_get_timeout_no_hub_lpm()
4642 sel = DIV_ROUND_UP(udev->u2_params.sel, 1000); in xhci_get_timeout_no_hub_lpm()
4643 pel = DIV_ROUND_UP(udev->u2_params.pel, 1000); in xhci_get_timeout_no_hub_lpm()
4648 dev_warn(&udev->dev, "%s: Can't get timeout for non-U1 or U2 state.\n", in xhci_get_timeout_no_hub_lpm()
4657 dev_dbg(&udev->dev, "Device-initiated %s disabled " in xhci_get_timeout_no_hub_lpm()
4661 dev_dbg(&udev->dev, "Device-initiated %s disabled " in xhci_get_timeout_no_hub_lpm()
4676 struct usb_device *udev, in xhci_calculate_intel_u1_timeout() argument
4686 timeout_ns = udev->u1_params.sel * 3; in xhci_calculate_intel_u1_timeout()
4689 timeout_ns = udev->u1_params.sel * 5; in xhci_calculate_intel_u1_timeout()
4694 timeout_ns = udev->u1_params.sel * 3; in xhci_calculate_intel_u1_timeout()
4702 if (timeout_ns < udev->u1_params.sel * 2) in xhci_calculate_intel_u1_timeout()
4703 timeout_ns = udev->u1_params.sel * 2; in xhci_calculate_intel_u1_timeout()
4714 struct usb_device *udev, in xhci_calculate_u1_timeout() argument
4721 if (xhci_service_interval_to_ns(desc) <= udev->u1_params.mel) { in xhci_calculate_u1_timeout()
4722 dev_dbg(&udev->dev, "Disable U1, ESIT shorter than exit latency\n"); in xhci_calculate_u1_timeout()
4728 timeout_ns = xhci_calculate_intel_u1_timeout(udev, desc); in xhci_calculate_u1_timeout()
4730 timeout_ns = udev->u1_params.sel; in xhci_calculate_u1_timeout()
4745 dev_dbg(&udev->dev, "Hub-initiated U1 disabled " in xhci_calculate_u1_timeout()
4747 return xhci_get_timeout_no_hub_lpm(udev, USB3_LPM_U1); in xhci_calculate_u1_timeout()
4757 struct usb_device *udev, in xhci_calculate_intel_u2_timeout() argument
4769 u2_del_ns = le16_to_cpu(udev->bos->ss_cap->bU2DevExitLat) * 1000ULL; in xhci_calculate_intel_u2_timeout()
4778 struct usb_device *udev, in xhci_calculate_u2_timeout() argument
4785 if (xhci_service_interval_to_ns(desc) <= udev->u2_params.mel) { in xhci_calculate_u2_timeout()
4786 dev_dbg(&udev->dev, "Disable U2, ESIT shorter than exit latency\n"); in xhci_calculate_u2_timeout()
4792 timeout_ns = xhci_calculate_intel_u2_timeout(udev, desc); in xhci_calculate_u2_timeout()
4794 timeout_ns = udev->u2_params.sel; in xhci_calculate_u2_timeout()
4803 dev_dbg(&udev->dev, "Hub-initiated U2 disabled " in xhci_calculate_u2_timeout()
4805 return xhci_get_timeout_no_hub_lpm(udev, USB3_LPM_U2); in xhci_calculate_u2_timeout()
4809 struct usb_device *udev, in xhci_call_host_update_timeout_for_endpoint() argument
4815 return xhci_calculate_u1_timeout(xhci, udev, desc); in xhci_call_host_update_timeout_for_endpoint()
4817 return xhci_calculate_u2_timeout(xhci, udev, desc); in xhci_call_host_update_timeout_for_endpoint()
4823 struct usb_device *udev, in xhci_update_timeout_for_endpoint() argument
4830 alt_timeout = xhci_call_host_update_timeout_for_endpoint(xhci, udev, in xhci_update_timeout_for_endpoint()
4848 struct usb_device *udev, in xhci_update_timeout_for_interface() argument
4856 if (xhci_update_timeout_for_endpoint(xhci, udev, in xhci_update_timeout_for_interface()
4863 static int xhci_check_intel_tier_policy(struct usb_device *udev, in xhci_check_intel_tier_policy() argument
4873 for (parent = udev->parent, num_hubs = 0; parent->parent; in xhci_check_intel_tier_policy()
4880 dev_dbg(&udev->dev, "Disabling U1 link state for device" in xhci_check_intel_tier_policy()
4882 dev_dbg(&udev->dev, "Plug device into first-tier hub " in xhci_check_intel_tier_policy()
4888 struct usb_device *udev, in xhci_check_tier_policy() argument
4892 return xhci_check_intel_tier_policy(udev, state); in xhci_check_tier_policy()
4903 struct usb_device *udev, enum usb3_link_state state) in xhci_calculate_lpm_timeout() argument
4916 dev_warn(&udev->dev, "Can't enable unknown link state %i\n", in xhci_calculate_lpm_timeout()
4921 if (xhci_check_tier_policy(xhci, udev, state) < 0) in xhci_calculate_lpm_timeout()
4927 if (xhci_update_timeout_for_endpoint(xhci, udev, &udev->ep0.desc, in xhci_calculate_lpm_timeout()
4931 config = udev->actconfig; in xhci_calculate_lpm_timeout()
4948 dev_dbg(&udev->dev, "Hub-initiated %s disabled at request of driver %s\n", in xhci_calculate_lpm_timeout()
4950 timeout = xhci_get_timeout_no_hub_lpm(udev, in xhci_calculate_lpm_timeout()
4961 if (xhci_update_timeout_for_interface(xhci, udev, in xhci_calculate_lpm_timeout()
4969 static int calculate_max_exit_latency(struct usb_device *udev, in calculate_max_exit_latency() argument
4994 if ((udev->u1_params.timeout != USB3_LPM_DISABLED && !disabling_u1) || in calculate_max_exit_latency()
4996 u1_mel_us = DIV_ROUND_UP(udev->u1_params.mel, 1000); in calculate_max_exit_latency()
4997 if ((udev->u2_params.timeout != USB3_LPM_DISABLED && !disabling_u2) || in calculate_max_exit_latency()
4999 u2_mel_us = DIV_ROUND_UP(udev->u2_params.mel, 1000); in calculate_max_exit_latency()
5007 dev_warn(&udev->dev, "Link PM max exit latency of %lluus " in calculate_max_exit_latency()
5016 struct usb_device *udev, enum usb3_link_state state) in xhci_enable_usb3_lpm_timeout() argument
5029 !xhci->devs[udev->slot_id]) in xhci_enable_usb3_lpm_timeout()
5032 hub_encoded_timeout = xhci_calculate_lpm_timeout(hcd, udev, state); in xhci_enable_usb3_lpm_timeout()
5033 mel = calculate_max_exit_latency(udev, state, hub_encoded_timeout); in xhci_enable_usb3_lpm_timeout()
5040 ret = xhci_change_max_exit_latency(xhci, udev, mel); in xhci_enable_usb3_lpm_timeout()
5047 struct usb_device *udev, enum usb3_link_state state) in xhci_disable_usb3_lpm_timeout() argument
5054 !xhci->devs[udev->slot_id]) in xhci_disable_usb3_lpm_timeout()
5057 mel = calculate_max_exit_latency(udev, state, USB3_LPM_DISABLED); in xhci_disable_usb3_lpm_timeout()
5058 return xhci_change_max_exit_latency(xhci, udev, mel); in xhci_disable_usb3_lpm_timeout()
5063 struct usb_device *udev, int enable) in xhci_set_usb2_hardware_lpm() argument
5068 static int xhci_update_device(struct usb_hcd *hcd, struct usb_device *udev) in xhci_update_device() argument
5074 struct usb_device *udev, enum usb3_link_state state) in xhci_enable_usb3_lpm_timeout() argument
5080 struct usb_device *udev, enum usb3_link_state state) in xhci_disable_usb3_lpm_timeout() argument
5362 struct usb_device *udev; in xhci_clear_tt_buffer_complete() local
5370 udev = (struct usb_device *)ep->hcpriv; in xhci_clear_tt_buffer_complete()
5371 slot_id = udev->slot_id; in xhci_clear_tt_buffer_complete()