/linux-6.3-rc2/tools/testing/selftests/futex/functional/ |
A D | futex_wait_timeout.c | 25 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() 176 if (futex_get_abs_timeout(CLOCK_REALTIME, &to, timeout_ns)) in main() [all …]
|
A 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()
|
A 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()
|
A D | futex_requeue.c | 14 #define timeout_ns 30000000 macro 33 to.tv_nsec = timeout_ns; in waiterfn()
|
A D | futex_wait.c | 16 #define timeout_ns 30000000 macro 40 to.tv_nsec = timeout_ns; in waiterfn()
|
/linux-6.3-rc2/drivers/gpu/drm/i915/gem/ |
A 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() 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() 267 args->timeout_ns = 0; in i915_gem_wait_ioctl() [all …]
|
/linux-6.3-rc2/kernel/power/ |
A 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.3-rc2/drivers/iio/proximity/ |
A 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.3-rc2/drivers/gpu/drm/vc4/ |
A D | vc4_gem.c | 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() 1114 &args->timeout_ns); in vc4_wait_seqno_ioctl() [all …]
|
/linux-6.3-rc2/drivers/usb/host/ |
A D | xhci.c | 4752 unsigned long long timeout_ns; in xhci_calculate_intel_u1_timeout() local 4774 timeout_ns = DIV_ROUND_UP_ULL(timeout_ns * 105, 100); in xhci_calculate_intel_u1_timeout() 4782 return timeout_ns; in xhci_calculate_intel_u1_timeout() 4809 timeout_ns = 1; in xhci_calculate_u1_timeout() 4811 timeout_ns = DIV_ROUND_UP_ULL(timeout_ns, 1000); in xhci_calculate_u1_timeout() 4817 return timeout_ns; in xhci_calculate_u1_timeout() 4843 if (u2_del_ns > timeout_ns) in xhci_calculate_intel_u2_timeout() 4844 timeout_ns = u2_del_ns; in xhci_calculate_intel_u2_timeout() 4846 return timeout_ns; in xhci_calculate_intel_u2_timeout() 4870 timeout_ns = DIV_ROUND_UP_ULL(timeout_ns, 256 * 1000); in xhci_calculate_u2_timeout() [all …]
|
/linux-6.3-rc2/drivers/mmc/core/ |
A D | core.c | 287 mrq->data->timeout_ns / 1000000, in mmc_mrq_pr_debug() 656 data->timeout_ns = 1000000000; in mmc_set_data_timeout() 673 data->timeout_ns = card->csd.taac_ns * mult; in mmc_set_data_timeout() 682 timeout_us = data->timeout_ns / 1000; in mmc_set_data_timeout() 704 data->timeout_ns = limit_us * 1000; in mmc_set_data_timeout() 710 data->timeout_ns = limit_us * 1000; in mmc_set_data_timeout() 720 data->timeout_ns = 600000000; in mmc_set_data_timeout() 732 if (data->timeout_ns < 1000000000) in mmc_set_data_timeout() 733 data->timeout_ns = 1000000000; /* 1s */ in mmc_set_data_timeout() 735 if (data->timeout_ns < 100000000) in mmc_set_data_timeout() [all …]
|
/linux-6.3-rc2/include/uapi/drm/ |
A D | vc4_drm.h | 209 __u64 timeout_ns; member 223 __u64 timeout_ns; member
|
A D | ivpu_accel.h | 287 __s64 timeout_ns; member
|
A D | lima_drm.h | 137 __s64 timeout_ns; /* in, wait timeout in absulute time */ member
|
A D | panfrost_drm.h | 84 __s64 timeout_ns; /* absolute */ member
|
A D | v3d_drm.h | 222 __u64 timeout_ns; member
|
A D | tegra_drm.h | 1020 __s64 timeout_ns; member
|
/linux-6.3-rc2/drivers/gpu/drm/lima/ |
A D | lima_gem.h | 43 int lima_gem_wait(struct drm_file *file, u32 handle, u32 op, s64 timeout_ns);
|
A D | lima_gem.c | 404 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-6.3-rc2/drivers/gpu/drm/amd/amdgpu/ |
A D | amdgpu_gem.h | 36 unsigned long amdgpu_gem_timeout(uint64_t timeout_ns);
|
A D | amdgpu_gem.c | 494 unsigned long amdgpu_gem_timeout(uint64_t timeout_ns) in amdgpu_gem_timeout() argument 500 if (((int64_t)timeout_ns) < 0) in amdgpu_gem_timeout() 503 timeout = ktime_sub(ns_to_ktime(timeout_ns), ktime_get()); in amdgpu_gem_timeout()
|
/linux-6.3-rc2/drivers/gpu/drm/v3d/ |
A 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.3-rc2/drivers/mmc/host/ |
A 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()
|
A 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.3-rc2/include/linux/mmc/ |
A D | core.h | 115 unsigned int timeout_ns; /* data timeout (in ns, max 80ms) */ member
|