Home
last modified time | relevance | path

Searched refs:timeout_ns (Results 1 – 25 of 57) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/
Di915_gem_wait.c194 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/
Dfutex_wait_timeout.c28 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()
Dfutex_requeue_pi.c44 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()
Dfutex_wait_wouldblock.c28 #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/
Dwakelock.c207 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/
Dping.c48 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/
Dvc4_gem.c381 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/
Dxhci.c4677 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/
Dcore.c287 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/
Dvc4_drm.h101 __u64 timeout_ns; member
106 __u64 timeout_ns; member
Dv3d_drm.h60 __u64 timeout_ns; member
Dlima_drm.h103 __s64 timeout_ns; member
Dpanfrost_drm.h56 __s64 timeout_ns; member
/kernel/linux/linux-5.10/include/uapi/drm/
Dvc4_drm.h209 __u64 timeout_ns; member
223 __u64 timeout_ns; member
Dlima_drm.h137 __s64 timeout_ns; /* in, wait timeout in absulute time */ member
Dv3d_drm.h143 __u64 timeout_ns; member
Dpanfrost_drm.h84 __s64 timeout_ns; /* absolute */ member
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/drm/
Dvc4_drm.h102 __u64 timeout_ns; member
107 __u64 timeout_ns; member
Dv3d_drm.h55 __u64 timeout_ns; member
/kernel/linux/linux-5.10/drivers/gpu/drm/lima/
Dlima_gem.h43 int lima_gem_wait(struct drm_file *file, u32 handle, u32 op, s64 timeout_ns);
Dlima_gem.c404 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/
Dv3d_gem.c407 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/
Damdgpu_gem.h41 unsigned long amdgpu_gem_timeout(uint64_t timeout_ns);
/kernel/linux/linux-5.10/include/linux/mmc/
Dcore.h115 unsigned int timeout_ns; /* data timeout (in ns, max 80ms) */ member
/kernel/linux/linux-5.10/drivers/mmc/host/
Dcavium.c670 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()

123