timeout_ns       1568 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		unsigned long timeout = amdgpu_gem_timeout(wait->in.timeout_ns);
timeout_ns       1607 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	unsigned long timeout = amdgpu_gem_timeout(wait->in.timeout_ns);
timeout_ns        401 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c unsigned long amdgpu_gem_timeout(uint64_t timeout_ns)
timeout_ns        407 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	if (((int64_t)timeout_ns) < 0)
timeout_ns        410 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	timeout = ktime_sub(ns_to_ktime(timeout_ns), ktime_get());
timeout_ns         41 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h unsigned long amdgpu_gem_timeout(uint64_t timeout_ns);
timeout_ns       1022 drivers/gpu/drm/drm_syncobj.c 	u64 timeout_ns, timeout_jiffies64;
timeout_ns       1034 drivers/gpu/drm/drm_syncobj.c 	timeout_ns = ktime_to_ns(ktime_sub(abs_timeout, now));
timeout_ns       1036 drivers/gpu/drm/drm_syncobj.c 	timeout_jiffies64 = nsecs_to_jiffies64(timeout_ns);
timeout_ns        194 drivers/gpu/drm/i915/gem/i915_gem_wait.c static unsigned long to_wait_timeout(s64 timeout_ns)
timeout_ns        196 drivers/gpu/drm/i915/gem/i915_gem_wait.c 	if (timeout_ns < 0)
timeout_ns        199 drivers/gpu/drm/i915/gem/i915_gem_wait.c 	if (timeout_ns == 0)
timeout_ns        202 drivers/gpu/drm/i915/gem/i915_gem_wait.c 	return nsecs_to_jiffies_timeout(timeout_ns);
timeout_ns        250 drivers/gpu/drm/i915/gem/i915_gem_wait.c 				   to_wait_timeout(args->timeout_ns));
timeout_ns        252 drivers/gpu/drm/i915/gem/i915_gem_wait.c 	if (args->timeout_ns > 0) {
timeout_ns        253 drivers/gpu/drm/i915/gem/i915_gem_wait.c 		args->timeout_ns -= ktime_to_ns(ktime_sub(ktime_get(), start));
timeout_ns        254 drivers/gpu/drm/i915/gem/i915_gem_wait.c 		if (args->timeout_ns < 0)
timeout_ns        255 drivers/gpu/drm/i915/gem/i915_gem_wait.c 			args->timeout_ns = 0;
timeout_ns        264 drivers/gpu/drm/i915/gem/i915_gem_wait.c 		if (ret == -ETIME && !nsecs_to_jiffies(args->timeout_ns))
timeout_ns        265 drivers/gpu/drm/i915/gem/i915_gem_wait.c 			args->timeout_ns = 0;
timeout_ns        268 drivers/gpu/drm/i915/gem/i915_gem_wait.c 		if (ret == -ETIME && args->timeout_ns)
timeout_ns        172 drivers/gpu/drm/lima/lima_drv.c 	return lima_gem_wait(file, args->handle, args->op, args->timeout_ns);
timeout_ns        334 drivers/gpu/drm/lima/lima_gem.c int lima_gem_wait(struct drm_file *file, u32 handle, u32 op, s64 timeout_ns)
timeout_ns        342 drivers/gpu/drm/lima/lima_gem.c 	timeout = drm_timeout_abs_to_jiffies(timeout_ns);
timeout_ns         21 drivers/gpu/drm/lima/lima_gem.h int lima_gem_wait(struct drm_file *file, u32 handle, u32 op, s64 timeout_ns);
timeout_ns        306 drivers/gpu/drm/panfrost/panfrost_drv.c 	unsigned long timeout = drm_timeout_abs_to_jiffies(args->timeout_ns);
timeout_ns        407 drivers/gpu/drm/v3d/v3d_gem.c 		nsecs_to_jiffies_timeout(args->timeout_ns);
timeout_ns        419 drivers/gpu/drm/v3d/v3d_gem.c 	if (delta_ns < args->timeout_ns)
timeout_ns        420 drivers/gpu/drm/v3d/v3d_gem.c 		args->timeout_ns -= delta_ns;
timeout_ns        422 drivers/gpu/drm/v3d/v3d_gem.c 		args->timeout_ns = 0;
timeout_ns        425 drivers/gpu/drm/v3d/v3d_gem.c 	if (ret == -ETIME && args->timeout_ns)
timeout_ns        806 drivers/gpu/drm/vc4/vc4_drv.h 		       uint64_t timeout_ns, bool interruptible);
timeout_ns        381 drivers/gpu/drm/vc4/vc4_gem.c vc4_wait_for_seqno(struct drm_device *dev, uint64_t seqno, uint64_t timeout_ns,
timeout_ns        392 drivers/gpu/drm/vc4/vc4_gem.c 	if (timeout_ns == 0)
timeout_ns        395 drivers/gpu/drm/vc4/vc4_gem.c 	timeout_expire = jiffies + nsecs_to_jiffies(timeout_ns);
timeout_ns        397 drivers/gpu/drm/vc4/vc4_gem.c 	trace_vc4_wait_for_seqno_begin(dev, seqno, timeout_ns);
timeout_ns        411 drivers/gpu/drm/vc4/vc4_gem.c 		if (timeout_ns != ~0ull) {
timeout_ns       1064 drivers/gpu/drm/vc4/vc4_gem.c 				uint64_t *timeout_ns)
timeout_ns       1067 drivers/gpu/drm/vc4/vc4_gem.c 	int ret = vc4_wait_for_seqno(dev, seqno, *timeout_ns, true);
timeout_ns       1069 drivers/gpu/drm/vc4/vc4_gem.c 	if ((ret == -EINTR || ret == -ERESTARTSYS) && *timeout_ns != ~0ull) {
timeout_ns       1072 drivers/gpu/drm/vc4/vc4_gem.c 		if (*timeout_ns >= delta)
timeout_ns       1073 drivers/gpu/drm/vc4/vc4_gem.c 			*timeout_ns -= delta;
timeout_ns       1086 drivers/gpu/drm/vc4/vc4_gem.c 					       &args->timeout_ns);
timeout_ns       1109 drivers/gpu/drm/vc4/vc4_gem.c 					      &args->timeout_ns);
timeout_ns        540 drivers/mmc/core/block.c 			data.timeout_ns = idata->ic.data_timeout_ns;
timeout_ns        552 drivers/mmc/core/block.c 			data.timeout_ns = idata->ic.cmd_timeout_ms * 1000000;
timeout_ns        977 drivers/mmc/core/block.c 	unsigned int ms = DIV_ROUND_UP(data->timeout_ns, 1000000);
timeout_ns        287 drivers/mmc/core/core.c 			mrq->data->timeout_ns / 1000000,
timeout_ns        673 drivers/mmc/core/core.c 		data->timeout_ns = 1000000000;
timeout_ns        690 drivers/mmc/core/core.c 	data->timeout_ns = card->csd.taac_ns * mult;
timeout_ns        699 drivers/mmc/core/core.c 		timeout_us = data->timeout_ns / 1000;
timeout_ns        721 drivers/mmc/core/core.c 			data->timeout_ns = limit_us * 1000;
timeout_ns        727 drivers/mmc/core/core.c 			data->timeout_ns = limit_us * 1000;
timeout_ns        737 drivers/mmc/core/core.c 		data->timeout_ns = 600000000;
timeout_ns        749 drivers/mmc/core/core.c 			if (data->timeout_ns < 1000000000)
timeout_ns        750 drivers/mmc/core/core.c 				data->timeout_ns = 1000000000;	/* 1s */
timeout_ns        752 drivers/mmc/core/core.c 			if (data->timeout_ns < 100000000)
timeout_ns        753 drivers/mmc/core/core.c 				data->timeout_ns =  100000000;	/* 100ms */
timeout_ns        282 drivers/mmc/core/mmc_ops.c 		data.timeout_ns = 0;
timeout_ns        650 drivers/mmc/core/mmc_ops.c 	data.timeout_ns = 150 * NSEC_PER_MSEC;
timeout_ns        738 drivers/mmc/host/atmel-mci.c 	timeout = atmci_ns_to_clocks(host, data->timeout_ns)
timeout_ns        670 drivers/mmc/host/cavium.c 	if (data->timeout_ns)
timeout_ns        671 drivers/mmc/host/cavium.c 		set_wdog(slot, data->timeout_ns);
timeout_ns        789 drivers/mmc/host/cavium.c 		if (cmd->data->timeout_ns)
timeout_ns        790 drivers/mmc/host/cavium.c 			set_wdog(slot, cmd->data->timeout_ns);
timeout_ns        537 drivers/mmc/host/davinci_mmc.c 		data->timeout_clks, data->timeout_ns);
timeout_ns        539 drivers/mmc/host/davinci_mmc.c 		(data->timeout_ns / host->ns_in_one_cycle);
timeout_ns        203 drivers/mmc/host/meson-gx-mmc.c 	unsigned int timeout = data->timeout_ns / NSEC_PER_MSEC;
timeout_ns        887 drivers/mmc/host/mmc_spi.c 	timeout = data->timeout_ns +
timeout_ns       1004 drivers/mmc/host/mmci.c 	clks = (unsigned long long)data->timeout_ns * host->cclk;
timeout_ns        407 drivers/mmc/host/mtk-sd.c 	u32 timeout_ns;		/* data timeout ns */
timeout_ns        708 drivers/mmc/host/mtk-sd.c 	host->timeout_ns = ns;
timeout_ns        843 drivers/mmc/host/mtk-sd.c 	msdc_set_timeout(host, host->timeout_ns, host->timeout_clks);
timeout_ns        957 drivers/mmc/host/mtk-sd.c 		if (host->timeout_ns != data->timeout_ns ||
timeout_ns        959 drivers/mmc/host/mtk-sd.c 			msdc_set_timeout(host, data->timeout_ns,
timeout_ns         88 drivers/mmc/host/mvsdio.c 	tmout = DIV_ROUND_UP(data->timeout_ns, host->ns_per_clk);
timeout_ns        424 drivers/mmc/host/mxs-mmc.c 	timeout = mxs_ns_to_ssp_ticks(ssp->clk_rate, data->timeout_ns);
timeout_ns        929 drivers/mmc/host/omap.c 	timeout = req->data->timeout_ns / cycle_ns;
timeout_ns       1302 drivers/mmc/host/omap_hsmmc.c 			     unsigned long long timeout_ns,
timeout_ns       1305 drivers/mmc/host/omap_hsmmc.c 	unsigned long long timeout = timeout_ns;
timeout_ns       1348 drivers/mmc/host/omap_hsmmc.c 	set_data_timeout(host, req->data->timeout_ns,
timeout_ns        175 drivers/mmc/host/pxamci.c 	clks = (unsigned long long)data->timeout_ns * host->clkrate;
timeout_ns        852 drivers/mmc/host/sdhci.c 		target_timeout = DIV_ROUND_UP(data->timeout_ns, 1000);
timeout_ns        599 drivers/mmc/host/tifm_sd.c 	data_timeout += data->timeout_ns /
timeout_ns        876 drivers/mmc/host/usdhi6rol0.c 		ticks = host->rate / 1000000 * (mrq->data->timeout_ns / 1000) +
timeout_ns        544 drivers/mmc/host/wbsd.c 	if (data->timeout_ns > 127000000)
timeout_ns        548 drivers/mmc/host/wbsd.c 			data->timeout_ns / 1000000);
timeout_ns       4595 drivers/usb/host/xhci.c 	unsigned long long timeout_ns;
timeout_ns       4602 drivers/usb/host/xhci.c 		timeout_ns = udev->u1_params.sel * 3;
timeout_ns       4605 drivers/usb/host/xhci.c 		timeout_ns = udev->u1_params.sel * 5;
timeout_ns       4610 drivers/usb/host/xhci.c 			timeout_ns = udev->u1_params.sel * 3;
timeout_ns       4616 drivers/usb/host/xhci.c 		timeout_ns = xhci_service_interval_to_ns(desc);
timeout_ns       4617 drivers/usb/host/xhci.c 		timeout_ns = DIV_ROUND_UP_ULL(timeout_ns * 105, 100);
timeout_ns       4618 drivers/usb/host/xhci.c 		if (timeout_ns < udev->u1_params.sel * 2)
timeout_ns       4619 drivers/usb/host/xhci.c 			timeout_ns = udev->u1_params.sel * 2;
timeout_ns       4625 drivers/usb/host/xhci.c 	return timeout_ns;
timeout_ns       4633 drivers/usb/host/xhci.c 	unsigned long long timeout_ns;
timeout_ns       4644 drivers/usb/host/xhci.c 		timeout_ns = xhci_calculate_intel_u1_timeout(udev, desc);
timeout_ns       4646 drivers/usb/host/xhci.c 		timeout_ns = udev->u1_params.sel;
timeout_ns       4651 drivers/usb/host/xhci.c 	if (timeout_ns == USB3_LPM_DISABLED)
timeout_ns       4652 drivers/usb/host/xhci.c 		timeout_ns = 1;
timeout_ns       4654 drivers/usb/host/xhci.c 		timeout_ns = DIV_ROUND_UP_ULL(timeout_ns, 1000);
timeout_ns       4659 drivers/usb/host/xhci.c 	if (timeout_ns <= USB3_LPM_U1_MAX_TIMEOUT)
timeout_ns       4660 drivers/usb/host/xhci.c 		return timeout_ns;
timeout_ns       4662 drivers/usb/host/xhci.c 			"due to long timeout %llu ms\n", timeout_ns);
timeout_ns       4676 drivers/usb/host/xhci.c 	unsigned long long timeout_ns;
timeout_ns       4679 drivers/usb/host/xhci.c 	timeout_ns = 10 * 1000 * 1000;
timeout_ns       4682 drivers/usb/host/xhci.c 			(xhci_service_interval_to_ns(desc) > timeout_ns))
timeout_ns       4683 drivers/usb/host/xhci.c 		timeout_ns = xhci_service_interval_to_ns(desc);
timeout_ns       4686 drivers/usb/host/xhci.c 	if (u2_del_ns > timeout_ns)
timeout_ns       4687 drivers/usb/host/xhci.c 		timeout_ns = u2_del_ns;
timeout_ns       4689 drivers/usb/host/xhci.c 	return timeout_ns;
timeout_ns       4697 drivers/usb/host/xhci.c 	unsigned long long timeout_ns;
timeout_ns       4708 drivers/usb/host/xhci.c 		timeout_ns = xhci_calculate_intel_u2_timeout(udev, desc);
timeout_ns       4710 drivers/usb/host/xhci.c 		timeout_ns = udev->u2_params.sel;
timeout_ns       4713 drivers/usb/host/xhci.c 	timeout_ns = DIV_ROUND_UP_ULL(timeout_ns, 256 * 1000);
timeout_ns       4717 drivers/usb/host/xhci.c 	if (timeout_ns <= USB3_LPM_U2_MAX_TIMEOUT)
timeout_ns       4718 drivers/usb/host/xhci.c 		return timeout_ns;
timeout_ns       4720 drivers/usb/host/xhci.c 			"due to long timeout %llu ms\n", timeout_ns);
timeout_ns        118 include/linux/mmc/core.h 	unsigned int		timeout_ns;	/* data timeout (in ns, max 80ms) */
timeout_ns        448 include/uapi/drm/amdgpu_drm.h 	__u64 timeout_ns;
timeout_ns       1477 include/uapi/drm/i915_drm.h 	__s64 timeout_ns;
timeout_ns        130 include/uapi/drm/lima_drm.h 	__s64 timeout_ns;  /* in, wait timeout in absulute time */
timeout_ns         84 include/uapi/drm/panfrost_drm.h 	__s64 timeout_ns;	/* absolute */
timeout_ns        142 include/uapi/drm/v3d_drm.h 	__u64 timeout_ns;
timeout_ns        209 include/uapi/drm/vc4_drm.h 	__u64 timeout_ns;
timeout_ns        223 include/uapi/drm/vc4_drm.h 	__u64 timeout_ns;
timeout_ns        210 kernel/power/wakelock.c 	u64 timeout_ns = 0;
timeout_ns        226 kernel/power/wakelock.c 		ret = kstrtou64(skip_spaces(str), 10, &timeout_ns);
timeout_ns        238 kernel/power/wakelock.c 	if (timeout_ns) {
timeout_ns        239 kernel/power/wakelock.c 		u64 timeout_ms = timeout_ns + NSEC_PER_MSEC - 1;
timeout_ns       1477 tools/include/uapi/drm/i915_drm.h 	__s64 timeout_ns;
timeout_ns         44 tools/testing/selftests/futex/functional/futex_requeue_pi.c static long timeout_ns;
timeout_ns        278 tools/testing/selftests/futex/functional/futex_requeue_pi.c int unit_test(int broadcast, long lock, int third_party_owner, long timeout_ns)
timeout_ns        289 tools/testing/selftests/futex/functional/futex_requeue_pi.c 	if (timeout_ns) {
timeout_ns        292 tools/testing/selftests/futex/functional/futex_requeue_pi.c 		info("timeout_ns = %ld\n", timeout_ns);
timeout_ns        294 tools/testing/selftests/futex/functional/futex_requeue_pi.c 		secs = (ts.tv_nsec + timeout_ns) / 1000000000;
timeout_ns        295 tools/testing/selftests/futex/functional/futex_requeue_pi.c 		ts.tv_nsec = ((int64_t)ts.tv_nsec + timeout_ns) % 1000000000;
timeout_ns        382 tools/testing/selftests/futex/functional/futex_requeue_pi.c 			timeout_ns = atoi(optarg);
timeout_ns        398 tools/testing/selftests/futex/functional/futex_requeue_pi.c 		broadcast, locked, owner, timeout_ns);
timeout_ns        405 tools/testing/selftests/futex/functional/futex_requeue_pi.c 	ret = unit_test(broadcast, locked, owner, timeout_ns);
timeout_ns         28 tools/testing/selftests/futex/functional/futex_wait_timeout.c static long timeout_ns = 100000;	/* 100us default timeout */
timeout_ns         56 tools/testing/selftests/futex/functional/futex_wait_timeout.c 			timeout_ns = atoi(optarg);
timeout_ns         71 tools/testing/selftests/futex/functional/futex_wait_timeout.c 	ksft_print_msg("\tArguments: timeout=%ldns\n", timeout_ns);
timeout_ns         75 tools/testing/selftests/futex/functional/futex_wait_timeout.c 	to.tv_nsec = timeout_ns;
timeout_ns         41 tools/testing/selftests/futex/functional/futex_wait_wouldblock.c 	struct timespec to = {.tv_sec = 0, .tv_nsec = timeout_ns};