Home
last modified time | relevance | path

Searched refs:NANOSEC (Results 1 – 18 of 18) sorted by relevance

/f-stack/freebsd/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dtime.h41 #define NANOSEC 1000000000UL macro
44 #define MSEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / MILLISEC))
45 #define NSEC2MSEC(n) ((n) / (NANOSEC / MILLISEC))
47 #define USEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / MICROSEC))
48 #define NSEC2USEC(n) ((n) / (NANOSEC / MICROSEC))
50 #define NSEC2SEC(n) ((n) / (NANOSEC / SEC))
51 #define SEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / SEC))
64 #define NSEC_TO_TICK(nsec) ((nsec) / (NANOSEC / hz))
73 nsec = ((hrtime_t)ts.tv_sec * NANOSEC) + ts.tv_nsec; in gethrtime()
94 return (((u_int64_t)ts.tv_sec) * NANOSEC + ts.tv_nsec); in gethrtime()
/f-stack/freebsd/contrib/openzfs/lib/libspl/include/sys/
H A Dtime.h46 #ifndef NANOSEC
47 #define NANOSEC 1000000000 macro
55 #define MSEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / MILLISEC))
59 #define NSEC2MSEC(n) ((n) / (NANOSEC / MILLISEC))
63 #define USEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / MICROSEC))
67 #define NSEC2USEC(n) ((n) / (NANOSEC / MICROSEC))
71 #define NSEC2SEC(n) ((n) / (NANOSEC / SEC))
75 #define SEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / SEC))
104 return ((((u_int64_t)ts.tv_sec) * NANOSEC) + ts.tv_nsec); in gethrtime()
/f-stack/freebsd/contrib/openzfs/include/os/linux/spl/sys/
H A Dtime.h43 #define NANOSEC 1000000000 macro
45 #define MSEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / MILLISEC))
46 #define NSEC2MSEC(n) ((n) / (NANOSEC / MILLISEC))
48 #define USEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / MICROSEC))
49 #define NSEC2USEC(n) ((n) / (NANOSEC / MICROSEC))
51 #define NSEC2SEC(n) ((n) / (NANOSEC / SEC))
52 #define SEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / SEC))
/f-stack/freebsd/contrib/openzfs/include/sys/
H A Dzfs_delay.h36 delta_us = delta / (NANOSEC / MICROSEC); \
H A Dzfs_context.h616 #define NSEC_TO_TICK(nsec) (howmany((hrtime_t)(nsec) * hz, NANOSEC))
751 ts.tv_sec = delta / NANOSEC; \
752 ts.tv_nsec = delta % NANOSEC; \
/f-stack/freebsd/contrib/openzfs/lib/libzpool/
H A Dkernel.c365 ts.tv_nsec = tv.tv_usec * NSEC_PER_USEC + (delta % hz) * (NANOSEC / hz); in cv_timedwait()
366 if (ts.tv_nsec >= NANOSEC) { in cv_timedwait()
368 ts.tv_nsec -= NANOSEC; in cv_timedwait()
404 ts.tv_sec = tv.tv_sec + delta / NANOSEC; in cv_timedwait_hires()
405 ts.tv_nsec = tv.tv_usec * NSEC_PER_USEC + (delta % NANOSEC); in cv_timedwait_hires()
406 if (ts.tv_nsec >= NANOSEC) { in cv_timedwait_hires()
408 ts.tv_nsec -= NANOSEC; in cv_timedwait_hires()
H A Dutil.c85 sec = MAX(1, vs->vs_timestamp / NANOSEC); in show_vdev_stats()
/f-stack/freebsd/contrib/openzfs/cmd/ztest/
H A Dztest.c389 uint64_t zopt_always = 0ULL * NANOSEC; /* all the time */
391 uint64_t zopt_often = 1ULL * NANOSEC; /* every second */
393 uint64_t zopt_rarely = 60ULL * NANOSEC; /* every 60 seconds */
6241 hrtime_t end = gethrtime() + NANOSEC; in ztest_fletcher()
6317 hrtime_t end = gethrtime() + NANOSEC; in ztest_fletcher_incr()
6823 (gethrtime() - zs->zs_proc_start) / NANOSEC); in ztest_deadman_thread()
6827 (gethrtime() - zs->zs_proc_start) / NANOSEC); in ztest_deadman_thread()
6854 (double)functime / NANOSEC, zi->zi_funcname); in ztest_execute()
7226 ztest_random(ztest_opts.zo_passtime * NANOSEC); in ztest_run()
7428 hrtime_t s = t / NANOSEC; in print_time()
[all …]
/f-stack/freebsd/contrib/openzfs/module/zfs/
H A Ddmu_zfetch.c202 if (((now - zs->zs_atime) / NANOSEC) > in dmu_zfetch_stream_create()
H A Dvdev_raidz_math.c419 speed = run_cnt * BENCH_ZIO_SIZE * NANOSEC; in benchmark_raidz_impl()
H A Dspa_misc.c609 (gethrtime() - spa->spa_sync_starttime) / NANOSEC, in spa_deadman()
H A Ddsl_scan.c3167 return (elapsed_nanosecs / NANOSEC > zfs_txg_timeout || in dsl_scan_async_block_should_pause()
H A Dspa.c3006 uint64_t import_delay = MAX(NANOSEC, import_intervals * in spa_activity_check_duration()
8225 ((hrtime_t)zfs_ccw_retry_interval * NANOSEC);
/f-stack/freebsd/contrib/openzfs/cmd/zed/agents/
H A Dfmd_api.c751 faux_event.ev_hrt = tv[0] * NANOSEC + tv[1]; in fmd_module_recv()
/f-stack/freebsd/contrib/openzfs/module/zcommon/
H A Dzfs_fletcher.c700 run_bw = data_size * run_count * NANOSEC; in fletcher_4_benchmark_impl()
/f-stack/freebsd/contrib/openzfs/cmd/raidz_test/
H A Draidz_test.c911 time_diff = (gethrtime() - start_time) / NANOSEC; in run_sweep()
/f-stack/freebsd/contrib/openzfs/cmd/zpool/
H A Dzpool_main.c4581 scale = (double)NANOSEC / tdelta; in print_vdev_stats()
5163 req.tv_nsec = (sec - (float)req.tv_sec) * NANOSEC; in fsleep()
10120 (wd->wd_interval - floor(wd->wd_interval)) * NANOSEC; in wait_status_thread()
10121 if (nanos >= NANOSEC) { in wait_status_thread()
10123 timeout.tv_nsec = nanos - NANOSEC; in wait_status_thread()
/f-stack/freebsd/contrib/openzfs/cmd/zdb/
H A Dzdb.c5302 if (dump_opt['b'] < 5 && gethrtime() > zcb->zcb_lastprint + NANOSEC) { in zdb_blkptr_cb()