Home
last modified time | relevance | path

Searched refs:ticks (Results 1 – 25 of 238) sorted by relevance

12345678910

/freebsd/sys/powerpc/booke/
H A Dplatform_bare.c92 u_long ticks; in bare_timebase_freq() local
99 ticks = bootinfo[3] >> 3; in bare_timebase_freq()
102 ticks = bootinfo[5] >> 3; in bare_timebase_freq()
105 ticks = 0; in bare_timebase_freq()
118 ticks = tbase; in bare_timebase_freq()
119 return (ticks); in bare_timebase_freq()
125 ticks = tbase; in bare_timebase_freq()
126 return (ticks); in bare_timebase_freq()
142 ticks = freq / 8; in bare_timebase_freq()
145 if (ticks <= 0) in bare_timebase_freq()
[all …]
/freebsd/usr.sbin/bhyve/
H A Drtc_pl031.c119 uint32_t ticks; in rtc_pl031_next_match_ticks() local
121 ticks = sc->mr - sc->dr; in rtc_pl031_next_match_ticks()
122 if (ticks == 0) in rtc_pl031_next_match_ticks()
125 return (ticks); in rtc_pl031_next_match_ticks()
131 uint64_t ticks; in rtc_pl031_next_timer_msecs() local
134 return (MIN(ticks * 1000, INT_MAX)); in rtc_pl031_next_timer_msecs()
147 time_t now, ticks; in rtc_pl031_tick() local
150 ticks = now - sc->last_tick; in rtc_pl031_tick()
151 match = ticks >= 0 && in rtc_pl031_tick()
153 sc->dr += ticks; in rtc_pl031_tick()
[all …]
/freebsd/contrib/sendmail/src/
H A Dratectrl.c273 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/sys/kern/
H A Dsubr_prof.c111 addupc_intr(struct thread *td, uintfptr_t pc, u_int ticks) in addupc_intr() argument
115 if (ticks == 0) in addupc_intr()
126 td->td_profil_ticks = ticks; in addupc_intr()
136 addupc_task(struct thread *td, uintfptr_t pc, u_int ticks) in addupc_task() argument
145 if (ticks == 0) in addupc_task()
166 v += ticks; in addupc_task()
H A Dsubr_smr.c228 t = ticks; in smr_lazy_advance()
233 d = t - s_wr.ticks; in smr_lazy_advance()
239 s_wr.ticks = t; in smr_lazy_advance()
595 s->s_wr.ticks = ticks; in smr_create()
/freebsd/tools/tools/netrate/tcpp/
H A Dtcpp_server.c279 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 Dtcpp_client.c269 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/usr.sbin/watchdogd/
H A Dwatchdogd.c210 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/sys/powerpc/mpc85xx/
H A Dplatform_mpc85xx.c224 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/usr.bin/time/
H A Dtime.c144 u_long ticks; in main() local
146 ticks = hz * (ru.ru_utime.tv_sec + ru.ru_stime.tv_sec) + in main()
153 if (ticks == 0) in main()
154 ticks = 1; in main()
159 ru.ru_ixrss / ticks, "average shared memory size"); in main()
161 ru.ru_idrss / ticks, "average unshared data size"); in main()
163 ru.ru_isrss / ticks, "average unshared stack size"); in main()
/freebsd/sys/net80211/
H A Dieee80211_ht.h108 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 Dieee80211_scan_sw.c289 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/contrib/ntp/sntp/libevent/
H A Devutil_time.c505 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/contrib/libevent/
H A Devutil_time.c505 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/usr.sbin/bsnmpd/modules/snmp_hostres/
H A DBEGEMOT-HOSTRES-MIB.txt67 "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/sys/arm/freescale/imx/
H A Dimx_epit.c169 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 Dimx_gpt.c288 uint32_t ticks; in imx_gpt_timer_start() local
306 ticks = ((uint32_t)et->et_frequency * first) >> 32; in imx_gpt_timer_start()
310 WRITE4(sc, IMX_GPT_OCR3, READ4(sc, IMX_GPT_CNT) + ticks); in imx_gpt_timer_start()
400 uint64_t curcnt, endcnt, startcnt, ticks; in imx_gpt_do_delay() local
410 ticks = 1 + ((uint64_t)usec * sc->clkfreq) / 1000000; in imx_gpt_do_delay()
412 endcnt = startcnt + ticks; in imx_gpt_do_delay()
/freebsd/sys/vm/
H A Dvm_swapout.c361 if ((ticks > (lastrun + hz)) || (ticks < lastrun)) { in vm_req_vmdaemon()
363 lastrun = ticks; in vm_req_vmdaemon()
643 last_swapin = ticks; in faultin()
648 p->p_swtick = ticks; in faultin()
695 swtime = (ticks - p->p_swtick) / hz; in swapper_selector()
703 slptime = (ticks - td->td_slptick) / hz; in swapper_selector()
742 (u_int)(ticks - last_swapin) < SWAPIN_INTERVAL); in swapper_wkilled_only()
837 slptime = (ticks - td->td_slptick) / hz; in swapout_procs()
950 p->p_swtick = ticks; in swapout()
/freebsd/sys/tests/epoch/
H A Depoch_test.c69 startticks = ticks; in epoch_testcase1()
85 eti->threadid, ticks - startticks, iterations); in epoch_testcase1()
95 startticks = ticks; in epoch_testcase2()
109 eti->threadid, ticks - startticks, iterations); in epoch_testcase2()
/freebsd/sys/netinet/
H A Dtcp_timer.c362 if (ticks - tp->t_rcvtime <= TP_MAXIDLE(tp)) in tcp_timer_2msl()
399 idletime = ticks - tp->t_rcvtime; in tcp_timer_keep()
418 if (ticks - tp->t_rcvtime >= TP_KEEPIDLE(tp) + TP_MAXIDLE(tp)) in tcp_timer_keep()
477 if (TSTMP_GT(TP_MAXUNACKTIME(tp) + tp->t_acktime, (u_int)ticks)) in tcp_maxunacktime_check()
514 (ticks - tp->t_rcvtime >= tcp_maxpersistidle || in tcp_timer_persist()
515 ticks - tp->t_rcvtime >= TCP_REXMTVAL(tp) * tcp_totbackoff))) { in tcp_timer_persist()
526 (ticks - tp->t_rcvtime) >= TCPTV_PERSMAX) { in tcp_timer_persist()
615 tp->t_badrxtwin = ticks + (tp->t_srtt >> (TCP_RTT_SHIFT + 1)); in tcp_timer_rexmt()
823 tcp_bblog_timer(struct tcpcb *tp, tt_which which, tt_what what, uint32_t ticks) in tcp_bblog_timer() argument
839 lgb->tlb_flex2 = ticks; in tcp_bblog_timer()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/mfd/
H A Dst,stmpe.yaml56 0 = 36 clock ticks
57 1 = 44 clock ticks
58 2 = 56 clock ticks
59 3 = 64 clock ticks
60 4 = 80 clock ticks - recommended
61 5 = 96 clock ticks
62 6 = 124 clock ticks
/freebsd/usr.sbin/ppp/
H A Dtimer.c81 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/contrib/ntp/libntp/
H A Dsystime.c143 long ticks; in get_ostime() local
163 ticks = (long)((tsp->tv_nsec * 1e-9) / sys_tick); in get_ostime()
164 tsp->tv_nsec = (long)(ticks * 1e9 * sys_tick); in get_ostime()
295 long ticks; in adj_systime() local
332 ticks = (long)(dtemp / quant + .5); in adj_systime()
333 adjtv.tv_usec = (long)(ticks * quant * 1.e6 + .5); in adj_systime()
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Djiffies.h39 #define jiffies ticks
40 #define jiffies_64 ticks
152 return ((uint64_t)(unsigned int)ticks); in get_jiffies_64()
/freebsd/usr.sbin/pmc/
H A Dcmd_pmc_stat.c250 uint64_t ticks, value; in pmc_stat_print_stat() local
255 ticks = hz * (ru->ru_utime.tv_sec + ru->ru_stime.tv_sec) + in pmc_stat_print_stat()
263 if (ticks == 0) in pmc_stat_print_stat()
264 ticks = 1; in pmc_stat_print_stat()
266 ru->ru_minflt, "page faults", ((double)ru->ru_minflt / (double)ticks) / hz); in pmc_stat_print_stat()
268 ru->ru_nvcsw, "voluntary csw", ((double)ru->ru_nvcsw / (double)ticks) / hz); in pmc_stat_print_stat()
270 ru->ru_nivcsw, "involuntary csw", ((double)ru->ru_nivcsw / (double)ticks) / hz); in pmc_stat_print_stat()

12345678910