/freebsd/sys/kern/ |
H A D | kern_clocksource.c | 61 static void loadtimer(sbintime_t now, int first); 67 static sbintime_t getnextcpuevent(struct pcpu_state *state, int idle); 68 static sbintime_t getnextevent(struct pcpu_state *state); 69 static int handleevents(sbintime_t now, int fake); 90 static sbintime_t timerperiod; /* Timer period for periodic mode. */ 91 static sbintime_t statperiod; /* statclock() events period. */ 92 static sbintime_t profperiod; /* profclock() events period. */ 93 static sbintime_t nexttick; /* Next global timer tick time. */ 116 sbintime_t now; /* Last tick time. */ 117 sbintime_t nextevent; /* Next scheduled event on this CPU. */ [all …]
|
H A D | kern_timeout.c | 74 DPCPU_DECLARE(sbintime_t, hardclocktime); 150 sbintime_t ce_migration_time; 151 sbintime_t ce_migration_prec; 168 sbintime_t cc_firstevent; 169 sbintime_t cc_lastscan; 410 callout_hash(sbintime_t sbt) in callout_hash() 417 callout_get_bucket(sbintime_t sbt) in callout_get_bucket() 424 callout_process(sbintime_t now) in callout_process() 429 sbintime_t now; in callout_process() 435 sbintime_t first, last, lookahead, max, tmp_max; in callout_process() [all …]
|
H A D | kern_synch.c | 132 const char *wmesg, sbintime_t sbt, sbintime_t pr, int flags) in _sleep() 239 sbintime_t sbt, sbintime_t pr, int flags) in msleep_spin_sbt() 313 pause_sbt(const char *wmesg, sbintime_t sbt, sbintime_t pr, int flags) in pause_sbt()
|
/freebsd/tests/sys/sys/ |
H A D | time_test.c | 40 atf_check_nstosbt(sbintime_t expected, int64_t ns) { in atf_check_nstosbt() 41 sbintime_t actual = nstosbt(ns); in atf_check_nstosbt() 68 atf_check_ustosbt(sbintime_t expected, int64_t us) { in atf_check_ustosbt() 69 sbintime_t actual = ustosbt(us); in atf_check_ustosbt() 96 atf_check_mstosbt(sbintime_t expected, int64_t ms) { in atf_check_mstosbt() 97 sbintime_t actual = mstosbt(ms); in atf_check_mstosbt() 123 atf_check_sbttons(int64_t expected, sbintime_t sbt) { in atf_check_sbttons() 152 atf_check_sbttous(int64_t expected, sbintime_t sbt) { in atf_check_sbttous() 182 atf_check_sbttoms(int64_t expected, sbintime_t sbt) { in atf_check_sbttoms()
|
/freebsd/sys/sys/ |
H A D | timeet.h | 48 sbintime_t first, sbintime_t period); 73 sbintime_t et_min_period; 74 sbintime_t et_max_period; 97 int et_start(struct eventtimer *et, sbintime_t first, sbintime_t period);
|
H A D | time.h | 127 #define SBT_1S ((sbintime_t)1 << 32) 135 sbintime_getsec(sbintime_t _sbt) in sbintime_getsec() 141 static __inline sbintime_t 145 return (((sbintime_t)_bt.sec << 32) + (_bt.frac >> 32)); in bttosbt() 149 sbttobt(sbintime_t _sbt) in sbttobt() 263 sbtto##name(sbintime_t sbt) \ 267 static __inline sbintime_t \ 339 sbttots(sbintime_t _sbt) in sbttots() 348 static __inline sbintime_t 352 return (((sbintime_t)_ts.tv_sec << 32) + nstosbt(_ts.tv_nsec)); in tstosbt() [all …]
|
H A D | callout.h | 94 int callout_reset_sbt_on(struct callout *, sbintime_t, sbintime_t, 121 void callout_process(sbintime_t now); 122 void callout_when(sbintime_t sbt, sbintime_t precision, int flags, 123 sbintime_t *sbt_res, sbintime_t *prec_res);
|
H A D | condvar.h | 55 sbintime_t sbt, sbintime_t pr, int flags); 57 sbintime_t sbt, sbintime_t pr, int flags);
|
H A D | gpio.h | 112 sbintime_t gp_time; /* Time of event */ 125 sbintime_t gp_first_time; /* Time of first event */ 126 sbintime_t gp_last_time; /* Time of last event */
|
H A D | systm.h | 380 int sysbeep(int hertz, sbintime_t duration); 395 sbintime_t cpu_idleclock(void); 397 void cpu_new_callout(int cpu, sbintime_t bt, sbintime_t bt_opt); 463 const char *wmesg, sbintime_t sbt, sbintime_t pr, int flags); 471 const char *wmesg, sbintime_t sbt, sbintime_t pr, int flags); 475 int pause_sbt(const char *wmesg, sbintime_t sbt, sbintime_t pr,
|
H A D | sleepqueue.h | 104 void sleepq_set_timeout_sbt(const void *wchan, sbintime_t sbt, 105 sbintime_t pr, int flags);
|
/freebsd/sys/dev/hyperv/vmbus/ |
H A D | vmbus_et.c | 63 static int vmbus_et_start(struct eventtimer *, sbintime_t, 64 sbintime_t); 87 hyperv_sbintime2count(sbintime_t time) in hyperv_sbintime2count() 97 vmbus_et_start(struct eventtimer *et __unused, sbintime_t first, in vmbus_et_start() 98 sbintime_t period __unused) in vmbus_et_start()
|
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/ |
H A D | spl_condvar.h | 60 sbintime_t sbt, sbintime_t pr, int flags); 62 sbintime_t sbt, sbintime_t pr, int flags);
|
H A D | condvar.h | 66 static __inline sbintime_t 69 sbintime_t sb = 0; in zfs_nstosbt() 184 sbintime_t sbt; in cv_timedwait_sig_hires()
|
/freebsd/sys/powerpc/powerpc/ |
H A D | cpu.c | 91 void (*cpu_idle_hook)(sbintime_t) = NULL; 92 static void cpu_idle_60x(sbintime_t); 93 static void cpu_idle_booke(sbintime_t); 95 static void cpu_idle_e500mc(sbintime_t sbt); 101 static void cpu_idle_powerx(sbintime_t); 102 static void cpu_idle_power9(sbintime_t); 728 sbintime_t sbt = -1; in cpu_idle() 756 cpu_idle_60x(sbintime_t sbt) in cpu_idle_60x() 794 cpu_idle_e500mc(sbintime_t sbt) in cpu_idle_e500mc() 805 cpu_idle_booke(sbintime_t sbt) in cpu_idle_booke() [all …]
|
H A D | clock.c | 88 sbintime_t first, sbintime_t period); 257 decr_et_start(struct eventtimer *et, sbintime_t first, sbintime_t period) in decr_et_start()
|
/freebsd/sys/amd64/vmm/io/ |
H A D | vpmtmr.c | 53 sbintime_t freq_sbt; 54 sbintime_t baseuptime; 87 sbintime_t now, delta; in vpmtmr_handler()
|
H A D | vhpet.c | 76 sbintime_t freq_sbt; 81 sbintime_t countbase_sbt; /* uptime corresponding to base value */ 89 sbintime_t callout_sbt; /* time when counter==compval */ 98 sbintime_t now); 148 vhpet_counter(struct vhpet *vhpet, sbintime_t *nowptr) in vhpet_counter() 151 sbintime_t now, delta; in vhpet_counter() 281 sbintime_t now; in vhpet_handler() 315 vhpet_stop_timer(struct vhpet *vhpet, int n, sbintime_t now) in vhpet_stop_timer() 336 vhpet_start_timer(struct vhpet *vhpet, int n, uint32_t counter, sbintime_t now) in vhpet_start_timer() 338 sbintime_t delta, precision; in vhpet_start_timer() [all …]
|
H A D | vrtc.c | 81 sbintime_t base_uptime; 149 vrtc_curtime(struct vrtc *vrtc, sbintime_t *basetime) in vrtc_curtime() 151 sbintime_t now, delta; in vrtc_curtime() 401 vrtc_time_update(struct vrtc *vrtc, time_t newtime, sbintime_t newbase) in vrtc_time_update() 477 static sbintime_t 482 static sbintime_t pf[16] = { in vrtc_freq() 523 vrtc_callout_reset(struct vrtc *vrtc, sbintime_t freqsbt) in vrtc_callout_reset() 544 sbintime_t freqsbt, basetime; in vrtc_callout_handler() 580 vrtc_callout_check(struct vrtc *vrtc, sbintime_t freq) in vrtc_callout_check() 632 sbintime_t oldfreq, newfreq, basetime; in vrtc_set_reg_b() [all …]
|
/freebsd/sys/cam/ |
H A D | cam_iosched.c | 112 static sbintime_t bucket_base = BUCKET_BASE; 272 sbintime_t ema; 273 sbintime_t emvar; 274 sbintime_t sd; /* Last computed sd */ 277 sbintime_t bad_latency; /* Latency threshold */ 303 sbintime_t next_steer; /* Time of next steer */ 304 sbintime_t steer_interval; /* How often do we steer? */ 305 sbintime_t lolat; 306 sbintime_t hilat; 343 sbintime_t last_time; /* Last time we ticked */ [all …]
|
H A D | cam_iosched.h | 73 static inline sbintime_t 78 return (sbintime_t)((uint64_t)delta << CAM_IOSCHED_TIME_SHIFT); in cam_iosched_sbintime_t() 81 typedef void (*cam_iosched_latfcn_t)(void *, sbintime_t, struct bio *);
|
/freebsd/sys/dev/nvmf/controller/ |
H A D | nvmft_var.h | 68 sbintime_t create_time; 69 sbintime_t start_busy; 70 sbintime_t busy_total; 88 sbintime_t ka_sbt;
|
/freebsd/sys/dev/wg/ |
H A D | wg_cookie.h | 34 sbintime_t cm_cookie_birthdate; /* sbinuptime */ 45 sbintime_t cc_secret_birthdate; /* sbinuptime */
|
H A D | wg_cookie.c | 48 sbintime_t r_last_time; /* sbinuptime */ 67 static int timer_expired(sbintime_t, uint32_t, uint32_t); 303 timer_expired(sbintime_t timer, uint32_t sec, uint32_t nsec) 305 sbintime_t now = getsbinuptime(); in timer_expired() 397 sbintime_t expiry; in ratelimit_gc() 423 sbintime_t diff, now; in ratelimit_allow()
|
/freebsd/sys/dev/cfi/ |
H A D | cfi_var.h | 66 sbintime_t sc_typical_timeouts[3]; 67 sbintime_t sc_max_timeouts[3];
|