| /freebsd-14.2/sys/powerpc/booke/ |
| H A D | platform_bare.c | 93 u_long ticks; in bare_timebase_freq() local 100 ticks = bootinfo[3] >> 3; in bare_timebase_freq() 103 ticks = bootinfo[5] >> 3; in bare_timebase_freq() 106 ticks = 0; in bare_timebase_freq() 119 ticks = tbase; in bare_timebase_freq() 120 return (ticks); in bare_timebase_freq() 126 ticks = tbase; in bare_timebase_freq() 127 return (ticks); in bare_timebase_freq() 143 ticks = freq / 8; in bare_timebase_freq() 146 if (ticks <= 0) in bare_timebase_freq() [all …]
|
| /freebsd-14.2/contrib/sendmail/src/ |
| H A D | ratectrl.c | 273 unsigned int ticks; local 285 ticks = now / ChtGran; 375 if (ct->ct_Ticks != ticks) 377 ct->ct_Ticks = ticks; 390 if (cth->ct_Ticks <= ticks && cth->ct_Ticks >= ticks - CHTSIZE) 506 unsigned int ticks; local 509 ticks = now / ChtGran; 518 ct->ct_Ticks = ticks; 529 if (ct->ct_Ticks <= ticks && ct->ct_Ticks >= ticks - CHTSIZE) 548 unsigned int ticks; local [all …]
|
| /freebsd-14.2/sys/kern/ |
| H A D | subr_prof.c | 114 addupc_intr(struct thread *td, uintfptr_t pc, u_int ticks) in addupc_intr() argument 118 if (ticks == 0) in addupc_intr() 129 td->td_profil_ticks = ticks; in addupc_intr() 139 addupc_task(struct thread *td, uintfptr_t pc, u_int ticks) in addupc_task() argument 148 if (ticks == 0) in addupc_task() 169 v += ticks; in addupc_task()
|
| H A D | subr_smr.c | 229 t = ticks; in smr_lazy_advance() 234 d = t - s_wr.ticks; in smr_lazy_advance() 240 s_wr.ticks = t; in smr_lazy_advance() 596 s->s_wr.ticks = ticks; in smr_create()
|
| /freebsd-14.2/tools/tools/netrate/tcpp/ |
| H A D | tcpp_server.c | 279 long cp_time_last[CPUSTATES], cp_time_now[CPUSTATES], ticks; in tcpp_server() 322 ticks = 0; in tcpp_server() 326 ticks += cp_time_last[i]; in tcpp_server() 330 (100 * cp_time_last[CP_USER]) / ticks, in tcpp_server() 331 (100 * cp_time_last[CP_NICE]) / ticks, in tcpp_server() 332 (100 * cp_time_last[CP_SYS]) / ticks, in tcpp_server() 333 (100 * cp_time_last[CP_INTR]) / ticks, in tcpp_server() 334 (100 * cp_time_last[CP_IDLE]) / ticks); in tcpp_server()
|
| H A D | tcpp_client.c | 269 long ticks; in tcpp_client() local 354 ticks = 0; in tcpp_client() 357 ticks += cp_time_finish[i]; in tcpp_client() 359 printf("%0.02f,", (float)(100 * cp_time_finish[CP_USER]) / ticks); in tcpp_client() 360 printf("%0.02f,", (float)(100 * cp_time_finish[CP_NICE]) / ticks); in tcpp_client() 361 printf("%0.02f,", (float)(100 * cp_time_finish[CP_SYS]) / ticks); in tcpp_client() 362 printf("%0.02f,", (float)(100 * cp_time_finish[CP_INTR]) / ticks); in tcpp_client() 363 printf("%0.02f", (float)(100 * cp_time_finish[CP_IDLE]) / ticks); in tcpp_client()
|
| /freebsd-14.2/sys/powerpc/mpc85xx/ |
| H A D | platform_mpc85xx.c | 224 u_long ticks; in mpc85xx_timebase_freq() local 231 ticks = bootinfo[3] >> 3; in mpc85xx_timebase_freq() 237 ticks = 0; in mpc85xx_timebase_freq() 250 ticks = tbase; in mpc85xx_timebase_freq() 251 return (ticks); in mpc85xx_timebase_freq() 257 ticks = tbase; in mpc85xx_timebase_freq() 258 return (ticks); in mpc85xx_timebase_freq() 277 ticks = freq / 32; in mpc85xx_timebase_freq() 279 ticks = freq / 8; in mpc85xx_timebase_freq() 282 if (ticks <= 0) in mpc85xx_timebase_freq() [all …]
|
| /freebsd-14.2/usr.sbin/watchdogd/ |
| H A D | watchdogd.c | 210 int ticks; in parse_timeout_to_pow2ns() local 224 ticks = tvtohz(&tv); in parse_timeout_to_pow2ns() 231 myoptarg, (intmax_t)ts.tv_sec, ts.tv_nsec, ticks); in parse_timeout_to_pow2ns() 233 if (ticks <= 0) { in parse_timeout_to_pow2ns() 586 register unsigned long ticks; in tvtohz() local 636 ticks = 1; in tvtohz() 641 ticks = sec * hz in tvtohz() 644 ticks = LONG_MAX; in tvtohz() 645 if (ticks > INT_MAX) in tvtohz() 646 ticks = INT_MAX; in tvtohz() [all …]
|
| /freebsd-14.2/usr.bin/time/ |
| H A D | time.c | 156 u_long ticks; in main() local 158 ticks = hz * (ru.ru_utime.tv_sec + ru.ru_stime.tv_sec) + in main() 165 if (ticks == 0) in main() 166 ticks = 1; in main() 171 ru.ru_ixrss / ticks, "average shared memory size"); in main() 173 ru.ru_idrss / ticks, "average unshared data size"); in main() 175 ru.ru_isrss / ticks, "average unshared stack size"); in main()
|
| /freebsd-14.2/sys/net80211/ |
| H A D | ieee80211_ht.h | 108 tap->txa_lastsample = ticks; in ieee80211_txampdu_init_pps() 129 while (ticks - tap->txa_lastsample >= hz) { in ieee80211_txampdu_count_packet() 134 tap->txa_lastsample = ticks; in ieee80211_txampdu_count_packet() 151 while (ticks - tap->txa_lastsample >= hz) { in ieee80211_txampdu_getpps() 155 tap->txa_lastsample = ticks; in ieee80211_txampdu_getpps()
|
| H A D | ieee80211_scan_sw.c | 289 ieee80211_time_before(ticks, ic->ic_lastscan + vap->iv_scanvalid)) { in ieee80211_swscan_check_scan() 302 ticks); in ieee80211_swscan_check_scan() 356 ticks, duration); in ieee80211_swscan_bg_scan() 666 ss_priv->ss_scanend = ticks + ss_priv->ss_duration; in scan_start() 724 if (ieee80211_time_after(ticks + ss->ss_maxdwell, ss_priv->ss_scanend)) in scan_curchan_task() 725 maxdwell = ss_priv->ss_scanend - ticks; in scan_curchan_task() 770 ss_priv->ss_chanmindwell = ticks + ss->ss_mindwell; in scan_curchan_task() 825 ic->ic_lastscan = ticks; in scan_end() 854 ticks, ss->ss_mindwell, ss_priv->ss_scanend); in scan_end() 875 ticks, ss->ss_mindwell, ss_priv->ss_scanend); in scan_end() [all …]
|
| /freebsd-14.2/contrib/ntp/sntp/libevent/ |
| H A D | evutil_time.c | 505 DWORD ticks = GetTickCount(); in evutil_GetTickCount_() local 506 if (ticks < base->last_tick_count) { in evutil_GetTickCount_() 509 base->last_tick_count = ticks; in evutil_GetTickCount_() 510 return ticks + base->adjust_tick_count; in evutil_GetTickCount_() 555 ev_uint64_t ticks = evutil_GetTickCount_(base); in evutil_gettime_monotonic_() local 567 ticks_elapsed = ticks - base->first_tick; in evutil_gettime_monotonic_() 587 tp->tv_sec = (time_t) (ticks / 1000); in evutil_gettime_monotonic_() 588 tp->tv_usec = (ticks % 1000) * 1000; in evutil_gettime_monotonic_()
|
| /freebsd-14.2/contrib/libevent/ |
| H A D | evutil_time.c | 505 DWORD ticks = GetTickCount(); in evutil_GetTickCount_() local 506 if (ticks < base->last_tick_count) { in evutil_GetTickCount_() 509 base->last_tick_count = ticks; in evutil_GetTickCount_() 510 return ticks + base->adjust_tick_count; in evutil_GetTickCount_() 555 ev_uint64_t ticks = evutil_GetTickCount_(base); in evutil_gettime_monotonic_() local 567 ticks_elapsed = ticks - base->first_tick; in evutil_gettime_monotonic_() 587 tp->tv_sec = (time_t) (ticks / 1000); in evutil_gettime_monotonic_() 588 tp->tv_usec = (ticks % 1000) * 1000; in evutil_gettime_monotonic_()
|
| /freebsd-14.2/usr.sbin/bsnmpd/modules/snmp_hostres/ |
| H A D | BEGEMOT-HOSTRES-MIB.txt | 67 "The maximum number of ticks the storage table is cached." 76 "The maximum number of ticks the FS table is cached." 85 "The maximum number of ticks the disk storage table is cached." 94 "The maximum number of ticks the network table is cached." 103 "The maximum number of ticks the hrSWInstalledTable is cached." 112 "The maximum number of ticks the hrSWRunTable and
|
| /freebsd-14.2/sys/arm/freescale/imx/ |
| H A D | imx_epit.c | 169 uint64_t curcnt, endcnt, startcnt, ticks; in epit_do_delay() local 179 ticks = 1 + ((uint64_t)usec * sc->clkfreq) / 1000000; in epit_do_delay() 181 endcnt = startcnt + ticks; in epit_do_delay() 223 uint32_t ticks; in epit_et_start() local 236 ticks = ((uint32_t)et->et_frequency * period) >> 32; in epit_et_start() 239 ticks = ((uint32_t)et->et_frequency * first) >> 32; in epit_et_start() 245 WR4(sc, EPIT_LR, ticks); in epit_et_start()
|
| H A D | imx_gpt.c | 289 uint32_t ticks; in imx_gpt_timer_start() local 307 ticks = ((uint32_t)et->et_frequency * first) >> 32; in imx_gpt_timer_start() 311 WRITE4(sc, IMX_GPT_OCR3, READ4(sc, IMX_GPT_CNT) + ticks); in imx_gpt_timer_start() 401 uint64_t curcnt, endcnt, startcnt, ticks; in imx_gpt_do_delay() local 411 ticks = 1 + ((uint64_t)usec * sc->clkfreq) / 1000000; in imx_gpt_do_delay() 413 endcnt = startcnt + ticks; in imx_gpt_do_delay()
|
| /freebsd-14.2/sys/vm/ |
| H A D | vm_swapout.c | 363 if ((ticks > (lastrun + hz)) || (ticks < lastrun)) { in vm_req_vmdaemon() 365 lastrun = ticks; in vm_req_vmdaemon() 640 last_swapin = ticks; in faultin() 645 p->p_swtick = ticks; in faultin() 692 swtime = (ticks - p->p_swtick) / hz; in swapper_selector() 700 slptime = (ticks - td->td_slptick) / hz; in swapper_selector() 739 (u_int)(ticks - last_swapin) < SWAPIN_INTERVAL); in swapper_wkilled_only() 834 slptime = (ticks - td->td_slptick) / hz; in swapout_procs() 947 p->p_swtick = ticks; in swapout()
|
| /freebsd-14.2/sys/tests/epoch/ |
| H A D | epoch_test.c | 70 startticks = ticks; in epoch_testcase1() 86 eti->threadid, ticks - startticks, iterations); in epoch_testcase1() 96 startticks = ticks; in epoch_testcase2() 110 eti->threadid, ticks - startticks, iterations); in epoch_testcase2()
|
| /freebsd-14.2/sys/netinet/ |
| H A D | tcp_timer.c | 364 if (ticks - tp->t_rcvtime <= TP_MAXIDLE(tp)) in tcp_timer_2msl() 401 idletime = ticks - tp->t_rcvtime; in tcp_timer_keep() 420 if (ticks - tp->t_rcvtime >= TP_KEEPIDLE(tp) + TP_MAXIDLE(tp)) in tcp_timer_keep() 479 if (TSTMP_GT(TP_MAXUNACKTIME(tp) + tp->t_acktime, (u_int)ticks)) in tcp_maxunacktime_check() 516 (ticks - tp->t_rcvtime >= tcp_maxpersistidle || in tcp_timer_persist() 517 ticks - tp->t_rcvtime >= TCP_REXMTVAL(tp) * tcp_totbackoff))) { in tcp_timer_persist() 528 (ticks - tp->t_rcvtime) >= TCPTV_PERSMAX) { in tcp_timer_persist() 618 tp->t_badrxtwin = ticks + (tp->t_srtt >> (TCP_RTT_SHIFT + 1)); in tcp_timer_rexmt() 813 tcp_bblog_timer(struct tcpcb *tp, tt_which which, tt_what what, uint32_t ticks) in tcp_bblog_timer() argument 829 lgb->tlb_flex2 = ticks; in tcp_bblog_timer() [all …]
|
| /freebsd-14.2/usr.sbin/ppp/ |
| H A D | timer.c | 81 u_long ticks = 0; in timer_Start() local 102 ticks = RESTVAL(itimer) - TimerList->rest; in timer_Start() 106 if (ticks + t->rest >= tp->load) in timer_Start() 108 ticks += t->rest; in timer_Start() 113 tp->rest = tp->load - ticks; in timer_Start()
|
| /freebsd-14.2/contrib/ntp/libntp/ |
| H A D | systime.c | 142 long ticks; in get_ostime() local 162 ticks = (long)((tsp->tv_nsec * 1e-9) / sys_tick); in get_ostime() 163 tsp->tv_nsec = (long)(ticks * 1e9 * sys_tick); in get_ostime() 294 long ticks; in adj_systime() local 331 ticks = (long)(dtemp / quant + .5); in adj_systime() 332 adjtv.tv_usec = (long)(ticks * quant * 1.e6 + .5); in adj_systime()
|
| /freebsd-14.2/sys/tests/callout_test/ |
| H A D | callout_test.c | 148 tk_s = ticks; in execute_the_co_test() 151 tk_e = ticks; in execute_the_co_test() 169 tk_s = ticks; in execute_the_co_test() 172 tk_e = ticks; in execute_the_co_test()
|
| /freebsd-14.2/sys/compat/linuxkpi/common/include/linux/ |
| H A D | jiffies.h | 39 #define jiffies ticks 40 #define jiffies_64 ticks 153 return ((uint64_t)(unsigned int)ticks); in get_jiffies_64()
|
| /freebsd-14.2/usr.sbin/pmc/ |
| H A D | cmd_pmc_stat.c | 251 uint64_t ticks, value; in pmc_stat_print_stat() local 256 ticks = hz * (ru->ru_utime.tv_sec + ru->ru_stime.tv_sec) + in pmc_stat_print_stat() 264 if (ticks == 0) in pmc_stat_print_stat() 265 ticks = 1; in pmc_stat_print_stat() 267 ru->ru_minflt, "page faults", ((double)ru->ru_minflt / (double)ticks) / hz); in pmc_stat_print_stat() 269 ru->ru_nvcsw, "voluntary csw", ((double)ru->ru_nvcsw / (double)ticks) / hz); in pmc_stat_print_stat() 271 ru->ru_nivcsw, "involuntary csw", ((double)ru->ru_nivcsw / (double)ticks) / hz); in pmc_stat_print_stat()
|
| /freebsd-14.2/sys/dev/ioat/ |
| H A D | ioat_test.c | 477 start = ticks; in ioat_dma_test() 483 else if (test->duration != 0 && time_after(ticks, end)) { in ioat_dma_test() 492 ticks - start, ticks - end, (ticks - start) / hz); in ioat_dma_test() 500 ticks - start, ticks - end, (ticks - start) / hz); in ioat_dma_test()
|