Lines Matching refs:timeout_ns
4461 unsigned long long timeout_ns; in xhci_calculate_intel_u1_timeout() local
4468 timeout_ns = udev->u1_params.sel * 3; in xhci_calculate_intel_u1_timeout()
4471 timeout_ns = udev->u1_params.sel * 5; in xhci_calculate_intel_u1_timeout()
4476 timeout_ns = udev->u1_params.sel * 3; in xhci_calculate_intel_u1_timeout()
4482 timeout_ns = xhci_service_interval_to_ns(desc); in xhci_calculate_intel_u1_timeout()
4483 timeout_ns = DIV_ROUND_UP_ULL(timeout_ns * 105, 100); in xhci_calculate_intel_u1_timeout()
4484 if (timeout_ns < udev->u1_params.sel * 2) in xhci_calculate_intel_u1_timeout()
4485 timeout_ns = udev->u1_params.sel * 2; in xhci_calculate_intel_u1_timeout()
4491 return timeout_ns; in xhci_calculate_intel_u1_timeout()
4499 unsigned long long timeout_ns; in xhci_calculate_u1_timeout() local
4502 timeout_ns = xhci_calculate_intel_u1_timeout(udev, desc); in xhci_calculate_u1_timeout()
4504 timeout_ns = udev->u1_params.sel; in xhci_calculate_u1_timeout()
4509 if (timeout_ns == USB3_LPM_DISABLED) in xhci_calculate_u1_timeout()
4510 timeout_ns = 1; in xhci_calculate_u1_timeout()
4512 timeout_ns = DIV_ROUND_UP_ULL(timeout_ns, 1000); in xhci_calculate_u1_timeout()
4517 if (timeout_ns <= USB3_LPM_U1_MAX_TIMEOUT) in xhci_calculate_u1_timeout()
4518 return timeout_ns; in xhci_calculate_u1_timeout()
4520 "due to long timeout %llu ms\n", timeout_ns); in xhci_calculate_u1_timeout()
4534 unsigned long long timeout_ns; in xhci_calculate_intel_u2_timeout() local
4537 timeout_ns = 10 * 1000 * 1000; in xhci_calculate_intel_u2_timeout()
4540 (xhci_service_interval_to_ns(desc) > timeout_ns)) in xhci_calculate_intel_u2_timeout()
4541 timeout_ns = xhci_service_interval_to_ns(desc); in xhci_calculate_intel_u2_timeout()
4544 if (u2_del_ns > timeout_ns) in xhci_calculate_intel_u2_timeout()
4545 timeout_ns = u2_del_ns; in xhci_calculate_intel_u2_timeout()
4547 return timeout_ns; in xhci_calculate_intel_u2_timeout()
4555 unsigned long long timeout_ns; in xhci_calculate_u2_timeout() local
4558 timeout_ns = xhci_calculate_intel_u2_timeout(udev, desc); in xhci_calculate_u2_timeout()
4560 timeout_ns = udev->u2_params.sel; in xhci_calculate_u2_timeout()
4563 timeout_ns = DIV_ROUND_UP_ULL(timeout_ns, 256 * 1000); in xhci_calculate_u2_timeout()
4567 if (timeout_ns <= USB3_LPM_U2_MAX_TIMEOUT) in xhci_calculate_u2_timeout()
4568 return timeout_ns; in xhci_calculate_u2_timeout()
4570 "due to long timeout %llu ms\n", timeout_ns); in xhci_calculate_u2_timeout()