NSEC_PER_SEC 199 arch/alpha/kernel/time.c clockevents_config_and_register(ce, NSEC_PER_SEC, 1000, LONG_MAX); NSEC_PER_SEC 397 arch/alpha/kernel/time.c clocksource_register_hz(&qemu_cs, NSEC_PER_SEC); NSEC_PER_SEC 71 arch/arm/lib/delay.c NSEC_PER_SEC, 3600); NSEC_PER_SEC 100 arch/arm/plat-omap/counter_32k.c 32768, NSEC_PER_SEC, 120000); NSEC_PER_SEC 1214 arch/arm64/kernel/perf_event.c NSEC_PER_SEC, 0); NSEC_PER_SEC 51 arch/c6x/kernel/time.c u64 tmp = (u64)NSEC_PER_SEC << SCHED_CLOCK_SHIFT; NSEC_PER_SEC 311 arch/ia64/kernel/time.c local_cpu_data->nsec_per_cyc = ((NSEC_PER_SEC<<IA64_NSEC_PER_CYC_SHIFT) NSEC_PER_SEC 453 arch/ia64/kernel/time.c (((u64)NSEC_PER_SEC) << tk->tkr_mono.shift)) { NSEC_PER_SEC 455 arch/ia64/kernel/time.c ((u64)NSEC_PER_SEC) << tk->tkr_mono.shift; NSEC_PER_SEC 150 arch/m68k/coldfire/pit.c cf_pit_clockevent.mult = div_sc(FREQ, NSEC_PER_SEC, 32); NSEC_PER_SEC 174 arch/microblaze/kernel/timer.c div_sc(timer_clock_freq, NSEC_PER_SEC, NSEC_PER_SEC 216 arch/microblaze/kernel/timer.c xilinx_cc.mult = div_sc(timer_clock_freq, NSEC_PER_SEC, NSEC_PER_SEC 127 arch/mips/alchemy/common/time.c cd->mult = div_sc(32768, NSEC_PER_SEC, cd->shift); NSEC_PER_SEC 60 arch/mips/generic/board-ranchu.c } while (rtc_delta < NSEC_PER_SEC); NSEC_PER_SEC 94 arch/mips/kernel/binfmt_elfn32.c value->tv_sec = div_u64_rem(nsec, NSEC_PER_SEC, &rem); NSEC_PER_SEC 99 arch/mips/kernel/binfmt_elfo32.c value->tv_sec = div_u64_rem(nsec, NSEC_PER_SEC, &rem); NSEC_PER_SEC 98 arch/mips/kernel/cevt-txx9.c __raw_writel(((u64)(NSEC_PER_SEC / HZ) * evt->mult) >> evt->shift, NSEC_PER_SEC 353 arch/mips/kvm/emulate.c return div_u64(delta * vcpu->arch.count_hz, NSEC_PER_SEC); NSEC_PER_SEC 512 arch/mips/kvm/emulate.c delta = div_u64(delta * NSEC_PER_SEC, vcpu->arch.count_hz); NSEC_PER_SEC 587 arch/mips/kvm/emulate.c delta = div_u64(delta * NSEC_PER_SEC, vcpu->arch.count_hz); NSEC_PER_SEC 631 arch/mips/kvm/emulate.c vcpu->arch.count_period = div_u64((u64)NSEC_PER_SEC << 32, count_hz); NSEC_PER_SEC 657 arch/mips/kvm/emulate.c if (count_hz <= 0 || count_hz > NSEC_PER_SEC) NSEC_PER_SEC 674 arch/mips/kvm/emulate.c vcpu->arch.count_period = div_u64((u64)NSEC_PER_SEC << 32, count_hz); NSEC_PER_SEC 887 arch/mips/kvm/emulate.c delta = div_u64(delta * NSEC_PER_SEC, NSEC_PER_SEC 2974 arch/mips/kvm/vz.c if (mips_hpt_frequency && mips_hpt_frequency <= NSEC_PER_SEC) NSEC_PER_SEC 88 arch/mips/sgi-ip27/ip27-timer.c #define CYCLES_PER_SEC (NSEC_PER_SEC / NSEC_PER_CYCLE) NSEC_PER_SEC 130 arch/nds32/kernel/vdso/gettimeofday.c ts->tv_sec += __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); NSEC_PER_SEC 420 arch/powerpc/kernel/asm-offsets.c DEFINE(NSEC_PER_SEC, NSEC_PER_SEC); NSEC_PER_SEC 919 arch/powerpc/kernel/time.c do_div(frac_sec, NSEC_PER_SEC); NSEC_PER_SEC 57 arch/powerpc/kvm/emulate.c dec_nsec = do_div(dec_time, NSEC_PER_SEC); NSEC_PER_SEC 983 arch/powerpc/xmon/xmon.c ((unsigned long)uptime.tv_nsec / (NSEC_PER_SEC/100))); NSEC_PER_SEC 293 arch/s390/kernel/time.c nsecps = (u64) NSEC_PER_SEC << tk->tkr_mono.shift; NSEC_PER_SEC 306 arch/s390/kernel/time.c while (vdso_data->wtom_coarse_nsec >= NSEC_PER_SEC) { NSEC_PER_SEC 307 arch/s390/kernel/time.c vdso_data->wtom_coarse_nsec -= NSEC_PER_SEC; NSEC_PER_SEC 133 arch/sparc/kernel/time_32.c ce->mult = div_sc(sparc_config.clock_rate, NSEC_PER_SEC, NSEC_PER_SEC 229 arch/sparc/kernel/time_32.c ce->mult = div_sc(sparc_config.clock_rate, NSEC_PER_SEC, NSEC_PER_SEC 49 arch/sparc/kernel/vdso.c (((u64)NSEC_PER_SEC) << tk->tkr_mono.shift)) { NSEC_PER_SEC 51 arch/sparc/kernel/vdso.c ((u64)NSEC_PER_SEC) << tk->tkr_mono.shift; NSEC_PER_SEC 64 arch/sparc/kernel/vdso.c while (vdata->monotonic_time_coarse_nsec >= NSEC_PER_SEC) { NSEC_PER_SEC 65 arch/sparc/kernel/vdso.c vdata->monotonic_time_coarse_nsec -= NSEC_PER_SEC; NSEC_PER_SEC 160 arch/sparc/vdso/vclock_gettime.c ts->tv_sec += __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); NSEC_PER_SEC 180 arch/sparc/vdso/vclock_gettime.c ts->tv_sec += __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); NSEC_PER_SEC 200 arch/sparc/vdso/vclock_gettime.c ts->tv_sec += __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); NSEC_PER_SEC 220 arch/sparc/vdso/vclock_gettime.c ts->tv_sec += __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); NSEC_PER_SEC 9 arch/um/include/shared/common-offsets.h DEFINE(UM_NSEC_PER_SEC, NSEC_PER_SEC); NSEC_PER_SEC 28 arch/um/include/shared/common-offsets.h DEFINE(UM_NSEC_PER_SEC, NSEC_PER_SEC); NSEC_PER_SEC 71 arch/um/kernel/time.c unsigned long long interval = NSEC_PER_SEC / HZ; NSEC_PER_SEC 177 arch/um/kernel/time.c err = clocksource_register_hz(&timer_clocksource, NSEC_PER_SEC/TIMER_MULTIPLIER); NSEC_PER_SEC 194 arch/um/kernel/time.c set_normalized_timespec64(ts, nsecs / NSEC_PER_SEC, NSEC_PER_SEC 195 arch/um/kernel/time.c nsecs % NSEC_PER_SEC); NSEC_PER_SEC 11 arch/x86/events/intel/uncore.h #define UNCORE_PMU_HRTIMER_INTERVAL (60LL * NSEC_PER_SEC) NSEC_PER_SEC 12 arch/x86/events/intel/uncore.h #define UNCORE_SNB_IMC_HRTIMER_INTERVAL (5ULL * NSEC_PER_SEC) NSEC_PER_SEC 426 arch/x86/include/asm/hyperv-tlfs.h #define HV_CLOCK_HZ (NSEC_PER_SEC/100) NSEC_PER_SEC 566 arch/x86/kernel/cpu/microcode/core.c if (__wait_for_cpus(&late_cpus_in, NSEC_PER_SEC)) NSEC_PER_SEC 587 arch/x86/kernel/cpu/microcode/core.c if (__wait_for_cpus(&late_cpus_out, NSEC_PER_SEC * num_online_cpus())) NSEC_PER_SEC 302 arch/x86/kernel/hpet.c delta = ((uint64_t)(NSEC_PER_SEC / HZ)) * evt->mult; NSEC_PER_SEC 1094 arch/x86/kernel/hpet.c clc = (uint64_t) evt->mult * NSEC_PER_SEC; NSEC_PER_SEC 1191 arch/x86/kernel/hpet.c clc = (uint64_t) evt->mult * NSEC_PER_SEC; NSEC_PER_SEC 368 arch/x86/kernel/kvmclock.c clocksource_register_hz(&kvm_clock, NSEC_PER_SEC); NSEC_PER_SEC 138 arch/x86/kernel/pvclock.c delta += now.tv_sec * NSEC_PER_SEC + now.tv_nsec; NSEC_PER_SEC 140 arch/x86/kernel/pvclock.c now.tv_nsec = do_div(delta, NSEC_PER_SEC); NSEC_PER_SEC 122 arch/x86/kvm/i8254.c d = mul_u64_u32_div(t, KVM_PIT_FREQ, NSEC_PER_SEC); NSEC_PER_SEC 149 arch/x86/kvm/i8254.c d = mul_u64_u32_div(t, KVM_PIT_FREQ, NSEC_PER_SEC); NSEC_PER_SEC 321 arch/x86/kvm/i8254.c interval = mul_u64_u32_div(val, NSEC_PER_SEC, KVM_PIT_FREQ); NSEC_PER_SEC 1809 arch/x86/kvm/x86.c kvm_get_time_scale(user_tsc_khz * 1000LL, NSEC_PER_SEC, NSEC_PER_SEC 2151 arch/x86/kvm/x86.c ts->tv_sec += __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); NSEC_PER_SEC 2300 arch/x86/kvm/x86.c kvm_get_time_scale(NSEC_PER_SEC, __this_cpu_read(cpu_tsc_khz) * 1000LL, NSEC_PER_SEC 2435 arch/x86/kvm/x86.c kvm_get_time_scale(NSEC_PER_SEC, tgt_tsc_khz * 1000LL, NSEC_PER_SEC 487 arch/x86/platform/uv/tlb_uv.c return ns_2_cycles(sec * NSEC_PER_SEC); NSEC_PER_SEC 376 arch/x86/platform/uv/uv_time.c NSEC_PER_SEC, clock_event_device_uv.shift); NSEC_PER_SEC 378 arch/x86/platform/uv/uv_time.c clock_event_device_uv.min_delta_ns = NSEC_PER_SEC / NSEC_PER_SEC 383 arch/x86/platform/uv/uv_time.c (NSEC_PER_SEC / sn_rtc_cycles_per_second); NSEC_PER_SEC 483 arch/x86/xen/time.c clocksource_register_hz(&xen_clocksource, NSEC_PER_SEC); NSEC_PER_SEC 164 block/bfq-iosched.c static const u64 bfq_fifo_expire[2] = { NSEC_PER_SEC / 4, NSEC_PER_SEC / 8 }; NSEC_PER_SEC 173 block/bfq-iosched.c static u64 bfq_slice_idle = NSEC_PER_SEC / 125; NSEC_PER_SEC 251 block/bfq-iosched.c #define BFQ_RATE_REF_INTERVAL NSEC_PER_SEC NSEC_PER_SEC 1656 block/blk-cgroup.c if (time_before64(old + NSEC_PER_SEC, now) && NSEC_PER_SEC 292 block/blk-iocost.c AUTOP_CYCLE_NSEC = 10LLU * NSEC_PER_SEC, NSEC_PER_SEC 156 block/blk-iolatency.c #define BLKIOLATENCY_MAX_WIN_SIZE NSEC_PER_SEC NSEC_PER_SEC 707 block/blk-iolatency.c ((u64)NSEC_PER_SEC * 5)) NSEC_PER_SEC 73 block/kyber-iosched.c [KYBER_DISCARD] = 5ULL * NSEC_PER_SEC, NSEC_PER_SEC 506 drivers/ata/libata-transport.c rem * NSEC_PER_SEC / HZ); NSEC_PER_SEC 21 drivers/block/null_blk_main.c #define TIMER_INTERVAL (NSEC_PER_SEC / TICKS_PER_SEC) NSEC_PER_SEC 92 drivers/clk/clk-pwm.c clk_pwm->fixed_rate = NSEC_PER_SEC / pargs.period; NSEC_PER_SEC 94 drivers/clk/clk-pwm.c if (pargs.period != NSEC_PER_SEC / clk_pwm->fixed_rate && NSEC_PER_SEC 95 drivers/clk/clk-pwm.c pargs.period != DIV_ROUND_UP(NSEC_PER_SEC, clk_pwm->fixed_rate)) { NSEC_PER_SEC 266 drivers/clk/qcom/clk-spmi-pmic-div.c clkdiv[i].cxo_period_ns = NSEC_PER_SEC / cxo_hz; NSEC_PER_SEC 1812 drivers/clk/tegra/clk-dfll.c td->pwm_rate = (NSEC_PER_SEC / pwm_period) * (MAX_DFLL_VOLTAGES - 1); NSEC_PER_SEC 301 drivers/clocksource/exynos_mct.c cycles_per_jiffy = (((unsigned long long)NSEC_PER_SEC / HZ * evt->mult) NSEC_PER_SEC 419 drivers/clocksource/exynos_mct.c cycles_per_jiffy = (((unsigned long long)NSEC_PER_SEC / HZ * evt->mult) NSEC_PER_SEC 237 drivers/clocksource/hyperv_timer.c (NSEC_PER_SEC / HV_CLOCK_HZ); NSEC_PER_SEC 263 drivers/clocksource/hyperv_timer.c (NSEC_PER_SEC / HV_CLOCK_HZ); NSEC_PER_SEC 298 drivers/clocksource/hyperv_timer.c clocksource_register_hz(&hyperv_cs_tsc, NSEC_PER_SEC/100); NSEC_PER_SEC 323 drivers/clocksource/hyperv_timer.c clocksource_register_hz(&hyperv_cs_msr, NSEC_PER_SEC/100); NSEC_PER_SEC 57 drivers/clocksource/jcore-pit.c return seclo * NSEC_PER_SEC + nsec; NSEC_PER_SEC 116 drivers/clocksource/jcore-pit.c freq = DIV_ROUND_CLOSEST(NSEC_PER_SEC, buspd); NSEC_PER_SEC 117 drivers/clocksource/jcore-pit.c pit->periodic_delta = DIV_ROUND_CLOSEST(NSEC_PER_SEC, HZ * buspd); NSEC_PER_SEC 159 drivers/clocksource/jcore-pit.c NSEC_PER_SEC, 400, 32, NSEC_PER_SEC 166 drivers/clocksource/jcore-pit.c sched_clock_register(jcore_sched_clock_read, 32, NSEC_PER_SEC); NSEC_PER_SEC 79 drivers/clocksource/numachip.c clocksource_register_hz(&numachip2_clocksource, NSEC_PER_SEC); NSEC_PER_SEC 805 drivers/clocksource/sh_cmt.c ced->mult = div_sc(ch->cmt->rate, NSEC_PER_SEC, ced->shift); NSEC_PER_SEC 247 drivers/clocksource/timer-atmel-pit.c data->clkevt.mult = div_sc(pit_rate, NSEC_PER_SEC, data->clkevt.shift); NSEC_PER_SEC 92 drivers/clocksource/timer-rda.c cycles_per_jiffy = ((unsigned long long)NSEC_PER_SEC / HZ * NSEC_PER_SEC 215 drivers/cpufreq/qoriq-cpufreq.c u64temp = 12ULL * NSEC_PER_SEC; NSEC_PER_SEC 778 drivers/crypto/hifn_795x.c dev->rng_wait_time = DIV_ROUND_UP_ULL(NSEC_PER_SEC, NSEC_PER_SEC 662 drivers/gpio/gpio-mvebu.c val *= NSEC_PER_SEC; NSEC_PER_SEC 673 drivers/gpio/gpio-mvebu.c val *= NSEC_PER_SEC; NSEC_PER_SEC 706 drivers/gpio/gpio-mvebu.c do_div(val, NSEC_PER_SEC); NSEC_PER_SEC 716 drivers/gpio/gpio-mvebu.c do_div(val, NSEC_PER_SEC); NSEC_PER_SEC 762 drivers/gpu/drm/bridge/cdns-dsi.c sysclk_period = NSEC_PER_SEC / clk_get_rate(dsi->dsi_sys_clk); NSEC_PER_SEC 834 drivers/gpu/drm/bridge/cdns-dsi.c tx_byte_period = DIV_ROUND_DOWN_ULL((u64)NSEC_PER_SEC * 8, NSEC_PER_SEC 845 drivers/gpu/drm/bridge/cdns-dsi.c tmp = NSEC_PER_SEC / drm_mode_vrefresh(mode); NSEC_PER_SEC 187 drivers/gpu/drm/i915/gem/i915_gem_wait.c if (NSEC_PER_SEC % HZ && NSEC_PER_SEC 188 drivers/gpu/drm/i915/gem/i915_gem_wait.c div_u64(n, NSEC_PER_SEC) >= MAX_JIFFY_OFFSET / HZ) NSEC_PER_SEC 275 drivers/gpu/drm/i915/i915_perf.c #define POLL_PERIOD (NSEC_PER_SEC / POLL_FREQUENCY) NSEC_PER_SEC 2935 drivers/gpu/drm/i915/i915_perf.c if (oa_period <= NSEC_PER_SEC) { NSEC_PER_SEC 2936 drivers/gpu/drm/i915/i915_perf.c u64 tmp = NSEC_PER_SEC; NSEC_PER_SEC 21 drivers/gpu/drm/i915/i915_pmu.c #define PERIOD max_t(u64, 10000, NSEC_PER_SEC / FREQUENCY) NSEC_PER_SEC 984 drivers/gpu/drm/tegra/dsi.c state->period = DIV_ROUND_CLOSEST(NSEC_PER_SEC, plld); NSEC_PER_SEC 281 drivers/gpu/drm/v3d/v3d_drv.h if (NSEC_PER_SEC % HZ && NSEC_PER_SEC 282 drivers/gpu/drm/v3d/v3d_drv.h div_u64(n, NSEC_PER_SEC) >= MAX_JIFFY_OFFSET / HZ) NSEC_PER_SEC 853 drivers/hwmon/ibmaem.c (unsigned long long)div64_u64(delta * NSEC_PER_SEC, time)); NSEC_PER_SEC 277 drivers/hwtracing/stm/p_sys-t.c payload[1] = NSEC_PER_SEC; NSEC_PER_SEC 381 drivers/i2c/busses/i2c-stm32f7.c u32 i2cclk = DIV_ROUND_CLOSEST(NSEC_PER_SEC, NSEC_PER_SEC 383 drivers/i2c/busses/i2c-stm32f7.c u32 i2cbus = DIV_ROUND_CLOSEST(NSEC_PER_SEC, NSEC_PER_SEC 495 drivers/i2c/busses/i2c-stm32f7.c clk_max = NSEC_PER_SEC / i2c_specs[setup->speed].rate_min; NSEC_PER_SEC 496 drivers/i2c/busses/i2c-stm32f7.c clk_min = NSEC_PER_SEC / i2c_specs[setup->speed].rate_max; NSEC_PER_SEC 370 drivers/iio/adc/cc10001_adc.c adc_dev->eoc_delay_ns = NSEC_PER_SEC / adc_clk_rate; NSEC_PER_SEC 1608 drivers/iio/adc/stm32-adc.c period_ns = NSEC_PER_SEC / adc->common->rate; NSEC_PER_SEC 200 drivers/iio/adc/vf610_adc.c adck_period = NSEC_PER_SEC / adck_rate; NSEC_PER_SEC 218 drivers/iio/common/hid-sensors/hid-sensor-attributes.c value = NSEC_PER_SEC / value; NSEC_PER_SEC 353 drivers/iio/light/max44000.c s64 valns = val * NSEC_PER_SEC + val2; NSEC_PER_SEC 127 drivers/iio/light/max44009.c ns = val * NSEC_PER_SEC + val2; NSEC_PER_SEC 58 drivers/iio/trigger/iio-trig-hrtimer.c if (!val || val > NSEC_PER_SEC) NSEC_PER_SEC 62 drivers/iio/trigger/iio-trig-hrtimer.c info->period = NSEC_PER_SEC / val; NSEC_PER_SEC 139 drivers/iio/trigger/iio-trig-hrtimer.c trig_info->period = NSEC_PER_SEC / trig_info->sampling_frequency; NSEC_PER_SEC 313 drivers/infiniband/hw/mlx4/alias_GUID.c rec->time_to_run = ktime_get_boottime_ns() + 1 * NSEC_PER_SEC; NSEC_PER_SEC 420 drivers/infiniband/hw/mlx4/alias_GUID.c resched_delay_sec * NSEC_PER_SEC; NSEC_PER_SEC 715 drivers/infiniband/hw/mlx4/alias_GUID.c div_u64((low_record_time - curr_time), NSEC_PER_SEC); NSEC_PER_SEC 438 drivers/input/keyboard/pmic8xxx-keypad.c cycles = (row_hold_ns * KEYP_CLOCK_FREQ) / NSEC_PER_SEC; NSEC_PER_SEC 166 drivers/isdn/mISDN/clock.c (NSEC_PER_SEC / 8000)); NSEC_PER_SEC 191 drivers/isdn/mISDN/clock.c (NSEC_PER_SEC / 8000)); NSEC_PER_SEC 205 drivers/md/bcache/util.c d->next += div_u64(done * NSEC_PER_SEC, atomic_long_read(&d->rate)); NSEC_PER_SEC 213 drivers/md/bcache/util.c if (time_before64(now + NSEC_PER_SEC * 5LLU / 2LLU, d->next)) NSEC_PER_SEC 214 drivers/md/bcache/util.c d->next = now + NSEC_PER_SEC * 5LLU / 2LLU; NSEC_PER_SEC 216 drivers/md/bcache/util.c if (time_after64(now - NSEC_PER_SEC * 2, d->next)) NSEC_PER_SEC 217 drivers/md/bcache/util.c d->next = now - NSEC_PER_SEC * 2; NSEC_PER_SEC 220 drivers/md/bcache/util.c ? div_u64(d->next - now, NSEC_PER_SEC / HZ) NSEC_PER_SEC 389 drivers/md/bcache/util.h #define NSEC_PER_sec NSEC_PER_SEC NSEC_PER_SEC 112 drivers/md/bcache/writeback.c dc->writeback_rate_minimum, NSEC_PER_SEC); NSEC_PER_SEC 547 drivers/media/pci/cx88/cx88-input.c ev.duration = (bits * (NSEC_PER_SEC / 1000)) / ir_samplerate; NSEC_PER_SEC 678 drivers/media/platform/qcom/venus/venc.c info.time_scale = NSEC_PER_SEC; NSEC_PER_SEC 1096 drivers/media/platform/vivid/vivid-ctrls.c 0x100000000ULL * NSEC_PER_SEC, &rem); NSEC_PER_SEC 1098 drivers/media/platform/vivid/vivid-ctrls.c (0x100000000ULL - 16) * NSEC_PER_SEC - rem; NSEC_PER_SEC 20 drivers/media/platform/vivid/vivid-rds-gen.h #define VIVID_RDS_NSEC_PER_BLK (u32)(5ull * NSEC_PER_SEC / VIVID_RDS_GEN_BLOCKS) NSEC_PER_SEC 68 drivers/media/rc/gpio-ir-tx.c pulse = DIV_ROUND_CLOSEST(gpio_ir->duty_cycle * (NSEC_PER_SEC / 100), NSEC_PER_SEC 71 drivers/media/rc/gpio-ir-tx.c (NSEC_PER_SEC / 100), gpio_ir->carrier); NSEC_PER_SEC 46 drivers/media/rc/ir-rx51.c int duty, period = DIV_ROUND_CLOSEST(NSEC_PER_SEC, ir_rx51->freq); NSEC_PER_SEC 244 drivers/media/rc/ir-rx51.c ir_rx51.freq = DIV_ROUND_CLOSEST(pwm_get_period(pwm), NSEC_PER_SEC); NSEC_PER_SEC 60 drivers/media/rc/pwm-ir-tx.c period = DIV_ROUND_CLOSEST(NSEC_PER_SEC, pwm_ir->carrier); NSEC_PER_SEC 225 drivers/media/rc/serial_ir.c pulse = DIV_ROUND_CLOSEST(serial_ir.duty_cycle * (NSEC_PER_SEC / 100), NSEC_PER_SEC 228 drivers/media/rc/serial_ir.c (NSEC_PER_SEC / 100), serial_ir.carrier); NSEC_PER_SEC 723 drivers/media/usb/uvc/uvc_video.c y1 = NSEC_PER_SEC; NSEC_PER_SEC 116 drivers/memory/atmel-ebi.c unsigned int clk_period_ns = NSEC_PER_SEC / clk_rate; NSEC_PER_SEC 286 drivers/memory/tegra/mc.c do_div(tick, NSEC_PER_SEC); NSEC_PER_SEC 244 drivers/mmc/host/cavium.c timeout = (slot->clock * ns) / NSEC_PER_SEC; NSEC_PER_SEC 1005 drivers/mmc/host/mmci.c do_div(clks, NSEC_PER_SEC); NSEC_PER_SEC 177 drivers/mmc/host/omap.c tick_ns = DIV_ROUND_UP(NSEC_PER_SEC, slot->fclk_freq); NSEC_PER_SEC 435 drivers/mmc/host/omap.c tick_ns = DIV_ROUND_UP(NSEC_PER_SEC, slot->fclk_freq); NSEC_PER_SEC 889 drivers/mmc/host/sdhci.c transfer_time = (u64)blksz * NSEC_PER_SEC * (8 / bus_width); NSEC_PER_SEC 1193 drivers/mtd/nand/raw/atmel/nand-controller.c mckperiodps = NSEC_PER_SEC / clk_get_rate(nc->mck); NSEC_PER_SEC 279 drivers/mtd/nand/raw/fsmc_nand.c unsigned long hclkn = NSEC_PER_SEC / hclk; NSEC_PER_SEC 668 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c period_ps = div_u64((u64)NSEC_PER_SEC * 1000, hw->clk_rate); NSEC_PER_SEC 466 drivers/mtd/nand/raw/mxic_nand.c freq = NSEC_PER_SEC / (sdr->tRC_min / 1000); NSEC_PER_SEC 1463 drivers/mtd/nand/raw/stm32_fmc2_nand.c unsigned long hclkp = NSEC_PER_SEC / (hclk / 1000); NSEC_PER_SEC 1527 drivers/mtd/nand/raw/sunxi_nand.c sunxi_nand->clk_rate = NSEC_PER_SEC / min_clk_period; NSEC_PER_SEC 1542 drivers/mtd/nand/raw/sunxi_nand.c min_clk_period = NSEC_PER_SEC / real_clk_rate; NSEC_PER_SEC 476 drivers/mtd/nand/raw/tango_nand.c return DIV_ROUND_UP_ULL((u64)kHz * ps, NSEC_PER_SEC); NSEC_PER_SEC 1409 drivers/mtd/spi-nor/cadence-quadspi.c cqspi->wr_delay = 5 * DIV_ROUND_UP(NSEC_PER_SEC, NSEC_PER_SEC 111 drivers/net/can/usb/peak_usb/pcan_usb_core.c if (ktime_to_ns(delta) > (4200ull * NSEC_PER_SEC)) { NSEC_PER_SEC 1563 drivers/net/ethernet/amd/xgbe/xgbe-dev.c nsec *= NSEC_PER_SEC; NSEC_PER_SEC 1586 drivers/net/ethernet/amd/xgbe/xgbe-dev.c nsec *= NSEC_PER_SEC; NSEC_PER_SEC 205 drivers/net/ethernet/cadence/macb_ptp.c bp->tsu_incr.ns = div_u64_rem(NSEC_PER_SEC, bp->tsu_rate, &rem); NSEC_PER_SEC 1710 drivers/net/ethernet/cavium/liquidio/lio_main.c clock_comp = (u64)NSEC_PER_SEC << 32; NSEC_PER_SEC 713 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c u64 clock_comp = (NSEC_PER_SEC << 32) / octeon_get_io_clock_rate(); NSEC_PER_SEC 718 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c (NSEC_PER_SEC << 32) / clock_comp); NSEC_PER_SEC 724 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c ptp.s.ext_clk_in, (NSEC_PER_SEC << 32) / clock_comp); NSEC_PER_SEC 87 drivers/net/ethernet/freescale/fec_ptp.c #define PPS_OUPUT_RELOAD_PERIOD NSEC_PER_SEC NSEC_PER_SEC 156 drivers/net/ethernet/freescale/fec_ptp.c val = NSEC_PER_SEC - (u32)ts.tv_nsec + tempval; NSEC_PER_SEC 169 drivers/net/ethernet/freescale/fec_ptp.c val += NSEC_PER_SEC; NSEC_PER_SEC 312 drivers/net/ethernet/freescale/fec_ptp.c lhs = NSEC_PER_SEC; NSEC_PER_SEC 320 drivers/net/ethernet/freescale/fec_ptp.c lhs += NSEC_PER_SEC; NSEC_PER_SEC 595 drivers/net/ethernet/freescale/fec_ptp.c fep->ptp_inc = NSEC_PER_SEC / fep->cycle_speed; NSEC_PER_SEC 552 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c do_div(ns, NSEC_PER_SEC / HZ); NSEC_PER_SEC 133 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c next_sec = div_u64(nsec, NSEC_PER_SEC) + 1; NSEC_PER_SEC 134 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c next_sec_in_nsec = next_sec * NSEC_PER_SEC; NSEC_PER_SEC 169 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c diff = div_u64(adj, NSEC_PER_SEC); NSEC_PER_SEC 1881 drivers/net/ethernet/mscc/ocelot.c if (delta > -(NSEC_PER_SEC / 2) && delta < (NSEC_PER_SEC / 2)) { NSEC_PER_SEC 106 drivers/net/ethernet/renesas/ravb_ptp.c diff = div_u64((u64)addend * ppb, NSEC_PER_SEC); NSEC_PER_SEC 232 drivers/net/ethernet/renesas/ravb_ptp.c start_ns = req->start.sec * NSEC_PER_SEC + req->start.nsec; NSEC_PER_SEC 233 drivers/net/ethernet/renesas/ravb_ptp.c period_ns = req->period.sec * NSEC_PER_SEC + req->period.nsec; NSEC_PER_SEC 464 drivers/net/ethernet/sfc/ptp.c #define NS_TO_S27_MULT (((1ULL << 63) + NSEC_PER_SEC / 2) / NSEC_PER_SEC) NSEC_PER_SEC 492 drivers/net/ethernet/sfc/ptp.c u32 ns = (u32)(((u64)nic_minor * NSEC_PER_SEC + NSEC_PER_SEC 908 drivers/net/ethernet/sfc/ptp.c end_ns += NSEC_PER_SEC; NSEC_PER_SEC 526 drivers/net/ethernet/ti/cpts.c freq, NSEC_PER_SEC, maxsec); NSEC_PER_SEC 533 drivers/net/ethernet/ti/cpts.c freq, cpts->cc.mult, cpts->cc.shift, (ns - NSEC_PER_SEC)); NSEC_PER_SEC 233 drivers/nvmem/imx-ocotp.c NSEC_PER_SEC) + 1; NSEC_PER_SEC 235 drivers/nvmem/imx-ocotp.c NSEC_PER_SEC) + 1; NSEC_PER_SEC 138 drivers/pci/xen-pcifront.c ns_timeout = ktime_get_ns() + 2 * (s64)NSEC_PER_SEC; NSEC_PER_SEC 23 drivers/perf/thunderx2_pmu.c #define TX2_PMU_HRTIMER_INTERVAL (2 * NSEC_PER_SEC) NSEC_PER_SEC 80 drivers/pps/generators/pps_gen_parport.c lim = NSEC_PER_SEC - send_delay - dev->port_write_time; NSEC_PER_SEC 100 drivers/pps/generators/pps_gen_parport.c lim = NSEC_PER_SEC - dev->port_write_time; NSEC_PER_SEC 134 drivers/pps/generators/pps_gen_parport.c NSEC_PER_SEC - (send_delay + NSEC_PER_SEC 175 drivers/pps/generators/pps_gen_parport.c NSEC_PER_SEC - (send_delay + NSEC_PER_SEC 30 drivers/pps/kapi.c while (ts->nsec >= NSEC_PER_SEC) { NSEC_PER_SEC 31 drivers/pps/kapi.c ts->nsec -= NSEC_PER_SEC; NSEC_PER_SEC 35 drivers/pps/kapi.c ts->nsec += NSEC_PER_SEC; NSEC_PER_SEC 69 drivers/pps/pps.c ticks += fdata->timeout.nsec / (NSEC_PER_SEC / HZ); NSEC_PER_SEC 134 drivers/ptp/ptp_clock.c if ((unsigned long) ts.tv_nsec >= NSEC_PER_SEC) NSEC_PER_SEC 62 drivers/pwm/pwm-atmel-hlcdc.c clk_period_ns = (u64)NSEC_PER_SEC * 256; NSEC_PER_SEC 74 drivers/pwm/pwm-atmel-hlcdc.c clk_period_ns = (u64)NSEC_PER_SEC * 256; NSEC_PER_SEC 309 drivers/pwm/pwm-atmel-tcb.c min = div_u64((u64)NSEC_PER_SEC * atmel_tc_divisors[i], rate); NSEC_PER_SEC 322 drivers/pwm/pwm-atmel-tcb.c min = div_u64(NSEC_PER_SEC, rate); NSEC_PER_SEC 121 drivers/pwm/pwm-atmel.c do_div(cycles, NSEC_PER_SEC); NSEC_PER_SEC 106 drivers/pwm/pwm-bcm-iproc.c multi = NSEC_PER_SEC * (prescale + 1); NSEC_PER_SEC 140 drivers/pwm/pwm-bcm-iproc.c div = NSEC_PER_SEC * (prescale + 1); NSEC_PER_SEC 74 drivers/pwm/pwm-bcm2835.c scaler = DIV_ROUND_CLOSEST(NSEC_PER_SEC, rate); NSEC_PER_SEC 100 drivers/pwm/pwm-berlin.c do_div(cycles, NSEC_PER_SEC); NSEC_PER_SEC 127 drivers/pwm/pwm-brcmstb.c do_div(tmp, NSEC_PER_SEC); NSEC_PER_SEC 131 drivers/pwm/pwm-brcmstb.c do_div(tmp, NSEC_PER_SEC); NSEC_PER_SEC 58 drivers/pwm/pwm-clps711x.c pwm->args.period = DIV_ROUND_CLOSEST(NSEC_PER_SEC, freq); NSEC_PER_SEC 75 drivers/pwm/pwm-crc.c clk_div = PWM_BASE_CLK * period_ns / NSEC_PER_SEC; NSEC_PER_SEC 108 drivers/pwm/pwm-img.c output_clk_hz = DIV_ROUND_UP(NSEC_PER_SEC, period_ns); NSEC_PER_SEC 295 drivers/pwm/pwm-img.c val = (u64)NSEC_PER_SEC * 512 * pwm->data->max_timebase; NSEC_PER_SEC 299 drivers/pwm/pwm-img.c val = (u64)NSEC_PER_SEC * MIN_TMBASE_STEPS; NSEC_PER_SEC 100 drivers/pwm/pwm-imx-tpm.c clock_unit = DIV_ROUND_CLOSEST_ULL(tmp, NSEC_PER_SEC); NSEC_PER_SEC 115 drivers/pwm/pwm-imx-tpm.c tmp *= NSEC_PER_SEC; NSEC_PER_SEC 153 drivers/pwm/pwm-imx-tpm.c tmp = (tmp << prescale) * NSEC_PER_SEC; NSEC_PER_SEC 155 drivers/pwm/pwm-imx27.c tmp = NSEC_PER_SEC * (u64)(period + 2); NSEC_PER_SEC 161 drivers/pwm/pwm-imx27.c tmp = NSEC_PER_SEC * (u64)(val); NSEC_PER_SEC 151 drivers/pwm/pwm-lpc18xx-sct.c do_div(val, NSEC_PER_SEC); NSEC_PER_SEC 170 drivers/pwm/pwm-lpc18xx-sct.c do_div(val, NSEC_PER_SEC); NSEC_PER_SEC 366 drivers/pwm/pwm-lpc18xx-sct.c val = (u64)NSEC_PER_SEC * LPC18XX_PWM_TIMER_MAX; NSEC_PER_SEC 370 drivers/pwm/pwm-lpc18xx-sct.c lpc18xx_pwm->min_period_ns = DIV_ROUND_UP(NSEC_PER_SEC, NSEC_PER_SEC 40 drivers/pwm/pwm-lpc32xx.c (unsigned long long)NSEC_PER_SEC * 256); NSEC_PER_SEC 87 drivers/pwm/pwm-lpss.c unsigned long long base_unit, freq = NSEC_PER_SEC; NSEC_PER_SEC 179 drivers/pwm/pwm-lpss.c state->period = NSEC_PER_SEC; NSEC_PER_SEC 181 drivers/pwm/pwm-lpss.c state->period = NSEC_PER_SEC / (unsigned long)freq; NSEC_PER_SEC 135 drivers/pwm/pwm-mediatek.c resolution = (u64)NSEC_PER_SEC * 1000; NSEC_PER_SEC 182 drivers/pwm/pwm-meson.c pre_div = div64_u64(fin_freq * (u64)period, NSEC_PER_SEC * 0xffffLL); NSEC_PER_SEC 188 drivers/pwm/pwm-meson.c cnt = div64_u64(fin_freq * (u64)period, NSEC_PER_SEC * (pre_div + 1)); NSEC_PER_SEC 208 drivers/pwm/pwm-meson.c NSEC_PER_SEC * (pre_div + 1)); NSEC_PER_SEC 325 drivers/pwm/pwm-meson.c fin_ns = div_u64(NSEC_PER_SEC, fin_freq); NSEC_PER_SEC 88 drivers/pwm/pwm-mtk-disp.c clk_div = div_u64(rate * period_ns, NSEC_PER_SEC) >> NSEC_PER_SEC 93 drivers/pwm/pwm-mtk-disp.c div = NSEC_PER_SEC * (clk_div + 1); NSEC_PER_SEC 50 drivers/pwm/pwm-omap-dmtimer.c return DIV_ROUND_CLOSEST_ULL((u64)clk_rate * ns, NSEC_PER_SEC); NSEC_PER_SEC 169 drivers/pwm/pwm-omap-dmtimer.c DIV_ROUND_CLOSEST_ULL((u64)NSEC_PER_SEC * duty_cycles, NSEC_PER_SEC 171 drivers/pwm/pwm-omap-dmtimer.c DIV_ROUND_CLOSEST_ULL((u64)NSEC_PER_SEC * period_cycles, NSEC_PER_SEC 78 drivers/pwm/pwm-rcar.c div = (u64)NSEC_PER_SEC * RCAR_PWM_MAX_CYCLE; NSEC_PER_SEC 110 drivers/pwm/pwm-rcar.c one_cycle = (unsigned long long)NSEC_PER_SEC * 100ULL * (1 << div); NSEC_PER_SEC 265 drivers/pwm/pwm-renesas-tpu.c / (NSEC_PER_SEC / period_ns); NSEC_PER_SEC 277 drivers/pwm/pwm-renesas-tpu.c / (NSEC_PER_SEC / duty_ns); NSEC_PER_SEC 78 drivers/pwm/pwm-rockchip.c tmp *= pc->data->prescaler * NSEC_PER_SEC; NSEC_PER_SEC 82 drivers/pwm/pwm-rockchip.c tmp *= pc->data->prescaler * NSEC_PER_SEC; NSEC_PER_SEC 118 drivers/pwm/pwm-rockchip.c pc->data->prescaler * NSEC_PER_SEC); NSEC_PER_SEC 121 drivers/pwm/pwm-rockchip.c duty = DIV_ROUND_CLOSEST_ULL(div, pc->data->prescaler * NSEC_PER_SEC); NSEC_PER_SEC 315 drivers/pwm/pwm-samsung.c if (period_ns > NSEC_PER_SEC) NSEC_PER_SEC 329 drivers/pwm/pwm-samsung.c period = NSEC_PER_SEC / period_ns; NSEC_PER_SEC 338 drivers/pwm/pwm-samsung.c tin_ns = NSEC_PER_SEC / tin_rate; NSEC_PER_SEC 95 drivers/pwm/pwm-sifive.c scale_pow = div64_ul(ddata->approx_period * (u64)rate, NSEC_PER_SEC); NSEC_PER_SEC 103 drivers/pwm/pwm-sifive.c num = (unsigned long long)NSEC_PER_SEC << (PWM_SIFIVE_CMPWIDTH + scale); NSEC_PER_SEC 105 drivers/pwm/pwm-sprd.c tmp = (prescale + 1) * NSEC_PER_SEC * SPRD_PWM_MOD_MAX; NSEC_PER_SEC 110 drivers/pwm/pwm-sprd.c tmp = (prescale + 1) * NSEC_PER_SEC * duty; NSEC_PER_SEC 138 drivers/pwm/pwm-sprd.c do_div(tmp, NSEC_PER_SEC); NSEC_PER_SEC 139 drivers/pwm/pwm-sti.c value = NSEC_PER_SEC / clk_rate; NSEC_PER_SEC 373 drivers/pwm/pwm-sti.c result->period = (high + low) * NSEC_PER_SEC; NSEC_PER_SEC 376 drivers/pwm/pwm-sti.c result->duty_cycle = high * NSEC_PER_SEC; NSEC_PER_SEC 61 drivers/pwm/pwm-stm32-lp.c do_div(div, NSEC_PER_SEC); NSEC_PER_SEC 181 drivers/pwm/pwm-stm32-lp.c tmp = (tmp << presc) * NSEC_PER_SEC; NSEC_PER_SEC 186 drivers/pwm/pwm-stm32-lp.c tmp = (tmp << presc) * NSEC_PER_SEC; NSEC_PER_SEC 247 drivers/pwm/pwm-stm32.c prd = (unsigned long long)raw_prd * (psc + 1) * NSEC_PER_SEC; NSEC_PER_SEC 303 drivers/pwm/pwm-stm32.c prd = (unsigned long long)raw_prd * (psc + 1) * NSEC_PER_SEC; NSEC_PER_SEC 305 drivers/pwm/pwm-stm32.c dty = (unsigned long long)raw_dty * (psc + 1) * NSEC_PER_SEC; NSEC_PER_SEC 329 drivers/pwm/pwm-stm32.c do_div(div, NSEC_PER_SEC); NSEC_PER_SEC 140 drivers/pwm/pwm-sun4i.c tmp = (u64)prescaler * NSEC_PER_SEC * PWM_REG_DTY(val); NSEC_PER_SEC 143 drivers/pwm/pwm-sun4i.c tmp = (u64)prescaler * NSEC_PER_SEC * PWM_REG_PRD(val); NSEC_PER_SEC 165 drivers/pwm/pwm-sun4i.c div = clk_rate * state->period + NSEC_PER_SEC / 2; NSEC_PER_SEC 166 drivers/pwm/pwm-sun4i.c do_div(div, NSEC_PER_SEC); NSEC_PER_SEC 180 drivers/pwm/pwm-sun4i.c do_div(div, NSEC_PER_SEC); NSEC_PER_SEC 92 drivers/pwm/pwm-tegra.c hz = DIV_ROUND_CLOSEST_ULL(100ULL * NSEC_PER_SEC, period_ns); NSEC_PER_SEC 58 drivers/pwm/pwm-tiecap.c if (period_ns > NSEC_PER_SEC) NSEC_PER_SEC 63 drivers/pwm/pwm-tiecap.c do_div(c, NSEC_PER_SEC); NSEC_PER_SEC 72 drivers/pwm/pwm-tiecap.c do_div(c, NSEC_PER_SEC); NSEC_PER_SEC 227 drivers/pwm/pwm-tiehrpwm.c if (period_ns > NSEC_PER_SEC) NSEC_PER_SEC 232 drivers/pwm/pwm-tiehrpwm.c do_div(c, NSEC_PER_SEC); NSEC_PER_SEC 241 drivers/pwm/pwm-tiehrpwm.c do_div(c, NSEC_PER_SEC); NSEC_PER_SEC 89 drivers/pwm/pwm-zx.c tmp *= div * NSEC_PER_SEC; NSEC_PER_SEC 93 drivers/pwm/pwm-zx.c tmp *= div * NSEC_PER_SEC; NSEC_PER_SEC 112 drivers/pwm/pwm-zx.c do_div(c, NSEC_PER_SEC); NSEC_PER_SEC 160 drivers/rtc/class.c rtc->set_offset_nsec = NSEC_PER_SEC / 2; NSEC_PER_SEC 29 drivers/rtc/hctosys.c .tv_nsec = NSEC_PER_SEC >> 1, NSEC_PER_SEC 657 drivers/rtc/interface.c period = NSEC_PER_SEC / rtc->irq_freq; NSEC_PER_SEC 726 drivers/rtc/interface.c ktime_t period = NSEC_PER_SEC / rtc->irq_freq; NSEC_PER_SEC 48 drivers/rtc/rtc-goldfish.c do_div(rtc_alarm, NSEC_PER_SEC); NSEC_PER_SEC 73 drivers/rtc/rtc-goldfish.c rtc_alarm64 = rtc_tm_to_time64(&alrm->time) * NSEC_PER_SEC; NSEC_PER_SEC 134 drivers/rtc/rtc-goldfish.c do_div(time, NSEC_PER_SEC); NSEC_PER_SEC 150 drivers/rtc/rtc-goldfish.c now64 = rtc_tm_to_time64(tm) * NSEC_PER_SEC; NSEC_PER_SEC 194 drivers/rtc/rtc-goldfish.c rtcdrv->rtc->range_max = U64_MAX / NSEC_PER_SEC; NSEC_PER_SEC 2258 drivers/s390/block/dasd_3990_erp.c if ((tod_to_ns(clk - device->path[pos].errorclk) / NSEC_PER_SEC) NSEC_PER_SEC 2492 drivers/scsi/aacraid/commsup.c if (((NSEC_PER_SEC - (NSEC_PER_SEC / HZ)) > now.tv_nsec) NSEC_PER_SEC 2493 drivers/scsi/aacraid/commsup.c && (now.tv_nsec > (NSEC_PER_SEC / HZ))) NSEC_PER_SEC 2495 drivers/scsi/aacraid/commsup.c now.tv_nsec / (NSEC_PER_SEC / HZ); NSEC_PER_SEC 2497 drivers/scsi/aacraid/commsup.c if (now.tv_nsec > NSEC_PER_SEC / 2) NSEC_PER_SEC 4357 drivers/scsi/scsi_debug.c kt = ns_to_ktime((u64)delta_jiff * (NSEC_PER_SEC / HZ)); NSEC_PER_SEC 404 drivers/scsi/ufs/ufs-qcom.c core_clk_period_in_ns = NSEC_PER_SEC / core_clk_rate; NSEC_PER_SEC 534 drivers/spi/spi-fsl-dspi.c scale_needed = div_u64_rem((u64)delay_ns * clkrate, NSEC_PER_SEC, NSEC_PER_SEC 543 drivers/spi/spi-loopback-test.c estimated_time += div_u64(nbits * NSEC_PER_SEC, xfer->speed_hz); NSEC_PER_SEC 130 drivers/spi/spi-txx9.c txx9spi_cs_func(spi, c, 0, (NSEC_PER_SEC / 2) / spi->max_speed_hz); NSEC_PER_SEC 159 drivers/spi/spi-txx9.c cs_delay = 100 + (NSEC_PER_SEC / 2) / spi->max_speed_hz; NSEC_PER_SEC 1895 drivers/spi/spi.c lookup->max_speed_hz = NSEC_PER_SEC / *(u32 *)obj->buffer.pointer; NSEC_PER_SEC 436 drivers/staging/android/vsoc.c if (arg->wake_time_nsec >= NSEC_PER_SEC) NSEC_PER_SEC 323 drivers/staging/comedi/drivers/comedi_test.c limit = rounddown(limit, (unsigned int)NSEC_PER_SEC); NSEC_PER_SEC 811 drivers/staging/greybus/loopback.c if (nlat >= NSEC_PER_SEC || gb->iteration_count == gb->iteration_max) { NSEC_PER_SEC 358 fs/affs/super.c sb->s_time_gran = NSEC_PER_SEC; NSEC_PER_SEC 142 fs/afs/fsclient.c return ktime_divns(call->reply_time, NSEC_PER_SEC) + expiry; NSEC_PER_SEC 249 fs/afs/yfsclient.c cb->expires_at = ktime_divns(cb_expiry, NSEC_PER_SEC); NSEC_PER_SEC 63 fs/btrfs/delayed-ref.c if (val >= NSEC_PER_SEC) NSEC_PER_SEC 65 fs/btrfs/delayed-ref.c if (val >= NSEC_PER_SEC / 2) NSEC_PER_SEC 2692 fs/btrfs/disk-io.c fs_info->avg_delayed_ref_runtime = NSEC_PER_SEC >> 6; /* div by 64 */ NSEC_PER_SEC 3830 fs/ext4/super.c sb->s_time_gran = NSEC_PER_SEC; NSEC_PER_SEC 90 fs/fuse/dir.c min_t(u32, nsec, NSEC_PER_SEC - 1) NSEC_PER_SEC 2169 fs/inode.c } else if (gran == NSEC_PER_SEC) { NSEC_PER_SEC 2171 fs/inode.c } else if (gran > 1 && gran < NSEC_PER_SEC) { NSEC_PER_SEC 2201 fs/inode.c else if (gran == NSEC_PER_SEC) NSEC_PER_SEC 2203 fs/inode.c else if (gran > 1 && gran < NSEC_PER_SEC) NSEC_PER_SEC 678 fs/nfsd/nfs4layouts.c (u64)nn->nfsd4_lease * NSEC_PER_SEC * 2); NSEC_PER_SEC 2030 fs/nfsd/nfs4xdr.c ns = max_t(u32, NSEC_PER_SEC/HZ, inode->i_sb->s_time_gran); NSEC_PER_SEC 23 fs/proc/uptime.c idle.tv_sec = div_u64_rem(nsec, NSEC_PER_SEC, &rem); NSEC_PER_SEC 27 fs/proc/uptime.c (uptime.tv_nsec / (NSEC_PER_SEC / 100)), NSEC_PER_SEC 29 fs/proc/uptime.c (idle.tv_nsec / (NSEC_PER_SEC / 100))); NSEC_PER_SEC 302 fs/reiserfs/procfs.c ktime_t kt = ktime_set(mono, NSEC_PER_SEC/2); NSEC_PER_SEC 304 fs/reiserfs/procfs.c return ktime_divns(ktime_mono_to_real(kt), NSEC_PER_SEC); NSEC_PER_SEC 63 fs/select.c if (tv->tv_sec > MAX_SLACK / (NSEC_PER_SEC/divfactor)) NSEC_PER_SEC 67 fs/select.c slack += tv->tv_sec * (NSEC_PER_SEC/divfactor); NSEC_PER_SEC 69 fs/udf/udftime.c dest->tv_nsec %= NSEC_PER_SEC; NSEC_PER_SEC 846 fs/ufs/super.c sb->s_time_gran = NSEC_PER_SEC; NSEC_PER_SEC 296 fs/xfs/scrub/inode.c if (be32_to_cpu(dip->di_atime.t_nsec) >= NSEC_PER_SEC) NSEC_PER_SEC 298 fs/xfs/scrub/inode.c if (be32_to_cpu(dip->di_mtime.t_nsec) >= NSEC_PER_SEC) NSEC_PER_SEC 300 fs/xfs/scrub/inode.c if (be32_to_cpu(dip->di_ctime.t_nsec) >= NSEC_PER_SEC) NSEC_PER_SEC 406 fs/xfs/scrub/inode.c if (be32_to_cpu(dip->di_crtime.t_nsec) >= NSEC_PER_SEC) NSEC_PER_SEC 70 include/linux/acct.h #if (TICK_NSEC % (NSEC_PER_SEC / AHZ)) == 0 NSEC_PER_SEC 78 include/linux/acct.h do_div(tmp, (NSEC_PER_SEC / AHZ)); NSEC_PER_SEC 85 include/linux/acct.h #if (NSEC_PER_SEC % AHZ) == 0 NSEC_PER_SEC 86 include/linux/acct.h do_div(x, (NSEC_PER_SEC / AHZ)); NSEC_PER_SEC 89 include/linux/acct.h do_div(x, (NSEC_PER_SEC / 512)); NSEC_PER_SEC 97 include/linux/acct.h do_div(x, (unsigned long)((9ull * NSEC_PER_SEC + (AHZ/2)) NSEC_PER_SEC 195 include/linux/clockchips.h return clocks_calc_mult_shift(&ce->mult, &ce->shift, NSEC_PER_SEC, freq, maxsec); NSEC_PER_SEC 168 include/linux/clocksource.h return clocksource_freq2mult(hz, shift_constant, NSEC_PER_SEC); NSEC_PER_SEC 63 include/linux/jiffies.h #define TICK_NSEC ((NSEC_PER_SEC+HZ/2)/HZ) NSEC_PER_SEC 264 include/linux/jiffies.h #if !((((NSEC_PER_SEC << 2) / TICK_NSEC) << (SEC_JIFFIE_SC - 2)) & 0x80000000) NSEC_PER_SEC 269 include/linux/jiffies.h #define SEC_CONVERSION ((unsigned long)((((u64)NSEC_PER_SEC << SEC_JIFFIE_SC) +\ NSEC_PER_SEC 281 include/linux/jiffies.h (long)((u64)((u64)MAX_JIFFY_OFFSET * TICK_NSEC) / NSEC_PER_SEC) NSEC_PER_SEC 284 include/linux/jiffies.h (SH_DIV((MAX_JIFFY_OFFSET >> SEC_JIFFIE_SC) * TICK_NSEC, NSEC_PER_SEC, 1) - 1) NSEC_PER_SEC 42 include/linux/ktime.h return secs * NSEC_PER_SEC + (s64)nsecs; NSEC_PER_SEC 243 include/linux/rtc.h if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { NSEC_PER_SEC 138 include/linux/time32.h if ((unsigned long)ts->tv_nsec >= NSEC_PER_SEC) NSEC_PER_SEC 152 include/linux/time32.h return ((s64) ts->tv_sec * NSEC_PER_SEC) + ts->tv_nsec; NSEC_PER_SEC 173 include/linux/time32.h a->tv_sec += __iter_div_u64_rem(a->tv_nsec + ns, NSEC_PER_SEC, &ns); NSEC_PER_SEC 207 include/linux/time32.h return ((s64) tv->tv_sec * NSEC_PER_SEC) + NSEC_PER_SEC 36 include/linux/time64.h #define KTIME_SEC_MAX (KTIME_MAX / NSEC_PER_SEC) NSEC_PER_SEC 101 include/linux/time64.h if ((unsigned long)ts->tv_nsec >= NSEC_PER_SEC) NSEC_PER_SEC 135 include/linux/time64.h return ((s64) ts->tv_sec * NSEC_PER_SEC) + ts->tv_nsec; NSEC_PER_SEC 156 include/linux/time64.h a->tv_sec += __iter_div_u64_rem(a->tv_nsec + ns, NSEC_PER_SEC, &ns); NSEC_PER_SEC 199 include/linux/timekeeping.h return ktime_divns(ktime_get_coarse_boottime(), NSEC_PER_SEC); NSEC_PER_SEC 214 include/linux/timekeeping.h return ktime_divns(ktime_get_coarse_clocktai(), NSEC_PER_SEC); NSEC_PER_SEC 152 include/linux/timex.h #define NTP_INTERVAL_LENGTH (NSEC_PER_SEC/NTP_INTERVAL_FREQ) NSEC_PER_SEC 55 include/net/pkt_sched.h #define PSCHED_TICKS_PER_SEC PSCHED_NS2TICKS(NSEC_PER_SEC) NSEC_PER_SEC 2398 include/net/sock.h #define SK_DEFAULT_STAMP (-1L * NSEC_PER_SEC) NSEC_PER_SEC 774 include/net/tcp.h return div_u64(tcp_clock_ns(), NSEC_PER_SEC / TCP_TS_HZ); NSEC_PER_SEC 786 include/net/tcp.h return div_u64(skb->skb_mstamp_ns, NSEC_PER_SEC / TCP_TS_HZ); NSEC_PER_SEC 2497 kernel/debug/kdb/kdb_main.c val->uptime = div_u64(uptime, NSEC_PER_SEC); NSEC_PER_SEC 416 kernel/events/core.c #define DEFAULT_SAMPLE_PERIOD_NS (NSEC_PER_SEC / DEFAULT_MAX_SAMPLE_RATE) NSEC_PER_SEC 458 kernel/events/core.c perf_sample_period_ns = NSEC_PER_SEC / sysctl_perf_event_sample_rate; NSEC_PER_SEC 552 kernel/events/core.c perf_sample_period_ns = NSEC_PER_SEC / sysctl_perf_event_sample_rate; NSEC_PER_SEC 3597 kernel/events/core.c u64 sec = NSEC_PER_SEC; NSEC_PER_SEC 9657 kernel/events/core.c event->attr.sample_period = NSEC_PER_SEC / freq; NSEC_PER_SEC 386 kernel/irq/timings.c if ((now - irqs->last_ts) >= NSEC_PER_SEC) { NSEC_PER_SEC 497 kernel/irq/timings.c if (interval >= NSEC_PER_SEC) { NSEC_PER_SEC 120 kernel/power/wakelock.c if (idle_time_ns < ((u64)WL_GC_TIME_SEC * NSEC_PER_SEC)) NSEC_PER_SEC 67 kernel/sched/clock.c * (NSEC_PER_SEC / HZ); NSEC_PER_SEC 1961 kernel/sched/core.c ktime_t to = NSEC_PER_SEC / HZ; NSEC_PER_SEC 3682 kernel/sched/core.c WARN_ON_ONCE(delta > (u64)NSEC_PER_SEC * 3); NSEC_PER_SEC 7374 kernel/sched/core.c const u64 max_cfs_quota_period = 1 * NSEC_PER_SEC; /* 1s */ NSEC_PER_SEC 102 kernel/sched/sched.h #define NS_TO_JIFFIES(TIME) ((unsigned long)(TIME) / (NSEC_PER_SEC / HZ)) NSEC_PER_SEC 305 kernel/sysctl.c static int max_sched_granularity_ns = NSEC_PER_SEC; /* 1 second */ NSEC_PER_SEC 307 kernel/sysctl.c static int max_wakeup_granularity_ns = NSEC_PER_SEC; /* 1 second */ NSEC_PER_SEC 292 kernel/time/alarmtimer.c if (ktime_to_ns(min) < 2 * NSEC_PER_SEC) { NSEC_PER_SEC 194 kernel/time/clockevents.c #define MIN_DELTA_LIMIT (NSEC_PER_SEC / HZ) NSEC_PER_SEC 125 kernel/time/clocksource.c #define WATCHDOG_THRESHOLD (NSEC_PER_SEC >> 4) NSEC_PER_SEC 885 kernel/time/clocksource.c NSEC_PER_SEC / scale, sec * scale); NSEC_PER_SEC 112 kernel/time/jiffies.c nsec_per_tick = (u64)NSEC_PER_SEC << 8; NSEC_PER_SEC 522 kernel/time/ntp.c next.tv_nsec += NSEC_PER_SEC; NSEC_PER_SEC 523 kernel/time/ntp.c if (next.tv_nsec >= NSEC_PER_SEC) { NSEC_PER_SEC 525 kernel/time/ntp.c next.tv_nsec -= NSEC_PER_SEC; NSEC_PER_SEC 571 kernel/time/ntp.c long target_nsec = NSEC_PER_SEC / 2; NSEC_PER_SEC 820 kernel/time/ntp.c if (norm.nsec > (NSEC_PER_SEC >> 1)) { NSEC_PER_SEC 821 kernel/time/ntp.c norm.nsec -= NSEC_PER_SEC; NSEC_PER_SEC 27 kernel/time/posix-cpu-timers.c pct->bases[CPUCLOCK_PROF].nextevt = cpu_limit * NSEC_PER_SEC; NSEC_PER_SEC 40 kernel/time/posix-cpu-timers.c u64 nsecs = rlim_new * NSEC_PER_SEC; NSEC_PER_SEC 169 kernel/time/posix-cpu-timers.c tp->tv_nsec = ((NSEC_PER_SEC + HZ - 1) / HZ); NSEC_PER_SEC 947 kernel/time/posix-cpu-timers.c u64 softns = (u64)soft * NSEC_PER_SEC; NSEC_PER_SEC 948 kernel/time/posix-cpu-timers.c u64 hardns = (u64)hard * NSEC_PER_SEC; NSEC_PER_SEC 958 kernel/time/posix-cpu-timers.c softns += NSEC_PER_SEC; NSEC_PER_SEC 387 kernel/time/posix-timers.c ktime_t kj = NSEC_PER_SEC / HZ; NSEC_PER_SEC 86 kernel/time/sched_clock.c .read_data[0] = { .mult = NSEC_PER_SEC / HZ, NSEC_PER_SEC 182 kernel/time/sched_clock.c clocks_calc_mult_shift(&new_mult, &new_shift, rate, NSEC_PER_SEC, 3600); NSEC_PER_SEC 220 kernel/time/tick-common.c tick_period = NSEC_PER_SEC / HZ; NSEC_PER_SEC 468 kernel/time/time.c ts.tv_sec = div_s64_rem(nsec, NSEC_PER_SEC, &rem); NSEC_PER_SEC 471 kernel/time/time.c rem += NSEC_PER_SEC; NSEC_PER_SEC 525 kernel/time/time.c while (nsec >= NSEC_PER_SEC) { NSEC_PER_SEC 532 kernel/time/time.c nsec -= NSEC_PER_SEC; NSEC_PER_SEC 537 kernel/time/time.c nsec += NSEC_PER_SEC; NSEC_PER_SEC 559 kernel/time/time.c ts.tv_sec = div_s64_rem(nsec, NSEC_PER_SEC, &rem); NSEC_PER_SEC 562 kernel/time/time.c rem += NSEC_PER_SEC; NSEC_PER_SEC 665 kernel/time/time.c NSEC_PER_SEC, &rem); NSEC_PER_SEC 703 kernel/time/time.c NSEC_PER_SEC, &rem); NSEC_PER_SEC 713 kernel/time/time.c #if (TICK_NSEC % (NSEC_PER_SEC / USER_HZ)) == 0 NSEC_PER_SEC 720 kernel/time/time.c return div_u64((u64)x * TICK_NSEC, NSEC_PER_SEC / USER_HZ); NSEC_PER_SEC 744 kernel/time/time.c #if (TICK_NSEC % (NSEC_PER_SEC / USER_HZ)) == 0 NSEC_PER_SEC 758 kernel/time/time.c x = div_u64(x * TICK_NSEC, (NSEC_PER_SEC / USER_HZ)); NSEC_PER_SEC 766 kernel/time/time.c #if (NSEC_PER_SEC % USER_HZ) == 0 NSEC_PER_SEC 767 kernel/time/time.c return div_u64(x, NSEC_PER_SEC / USER_HZ); NSEC_PER_SEC 769 kernel/time/time.c return div_u64(x * USER_HZ / 512, NSEC_PER_SEC / 512); NSEC_PER_SEC 776 kernel/time/time.c return div_u64(x * 9, (9ull * NSEC_PER_SEC + (USER_HZ / 2)) / USER_HZ); NSEC_PER_SEC 782 kernel/time/time.c #if !(NSEC_PER_SEC % HZ) NSEC_PER_SEC 783 kernel/time/time.c return (NSEC_PER_SEC / HZ) * j; NSEC_PER_SEC 815 kernel/time/time.c #if (NSEC_PER_SEC % HZ) == 0 NSEC_PER_SEC 817 kernel/time/time.c return div_u64(n, NSEC_PER_SEC / HZ); NSEC_PER_SEC 820 kernel/time/time.c return div_u64(n * HZ / 512, NSEC_PER_SEC / 512); NSEC_PER_SEC 826 kernel/time/time.c return div_u64(n * 9, (9ull * NSEC_PER_SEC + HZ / 2) / HZ); NSEC_PER_SEC 97 kernel/time/timekeeping.c while (tk->tkr_mono.xtime_nsec >= ((u64)NSEC_PER_SEC << tk->tkr_mono.shift)) { NSEC_PER_SEC 98 kernel/time/timekeeping.c tk->tkr_mono.xtime_nsec -= (u64)NSEC_PER_SEC << tk->tkr_mono.shift; NSEC_PER_SEC 101 kernel/time/timekeeping.c while (tk->tkr_raw.xtime_nsec >= ((u64)NSEC_PER_SEC << tk->tkr_raw.shift)) { NSEC_PER_SEC 102 kernel/time/timekeeping.c tk->tkr_raw.xtime_nsec -= (u64)NSEC_PER_SEC << tk->tkr_raw.shift; NSEC_PER_SEC 644 kernel/time/timekeeping.c tk->tkr_mono.base = ns_to_ktime(seconds * NSEC_PER_SEC + nsec); NSEC_PER_SEC 652 kernel/time/timekeeping.c if (nsec >= NSEC_PER_SEC) NSEC_PER_SEC 657 kernel/time/timekeeping.c tk->tkr_raw.base = ns_to_ktime(tk->raw_sec * NSEC_PER_SEC); NSEC_PER_SEC 1280 kernel/time/timekeeping.c if (ts->tv_nsec < 0 || ts->tv_nsec >= NSEC_PER_SEC) NSEC_PER_SEC 1946 kernel/time/timekeeping.c tk->tkr_mono.xtime_nsec += (u64)NSEC_PER_SEC << NSEC_PER_SEC 1963 kernel/time/timekeeping.c u64 nsecps = (u64)NSEC_PER_SEC << tk->tkr_mono.shift; NSEC_PER_SEC 2030 kernel/time/timekeeping.c snsec_per_sec = (u64)NSEC_PER_SEC << tk->tkr_raw.shift; NSEC_PER_SEC 2287 kernel/time/timekeeping.c if (txc->time.tv_usec >= NSEC_PER_SEC) NSEC_PER_SEC 37 kernel/time/vsyscall.c while (nsec >= (((u64)NSEC_PER_SEC) << tk->tkr_mono.shift)) { NSEC_PER_SEC 38 kernel/time/vsyscall.c nsec -= (((u64)NSEC_PER_SEC) << tk->tkr_mono.shift); NSEC_PER_SEC 53 kernel/time/vsyscall.c while (nsec >= (((u64)NSEC_PER_SEC) << tk->tkr_mono.shift)) { NSEC_PER_SEC 54 kernel/time/vsyscall.c nsec -= (((u64)NSEC_PER_SEC) << tk->tkr_mono.shift); NSEC_PER_SEC 97 kernel/time/vsyscall.c vdso_ts->sec += __iter_div_u64_rem(nsec, NSEC_PER_SEC, &vdso_ts->nsec); NSEC_PER_SEC 1285 kernel/trace/blktrace.c unsigned long nsec_rem = do_div(ts, NSEC_PER_SEC); NSEC_PER_SEC 247 kernel/trace/ring_buffer_benchmark.c timeout = ktime_add_ns(start_time, RUN_TIME * NSEC_PER_SEC); NSEC_PER_SEC 7136 kernel/trace/trace.c nsec = do_div(sec, NSEC_PER_SEC); NSEC_PER_SEC 494 kernel/trace/trace_functions_graph.c usecs_rem = do_div(t, NSEC_PER_SEC); NSEC_PER_SEC 255 kernel/watchdog.c sample_period = get_softlockup_thresh() * ((u64)NSEC_PER_SEC / 5); NSEC_PER_SEC 65 lib/vdso/gettimeofday.c ts->tv_sec = sec + __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); NSEC_PER_SEC 1025 net/core/pktgen.c pkt_dev->delay = NSEC_PER_SEC/value; NSEC_PER_SEC 3157 net/core/pktgen.c pps = div64_u64(pkt_dev->sofar * NSEC_PER_SEC, NSEC_PER_SEC 87 net/ipv4/syncookies.c return (u64)ts * (NSEC_PER_SEC / TCP_TS_HZ); NSEC_PER_SEC 995 net/ipv4/tcp_output.c u64 len_ns = div64_ul((u64)skb->len * NSEC_PER_SEC, rate); NSEC_PER_SEC 233 net/netfilter/nf_conntrack_standalone.c delta_time = div_s64(delta_time, NSEC_PER_SEC); NSEC_PER_SEC 65 net/netfilter/nft_limit.c limit->nsecs = unit * NSEC_PER_SEC; NSEC_PER_SEC 108 net/netfilter/nft_limit.c u64 secs = div_u64(limit->nsecs, NSEC_PER_SEC); NSEC_PER_SEC 2227 net/sched/sch_api.c (u32)NSEC_PER_SEC / hrtimer_resolution); NSEC_PER_SEC 1754 net/sched/sch_cake.c if (packet_interval > NSEC_PER_SEC) NSEC_PER_SEC 1755 net/sched/sch_cake.c packet_interval = NSEC_PER_SEC; NSEC_PER_SEC 1770 net/sched/sch_cake.c u64 b = q->avg_window_bytes * (u64)NSEC_PER_SEC; NSEC_PER_SEC 2207 net/sched/sch_cake.c rate_ns = ((u64)NSEC_PER_SEC) << rate_shft; NSEC_PER_SEC 141 net/sched/sch_cbs.c return div64_s64(timediff * slope, NSEC_PER_SEC); NSEC_PER_SEC 149 net/sched/sch_cbs.c return div64_s64(-credits * NSEC_PER_SEC, slope); NSEC_PER_SEC 224 net/sched/sch_cbs.c q->last = now + div64_s64(len * NSEC_PER_SEC, NSEC_PER_SEC 577 net/sched/sch_fq.c u64 len = (u64)plen * NSEC_PER_SEC; NSEC_PER_SEC 585 net/sched/sch_fq.c if (unlikely(len > NSEC_PER_SEC)) { NSEC_PER_SEC 586 net/sched/sch_fq.c len = NSEC_PER_SEC; NSEC_PER_SEC 1340 net/sched/sch_generic.c u64 factor = NSEC_PER_SEC; NSEC_PER_SEC 912 net/sched/sch_htb.c next_event = q->now + 5LLU * NSEC_PER_SEC; NSEC_PER_SEC 922 net/sched/sch_htb.c event = q->now + NSEC_PER_SEC; NSEC_PER_SEC 1427 net/sched/sch_htb.c cl->mbuffer = 60ULL * NSEC_PER_SEC; /* 1min */ NSEC_PER_SEC 357 net/sched/sch_netem.c return div64_u64(len * NSEC_PER_SEC, q->rate); NSEC_PER_SEC 125 net/sched/sch_tbf.c do_div(len, NSEC_PER_SEC); NSEC_PER_SEC 91 sound/firewire/fireface/ff-transaction.c ff->rx_bytes[port] * 8 * NSEC_PER_SEC / 31250); NSEC_PER_SEC 212 sound/firewire/tascam/tascam-transaction.c port->consume_bytes * 8 * NSEC_PER_SEC / 31250); NSEC_PER_SEC 459 sound/pci/hda/hda_controller.c NSEC_PER_SEC, runtime->rate)); NSEC_PER_SEC 460 sound/pci/hda/hda_controller.c *device = ktime_add_ns(*device, (wallclk_cycles * NSEC_PER_SEC) / NSEC_PER_SEC 1064 tools/perf/bench/numa.c tprintf(" (%6.1fs converged)\n", *convergence / NSEC_PER_SEC); NSEC_PER_SEC 1072 tools/perf/bench/numa.c tprintf(" (%6.1fs de-converged)", runtime_ns_max / NSEC_PER_SEC); NSEC_PER_SEC 1082 tools/perf/bench/numa.c (double)(l+1)/g->p.nr_loops*100.0, runtime_ns_max / NSEC_PER_SEC / 60.0); NSEC_PER_SEC 1239 tools/perf/bench/numa.c runtime_ns_max = diff.tv_sec * NSEC_PER_SEC; NSEC_PER_SEC 1252 tools/perf/bench/numa.c runtime_ns_max = diff.tv_sec * NSEC_PER_SEC; NSEC_PER_SEC 1260 tools/perf/bench/numa.c td->runtime_ns = diff.tv_sec * NSEC_PER_SEC; NSEC_PER_SEC 1262 tools/perf/bench/numa.c secs = td->runtime_ns / NSEC_PER_SEC; NSEC_PER_SEC 1266 tools/perf/bench/numa.c td->system_time_ns = rusage.ru_stime.tv_sec * NSEC_PER_SEC; NSEC_PER_SEC 1268 tools/perf/bench/numa.c td->user_time_ns = rusage.ru_utime.tv_sec * NSEC_PER_SEC; NSEC_PER_SEC 1549 tools/perf/bench/numa.c startup_sec = diff.tv_sec * NSEC_PER_SEC; NSEC_PER_SEC 1551 tools/perf/bench/numa.c startup_sec /= NSEC_PER_SEC; NSEC_PER_SEC 1590 tools/perf/bench/numa.c runtime_sec_max = diff.tv_sec * NSEC_PER_SEC; NSEC_PER_SEC 1592 tools/perf/bench/numa.c runtime_sec_max /= NSEC_PER_SEC; NSEC_PER_SEC 1594 tools/perf/bench/numa.c runtime_sec_min = runtime_ns_min / NSEC_PER_SEC; NSEC_PER_SEC 1597 tools/perf/bench/numa.c runtime_avg = (double)runtime_ns_sum / g->p.nr_tasks / NSEC_PER_SEC; NSEC_PER_SEC 1623 tools/perf/bench/numa.c print_res(name, runtime_sec_max * NSEC_PER_SEC / (bytes / g->p.nr_tasks), NSEC_PER_SEC 1642 tools/perf/bench/numa.c print_res(tname, td->system_time_ns / NSEC_PER_SEC, NSEC_PER_SEC 1644 tools/perf/bench/numa.c print_res(tname, td->user_time_ns / NSEC_PER_SEC, NSEC_PER_SEC 1875 tools/perf/builtin-record.c *res_ns = res.tv_nsec + res.tv_sec * NSEC_PER_SEC; NSEC_PER_SEC 968 tools/perf/builtin-report.c *time_q *= NSEC_PER_SEC; NSEC_PER_SEC 297 tools/perf/builtin-sched.c return ts.tv_sec * NSEC_PER_SEC + ts.tv_nsec; NSEC_PER_SEC 321 tools/perf/builtin-sched.c u64 T0, T1, delta, min_delta = NSEC_PER_SEC; NSEC_PER_SEC 338 tools/perf/builtin-sched.c u64 T0, T1, delta, min_delta = NSEC_PER_SEC; NSEC_PER_SEC 550 tools/perf/builtin-sched.c sum = ru.ru_utime.tv_sec * NSEC_PER_SEC + ru.ru_utime.tv_usec * NSEC_PER_USEC; NSEC_PER_SEC 551 tools/perf/builtin-sched.c sum += ru.ru_stime.tv_sec * NSEC_PER_SEC + ru.ru_stime.tv_usec * NSEC_PER_USEC; NSEC_PER_SEC 709 tools/perf/builtin-script.c secs = nsecs / NSEC_PER_SEC; NSEC_PER_SEC 710 tools/perf/builtin-script.c nsecs -= secs * NSEC_PER_SEC; NSEC_PER_SEC 196 tools/perf/builtin-stat.c r->tv_nsec = a->tv_nsec + NSEC_PER_SEC - b->tv_nsec; NSEC_PER_SEC 349 tools/perf/builtin-stat.c if (WRITE_STAT_ROUND_EVENT(rs.tv_sec * NSEC_PER_SEC + rs.tv_nsec, INTERVAL)) NSEC_PER_SEC 1469 tools/perf/builtin-stat.c tsh.tv_sec = stat_round->time / NSEC_PER_SEC; NSEC_PER_SEC 1470 tools/perf/builtin-stat.c tsh.tv_nsec = stat_round->time % NSEC_PER_SEC; NSEC_PER_SEC 1289 tools/perf/builtin-timechart.c sprintf(comm, "%s:%i (%2.2fs)", c->comm, p->pid, c->total_time / (double)NSEC_PER_SEC); NSEC_PER_SEC 1635 tools/perf/builtin-timechart.c (tchart->last_time - tchart->first_time) / (double)NSEC_PER_SEC, output_name); NSEC_PER_SEC 1120 tools/perf/builtin-top.c delay_timestamp = qevent->timestamp + top->delay_secs * NSEC_PER_SEC; NSEC_PER_SEC 3226 tools/perf/builtin-trace.c u64 flush = trace->oe.last - NSEC_PER_SEC; NSEC_PER_SEC 110 tools/perf/jvmti/jvmti_agent.c return ((uint64_t) ts->tv_sec * NSEC_PER_SEC) + ts->tv_nsec; NSEC_PER_SEC 189 tools/perf/tests/time-utils-test.c u64 b = 7654321ULL * NSEC_PER_SEC; NSEC_PER_SEC 204 tools/perf/tests/time-utils-test.c u64 b = 7654321ULL * NSEC_PER_SEC; NSEC_PER_SEC 219 tools/perf/tests/time-utils-test.c u64 b = 11223344ULL * NSEC_PER_SEC; NSEC_PER_SEC 234 tools/perf/tests/time-utils-test.c u64 b = 11223344ULL * NSEC_PER_SEC; NSEC_PER_SEC 1183 tools/perf/util/auxtrace.c unsigned long secs = nsecs / NSEC_PER_SEC; NSEC_PER_SEC 1185 tools/perf/util/auxtrace.c nsecs -= secs * NSEC_PER_SEC; NSEC_PER_SEC 63 tools/perf/util/debug.c secs = nsecs / NSEC_PER_SEC; NSEC_PER_SEC 64 tools/perf/util/debug.c nsecs -= secs * NSEC_PER_SEC; NSEC_PER_SEC 371 tools/perf/util/scripting-engines/trace-event-perl.c s = nsecs / NSEC_PER_SEC; NSEC_PER_SEC 372 tools/perf/util/scripting-engines/trace-event-perl.c ns = nsecs - s * NSEC_PER_SEC; NSEC_PER_SEC 838 tools/perf/util/scripting-engines/trace-event-python.c s = nsecs / NSEC_PER_SEC; NSEC_PER_SEC 839 tools/perf/util/scripting-engines/trace-event-python.c ns = nsecs - s * NSEC_PER_SEC; NSEC_PER_SEC 1062 tools/perf/util/stat-display.c double run = (double) config->walltime_run[idx] / NSEC_PER_SEC; NSEC_PER_SEC 1084 tools/perf/util/stat-display.c double avg = avg_stats(config->walltime_nsecs_stats) / NSEC_PER_SEC; NSEC_PER_SEC 1103 tools/perf/util/stat-display.c double sd = stddev_stats(config->walltime_nsecs_stats) / NSEC_PER_SEC; NSEC_PER_SEC 47 tools/perf/util/time-utils.c *ptime = time_sec * NSEC_PER_SEC + time_nsec; NSEC_PER_SEC 530 tools/perf/util/time-utils.c u64 sec = timestamp / NSEC_PER_SEC; NSEC_PER_SEC 531 tools/perf/util/time-utils.c u64 usec = (timestamp % NSEC_PER_SEC) / NSEC_PER_USEC; NSEC_PER_SEC 538 tools/perf/util/time-utils.c u64 sec = timestamp / NSEC_PER_SEC, NSEC_PER_SEC 539 tools/perf/util/time-utils.c nsec = timestamp % NSEC_PER_SEC; NSEC_PER_SEC 38 tools/testing/radix-tree/benchmark.c nsec = (finish.tv_sec - start.tv_sec) * NSEC_PER_SEC + NSEC_PER_SEC 42 tools/testing/radix-tree/benchmark.c if (loops == 1 && nsec * 5 < NSEC_PER_SEC) { NSEC_PER_SEC 43 tools/testing/radix-tree/benchmark.c loops = NSEC_PER_SEC / nsec / 4 + 1; NSEC_PER_SEC 66 tools/testing/radix-tree/benchmark.c nsec = (finish.tv_sec - start.tv_sec) * NSEC_PER_SEC + NSEC_PER_SEC 87 tools/testing/radix-tree/benchmark.c nsec = (finish.tv_sec - start.tv_sec) * NSEC_PER_SEC + NSEC_PER_SEC 108 tools/testing/radix-tree/benchmark.c nsec = (finish.tv_sec - start.tv_sec) * NSEC_PER_SEC + NSEC_PER_SEC 46 tools/testing/selftests/timers/adjtick.c return ts.tv_sec * NSEC_PER_SEC + ts.tv_nsec; NSEC_PER_SEC 53 tools/testing/selftests/timers/adjtick.c ts.tv_sec = ns/NSEC_PER_SEC; NSEC_PER_SEC 54 tools/testing/selftests/timers/adjtick.c ts.tv_nsec = ns%NSEC_PER_SEC; NSEC_PER_SEC 49 tools/testing/selftests/timers/alarmtimer-suspend.c #define UNREASONABLE_LAT (NSEC_PER_SEC * 5) /* hopefully we resume in 5 secs */ NSEC_PER_SEC 89 tools/testing/selftests/timers/alarmtimer-suspend.c long long ret = NSEC_PER_SEC * b.tv_sec + b.tv_nsec; NSEC_PER_SEC 91 tools/testing/selftests/timers/alarmtimer-suspend.c ret -= NSEC_PER_SEC * a.tv_sec + a.tv_nsec; NSEC_PER_SEC 106 tools/testing/selftests/timers/alarmtimer-suspend.c delta_ns -= NSEC_PER_SEC * SUSPEND_SECS * alarmcount; NSEC_PER_SEC 134 tools/testing/selftests/timers/inconsistency-check.c delta = list[inconsistent].tv_sec * NSEC_PER_SEC; NSEC_PER_SEC 136 tools/testing/selftests/timers/inconsistency-check.c delta -= list[inconsistent+1].tv_sec * NSEC_PER_SEC; NSEC_PER_SEC 74 tools/testing/selftests/timers/leap-a-day.c while (ts.tv_nsec >= NSEC_PER_SEC) { NSEC_PER_SEC 75 tools/testing/selftests/timers/leap-a-day.c ts.tv_nsec -= NSEC_PER_SEC; NSEC_PER_SEC 165 tools/testing/selftests/timers/leap-a-day.c target = timespec_add(now, NSEC_PER_SEC/2); NSEC_PER_SEC 356 tools/testing/selftests/timers/leap-a-day.c ts.tv_nsec = NSEC_PER_SEC / 2; NSEC_PER_SEC 42 tools/testing/selftests/timers/mqueue-lat.c long long ret = NSEC_PER_SEC * b.tv_sec + b.tv_nsec; NSEC_PER_SEC 44 tools/testing/selftests/timers/mqueue-lat.c ret -= NSEC_PER_SEC * a.tv_sec + a.tv_nsec; NSEC_PER_SEC 51 tools/testing/selftests/timers/mqueue-lat.c while (ts.tv_nsec >= NSEC_PER_SEC) { NSEC_PER_SEC 52 tools/testing/selftests/timers/mqueue-lat.c ts.tv_nsec -= NSEC_PER_SEC; NSEC_PER_SEC 94 tools/testing/selftests/timers/nanosleep.c while (ts.tv_nsec >= NSEC_PER_SEC) { NSEC_PER_SEC 95 tools/testing/selftests/timers/nanosleep.c ts.tv_nsec -= NSEC_PER_SEC; NSEC_PER_SEC 148 tools/testing/selftests/timers/nanosleep.c while (length <= (NSEC_PER_SEC * 10)) { NSEC_PER_SEC 82 tools/testing/selftests/timers/nsleep-lat.c while (ts.tv_nsec >= NSEC_PER_SEC) { NSEC_PER_SEC 83 tools/testing/selftests/timers/nsleep-lat.c ts.tv_nsec -= NSEC_PER_SEC; NSEC_PER_SEC 92 tools/testing/selftests/timers/nsleep-lat.c long long ret = NSEC_PER_SEC * b.tv_sec + b.tv_nsec; NSEC_PER_SEC 94 tools/testing/selftests/timers/nsleep-lat.c ret -= NSEC_PER_SEC * a.tv_sec + a.tv_nsec; NSEC_PER_SEC 104 tools/testing/selftests/timers/nsleep-lat.c target.tv_sec = ns/NSEC_PER_SEC; NSEC_PER_SEC 105 tools/testing/selftests/timers/nsleep-lat.c target.tv_nsec = ns%NSEC_PER_SEC; NSEC_PER_SEC 161 tools/testing/selftests/timers/nsleep-lat.c while (length <= (NSEC_PER_SEC * 10)) { NSEC_PER_SEC 48 tools/testing/selftests/timers/raw_skew.c return ts.tv_sec * NSEC_PER_SEC + ts.tv_nsec; NSEC_PER_SEC 55 tools/testing/selftests/timers/raw_skew.c ts.tv_sec = ns/NSEC_PER_SEC; NSEC_PER_SEC 56 tools/testing/selftests/timers/raw_skew.c ts.tv_nsec = ns%NSEC_PER_SEC; NSEC_PER_SEC 127 tools/testing/selftests/timers/raw_skew.c eppm = ((delta2-delta1)*NSEC_PER_SEC)/interval; NSEC_PER_SEC 35 tools/testing/selftests/timers/set-2038.c #define KTIME_SEC_MAX (KTIME_MAX / NSEC_PER_SEC) NSEC_PER_SEC 90 tools/testing/selftests/timers/set-timer-lat.c long long ret = NSEC_PER_SEC * b.tv_sec + b.tv_nsec; NSEC_PER_SEC 92 tools/testing/selftests/timers/set-timer-lat.c ret -= NSEC_PER_SEC * a.tv_sec + a.tv_nsec; NSEC_PER_SEC 106 tools/testing/selftests/timers/set-timer-lat.c delta_ns -= NSEC_PER_SEC * TIMER_SECS * alarmcount; NSEC_PER_SEC 205 tools/testing/selftests/timers/valid-adjtimex.c tmx.time.tv_sec = offset / NSEC_PER_SEC; NSEC_PER_SEC 206 tools/testing/selftests/timers/valid-adjtimex.c tmx.time.tv_usec = offset % NSEC_PER_SEC; NSEC_PER_SEC 210 tools/testing/selftests/timers/valid-adjtimex.c tmx.time.tv_usec += NSEC_PER_SEC; NSEC_PER_SEC 257 tools/testing/selftests/timers/valid-adjtimex.c if (set_offset(NSEC_PER_SEC - 1, 1)) NSEC_PER_SEC 260 tools/testing/selftests/timers/valid-adjtimex.c if (set_offset(-NSEC_PER_SEC + 1, 1)) NSEC_PER_SEC 263 tools/testing/selftests/timers/valid-adjtimex.c if (set_offset(-NSEC_PER_SEC - 1, 1)) NSEC_PER_SEC 266 tools/testing/selftests/timers/valid-adjtimex.c if (set_offset(5 * NSEC_PER_SEC, 1)) NSEC_PER_SEC 269 tools/testing/selftests/timers/valid-adjtimex.c if (set_offset(-5 * NSEC_PER_SEC, 1)) NSEC_PER_SEC 272 tools/testing/selftests/timers/valid-adjtimex.c if (set_offset(5 * NSEC_PER_SEC + NSEC_PER_SEC / 2, 1)) NSEC_PER_SEC 275 tools/testing/selftests/timers/valid-adjtimex.c if (set_offset(-5 * NSEC_PER_SEC - NSEC_PER_SEC / 2, 1)) NSEC_PER_SEC 304 tools/testing/selftests/timers/valid-adjtimex.c if (set_bad_offset(0, 2 * NSEC_PER_SEC, 1)) NSEC_PER_SEC 308 tools/testing/selftests/timers/valid-adjtimex.c if (set_bad_offset(0, NSEC_PER_SEC, 1)) NSEC_PER_SEC 312 tools/testing/selftests/timers/valid-adjtimex.c if (set_bad_offset(0, -NSEC_PER_SEC, 1))