Lines Matching refs:timeout_ns
4344 unsigned long long timeout_ns; in xhci_calculate_intel_u1_timeout() local
4351 timeout_ns = udev->u1_params.sel * 3; in xhci_calculate_intel_u1_timeout()
4354 timeout_ns = udev->u1_params.sel * 5; in xhci_calculate_intel_u1_timeout()
4359 timeout_ns = udev->u1_params.sel * 3; in xhci_calculate_intel_u1_timeout()
4364 timeout_ns = xhci_service_interval_to_ns(desc); in xhci_calculate_intel_u1_timeout()
4365 timeout_ns = DIV_ROUND_UP_ULL(timeout_ns * 105, 100); in xhci_calculate_intel_u1_timeout()
4366 if (timeout_ns < udev->u1_params.sel * 2) in xhci_calculate_intel_u1_timeout()
4367 timeout_ns = udev->u1_params.sel * 2; in xhci_calculate_intel_u1_timeout()
4373 return timeout_ns; in xhci_calculate_intel_u1_timeout()
4381 unsigned long long timeout_ns; in xhci_calculate_u1_timeout() local
4384 timeout_ns = xhci_calculate_intel_u1_timeout(udev, desc); in xhci_calculate_u1_timeout()
4386 timeout_ns = udev->u1_params.sel; in xhci_calculate_u1_timeout()
4391 if (timeout_ns == USB3_LPM_DISABLED) in xhci_calculate_u1_timeout()
4392 timeout_ns = 1; in xhci_calculate_u1_timeout()
4394 timeout_ns = DIV_ROUND_UP_ULL(timeout_ns, 1000); in xhci_calculate_u1_timeout()
4399 if (timeout_ns <= USB3_LPM_U1_MAX_TIMEOUT) in xhci_calculate_u1_timeout()
4400 return timeout_ns; in xhci_calculate_u1_timeout()
4402 "due to long timeout %llu ms\n", timeout_ns); in xhci_calculate_u1_timeout()
4416 unsigned long long timeout_ns; in xhci_calculate_intel_u2_timeout() local
4419 timeout_ns = 10 * 1000 * 1000; in xhci_calculate_intel_u2_timeout()
4422 (xhci_service_interval_to_ns(desc) > timeout_ns)) in xhci_calculate_intel_u2_timeout()
4423 timeout_ns = xhci_service_interval_to_ns(desc); in xhci_calculate_intel_u2_timeout()
4426 if (u2_del_ns > timeout_ns) in xhci_calculate_intel_u2_timeout()
4427 timeout_ns = u2_del_ns; in xhci_calculate_intel_u2_timeout()
4429 return timeout_ns; in xhci_calculate_intel_u2_timeout()
4437 unsigned long long timeout_ns; in xhci_calculate_u2_timeout() local
4440 timeout_ns = xhci_calculate_intel_u2_timeout(udev, desc); in xhci_calculate_u2_timeout()
4442 timeout_ns = udev->u2_params.sel; in xhci_calculate_u2_timeout()
4445 timeout_ns = DIV_ROUND_UP_ULL(timeout_ns, 256 * 1000); in xhci_calculate_u2_timeout()
4449 if (timeout_ns <= USB3_LPM_U2_MAX_TIMEOUT) in xhci_calculate_u2_timeout()
4450 return timeout_ns; in xhci_calculate_u2_timeout()
4452 "due to long timeout %llu ms\n", timeout_ns); in xhci_calculate_u2_timeout()