Home
last modified time | relevance | path

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

123

/linux-6.6.21/tools/testing/selftests/futex/functional/
Dfutex_wait_timeout.c25 static long timeout_ns = 100000; /* 100us default timeout */ variable
79 long timeout_ns) in futex_get_abs_timeout() argument
86 to->tv_nsec += timeout_ns; in futex_get_abs_timeout()
119 timeout_ns = atoi(optarg); in main()
134 ksft_print_msg("\tArguments: timeout=%ldns\n", timeout_ns); in main()
141 to.tv_nsec = timeout_ns; in main()
147 if (futex_get_abs_timeout(CLOCK_REALTIME, &to, timeout_ns)) in main()
153 if (futex_get_abs_timeout(CLOCK_MONOTONIC, &to, timeout_ns)) in main()
159 if (futex_get_abs_timeout(CLOCK_REALTIME, &to, timeout_ns)) in main()
165 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-6.6.21/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-6.6.21/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-6.6.21/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-6.6.21/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()
1046 uint64_t *timeout_ns) in vc4_wait_for_seqno_ioctl_helper() argument
1049 int ret = vc4_wait_for_seqno(dev, seqno, *timeout_ns, true); in vc4_wait_for_seqno_ioctl_helper()
1051 if ((ret == -EINTR || ret == -ERESTARTSYS) && *timeout_ns != ~0ull) { in vc4_wait_for_seqno_ioctl_helper()
1054 if (*timeout_ns >= delta) in vc4_wait_for_seqno_ioctl_helper()
1055 *timeout_ns -= delta; in vc4_wait_for_seqno_ioctl_helper()
[all …]
/linux-6.6.21/drivers/usb/host/
Dxhci.c4562 unsigned long long timeout_ns; in xhci_calculate_intel_u1_timeout() local
4569 timeout_ns = udev->u1_params.sel * 3; in xhci_calculate_intel_u1_timeout()
4572 timeout_ns = udev->u1_params.sel * 5; in xhci_calculate_intel_u1_timeout()
4577 timeout_ns = udev->u1_params.sel * 3; in xhci_calculate_intel_u1_timeout()
4583 timeout_ns = xhci_service_interval_to_ns(desc); in xhci_calculate_intel_u1_timeout()
4584 timeout_ns = DIV_ROUND_UP_ULL(timeout_ns * 105, 100); in xhci_calculate_intel_u1_timeout()
4585 if (timeout_ns < udev->u1_params.sel * 2) in xhci_calculate_intel_u1_timeout()
4586 timeout_ns = udev->u1_params.sel * 2; in xhci_calculate_intel_u1_timeout()
4592 return timeout_ns; in xhci_calculate_intel_u1_timeout()
4600 unsigned long long timeout_ns; in xhci_calculate_u1_timeout() local
[all …]
/linux-6.6.21/drivers/mmc/core/
Dcore.c287 mrq->data->timeout_ns / 1000000, in mmc_mrq_pr_debug()
661 data->timeout_ns = 1000000000; in mmc_set_data_timeout()
678 data->timeout_ns = card->csd.taac_ns * mult; in mmc_set_data_timeout()
687 timeout_us = data->timeout_ns / 1000; in mmc_set_data_timeout()
709 data->timeout_ns = limit_us * 1000; in mmc_set_data_timeout()
715 data->timeout_ns = limit_us * 1000; in mmc_set_data_timeout()
725 data->timeout_ns = 600000000; in mmc_set_data_timeout()
737 if (data->timeout_ns < 1000000000) in mmc_set_data_timeout()
738 data->timeout_ns = 1000000000; /* 1s */ in mmc_set_data_timeout()
740 if (data->timeout_ns < 100000000) in mmc_set_data_timeout()
[all …]
/linux-6.6.21/include/uapi/drm/
Dvc4_drm.h209 __u64 timeout_ns; member
223 __u64 timeout_ns; member
Divpu_accel.h294 __s64 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-6.6.21/drivers/gpu/drm/lima/
Dlima_gem.h43 int lima_gem_wait(struct drm_file *file, u32 handle, u32 op, s64 timeout_ns);
Dlima_gem.c396 int lima_gem_wait(struct drm_file *file, u32 handle, u32 op, s64 timeout_ns) in lima_gem_wait() argument
404 timeout = drm_timeout_abs_to_jiffies(timeout_ns); in lima_gem_wait()
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/
Damdgpu_gem.h36 unsigned long amdgpu_gem_timeout(uint64_t timeout_ns);
Damdgpu_gem.c498 unsigned long amdgpu_gem_timeout(uint64_t timeout_ns) in amdgpu_gem_timeout() argument
504 if (((int64_t)timeout_ns) < 0) in amdgpu_gem_timeout()
507 timeout = ktime_sub(ns_to_ktime(timeout_ns), ktime_get()); in amdgpu_gem_timeout()
/linux-6.6.21/drivers/gpu/drm/v3d/
Dv3d_gem.c375 nsecs_to_jiffies_timeout(args->timeout_ns); in v3d_wait_bo_ioctl()
387 if (delta_ns < args->timeout_ns) in v3d_wait_bo_ioctl()
388 args->timeout_ns -= delta_ns; in v3d_wait_bo_ioctl()
390 args->timeout_ns = 0; in v3d_wait_bo_ioctl()
393 if (ret == -ETIME && args->timeout_ns) in v3d_wait_bo_ioctl()
/linux-6.6.21/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-6.6.21/include/linux/mmc/
Dcore.h115 unsigned int timeout_ns; /* data timeout (in ns, max 80ms) */ member

123