Lines Matching refs:udev

1338 static int xhci_check_args(struct usb_hcd *hcd, struct usb_device *udev,  in xhci_check_args()  argument
1344 if (!hcd || (check_ep && !ep) || !udev) { in xhci_check_args()
1348 if (!udev->parent) { in xhci_check_args()
1355 if (!udev->slot_id || !xhci->devs[udev->slot_id]) { in xhci_check_args()
1361 virt_dev = xhci->devs[udev->slot_id]; in xhci_check_args()
1362 if (virt_dev->udev != udev) { in xhci_check_args()
1376 struct usb_device *udev, struct xhci_command *command,
1732 static int xhci_drop_endpoint(struct usb_hcd *hcd, struct usb_device *udev, in xhci_drop_endpoint() argument
1744 ret = xhci_check_args(hcd, udev, ep, 1, true, __func__); in xhci_drop_endpoint()
1751 xhci_dbg(xhci, "%s called for udev %p\n", __func__, udev); in xhci_drop_endpoint()
1759 in_ctx = xhci->devs[udev->slot_id]->in_ctx; in xhci_drop_endpoint()
1760 out_ctx = xhci->devs[udev->slot_id]->out_ctx; in xhci_drop_endpoint()
1777 if (xhci->devs[udev->slot_id]->eps[ep_index].ring != NULL) in xhci_drop_endpoint()
1789 xhci_debugfs_remove_endpoint(xhci, xhci->devs[udev->slot_id], ep_index); in xhci_drop_endpoint()
1791 xhci_endpoint_zero(xhci, xhci->devs[udev->slot_id], ep); in xhci_drop_endpoint()
1794 xhci_mtk_drop_ep_quirk(hcd, udev, ep); in xhci_drop_endpoint()
1798 udev->slot_id, in xhci_drop_endpoint()
1817 static int xhci_add_endpoint(struct usb_hcd *hcd, struct usb_device *udev, in xhci_add_endpoint() argument
1830 ret = xhci_check_args(hcd, udev, ep, 1, true, __func__); in xhci_add_endpoint()
1851 virt_dev = xhci->devs[udev->slot_id]; in xhci_add_endpoint()
1886 if (xhci_endpoint_init(xhci, virt_dev, udev, ep, GFP_NOIO) < 0) { in xhci_add_endpoint()
1887 dev_dbg(&udev->dev, "%s - could not initialize ep %#x\n", in xhci_add_endpoint()
1893 ret = xhci_mtk_add_ep_quirk(hcd, udev, ep); in xhci_add_endpoint()
1913 ep->hcpriv = udev; in xhci_add_endpoint()
1922 udev->slot_id, in xhci_add_endpoint()
1963 struct usb_device *udev, u32 *cmd_status) in xhci_configure_endpoint_result() argument
1974 dev_warn(&udev->dev, in xhci_configure_endpoint_result()
1981 dev_warn(&udev->dev, in xhci_configure_endpoint_result()
1988 dev_warn(&udev->dev, "ERROR: Endpoint drop flag = 0, " in xhci_configure_endpoint_result()
1994 dev_warn(&udev->dev, in xhci_configure_endpoint_result()
2013 struct usb_device *udev, u32 *cmd_status) in xhci_evaluate_context_result() argument
2024 dev_warn(&udev->dev, in xhci_evaluate_context_result()
2029 dev_warn(&udev->dev, in xhci_evaluate_context_result()
2034 dev_warn(&udev->dev, in xhci_evaluate_context_result()
2039 dev_warn(&udev->dev, in xhci_evaluate_context_result()
2045 dev_warn(&udev->dev, "WARN: Max Exit Latency too large\n"); in xhci_evaluate_context_result()
2169 static unsigned int xhci_get_block_size(struct usb_device *udev) in xhci_get_block_size() argument
2171 switch (udev->speed) { in xhci_get_block_size()
2304 if (virt_dev->udev->speed >= USB_SPEED_SUPER) in xhci_check_bw_table()
2307 if (virt_dev->udev->speed == USB_SPEED_HIGH) { in xhci_check_bw_table()
2320 block_size = xhci_get_block_size(virt_dev->udev); in xhci_check_bw_table()
2437 if (!virt_dev->tt_info && virt_dev->udev->speed == USB_SPEED_HIGH) { in xhci_check_bw_table()
2495 struct usb_device *udev, in xhci_drop_ep_from_interval_table() argument
2505 if (udev->speed >= USB_SPEED_SUPER) { in xhci_drop_ep_from_interval_table()
2507 xhci->devs[udev->slot_id]->bw_table->ss_bw_in -= in xhci_drop_ep_from_interval_table()
2510 xhci->devs[udev->slot_id]->bw_table->ss_bw_out -= in xhci_drop_ep_from_interval_table()
2523 if (udev->speed == USB_SPEED_HIGH) in xhci_drop_ep_from_interval_table()
2532 switch (udev->speed) { in xhci_drop_ep_from_interval_table()
2559 struct usb_device *udev, in xhci_add_ep_to_interval_table() argument
2570 if (udev->speed == USB_SPEED_SUPER) { in xhci_add_ep_to_interval_table()
2572 xhci->devs[udev->slot_id]->bw_table->ss_bw_in += in xhci_add_ep_to_interval_table()
2575 xhci->devs[udev->slot_id]->bw_table->ss_bw_out += in xhci_add_ep_to_interval_table()
2583 if (udev->speed == USB_SPEED_HIGH) in xhci_add_ep_to_interval_table()
2592 switch (udev->speed) { in xhci_add_ep_to_interval_table()
2683 virt_dev->udev, in xhci_reserve_bandwidth()
2695 virt_dev->udev, in xhci_reserve_bandwidth()
2720 virt_dev->udev, in xhci_reserve_bandwidth()
2732 virt_dev->udev, in xhci_reserve_bandwidth()
2744 struct usb_device *udev, in xhci_configure_endpoint() argument
2764 virt_dev = xhci->devs[udev->slot_id]; in xhci_configure_endpoint()
2799 udev->slot_id, must_succeed); in xhci_configure_endpoint()
2803 udev->slot_id, must_succeed); in xhci_configure_endpoint()
2819 ret = xhci_configure_endpoint_result(xhci, udev, in xhci_configure_endpoint()
2822 ret = xhci_evaluate_context_result(xhci, udev, in xhci_configure_endpoint()
2863 static int xhci_check_bandwidth(struct usb_hcd *hcd, struct usb_device *udev) in xhci_check_bandwidth() argument
2873 ret = xhci_check_args(hcd, udev, NULL, 0, true, __func__); in xhci_check_bandwidth()
2881 xhci_dbg(xhci, "%s called for udev %p\n", __func__, udev); in xhci_check_bandwidth()
2882 virt_dev = xhci->devs[udev->slot_id]; in xhci_check_bandwidth()
2921 ret = xhci_configure_endpoint(xhci, udev, command, in xhci_check_bandwidth()
2960 static void xhci_reset_bandwidth(struct usb_hcd *hcd, struct usb_device *udev) in xhci_reset_bandwidth() argument
2966 ret = xhci_check_args(hcd, udev, NULL, 0, true, __func__); in xhci_reset_bandwidth()
2971 xhci_dbg(xhci, "%s called for udev %p\n", __func__, udev); in xhci_reset_bandwidth()
2972 virt_dev = xhci->devs[udev->slot_id]; in xhci_reset_bandwidth()
3039 struct usb_device *udev = td->urb->dev; in xhci_cleanup_stalled_ring() local
3046 xhci_find_new_dequeue_state(xhci, udev->slot_id, in xhci_cleanup_stalled_ring()
3058 xhci_queue_new_dequeue_state(xhci, udev->slot_id, in xhci_cleanup_stalled_ring()
3069 xhci_setup_input_ctx_for_quirk(xhci, udev->slot_id, in xhci_cleanup_stalled_ring()
3080 struct usb_device *udev; in xhci_endpoint_disable() local
3088 udev = (struct usb_device *)host_ep->hcpriv; in xhci_endpoint_disable()
3089 if (!udev || !udev->slot_id) in xhci_endpoint_disable()
3092 vdev = xhci->devs[udev->slot_id]; in xhci_endpoint_disable()
3132 struct usb_device *udev; in xhci_endpoint_reset() local
3145 udev = (struct usb_device *) host_ep->hcpriv; in xhci_endpoint_reset()
3146 vdev = xhci->devs[udev->slot_id]; in xhci_endpoint_reset()
3153 if (!udev->slot_id || !vdev) in xhci_endpoint_reset()
3195 dev_err(&udev->dev, "EP not empty, refuse reset\n"); in xhci_endpoint_reset()
3201 err = xhci_queue_stop_endpoint(xhci, stop_cmd, udev->slot_id, in xhci_endpoint_reset()
3225 udev->slot_id, false); in xhci_endpoint_reset()
3246 struct usb_device *udev, struct usb_host_endpoint *ep, in xhci_check_streams_endpoint() argument
3255 ret = xhci_check_args(xhci_to_hcd(xhci), udev, ep, 1, true, __func__); in xhci_check_streams_endpoint()
3312 struct usb_device *udev, in xhci_calculate_streams_and_bitmask() argument
3322 ret = xhci_check_streams_endpoint(xhci, udev, in xhci_calculate_streams_and_bitmask()
3323 eps[i], udev->slot_id); in xhci_calculate_streams_and_bitmask()
3344 struct usb_device *udev, in xhci_calculate_no_streams_bitmask() argument
3353 slot_id = udev->slot_id; in xhci_calculate_no_streams_bitmask()
3400 static int xhci_alloc_streams(struct usb_hcd *hcd, struct usb_device *udev, in xhci_alloc_streams() argument
3450 ret = xhci_calculate_streams_and_bitmask(xhci, udev, eps, in xhci_alloc_streams()
3464 vdev = xhci->devs[udev->slot_id]; in xhci_alloc_streams()
3516 ret = xhci_configure_endpoint(xhci, udev, config_cmd, in xhci_alloc_streams()
3531 udev->slot_id, ep_index); in xhci_alloc_streams()
3563 static int xhci_free_streams(struct usb_hcd *hcd, struct usb_device *udev, in xhci_free_streams() argument
3577 vdev = xhci->devs[udev->slot_id]; in xhci_free_streams()
3582 udev, eps, num_eps); in xhci_free_streams()
3607 xhci->devs[udev->slot_id]->eps[ep_index].ep_state |= in xhci_free_streams()
3623 ret = xhci_configure_endpoint(xhci, udev, command, in xhci_free_streams()
3696 struct usb_device *udev) in xhci_discover_or_reset_device() argument
3707 ret = xhci_check_args(hcd, udev, NULL, 0, false, __func__); in xhci_discover_or_reset_device()
3711 slot_id = udev->slot_id; in xhci_discover_or_reset_device()
3716 ret = xhci_alloc_dev(hcd, udev); in xhci_discover_or_reset_device()
3726 if (virt_dev->udev != udev) { in xhci_discover_or_reset_device()
3734 ret = xhci_alloc_dev(hcd, udev); in xhci_discover_or_reset_device()
3837 udev, in xhci_discover_or_reset_device()
3857 static void xhci_free_dev(struct usb_hcd *hcd, struct usb_device *udev) in xhci_free_dev() argument
3874 ret = xhci_check_args(hcd, udev, NULL, 0, true, __func__); in xhci_free_dev()
3881 virt_dev = xhci->devs[udev->slot_id]; in xhci_free_dev()
3890 virt_dev->udev = NULL; in xhci_free_dev()
3891 ret = xhci_disable_slot(xhci, udev->slot_id); in xhci_free_dev()
3893 xhci_free_virt_device(xhci, udev->slot_id); in xhci_free_dev()
3958 int xhci_alloc_dev(struct usb_hcd *hcd, struct usb_device *udev) in xhci_alloc_dev() argument
4012 if (!xhci_alloc_virt_device(xhci, slot_id, udev, GFP_NOIO)) { in xhci_alloc_dev()
4020 udev->slot_id = slot_id; in xhci_alloc_dev()
4038 ret = xhci_disable_slot(xhci, udev->slot_id); in xhci_alloc_dev()
4040 xhci_free_virt_device(xhci, udev->slot_id); in xhci_alloc_dev()
4049 static int xhci_setup_device(struct usb_hcd *hcd, struct usb_device *udev, in xhci_setup_device() argument
4069 if (!udev->slot_id) { in xhci_setup_device()
4071 "Bad Slot ID %d", udev->slot_id); in xhci_setup_device()
4076 virt_dev = xhci->devs[udev->slot_id]; in xhci_setup_device()
4085 udev->slot_id); in xhci_setup_device()
4122 xhci_setup_addressable_virt_dev(xhci, udev); in xhci_setup_device()
4125 xhci_copy_ep0_dequeue_into_input_ctx(xhci, udev); in xhci_setup_device()
4136 udev->slot_id, setup); in xhci_setup_device()
4162 act, udev->slot_id); in xhci_setup_device()
4166 dev_warn(&udev->dev, "Device not responding to setup %s.\n", act); in xhci_setup_device()
4169 ret = xhci_disable_slot(xhci, udev->slot_id); in xhci_setup_device()
4171 xhci_alloc_dev(hcd, udev); in xhci_setup_device()
4176 dev_warn(&udev->dev, in xhci_setup_device()
4199 udev->slot_id, in xhci_setup_device()
4200 &xhci->dcbaa->dev_context_ptrs[udev->slot_id], in xhci_setup_device()
4202 le64_to_cpu(xhci->dcbaa->dev_context_ptrs[udev->slot_id])); in xhci_setup_device()
4218 udev->devaddr = (u8)(le32_to_cpu(slot_ctx->dev_state) & DEV_ADDR_MASK); in xhci_setup_device()
4232 static int xhci_address_device(struct usb_hcd *hcd, struct usb_device *udev) in xhci_address_device() argument
4234 return xhci_setup_device(hcd, udev, SETUP_CONTEXT_ADDRESS); in xhci_address_device()
4237 static int xhci_enable_device(struct usb_hcd *hcd, struct usb_device *udev) in xhci_enable_device() argument
4239 return xhci_setup_device(hcd, udev, SETUP_CONTEXT_ONLY); in xhci_enable_device()
4261 struct usb_device *udev, u16 max_exit_latency) in xhci_change_max_exit_latency() argument
4272 virt_dev = xhci->devs[udev->slot_id]; in xhci_change_max_exit_latency()
4308 ret = xhci_configure_endpoint(xhci, udev, command, in xhci_change_max_exit_latency()
4327 struct usb_device *udev) in xhci_calculate_hird_besl() argument
4334 field = le32_to_cpu(udev->bos->ext_cap->bmAttributes); in xhci_calculate_hird_besl()
4361 static int xhci_calculate_usb2_hw_lpm_params(struct usb_device *udev) in xhci_calculate_usb2_hw_lpm_params() argument
4368 field = le32_to_cpu(udev->bos->ext_cap->bmAttributes); in xhci_calculate_usb2_hw_lpm_params()
4371 l1 = udev->l1_params.timeout / 256; in xhci_calculate_usb2_hw_lpm_params()
4383 struct usb_device *udev, int enable) in xhci_set_usb2_hardware_lpm() argument
4395 !udev->lpm_capable) in xhci_set_usb2_hardware_lpm()
4398 if (!udev->parent || udev->parent->parent || in xhci_set_usb2_hardware_lpm()
4399 udev->descriptor.bDeviceClass == USB_CLASS_HUB) in xhci_set_usb2_hardware_lpm()
4402 if (udev->usb2_hw_lpm_capable != 1) in xhci_set_usb2_hardware_lpm()
4408 port_num = udev->portnum - 1; in xhci_set_usb2_hardware_lpm()
4418 if (udev->usb2_hw_lpm_besl_capable) { in xhci_set_usb2_hardware_lpm()
4423 field = le32_to_cpu(udev->bos->ext_cap->bmAttributes); in xhci_set_usb2_hardware_lpm()
4428 hird = udev->l1_params.besl; in xhci_set_usb2_hardware_lpm()
4441 ret = xhci_change_max_exit_latency(xhci, udev, in xhci_set_usb2_hardware_lpm()
4449 hlpm_val = xhci_calculate_usb2_hw_lpm_params(udev); in xhci_set_usb2_hardware_lpm()
4454 hird = xhci_calculate_hird_besl(xhci, udev); in xhci_set_usb2_hardware_lpm()
4458 pm_val |= PORT_HIRD(hird) | PORT_RWE | PORT_L1DS(udev->slot_id); in xhci_set_usb2_hardware_lpm()
4470 if (udev->usb2_hw_lpm_besl_capable) { in xhci_set_usb2_hardware_lpm()
4473 xhci_change_max_exit_latency(xhci, udev, 0); in xhci_set_usb2_hardware_lpm()
4506 static int xhci_update_device(struct usb_hcd *hcd, struct usb_device *udev) in xhci_update_device() argument
4509 int portnum = udev->portnum - 1; in xhci_update_device()
4511 if (hcd->speed >= HCD_USB3 || !udev->lpm_capable) in xhci_update_device()
4515 if (!udev->parent || udev->parent->parent || in xhci_update_device()
4516 udev->descriptor.bDeviceClass == USB_CLASS_HUB) in xhci_update_device()
4522 udev->usb2_hw_lpm_capable = 1; in xhci_update_device()
4523 udev->l1_params.timeout = XHCI_L1_TIMEOUT; in xhci_update_device()
4524 udev->l1_params.besl = XHCI_DEFAULT_BESL; in xhci_update_device()
4527 udev->usb2_hw_lpm_besl_capable = 1; in xhci_update_device()
4542 static u16 xhci_get_timeout_no_hub_lpm(struct usb_device *udev, in xhci_get_timeout_no_hub_lpm() argument
4553 sel = DIV_ROUND_UP(udev->u1_params.sel, 1000); in xhci_get_timeout_no_hub_lpm()
4554 pel = DIV_ROUND_UP(udev->u1_params.pel, 1000); in xhci_get_timeout_no_hub_lpm()
4559 sel = DIV_ROUND_UP(udev->u2_params.sel, 1000); in xhci_get_timeout_no_hub_lpm()
4560 pel = DIV_ROUND_UP(udev->u2_params.pel, 1000); in xhci_get_timeout_no_hub_lpm()
4565 dev_warn(&udev->dev, "%s: Can't get timeout for non-U1 or U2 state.\n", in xhci_get_timeout_no_hub_lpm()
4574 dev_dbg(&udev->dev, "Device-initiated %s disabled " in xhci_get_timeout_no_hub_lpm()
4578 dev_dbg(&udev->dev, "Device-initiated %s disabled " in xhci_get_timeout_no_hub_lpm()
4593 struct usb_device *udev, in xhci_calculate_intel_u1_timeout() argument
4603 timeout_ns = udev->u1_params.sel * 3; in xhci_calculate_intel_u1_timeout()
4606 timeout_ns = udev->u1_params.sel * 5; in xhci_calculate_intel_u1_timeout()
4611 timeout_ns = udev->u1_params.sel * 3; in xhci_calculate_intel_u1_timeout()
4619 if (timeout_ns < udev->u1_params.sel * 2) in xhci_calculate_intel_u1_timeout()
4620 timeout_ns = udev->u1_params.sel * 2; in xhci_calculate_intel_u1_timeout()
4631 struct usb_device *udev, in xhci_calculate_u1_timeout() argument
4638 if (xhci_service_interval_to_ns(desc) <= udev->u1_params.mel) { in xhci_calculate_u1_timeout()
4639 dev_dbg(&udev->dev, "Disable U1, ESIT shorter than exit latency\n"); in xhci_calculate_u1_timeout()
4645 timeout_ns = xhci_calculate_intel_u1_timeout(udev, desc); in xhci_calculate_u1_timeout()
4647 timeout_ns = udev->u1_params.sel; in xhci_calculate_u1_timeout()
4662 dev_dbg(&udev->dev, "Hub-initiated U1 disabled " in xhci_calculate_u1_timeout()
4664 return xhci_get_timeout_no_hub_lpm(udev, USB3_LPM_U1); in xhci_calculate_u1_timeout()
4674 struct usb_device *udev, in xhci_calculate_intel_u2_timeout() argument
4686 u2_del_ns = le16_to_cpu(udev->bos->ss_cap->bU2DevExitLat) * 1000ULL; in xhci_calculate_intel_u2_timeout()
4695 struct usb_device *udev, in xhci_calculate_u2_timeout() argument
4702 if (xhci_service_interval_to_ns(desc) <= udev->u2_params.mel) { in xhci_calculate_u2_timeout()
4703 dev_dbg(&udev->dev, "Disable U2, ESIT shorter than exit latency\n"); in xhci_calculate_u2_timeout()
4709 timeout_ns = xhci_calculate_intel_u2_timeout(udev, desc); in xhci_calculate_u2_timeout()
4711 timeout_ns = udev->u2_params.sel; in xhci_calculate_u2_timeout()
4720 dev_dbg(&udev->dev, "Hub-initiated U2 disabled " in xhci_calculate_u2_timeout()
4722 return xhci_get_timeout_no_hub_lpm(udev, USB3_LPM_U2); in xhci_calculate_u2_timeout()
4726 struct usb_device *udev, in xhci_call_host_update_timeout_for_endpoint() argument
4732 return xhci_calculate_u1_timeout(xhci, udev, desc); in xhci_call_host_update_timeout_for_endpoint()
4734 return xhci_calculate_u2_timeout(xhci, udev, desc); in xhci_call_host_update_timeout_for_endpoint()
4740 struct usb_device *udev, in xhci_update_timeout_for_endpoint() argument
4747 alt_timeout = xhci_call_host_update_timeout_for_endpoint(xhci, udev, in xhci_update_timeout_for_endpoint()
4765 struct usb_device *udev, in xhci_update_timeout_for_interface() argument
4773 if (xhci_update_timeout_for_endpoint(xhci, udev, in xhci_update_timeout_for_interface()
4781 static int xhci_check_intel_tier_policy(struct usb_device *udev, in xhci_check_intel_tier_policy() argument
4791 for (parent = udev->parent, num_hubs = 0; parent->parent; in xhci_check_intel_tier_policy()
4798 dev_dbg(&udev->dev, "Disabling U1 link state for device" in xhci_check_intel_tier_policy()
4800 dev_dbg(&udev->dev, "Plug device into first-tier hub " in xhci_check_intel_tier_policy()
4806 struct usb_device *udev, in xhci_check_tier_policy() argument
4810 return xhci_check_intel_tier_policy(udev, state); in xhci_check_tier_policy()
4821 struct usb_device *udev, enum usb3_link_state state) in xhci_calculate_lpm_timeout() argument
4834 dev_warn(&udev->dev, "Can't enable unknown link state %i\n", in xhci_calculate_lpm_timeout()
4839 if (xhci_check_tier_policy(xhci, udev, state) < 0) in xhci_calculate_lpm_timeout()
4845 if (xhci_update_timeout_for_endpoint(xhci, udev, &udev->ep0.desc, in xhci_calculate_lpm_timeout()
4849 config = udev->actconfig; in xhci_calculate_lpm_timeout()
4866 dev_dbg(&udev->dev, "Hub-initiated %s disabled at request of driver %s\n", in xhci_calculate_lpm_timeout()
4868 timeout = xhci_get_timeout_no_hub_lpm(udev, in xhci_calculate_lpm_timeout()
4879 if (xhci_update_timeout_for_interface(xhci, udev, in xhci_calculate_lpm_timeout()
4887 static int calculate_max_exit_latency(struct usb_device *udev, in calculate_max_exit_latency() argument
4912 if ((udev->u1_params.timeout != USB3_LPM_DISABLED && !disabling_u1) || in calculate_max_exit_latency()
4914 u1_mel_us = DIV_ROUND_UP(udev->u1_params.mel, 1000); in calculate_max_exit_latency()
4915 if ((udev->u2_params.timeout != USB3_LPM_DISABLED && !disabling_u2) || in calculate_max_exit_latency()
4917 u2_mel_us = DIV_ROUND_UP(udev->u2_params.mel, 1000); in calculate_max_exit_latency()
4925 dev_warn(&udev->dev, "Link PM max exit latency of %lluus " in calculate_max_exit_latency()
4934 struct usb_device *udev, enum usb3_link_state state) in xhci_enable_usb3_lpm_timeout() argument
4947 !xhci->devs[udev->slot_id]) in xhci_enable_usb3_lpm_timeout()
4950 hub_encoded_timeout = xhci_calculate_lpm_timeout(hcd, udev, state); in xhci_enable_usb3_lpm_timeout()
4951 mel = calculate_max_exit_latency(udev, state, hub_encoded_timeout); in xhci_enable_usb3_lpm_timeout()
4958 ret = xhci_change_max_exit_latency(xhci, udev, mel); in xhci_enable_usb3_lpm_timeout()
4965 struct usb_device *udev, enum usb3_link_state state) in xhci_disable_usb3_lpm_timeout() argument
4972 !xhci->devs[udev->slot_id]) in xhci_disable_usb3_lpm_timeout()
4975 mel = calculate_max_exit_latency(udev, state, USB3_LPM_DISABLED); in xhci_disable_usb3_lpm_timeout()
4976 return xhci_change_max_exit_latency(xhci, udev, mel); in xhci_disable_usb3_lpm_timeout()
4981 struct usb_device *udev, int enable) in xhci_set_usb2_hardware_lpm() argument
4986 static int xhci_update_device(struct usb_hcd *hcd, struct usb_device *udev) in xhci_update_device() argument
4992 struct usb_device *udev, enum usb3_link_state state) in xhci_enable_usb3_lpm_timeout() argument
4998 struct usb_device *udev, enum usb3_link_state state) in xhci_disable_usb3_lpm_timeout() argument
5278 struct usb_device *udev; in xhci_clear_tt_buffer_complete() local
5286 udev = (struct usb_device *)ep->hcpriv; in xhci_clear_tt_buffer_complete()
5287 slot_id = udev->slot_id; in xhci_clear_tt_buffer_complete()