Lines Matching refs:timeout_ns
4676 unsigned long long timeout_ns; in xhci_calculate_intel_u1_timeout() local
4683 timeout_ns = udev->u1_params.sel * 3; in xhci_calculate_intel_u1_timeout()
4686 timeout_ns = udev->u1_params.sel * 5; in xhci_calculate_intel_u1_timeout()
4691 timeout_ns = udev->u1_params.sel * 3; in xhci_calculate_intel_u1_timeout()
4697 timeout_ns = xhci_service_interval_to_ns(desc); in xhci_calculate_intel_u1_timeout()
4698 timeout_ns = DIV_ROUND_UP_ULL(timeout_ns * 105, 100); in xhci_calculate_intel_u1_timeout()
4699 if (timeout_ns < udev->u1_params.sel * 2) in xhci_calculate_intel_u1_timeout()
4700 timeout_ns = udev->u1_params.sel * 2; in xhci_calculate_intel_u1_timeout()
4706 return timeout_ns; in xhci_calculate_intel_u1_timeout()
4714 unsigned long long timeout_ns; in xhci_calculate_u1_timeout() local
4725 timeout_ns = xhci_calculate_intel_u1_timeout(udev, desc); in xhci_calculate_u1_timeout()
4727 timeout_ns = udev->u1_params.sel; in xhci_calculate_u1_timeout()
4732 if (timeout_ns == USB3_LPM_DISABLED) in xhci_calculate_u1_timeout()
4733 timeout_ns = 1; in xhci_calculate_u1_timeout()
4735 timeout_ns = DIV_ROUND_UP_ULL(timeout_ns, 1000); in xhci_calculate_u1_timeout()
4740 if (timeout_ns <= USB3_LPM_U1_MAX_TIMEOUT) in xhci_calculate_u1_timeout()
4741 return timeout_ns; in xhci_calculate_u1_timeout()
4743 "due to long timeout %llu ms\n", timeout_ns); in xhci_calculate_u1_timeout()
4757 unsigned long long timeout_ns; in xhci_calculate_intel_u2_timeout() local
4760 timeout_ns = 10 * 1000 * 1000; in xhci_calculate_intel_u2_timeout()
4763 (xhci_service_interval_to_ns(desc) > timeout_ns)) in xhci_calculate_intel_u2_timeout()
4764 timeout_ns = xhci_service_interval_to_ns(desc); in xhci_calculate_intel_u2_timeout()
4767 if (u2_del_ns > timeout_ns) in xhci_calculate_intel_u2_timeout()
4768 timeout_ns = u2_del_ns; in xhci_calculate_intel_u2_timeout()
4770 return timeout_ns; in xhci_calculate_intel_u2_timeout()
4778 unsigned long long timeout_ns; in xhci_calculate_u2_timeout() local
4789 timeout_ns = xhci_calculate_intel_u2_timeout(udev, desc); in xhci_calculate_u2_timeout()
4791 timeout_ns = udev->u2_params.sel; in xhci_calculate_u2_timeout()
4794 timeout_ns = DIV_ROUND_UP_ULL(timeout_ns, 256 * 1000); in xhci_calculate_u2_timeout()
4798 if (timeout_ns <= USB3_LPM_U2_MAX_TIMEOUT) in xhci_calculate_u2_timeout()
4799 return timeout_ns; in xhci_calculate_u2_timeout()
4801 "due to long timeout %llu ms\n", timeout_ns); in xhci_calculate_u2_timeout()