| /linux/tools/testing/selftests/futex/functional/ |
| H A D | futex_wait_timeout.c | 24 static long timeout_ns = 100000; /* 100us default timeout */ variable 67 long timeout_ns) in futex_get_abs_timeout() argument 72 to->tv_nsec += timeout_ns; in futex_get_abs_timeout() 90 to.tv_nsec = timeout_ns; in TEST() 96 if (futex_get_abs_timeout(CLOCK_REALTIME, &to, timeout_ns)) in TEST() 102 if (futex_get_abs_timeout(CLOCK_MONOTONIC, &to, timeout_ns)) in TEST() 115 if (futex_get_abs_timeout(CLOCK_REALTIME, &to, timeout_ns)) in TEST() 121 if (futex_get_abs_timeout(CLOCK_MONOTONIC, &to, timeout_ns)) in TEST() 152 if (futex_get_abs_timeout(CLOCK_REALTIME, &to, timeout_ns)) in TEST() 175 if (futex_get_abs_timeout(CLOCK_MONOTONIC, &to, timeout_ns)) in TEST() [all …]
|
| H A D | futex_requeue_pi.c | 67 long timeout_ns; in FIXTURE_VARIANT() local 81 .timeout_ns = timeout, \ 86 .timeout_ns = timeout, \ 92 .timeout_ns = timeout, \ 99 .timeout_ns = timeout, \ 106 .timeout_ns = timeout, \ 112 .timeout_ns = timeout, \ 326 long timeout_ns = variant->timeout_ns; in TEST_F() local 335 broadcast, lock, third_party_owner, timeout_ns); in TEST_F() 337 if (timeout_ns) { in TEST_F() [all …]
|
| H A D | futex_wait_wouldblock.c | 29 #define timeout_ns 100000 macro 33 struct timespec to = {.tv_sec = 0, .tv_nsec = timeout_ns}; in TEST() 50 struct timespec to = {.tv_sec = 0, .tv_nsec = timeout_ns}; in TEST() 63 to.tv_nsec += timeout_ns; in TEST()
|
| H A D | futex_requeue.c | 14 #define timeout_ns 30000000 macro 24 to.tv_nsec = timeout_ns; in waiterfn()
|
| H A D | futex_wait.c | 16 #define timeout_ns 30000000 macro 31 to.tv_nsec = timeout_ns; in waiterfn()
|
| /linux/drivers/gpu/drm/vc4/ |
| H A D | vc4_gem.c | 386 vc4_wait_for_seqno(struct drm_device *dev, uint64_t seqno, uint64_t timeout_ns, in vc4_wait_for_seqno() argument 400 if (timeout_ns == 0) in vc4_wait_for_seqno() 403 timeout_expire = jiffies + nsecs_to_jiffies(timeout_ns); in vc4_wait_for_seqno() 405 trace_vc4_wait_for_seqno_begin(dev, seqno, timeout_ns); in vc4_wait_for_seqno() 419 if (timeout_ns != ~0ull) { in vc4_wait_for_seqno() 934 uint64_t *timeout_ns) in vc4_wait_for_seqno_ioctl_helper() argument 937 int ret = vc4_wait_for_seqno(dev, seqno, *timeout_ns, true); in vc4_wait_for_seqno_ioctl_helper() 939 if ((ret == -EINTR || ret == -ERESTARTSYS) && *timeout_ns != ~0ull) { in vc4_wait_for_seqno_ioctl_helper() 942 if (*timeout_ns >= delta) in vc4_wait_for_seqno_ioctl_helper() 943 *timeout_ns -= delta; in vc4_wait_for_seqno_ioctl_helper() [all …]
|
| /linux/drivers/gpu/drm/v3d/ |
| H A D | v3d_bo.c | 284 nsecs_to_jiffies_timeout(args->timeout_ns); in v3d_wait_bo_ioctl() 296 if (delta_ns < args->timeout_ns) in v3d_wait_bo_ioctl() 297 args->timeout_ns -= delta_ns; in v3d_wait_bo_ioctl() 299 args->timeout_ns = 0; in v3d_wait_bo_ioctl() 302 if (ret == -ETIME && args->timeout_ns) in v3d_wait_bo_ioctl()
|
| /linux/kernel/power/ |
| H A D | wakelock.c | 210 u64 timeout_ns = 0; in pm_wake_lock() local 226 ret = kstrtou64(skip_spaces(str), 10, &timeout_ns); in pm_wake_lock() 238 if (timeout_ns) { in pm_wake_lock() 239 u64 timeout_ms = timeout_ns + NSEC_PER_MSEC - 1; in pm_wake_lock()
|
| /linux/drivers/usb/host/ |
| H A D | xhci.c | 4846 unsigned long long timeout_ns; in xhci_calculate_intel_u1_timeout() local 4853 timeout_ns = udev->u1_params.sel * 3; in xhci_calculate_intel_u1_timeout() 4856 timeout_ns = udev->u1_params.sel * 5; in xhci_calculate_intel_u1_timeout() 4861 timeout_ns = udev->u1_params.sel * 3; in xhci_calculate_intel_u1_timeout() 4867 timeout_ns = xhci_service_interval_to_ns(desc); in xhci_calculate_intel_u1_timeout() 4868 timeout_ns = DIV_ROUND_UP_ULL(timeout_ns * 105, 100); in xhci_calculate_intel_u1_timeout() 4869 if (timeout_ns < udev->u1_params.sel * 2) in xhci_calculate_intel_u1_timeout() 4870 timeout_ns = udev->u1_params.sel * 2; in xhci_calculate_intel_u1_timeout() 4876 return timeout_ns; in xhci_calculate_intel_u1_timeout() 4884 unsigned long long timeout_ns; in xhci_calculate_u1_timeout() local [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
|
| H A D | amdgpu_drm.h | 790 __u64 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_gem.c | 401 int lima_gem_wait(struct drm_file *file, u32 handle, u32 op, s64 timeout_ns) in lima_gem_wait() argument 409 timeout = drm_timeout_abs_to_jiffies(timeout_ns); in lima_gem_wait()
|
| 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/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 | wbsd.c | 546 if (data->timeout_ns > 127000000) in wbsd_prepare_data() 550 data->timeout_ns / 1000000); in wbsd_prepare_data()
|
| 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()
|
| H A D | pxamci.c | 174 clks = (unsigned long long)data->timeout_ns * host->clkrate; in pxamci_setup_data()
|
| /linux/drivers/accel/rocket/ |
| H A D | rocket_gem.c | 131 unsigned long timeout = drm_timeout_abs_to_jiffies(args->timeout_ns); in rocket_ioctl_prep_bo()
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_syncobj.c | 1204 u64 timeout_ns, timeout_jiffies64; in drm_timeout_abs_to_jiffies() local 1216 timeout_ns = ktime_to_ns(ktime_sub(abs_timeout, now)); in drm_timeout_abs_to_jiffies() 1218 timeout_jiffies64 = nsecs_to_jiffies64(timeout_ns); in drm_timeout_abs_to_jiffies()
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_gem.c | 618 unsigned long amdgpu_gem_timeout(uint64_t timeout_ns) in amdgpu_gem_timeout() argument 624 if (((int64_t)timeout_ns) < 0) in amdgpu_gem_timeout() 627 timeout = ktime_sub(ns_to_ktime(timeout_ns), ktime_get()); in amdgpu_gem_timeout()
|
| /linux/drivers/accel/ethosu/ |
| H A D | ethosu_drv.c | 84 unsigned long timeout = drm_timeout_abs_to_jiffies(args->timeout_ns); in ethosu_ioctl_bo_wait()
|
| /linux/drivers/gpu/drm/tegra/ |
| H A D | uapi.c | 359 timeout_jiffies = drm_timeout_abs_to_jiffies(args->timeout_ns); in tegra_drm_ioctl_syncpoint_wait()
|