/drivers/gpu/drm/i915/gem/ |
D | i915_gem_wait.c | 212 static unsigned long to_wait_timeout(s64 timeout_ns) in to_wait_timeout() argument 214 if (timeout_ns < 0) in to_wait_timeout() 217 if (timeout_ns == 0) in to_wait_timeout() 220 return nsecs_to_jiffies_timeout(timeout_ns); in to_wait_timeout() 268 to_wait_timeout(args->timeout_ns)); in i915_gem_wait_ioctl() 270 if (args->timeout_ns > 0) { in i915_gem_wait_ioctl() 271 args->timeout_ns -= ktime_to_ns(ktime_sub(ktime_get(), start)); in i915_gem_wait_ioctl() 272 if (args->timeout_ns < 0) in i915_gem_wait_ioctl() 273 args->timeout_ns = 0; in i915_gem_wait_ioctl() 282 if (ret == -ETIME && !nsecs_to_jiffies(args->timeout_ns)) in i915_gem_wait_ioctl() [all …]
|
/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()
|
/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() 1062 uint64_t *timeout_ns) in vc4_wait_for_seqno_ioctl_helper() argument 1065 int ret = vc4_wait_for_seqno(dev, seqno, *timeout_ns, true); in vc4_wait_for_seqno_ioctl_helper() 1067 if ((ret == -EINTR || ret == -ERESTARTSYS) && *timeout_ns != ~0ull) { in vc4_wait_for_seqno_ioctl_helper() 1070 if (*timeout_ns >= delta) in vc4_wait_for_seqno_ioctl_helper() 1071 *timeout_ns -= delta; in vc4_wait_for_seqno_ioctl_helper() [all …]
|
D | vc4_drv.h | 908 uint64_t timeout_ns, bool interruptible);
|
/drivers/usb/host/ |
D | xhci.c | 4733 unsigned long long timeout_ns; in xhci_calculate_intel_u1_timeout() local 4740 timeout_ns = udev->u1_params.sel * 3; in xhci_calculate_intel_u1_timeout() 4743 timeout_ns = udev->u1_params.sel * 5; in xhci_calculate_intel_u1_timeout() 4748 timeout_ns = udev->u1_params.sel * 3; in xhci_calculate_intel_u1_timeout() 4754 timeout_ns = xhci_service_interval_to_ns(desc); in xhci_calculate_intel_u1_timeout() 4755 timeout_ns = DIV_ROUND_UP_ULL(timeout_ns * 105, 100); in xhci_calculate_intel_u1_timeout() 4756 if (timeout_ns < udev->u1_params.sel * 2) in xhci_calculate_intel_u1_timeout() 4757 timeout_ns = udev->u1_params.sel * 2; in xhci_calculate_intel_u1_timeout() 4763 return timeout_ns; in xhci_calculate_intel_u1_timeout() 4771 unsigned long long timeout_ns; in xhci_calculate_u1_timeout() local [all …]
|
/drivers/mmc/core/ |
D | core.c | 288 mrq->data->timeout_ns / 1000000, in mmc_mrq_pr_debug() 662 data->timeout_ns = 1000000000; in mmc_set_data_timeout() 679 data->timeout_ns = card->csd.taac_ns * mult; in mmc_set_data_timeout() 688 timeout_us = data->timeout_ns / 1000; in mmc_set_data_timeout() 710 data->timeout_ns = limit_us * 1000; in mmc_set_data_timeout() 716 data->timeout_ns = limit_us * 1000; in mmc_set_data_timeout() 726 data->timeout_ns = 600000000; in mmc_set_data_timeout() 738 if (data->timeout_ns < 1000000000) in mmc_set_data_timeout() 739 data->timeout_ns = 1000000000; /* 1s */ in mmc_set_data_timeout() 741 if (data->timeout_ns < 100000000) in mmc_set_data_timeout() [all …]
|
D | mmc_ops.c | 289 data.timeout_ns = 0; in mmc_send_adtc_data() 678 data.timeout_ns = 150 * NSEC_PER_MSEC; in mmc_send_tuning()
|
/drivers/gpu/drm/v3d/ |
D | v3d_gem.c | 414 nsecs_to_jiffies_timeout(args->timeout_ns); in v3d_wait_bo_ioctl() 426 if (delta_ns < args->timeout_ns) in v3d_wait_bo_ioctl() 427 args->timeout_ns -= delta_ns; in v3d_wait_bo_ioctl() 429 args->timeout_ns = 0; in v3d_wait_bo_ioctl() 432 if (ret == -ETIME && args->timeout_ns) in v3d_wait_bo_ioctl()
|
/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()
|
D | lima_drv.c | 185 return lima_gem_wait(file, args->handle, args->op, args->timeout_ns); in lima_ioctl_gem_wait()
|
/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_gem.h | 36 unsigned long amdgpu_gem_timeout(uint64_t timeout_ns);
|
D | amdgpu_gem.c | 496 unsigned long amdgpu_gem_timeout(uint64_t timeout_ns) in amdgpu_gem_timeout() argument 502 if (((int64_t)timeout_ns) < 0) in amdgpu_gem_timeout() 505 timeout = ktime_sub(ns_to_ktime(timeout_ns), ktime_get()); in amdgpu_gem_timeout()
|
D | amdgpu_cs.c | 1525 unsigned long timeout = amdgpu_gem_timeout(wait->in.timeout_ns); in amdgpu_cs_wait_all_fences() 1564 unsigned long timeout = amdgpu_gem_timeout(wait->in.timeout_ns); in amdgpu_cs_wait_any_fence()
|
/drivers/mmc/host/ |
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()
|
D | mtk-sd.c | 436 u32 timeout_ns; /* data timeout ns */ member 790 host->timeout_ns = ns; in msdc_set_timeout() 930 msdc_set_timeout(host, host->timeout_ns, host->timeout_clks); in msdc_set_mclk() 1045 if (host->timeout_ns != data->timeout_ns || in msdc_cmd_prepare_raw_cmd() 1047 msdc_set_timeout(host, data->timeout_ns, in msdc_cmd_prepare_raw_cmd()
|
D | wbsd.c | 546 if (data->timeout_ns > 127000000) in wbsd_prepare_data() 550 data->timeout_ns / 1000000); in wbsd_prepare_data()
|
D | davinci_mmc.c | 537 data->timeout_clks, data->timeout_ns); in mmc_davinci_prepare_data() 539 (data->timeout_ns / host->ns_in_one_cycle); in mmc_davinci_prepare_data()
|
D | omap_hsmmc.c | 1300 unsigned long long timeout_ns, in set_data_timeout() argument 1303 unsigned long long timeout = timeout_ns; in set_data_timeout() 1346 set_data_timeout(host, req->data->timeout_ns, in omap_hsmmc_start_dma_transfer()
|
D | mxs-mmc.c | 424 timeout = mxs_ns_to_ssp_ticks(ssp->clk_rate, data->timeout_ns); in mxs_mmc_adtc()
|
D | pxamci.c | 175 clks = (unsigned long long)data->timeout_ns * host->clkrate; in pxamci_setup_data()
|
/drivers/gpu/drm/i915/ |
D | i915_request.c | 1734 unsigned long timeout_ns; in __i915_spin_request() local 1762 timeout_ns = READ_ONCE(rq->engine->props.max_busywait_duration_ns); in __i915_spin_request() 1763 timeout_ns += local_clock_ns(&cpu); in __i915_spin_request() 1771 if (busywait_stop(timeout_ns, cpu)) in __i915_spin_request()
|
/drivers/gpu/drm/ |
D | drm_syncobj.c | 1171 u64 timeout_ns, timeout_jiffies64; in drm_timeout_abs_to_jiffies() local 1183 timeout_ns = ktime_to_ns(ktime_sub(abs_timeout, now)); in drm_timeout_abs_to_jiffies() 1185 timeout_jiffies64 = nsecs_to_jiffies64(timeout_ns); in drm_timeout_abs_to_jiffies()
|
/drivers/gpu/drm/tegra/ |
D | uapi.c | 335 timeout_jiffies = drm_timeout_abs_to_jiffies(args->timeout_ns); in tegra_drm_ioctl_syncpoint_wait()
|
/drivers/gpu/drm/panfrost/ |
D | panfrost_drv.c | 310 unsigned long timeout = drm_timeout_abs_to_jiffies(args->timeout_ns); in panfrost_ioctl_wait_bo()
|