/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/ |
D | i915_gem_wait.c | 194 static unsigned long to_wait_timeout(s64 timeout_ns) in to_wait_timeout() argument 196 if (timeout_ns < 0) in to_wait_timeout() 199 if (timeout_ns == 0) in to_wait_timeout() 202 return nsecs_to_jiffies_timeout(timeout_ns); in to_wait_timeout() 250 to_wait_timeout(args->timeout_ns)); in i915_gem_wait_ioctl() 252 if (args->timeout_ns > 0) { in i915_gem_wait_ioctl() 253 args->timeout_ns -= ktime_to_ns(ktime_sub(ktime_get(), start)); in i915_gem_wait_ioctl() 254 if (args->timeout_ns < 0) in i915_gem_wait_ioctl() 255 args->timeout_ns = 0; in i915_gem_wait_ioctl() 264 if (ret == -ETIME && !nsecs_to_jiffies(args->timeout_ns)) in i915_gem_wait_ioctl() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/futex/functional/ |
D | futex_wait_timeout.c | 28 static long timeout_ns = 100000; /* 100us default timeout */ variable 56 timeout_ns = atoi(optarg); in main() 71 ksft_print_msg("\tArguments: timeout=%ldns\n", timeout_ns); in main() 75 to.tv_nsec = timeout_ns; in main()
|
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 | 28 #define timeout_ns 100000 macro 41 struct timespec to = {.tv_sec = 0, .tv_nsec = timeout_ns}; in main()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/iio/proximity/ |
D | ping.c | 48 s64 timeout_ns; /* timeout in ns */ member 66 .timeout_ns = 18500000, /* 3 meters */ 72 .timeout_ns = 15500000, /* 2 meters plus error codes */ 167 if (dt_ns > data->cfg->timeout_ns) { in ping_read()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/vc4/ |
D | vc4_gem.c | 381 vc4_wait_for_seqno(struct drm_device *dev, uint64_t seqno, uint64_t timeout_ns, in vc4_wait_for_seqno() argument 392 if (timeout_ns == 0) in vc4_wait_for_seqno() 395 timeout_expire = jiffies + nsecs_to_jiffies(timeout_ns); in vc4_wait_for_seqno() 397 trace_vc4_wait_for_seqno_begin(dev, seqno, timeout_ns); in vc4_wait_for_seqno() 411 if (timeout_ns != ~0ull) { in vc4_wait_for_seqno() 1063 uint64_t *timeout_ns) in vc4_wait_for_seqno_ioctl_helper() argument 1066 int ret = vc4_wait_for_seqno(dev, seqno, *timeout_ns, true); in vc4_wait_for_seqno_ioctl_helper() 1068 if ((ret == -EINTR || ret == -ERESTARTSYS) && *timeout_ns != ~0ull) { in vc4_wait_for_seqno_ioctl_helper() 1071 if (*timeout_ns >= delta) in vc4_wait_for_seqno_ioctl_helper() 1072 *timeout_ns -= delta; in vc4_wait_for_seqno_ioctl_helper() [all …]
|
/kernel/linux/linux-5.10/drivers/usb/host/ |
D | xhci.c | 4677 unsigned long long timeout_ns; in xhci_calculate_intel_u1_timeout() local 4684 timeout_ns = udev->u1_params.sel * 3; in xhci_calculate_intel_u1_timeout() 4687 timeout_ns = udev->u1_params.sel * 5; in xhci_calculate_intel_u1_timeout() 4692 timeout_ns = udev->u1_params.sel * 3; in xhci_calculate_intel_u1_timeout() 4698 timeout_ns = xhci_service_interval_to_ns(desc); in xhci_calculate_intel_u1_timeout() 4699 timeout_ns = DIV_ROUND_UP_ULL(timeout_ns * 105, 100); in xhci_calculate_intel_u1_timeout() 4700 if (timeout_ns < udev->u1_params.sel * 2) in xhci_calculate_intel_u1_timeout() 4701 timeout_ns = udev->u1_params.sel * 2; in xhci_calculate_intel_u1_timeout() 4707 return timeout_ns; in xhci_calculate_intel_u1_timeout() 4715 unsigned long long timeout_ns; in xhci_calculate_u1_timeout() local [all …]
|
/kernel/linux/linux-5.10/drivers/mmc/core/ |
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 …]
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/drm/ |
D | vc4_drm.h | 101 __u64 timeout_ns; member 106 __u64 timeout_ns; member
|
D | v3d_drm.h | 60 __u64 timeout_ns; member
|
D | lima_drm.h | 103 __s64 timeout_ns; member
|
D | panfrost_drm.h | 56 __s64 timeout_ns; member
|
/kernel/linux/linux-5.10/include/uapi/drm/ |
D | vc4_drm.h | 209 __u64 timeout_ns; member 223 __u64 timeout_ns; member
|
D | lima_drm.h | 137 __s64 timeout_ns; /* in, wait timeout in absulute time */ member
|
D | v3d_drm.h | 143 __u64 timeout_ns; member
|
D | panfrost_drm.h | 84 __s64 timeout_ns; /* absolute */ member
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/drm/ |
D | vc4_drm.h | 102 __u64 timeout_ns; member 107 __u64 timeout_ns; member
|
D | v3d_drm.h | 55 __u64 timeout_ns; member
|
/kernel/linux/linux-5.10/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 | 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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/v3d/ |
D | v3d_gem.c | 407 nsecs_to_jiffies_timeout(args->timeout_ns); in v3d_wait_bo_ioctl() 419 if (delta_ns < args->timeout_ns) in v3d_wait_bo_ioctl() 420 args->timeout_ns -= delta_ns; in v3d_wait_bo_ioctl() 422 args->timeout_ns = 0; in v3d_wait_bo_ioctl() 425 if (ret == -ETIME && args->timeout_ns) in v3d_wait_bo_ioctl()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_gem.h | 41 unsigned long amdgpu_gem_timeout(uint64_t timeout_ns);
|
/kernel/linux/linux-5.10/include/linux/mmc/ |
D | core.h | 115 unsigned int timeout_ns; /* data timeout (in ns, max 80ms) */ member
|
/kernel/linux/linux-5.10/drivers/mmc/host/ |
D | cavium.c | 670 if (data->timeout_ns) in cvm_mmc_dma_request() 671 set_wdog(slot, data->timeout_ns); in cvm_mmc_dma_request() 789 if (cmd->data->timeout_ns) in cvm_mmc_request() 790 set_wdog(slot, cmd->data->timeout_ns); in cvm_mmc_request()
|