Lines Matching refs:timeout_ns
4356 unsigned long long timeout_ns; in xhci_calculate_intel_u1_timeout() local
4363 timeout_ns = udev->u1_params.sel * 3; in xhci_calculate_intel_u1_timeout()
4366 timeout_ns = udev->u1_params.sel * 5; in xhci_calculate_intel_u1_timeout()
4371 timeout_ns = udev->u1_params.sel * 3; in xhci_calculate_intel_u1_timeout()
4376 timeout_ns = xhci_service_interval_to_ns(desc); in xhci_calculate_intel_u1_timeout()
4377 timeout_ns = DIV_ROUND_UP_ULL(timeout_ns * 105, 100); in xhci_calculate_intel_u1_timeout()
4378 if (timeout_ns < udev->u1_params.sel * 2) in xhci_calculate_intel_u1_timeout()
4379 timeout_ns = udev->u1_params.sel * 2; in xhci_calculate_intel_u1_timeout()
4385 return timeout_ns; in xhci_calculate_intel_u1_timeout()
4393 unsigned long long timeout_ns; in xhci_calculate_u1_timeout() local
4396 timeout_ns = xhci_calculate_intel_u1_timeout(udev, desc); in xhci_calculate_u1_timeout()
4398 timeout_ns = udev->u1_params.sel; in xhci_calculate_u1_timeout()
4403 if (timeout_ns == USB3_LPM_DISABLED) in xhci_calculate_u1_timeout()
4404 timeout_ns = 1; in xhci_calculate_u1_timeout()
4406 timeout_ns = DIV_ROUND_UP_ULL(timeout_ns, 1000); in xhci_calculate_u1_timeout()
4411 if (timeout_ns <= USB3_LPM_U1_MAX_TIMEOUT) in xhci_calculate_u1_timeout()
4412 return timeout_ns; in xhci_calculate_u1_timeout()
4414 "due to long timeout %llu ms\n", timeout_ns); in xhci_calculate_u1_timeout()
4428 unsigned long long timeout_ns; in xhci_calculate_intel_u2_timeout() local
4431 timeout_ns = 10 * 1000 * 1000; in xhci_calculate_intel_u2_timeout()
4434 (xhci_service_interval_to_ns(desc) > timeout_ns)) in xhci_calculate_intel_u2_timeout()
4435 timeout_ns = xhci_service_interval_to_ns(desc); in xhci_calculate_intel_u2_timeout()
4438 if (u2_del_ns > timeout_ns) in xhci_calculate_intel_u2_timeout()
4439 timeout_ns = u2_del_ns; in xhci_calculate_intel_u2_timeout()
4441 return timeout_ns; in xhci_calculate_intel_u2_timeout()
4449 unsigned long long timeout_ns; in xhci_calculate_u2_timeout() local
4452 timeout_ns = xhci_calculate_intel_u2_timeout(udev, desc); in xhci_calculate_u2_timeout()
4454 timeout_ns = udev->u2_params.sel; in xhci_calculate_u2_timeout()
4457 timeout_ns = DIV_ROUND_UP_ULL(timeout_ns, 256 * 1000); in xhci_calculate_u2_timeout()
4461 if (timeout_ns <= USB3_LPM_U2_MAX_TIMEOUT) in xhci_calculate_u2_timeout()
4462 return timeout_ns; in xhci_calculate_u2_timeout()
4464 "due to long timeout %llu ms\n", timeout_ns); in xhci_calculate_u2_timeout()