Home
last modified time | relevance | path

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

12345678910

/freebsd-12-stable/sys/powerpc/booke/
Dplatform_bare.c95 u_long ticks; in bare_timebase_freq() local
102 ticks = bootinfo[3] >> 3; in bare_timebase_freq()
105 ticks = bootinfo[5] >> 3; in bare_timebase_freq()
108 ticks = 0; in bare_timebase_freq()
121 ticks = tbase; in bare_timebase_freq()
122 return (ticks); in bare_timebase_freq()
128 ticks = tbase; in bare_timebase_freq()
129 return (ticks); in bare_timebase_freq()
145 ticks = freq / 8; in bare_timebase_freq()
148 if (ticks <= 0) in bare_timebase_freq()
[all …]
/freebsd-12-stable/contrib/sendmail/src/
Dratectrl.c273 unsigned int ticks; local
285 ticks = now / ChtGran;
373 ct = &chBest->ch_Times[ticks % CHTSIZE];
375 if (ct->ct_Ticks != ticks)
377 ct->ct_Ticks = ticks;
390 if (cth->ct_Ticks <= ticks && cth->ct_Ticks >= ticks - CHTSIZE)
507 unsigned int ticks; local
510 ticks = now / ChtGran;
515 ct = &srv_Times[ticks % CHTSIZE];
517 if (ct->ct_Ticks != ticks)
[all …]
/freebsd-12-stable/sys/arm/amlogic/aml8726/
Daml8726_rng.c56 int ticks; member
80 callout_reset(&sc->co, sc->ticks, aml8726_rng_harvest, sc); in aml8726_rng_harvest()
112 sc->ticks = hz / 100; in aml8726_rng_attach()
114 sc->ticks = 1; in aml8726_rng_attach()
117 callout_reset(&sc->co, sc->ticks, aml8726_rng_harvest, sc); in aml8726_rng_attach()
Daml8726_timer.c173 uint32_t ticks; in aml8726_timer_start() local
179 ticks = first_ticks; in aml8726_timer_start()
183 ticks = period_ticks; in aml8726_timer_start()
187 if (ticks == 0) in aml8726_timer_start()
195 CSR_WRITE_4(sc, AML_TIMER_A_REG, ticks); in aml8726_timer_start()
/freebsd-12-stable/sys/kern/
Dkern_clock.c201 tticks = ticks - td->td_blktick; in deadlres_td_on_lock()
227 tticks = ticks - td->td_slptick; in deadlres_td_sleep_q()
384 volatile int ticks; variable
441 global = ticks; in hardclock()
449 } while (!atomic_cmpset_int(&ticks, global, *t)); in hardclock()
513 *t = ticks; in hardclock_sync()
522 unsigned long ticks; in tvtohz() local
560 ticks = 1; in tvtohz()
562 ticks = howmany(sec * 1000000 + (unsigned long)usec, tick) + 1; in tvtohz()
564 ticks = sec * hz in tvtohz()
[all …]
/freebsd-12-stable/tools/tools/netrate/tcpp/
Dtcpp_server.c281 long cp_time_last[CPUSTATES], cp_time_now[CPUSTATES], ticks; in tcpp_server()
324 ticks = 0; in tcpp_server()
328 ticks += cp_time_last[i]; in tcpp_server()
332 (100 * cp_time_last[CP_USER]) / ticks, in tcpp_server()
333 (100 * cp_time_last[CP_NICE]) / ticks, in tcpp_server()
334 (100 * cp_time_last[CP_SYS]) / ticks, in tcpp_server()
335 (100 * cp_time_last[CP_INTR]) / ticks, in tcpp_server()
336 (100 * cp_time_last[CP_IDLE]) / ticks); in tcpp_server()
Dtcpp_client.c271 long ticks; in tcpp_client() local
356 ticks = 0; in tcpp_client()
359 ticks += cp_time_finish[i]; in tcpp_client()
361 printf("%0.02f,", (float)(100 * cp_time_finish[CP_USER]) / ticks); in tcpp_client()
362 printf("%0.02f,", (float)(100 * cp_time_finish[CP_NICE]) / ticks); in tcpp_client()
363 printf("%0.02f,", (float)(100 * cp_time_finish[CP_SYS]) / ticks); in tcpp_client()
364 printf("%0.02f,", (float)(100 * cp_time_finish[CP_INTR]) / ticks); in tcpp_client()
365 printf("%0.02f", (float)(100 * cp_time_finish[CP_IDLE]) / ticks); in tcpp_client()
/freebsd-12-stable/usr.sbin/watchdogd/
Dwatchdogd.c212 int ticks; in parse_timeout_to_pow2ns() local
226 ticks = tvtohz(&tv); in parse_timeout_to_pow2ns()
233 myoptarg, (intmax_t)ts.tv_sec, ts.tv_nsec, ticks); in parse_timeout_to_pow2ns()
235 if (ticks <= 0) { in parse_timeout_to_pow2ns()
588 register unsigned long ticks; in tvtohz() local
638 ticks = 1; in tvtohz()
640 ticks = (sec * 1000000 + (unsigned long)usec + (tick - 1)) in tvtohz()
643 ticks = sec * hz in tvtohz()
646 ticks = LONG_MAX; in tvtohz()
647 if (ticks > INT_MAX) in tvtohz()
[all …]
/freebsd-12-stable/sys/powerpc/mpc85xx/
Dplatform_mpc85xx.c225 u_long ticks; in mpc85xx_timebase_freq() local
232 ticks = bootinfo[3] >> 3; in mpc85xx_timebase_freq()
235 ticks = bootinfo[5] >> 3; in mpc85xx_timebase_freq()
238 ticks = 0; in mpc85xx_timebase_freq()
251 ticks = tbase; in mpc85xx_timebase_freq()
252 return (ticks); in mpc85xx_timebase_freq()
258 ticks = tbase; in mpc85xx_timebase_freq()
259 return (ticks); in mpc85xx_timebase_freq()
278 ticks = freq / 32; in mpc85xx_timebase_freq()
280 ticks = freq / 8; in mpc85xx_timebase_freq()
[all …]
/freebsd-12-stable/usr.bin/time/
Dtime.c158 u_long ticks; in main() local
160 ticks = hz * (ru.ru_utime.tv_sec + ru.ru_stime.tv_sec) + in main()
167 if (ticks == 0) in main()
168 ticks = 1; in main()
173 ru.ru_ixrss / ticks, "average shared memory size"); in main()
175 ru.ru_idrss / ticks, "average unshared data size"); in main()
177 ru.ru_isrss / ticks, "average unshared stack size"); in main()
/freebsd-12-stable/contrib/libevent/
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-12-stable/contrib/ntp/sntp/libevent/
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-12-stable/sys/net80211/
Dieee80211_ht.h110 tap->txa_lastsample = ticks; in ieee80211_txampdu_init_pps()
131 while (ticks - tap->txa_lastsample >= hz) { in ieee80211_txampdu_count_packet()
136 tap->txa_lastsample = ticks; in ieee80211_txampdu_count_packet()
153 while (ticks - tap->txa_lastsample >= hz) { in ieee80211_txampdu_getpps()
157 tap->txa_lastsample = ticks; in ieee80211_txampdu_getpps()
Dieee80211_scan_sw.c292 ieee80211_time_before(ticks, ic->ic_lastscan + vap->iv_scanvalid)) { in ieee80211_swscan_check_scan()
305 ticks); in ieee80211_swscan_check_scan()
357 ticks, duration); in ieee80211_swscan_bg_scan()
666 ss_priv->ss_scanend = ticks + ss_priv->ss_duration; in scan_start()
712 ieee80211_time_after(ticks + ss->ss_mindwell, ss_priv->ss_scanend)) { in scan_curchan_task()
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()
849 ieee80211_time_before(ticks + ss->ss_mindwell, ss_priv->ss_scanend)) { in scan_end()
[all …]
/freebsd-12-stable/sys/arm/freescale/imx/
Dimx_epit.c171 uint64_t curcnt, endcnt, startcnt, ticks; in epit_do_delay() local
181 ticks = 1 + ((uint64_t)usec * sc->clkfreq) / 1000000; in epit_do_delay()
183 endcnt = startcnt + ticks; in epit_do_delay()
225 uint32_t ticks; in epit_et_start() local
238 ticks = ((uint32_t)et->et_frequency * period) >> 32; in epit_et_start()
241 ticks = ((uint32_t)et->et_frequency * first) >> 32; in epit_et_start()
247 WR4(sc, EPIT_LR, ticks); in epit_et_start()
Dimx_gpt.c292 uint32_t ticks; in imx_gpt_timer_start() local
310 ticks = ((uint32_t)et->et_frequency * first) >> 32; in imx_gpt_timer_start()
314 WRITE4(sc, IMX_GPT_OCR3, READ4(sc, IMX_GPT_CNT) + ticks); in imx_gpt_timer_start()
407 uint64_t curcnt, endcnt, startcnt, ticks; in imx_gpt_do_delay() local
417 ticks = 1 + ((uint64_t)usec * sc->clkfreq) / 1000000; in imx_gpt_do_delay()
419 endcnt = startcnt + ticks; in imx_gpt_do_delay()
/freebsd-12-stable/usr.sbin/bsnmpd/modules/snmp_hostres/
DBEGEMOT-HOSTRES-MIB.txt69 "The maximum number of ticks the storage table is cached."
78 "The maximum number of ticks the FS table is cached."
87 "The maximum number of ticks the disk storage table is cached."
96 "The maximum number of ticks the network table is cached."
105 "The maximum number of ticks the hrSWInstalledTable is cached."
114 "The maximum number of ticks the hrSWRunTable and
/freebsd-12-stable/sys/xen/
Dhypervisor.h25 extern uint64_t get_system_time(int ticks);
84 evtchn_port_t *ports, unsigned int nr_ports, int ticks) in HYPERVISOR_poll() argument
89 .timeout = get_system_time(ticks) in HYPERVISOR_poll()
/freebsd-12-stable/sys/netinet/cc/
Dcc_cubic.c165 cubic_data->t_last_cong = ticks; in cubic_ack_received()
170 ticks - cubic_data->t_last_cong) < 0) { in cubic_ack_received()
175 cubic_data->t_last_cong = ticks - INT_MAX; in cubic_ack_received()
247 cubic_data->t_last_cong = ticks; in cubic_after_idle()
268 cubic_data->t_last_cong = ticks; in cubic_cb_init()
295 cubic_data->t_last_cong = ticks; in cubic_cong_signal()
306 cubic_data->t_last_cong = ticks; in cubic_cong_signal()
/freebsd-12-stable/sys/tests/epoch/
Depoch_test.c72 startticks = ticks; in epoch_testcase1()
88 eti->threadid, ticks - startticks, iterations); in epoch_testcase1()
98 startticks = ticks; in epoch_testcase2()
112 eti->threadid, ticks - startticks, iterations); in epoch_testcase2()
/freebsd-12-stable/sys/vm/
Dvm_swapout.c376 if ((ticks > (lastrun + hz)) || (ticks < lastrun)) { in vm_req_vmdaemon()
378 lastrun = ticks; in vm_req_vmdaemon()
657 last_swapin = ticks; in faultin()
662 p->p_swtick = ticks; in faultin()
709 swtime = (ticks - p->p_swtick) / hz; in swapper_selector()
717 slptime = (ticks - td->td_slptick) / hz; in swapper_selector()
757 (u_int)(ticks - last_swapin) < SWAPIN_INTERVAL); in swapper_wkilled_only()
852 slptime = (ticks - td->td_slptick) / hz; in swapout_procs()
964 p->p_swtick = ticks; in swapout()
/freebsd-12-stable/usr.sbin/ppp/
Dtimer.c83 u_long ticks = 0; in timer_Start() local
104 ticks = RESTVAL(itimer) - TimerList->rest; in timer_Start()
108 if (ticks + t->rest >= tp->load) in timer_Start()
110 ticks += t->rest; in timer_Start()
115 tp->rest = tp->load - ticks; in timer_Start()
/freebsd-12-stable/contrib/ntp/libntp/
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-12-stable/sys/powerpc/powermac/
Dplatform_powermac.c223 int32_t ticks = -1; in powermac_timebase_freq() local
227 OF_getprop(phandle, "timebase-frequency", &ticks, sizeof(ticks)); in powermac_timebase_freq()
229 if (ticks <= 0) in powermac_timebase_freq()
232 return (ticks); in powermac_timebase_freq()
/freebsd-12-stable/usr.sbin/pmc/
Dcmd_pmc_stat.c246 uint64_t ticks, value; in pmc_stat_print_stat() local
251 ticks = hz * (ru->ru_utime.tv_sec + ru->ru_stime.tv_sec) + in pmc_stat_print_stat()
259 if (ticks == 0) in pmc_stat_print_stat()
260 ticks = 1; in pmc_stat_print_stat()
262 ru->ru_minflt, "page faults", ((double)ru->ru_minflt / (double)ticks) / hz); in pmc_stat_print_stat()
264 ru->ru_nvcsw, "voluntary csw", ((double)ru->ru_nvcsw / (double)ticks) / hz); in pmc_stat_print_stat()
266 ru->ru_nivcsw, "involuntary csw", ((double)ru->ru_nivcsw / (double)ticks) / hz); in pmc_stat_print_stat()

12345678910