Home
last modified time | relevance | path

Searched refs:timeout_ns (Results 1 – 25 of 53) sorted by relevance

123

/Linux-v6.1/tools/testing/selftests/futex/functional/
Dfutex_wait_timeout.c25 static long timeout_ns = 100000; /* 100us default timeout */ variable
76 long timeout_ns) in futex_get_abs_timeout() argument
83 to->tv_nsec += timeout_ns; in futex_get_abs_timeout()
116 timeout_ns = atoi(optarg); in main()
131 ksft_print_msg("\tArguments: timeout=%ldns\n", timeout_ns); in main()
137 to.tv_nsec = timeout_ns; in main()
143 if (futex_get_abs_timeout(CLOCK_REALTIME, &to, timeout_ns)) in main()
149 if (futex_get_abs_timeout(CLOCK_MONOTONIC, &to, timeout_ns)) in main()
155 if (futex_get_abs_timeout(CLOCK_REALTIME, &to, timeout_ns)) in main()
161 if (futex_get_abs_timeout(CLOCK_MONOTONIC, &to, timeout_ns)) in main()
[all …]
Dfutex_requeue_pi.c44 static long timeout_ns; variable
278 int unit_test(int broadcast, long lock, int third_party_owner, long timeout_ns) in unit_test() argument
289 if (timeout_ns) { in unit_test()
292 info("timeout_ns = %ld\n", timeout_ns); in unit_test()
294 secs = (ts.tv_nsec + timeout_ns) / 1000000000; in unit_test()
295 ts.tv_nsec = ((int64_t)ts.tv_nsec + timeout_ns) % 1000000000; in unit_test()
382 timeout_ns = atoi(optarg); in main()
398 broadcast, locked, owner, timeout_ns); in main()
405 ret = unit_test(broadcast, locked, owner, timeout_ns); in main()
Dfutex_wait_wouldblock.c29 #define timeout_ns 100000 macro
42 struct timespec to = {.tv_sec = 0, .tv_nsec = timeout_ns}; in main()
91 to.tv_nsec += timeout_ns; in main()
Dfutex_requeue.c14 #define timeout_ns 30000000 macro
33 to.tv_nsec = timeout_ns; in waiterfn()
Dfutex_wait.c16 #define timeout_ns 30000000 macro
40 to.tv_nsec = timeout_ns; in waiterfn()
/Linux-v6.1/drivers/gpu/drm/i915/gem/
Di915_gem_wait.c196 static unsigned long to_wait_timeout(s64 timeout_ns) in to_wait_timeout() argument
198 if (timeout_ns < 0) in to_wait_timeout()
201 if (timeout_ns == 0) in to_wait_timeout()
204 return nsecs_to_jiffies_timeout(timeout_ns); in to_wait_timeout()
252 to_wait_timeout(args->timeout_ns)); in i915_gem_wait_ioctl()
254 if (args->timeout_ns > 0) { in i915_gem_wait_ioctl()
255 args->timeout_ns -= ktime_to_ns(ktime_sub(ktime_get(), start)); in i915_gem_wait_ioctl()
256 if (args->timeout_ns < 0) in i915_gem_wait_ioctl()
257 args->timeout_ns = 0; in i915_gem_wait_ioctl()
266 if (ret == -ETIME && !nsecs_to_jiffies(args->timeout_ns)) in i915_gem_wait_ioctl()
[all …]
/Linux-v6.1/kernel/power/
Dwakelock.c207 u64 timeout_ns = 0; in pm_wake_lock() local
223 ret = kstrtou64(skip_spaces(str), 10, &timeout_ns); in pm_wake_lock()
235 if (timeout_ns) { in pm_wake_lock()
236 u64 timeout_ms = timeout_ns + NSEC_PER_MSEC - 1; in pm_wake_lock()
/Linux-v6.1/drivers/iio/proximity/
Dping.c47 s64 timeout_ns; /* timeout in ns */ member
65 .timeout_ns = 18500000, /* 3 meters */
71 .timeout_ns = 15500000, /* 2 meters plus error codes */
166 if (dt_ns > data->cfg->timeout_ns) { in ping_read()
/Linux-v6.1/drivers/gpu/drm/vc4/
Dvc4_gem.c384 vc4_wait_for_seqno(struct drm_device *dev, uint64_t seqno, uint64_t timeout_ns, in vc4_wait_for_seqno() argument
398 if (timeout_ns == 0) in vc4_wait_for_seqno()
401 timeout_expire = jiffies + nsecs_to_jiffies(timeout_ns); in vc4_wait_for_seqno()
403 trace_vc4_wait_for_seqno_begin(dev, seqno, timeout_ns); in vc4_wait_for_seqno()
417 if (timeout_ns != ~0ull) { in vc4_wait_for_seqno()
1088 uint64_t *timeout_ns) in vc4_wait_for_seqno_ioctl_helper() argument
1091 int ret = vc4_wait_for_seqno(dev, seqno, *timeout_ns, true); in vc4_wait_for_seqno_ioctl_helper()
1093 if ((ret == -EINTR || ret == -ERESTARTSYS) && *timeout_ns != ~0ull) { in vc4_wait_for_seqno_ioctl_helper()
1096 if (*timeout_ns >= delta) in vc4_wait_for_seqno_ioctl_helper()
1097 *timeout_ns -= delta; in vc4_wait_for_seqno_ioctl_helper()
[all …]
/Linux-v6.1/drivers/usb/host/
Dxhci.c4715 unsigned long long timeout_ns; in xhci_calculate_intel_u1_timeout() local
4722 timeout_ns = udev->u1_params.sel * 3; in xhci_calculate_intel_u1_timeout()
4725 timeout_ns = udev->u1_params.sel * 5; in xhci_calculate_intel_u1_timeout()
4730 timeout_ns = udev->u1_params.sel * 3; in xhci_calculate_intel_u1_timeout()
4736 timeout_ns = xhci_service_interval_to_ns(desc); in xhci_calculate_intel_u1_timeout()
4737 timeout_ns = DIV_ROUND_UP_ULL(timeout_ns * 105, 100); in xhci_calculate_intel_u1_timeout()
4738 if (timeout_ns < udev->u1_params.sel * 2) in xhci_calculate_intel_u1_timeout()
4739 timeout_ns = udev->u1_params.sel * 2; in xhci_calculate_intel_u1_timeout()
4745 return timeout_ns; in xhci_calculate_intel_u1_timeout()
4753 unsigned long long timeout_ns; in xhci_calculate_u1_timeout() local
[all …]
/Linux-v6.1/drivers/mmc/core/
Dcore.c288 mrq->data->timeout_ns / 1000000, in mmc_mrq_pr_debug()
657 data->timeout_ns = 1000000000; in mmc_set_data_timeout()
674 data->timeout_ns = card->csd.taac_ns * mult; in mmc_set_data_timeout()
683 timeout_us = data->timeout_ns / 1000; in mmc_set_data_timeout()
705 data->timeout_ns = limit_us * 1000; in mmc_set_data_timeout()
711 data->timeout_ns = limit_us * 1000; in mmc_set_data_timeout()
721 data->timeout_ns = 600000000; in mmc_set_data_timeout()
733 if (data->timeout_ns < 1000000000) in mmc_set_data_timeout()
734 data->timeout_ns = 1000000000; /* 1s */ in mmc_set_data_timeout()
736 if (data->timeout_ns < 100000000) in mmc_set_data_timeout()
[all …]
/Linux-v6.1/include/uapi/drm/
Dvc4_drm.h209 __u64 timeout_ns; member
223 __u64 timeout_ns; member
Dlima_drm.h137 __s64 timeout_ns; /* in, wait timeout in absulute time */ member
Dpanfrost_drm.h84 __s64 timeout_ns; /* absolute */ member
Dv3d_drm.h222 __u64 timeout_ns; member
Dtegra_drm.h1020 __s64 timeout_ns; member
/Linux-v6.1/drivers/gpu/drm/lima/
Dlima_gem.h43 int lima_gem_wait(struct drm_file *file, u32 handle, u32 op, s64 timeout_ns);
Dlima_gem.c404 int lima_gem_wait(struct drm_file *file, u32 handle, u32 op, s64 timeout_ns) in lima_gem_wait() argument
412 timeout = drm_timeout_abs_to_jiffies(timeout_ns); in lima_gem_wait()
/Linux-v6.1/drivers/gpu/drm/amd/amdgpu/
Damdgpu_gem.h36 unsigned long amdgpu_gem_timeout(uint64_t timeout_ns);
Damdgpu_gem.c492 unsigned long amdgpu_gem_timeout(uint64_t timeout_ns) in amdgpu_gem_timeout() argument
498 if (((int64_t)timeout_ns) < 0) in amdgpu_gem_timeout()
501 timeout = ktime_sub(ns_to_ktime(timeout_ns), ktime_get()); in amdgpu_gem_timeout()
/Linux-v6.1/drivers/gpu/drm/v3d/
Dv3d_gem.c417 nsecs_to_jiffies_timeout(args->timeout_ns); in v3d_wait_bo_ioctl()
429 if (delta_ns < args->timeout_ns) in v3d_wait_bo_ioctl()
430 args->timeout_ns -= delta_ns; in v3d_wait_bo_ioctl()
432 args->timeout_ns = 0; in v3d_wait_bo_ioctl()
435 if (ret == -ETIME && args->timeout_ns) in v3d_wait_bo_ioctl()
/Linux-v6.1/drivers/mmc/host/
Ddw_mmc-exynos.c548 unsigned int timeout_ns) in dw_mci_exynos_set_data_timeout() argument
558 tmp = DIV_ROUND_UP_ULL((u64)timeout_ns * host->bus_hz, NSEC_PER_SEC); in dw_mci_exynos_set_data_timeout()
582 timeout_ns, tmout >> 8); in dw_mci_exynos_set_data_timeout()
Dcavium.c668 if (data->timeout_ns) in cvm_mmc_dma_request()
669 set_wdog(slot, data->timeout_ns); in cvm_mmc_dma_request()
787 if (cmd->data->timeout_ns) in cvm_mmc_request()
788 set_wdog(slot, cmd->data->timeout_ns); in cvm_mmc_request()
/Linux-v6.1/include/linux/mmc/
Dcore.h115 unsigned int timeout_ns; /* data timeout (in ns, max 80ms) */ member
/Linux-v6.1/drivers/gpu/drm/
Ddrm_syncobj.c1127 u64 timeout_ns, timeout_jiffies64; in drm_timeout_abs_to_jiffies() local
1139 timeout_ns = ktime_to_ns(ktime_sub(abs_timeout, now)); in drm_timeout_abs_to_jiffies()
1141 timeout_jiffies64 = nsecs_to_jiffies64(timeout_ns); in drm_timeout_abs_to_jiffies()

123