/linux/tools/testing/selftests/futex/functional/ |
H A 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 …]
|
H A D | futex_requeue_pi.c | 46 static long timeout_ns; variable 280 int unit_test(int broadcast, long lock, int third_party_owner, long timeout_ns) in unit_test() argument 291 if (timeout_ns) { in unit_test() 294 info("timeout_ns = %ld\n", timeout_ns); in unit_test() 296 secs = (ts.tv_nsec + timeout_ns) / 1000000000; in unit_test() 297 ts.tv_nsec = ((int64_t)ts.tv_nsec + timeout_ns) % 1000000000; in unit_test() 385 timeout_ns = atoi(optarg); in main() 401 broadcast, locked, owner, timeout_ns); in main() 405 TEST_NAME, broadcast, locked, owner, timeout_ns); in main() 416 ret = unit_test(broadcast, locked, owner, timeout_ns); in main()
|
H 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()
|
H A D | futex_requeue.c | 14 #define timeout_ns 30000000 macro 33 to.tv_nsec = timeout_ns; in waiterfn()
|
H A D | futex_wait.c | 16 #define timeout_ns 30000000 macro 40 to.tv_nsec = timeout_ns; in waiterfn()
|
/linux/drivers/gpu/drm/i915/gem/ |
H 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() 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/drivers/gpu/drm/v3d/ |
H A D | v3d_bo.c | 289 nsecs_to_jiffies_timeout(args->timeout_ns); in v3d_wait_bo_ioctl() 301 if (delta_ns < args->timeout_ns) in v3d_wait_bo_ioctl() 302 args->timeout_ns -= delta_ns; in v3d_wait_bo_ioctl() 304 args->timeout_ns = 0; in v3d_wait_bo_ioctl() 307 if (ret == -ETIME && args->timeout_ns) in v3d_wait_bo_ioctl()
|
/linux/kernel/power/ |
H 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/drivers/iio/proximity/ |
H 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/drivers/gpu/drm/vc4/ |
H A 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/include/uapi/drm/ |
H A D | vc4_drm.h | 209 __u64 timeout_ns; member 223 __u64 timeout_ns; member
|
H A D | lima_drm.h | 137 __s64 timeout_ns; /* in, wait timeout in absulute time */ member
|
H A D | tegra_drm.h | 1020 __s64 timeout_ns; member
|
/linux/drivers/gpu/drm/lima/ |
H A D | lima_gem.h | 43 int lima_gem_wait(struct drm_file *file, u32 handle, u32 op, s64 timeout_ns);
|
H A D | lima_drv.c | 186 return lima_gem_wait(file, args->handle, args->op, args->timeout_ns); in lima_ioctl_gem_wait()
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_gem.h | 38 unsigned long amdgpu_gem_timeout(uint64_t timeout_ns);
|
H A D | amdgpu_gem.c | 533 unsigned long amdgpu_gem_timeout(uint64_t timeout_ns) in amdgpu_gem_timeout() argument 539 if (((int64_t)timeout_ns) < 0) in amdgpu_gem_timeout() 542 timeout = ktime_sub(ns_to_ktime(timeout_ns), ktime_get()); in amdgpu_gem_timeout()
|
/linux/include/linux/mmc/ |
H A D | core.h | 122 unsigned int timeout_ns; /* data timeout (in ns, max 80ms) */ member
|
/linux/drivers/mmc/host/ |
H 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()
|
H A D | dw_mmc.h | 588 unsigned int timeout_ns);
|
H A D | mtk-sd.c | 462 u32 timeout_ns; /* data timeout ns */ member 875 host->timeout_ns = ns; in msdc_set_timeout() 1049 msdc_set_timeout(host, host->timeout_ns, host->timeout_clks); in msdc_set_mclk() 1167 if (host->timeout_ns != data->timeout_ns || in msdc_cmd_prepare_raw_cmd() 1169 msdc_set_timeout(host, data->timeout_ns, in msdc_cmd_prepare_raw_cmd()
|
H A D | dw_mmc.c | 1286 unsigned int timeout_ns) in dw_mci_set_data_timeout() argument 1293 return drv_data->set_data_timeout(host, timeout_ns); in dw_mci_set_data_timeout() 1299 tmp = DIV_ROUND_UP_ULL((u64)timeout_ns * host->bus_hz, NSEC_PER_SEC); in dw_mci_set_data_timeout() 1313 timeout_ns, tmout >> 8); in dw_mci_set_data_timeout() 1336 dw_mci_set_data_timeout(host, data->timeout_ns); in __dw_mci_start_request()
|
/linux/drivers/gpu/drm/ |
H A D | drm_syncobj.c | 1201 u64 timeout_ns, timeout_jiffies64; in drm_timeout_abs_to_jiffies() local 1213 timeout_ns = ktime_to_ns(ktime_sub(abs_timeout, now)); in drm_timeout_abs_to_jiffies() 1215 timeout_jiffies64 = nsecs_to_jiffies64(timeout_ns); in drm_timeout_abs_to_jiffies()
|
/linux/drivers/gpu/drm/tegra/ |
H A D | uapi.c | 356 timeout_jiffies = drm_timeout_abs_to_jiffies(args->timeout_ns); in tegra_drm_ioctl_syncpoint_wait()
|
/linux/drivers/accel/ivpu/ |
H A D | ivpu_gem.c | 385 timeout = drm_timeout_abs_to_jiffies(args->timeout_ns); in ivpu_bo_wait_ioctl()
|