/linux-6.6.21/tools/testing/selftests/futex/functional/ |
D | futex_wait_timeout.c | 25 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 …]
|
D | futex_requeue_pi.c | 44 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()
|
D | futex_wait_wouldblock.c | 29 #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()
|
D | futex_requeue.c | 14 #define timeout_ns 30000000 macro 33 to.tv_nsec = timeout_ns; in waiterfn()
|
D | futex_wait.c | 16 #define timeout_ns 30000000 macro 40 to.tv_nsec = timeout_ns; in waiterfn()
|
/linux-6.6.21/drivers/gpu/drm/i915/gem/ |
D | i915_gem_wait.c | 196 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/ |
D | wakelock.c | 207 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/ |
D | ping.c | 47 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/ |
D | vc4_gem.c | 384 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/ |
D | xhci.c | 4562 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/ |
D | core.c | 287 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/ |
D | vc4_drm.h | 209 __u64 timeout_ns; member 223 __u64 timeout_ns; member
|
D | ivpu_accel.h | 294 __s64 timeout_ns; member
|
D | lima_drm.h | 137 __s64 timeout_ns; /* in, wait timeout in absulute time */ member
|
D | panfrost_drm.h | 84 __s64 timeout_ns; /* absolute */ member
|
D | v3d_drm.h | 222 __u64 timeout_ns; member
|
D | tegra_drm.h | 1020 __s64 timeout_ns; member
|
/linux-6.6.21/drivers/gpu/drm/lima/ |
D | lima_gem.h | 43 int lima_gem_wait(struct drm_file *file, u32 handle, u32 op, s64 timeout_ns);
|
D | lima_gem.c | 396 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/ |
D | amdgpu_gem.h | 36 unsigned long amdgpu_gem_timeout(uint64_t timeout_ns);
|
D | amdgpu_gem.c | 498 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/ |
D | v3d_gem.c | 375 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/ |
D | dw_mmc-exynos.c | 548 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()
|
D | cavium.c | 668 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/ |
D | core.h | 115 unsigned int timeout_ns; /* data timeout (in ns, max 80ms) */ member
|