| /NextBSD/sys/powerpc/booke/ |
| HD | 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 …]
|
| /NextBSD/sys/powerpc/mpc85xx/ |
| HD | platform_mpc85xx.c | 218 u_long ticks; in mpc85xx_timebase_freq() local 225 ticks = bootinfo[3] >> 3; in mpc85xx_timebase_freq() 228 ticks = bootinfo[5] >> 3; in mpc85xx_timebase_freq() 231 ticks = 0; in mpc85xx_timebase_freq() 244 ticks = tbase; in mpc85xx_timebase_freq() 245 return (ticks); in mpc85xx_timebase_freq() 251 ticks = tbase; in mpc85xx_timebase_freq() 252 return (ticks); in mpc85xx_timebase_freq() 269 ticks = freq / 32; in mpc85xx_timebase_freq() 271 ticks = freq / 8; in mpc85xx_timebase_freq() [all …]
|
| /NextBSD/sys/kern/ |
| HD | kern_clock.c | 228 tticks = ticks - td->td_blktick; in deadlkres() 254 tticks = ticks - td->td_slptick; in deadlkres() 380 volatile int ticks; variable 417 ticks = INT_MAX - (hz * 10 * 60); 472 atomic_add_int(&ticks, 1); in hardclock() 511 global = ticks; in hardclock_cnt() 519 } while (!atomic_cmpset_int(&ticks, global, *t)); in hardclock_cnt() 580 *t = ticks; in hardclock_sync() 590 register unsigned long ticks; local 628 ticks = 1; [all …]
|
| /NextBSD/sys/arm/amlogic/aml8726/ |
| HD | aml8726_rng.c | 57 int ticks; member 82 callout_reset(&sc->co, sc->ticks, aml8726_rng_harvest, sc); in aml8726_rng_harvest() 114 sc->ticks = hz / 100; in aml8726_rng_attach() 116 sc->ticks = 1; in aml8726_rng_attach() 119 callout_reset(&sc->co, sc->ticks, aml8726_rng_harvest, sc); in aml8726_rng_attach()
|
| HD | aml8726_timer.c | 174 uint32_t ticks; in aml8726_timer_start() local 180 ticks = first_ticks; in aml8726_timer_start() 184 ticks = period_ticks; in aml8726_timer_start() 188 if (ticks == 0) in aml8726_timer_start() 196 CSR_WRITE_4(sc, AML_TIMER_A_REG, ticks); in aml8726_timer_start()
|
| /NextBSD/sys/arm/freescale/imx/ |
| HD | imx_gpt.c | 272 uint32_t ticks; in imx_gpt_timer_start() local 284 ticks = ((uint32_t)et->et_frequency * first) >> 32; in imx_gpt_timer_start() 288 WRITE4(sc, IMX_GPT_OCR3, READ4(sc, IMX_GPT_CNT) + ticks); in imx_gpt_timer_start() 389 uint64_t curcnt, endcnt, startcnt, ticks; in DELAY() local 394 for (ticks = 0; ticks < imx_gpt_delay_count; ++ticks) in DELAY() 407 ticks = 1 + ((uint64_t)usec * imx_gpt_sc->clkfreq) / 1000000; in DELAY() 409 endcnt = startcnt + ticks; in DELAY()
|
| /NextBSD/tools/tools/netrate/tcpp/ |
| HD | tcpp_server.c | 281 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()
|
| HD | tcpp_client.c | 281 long ticks; in tcpp_client() local 366 ticks = 0; in tcpp_client() 369 ticks += cp_time_finish[i]; in tcpp_client() 371 printf("%0.02f,", (float)(100 * cp_time_finish[CP_USER]) / ticks); in tcpp_client() 372 printf("%0.02f,", (float)(100 * cp_time_finish[CP_NICE]) / ticks); in tcpp_client() 373 printf("%0.02f,", (float)(100 * cp_time_finish[CP_SYS]) / ticks); in tcpp_client() 374 printf("%0.02f,", (float)(100 * cp_time_finish[CP_INTR]) / ticks); in tcpp_client() 375 printf("%0.02f", (float)(100 * cp_time_finish[CP_IDLE]) / ticks); in tcpp_client()
|
| /NextBSD/sys/compat/mach/ |
| HD | mach_clock.c | 69 int ticks; in clock_sleep() local 83 ticks = tts.tv_sec * hz; in clock_sleep() 84 ticks += (tts.tv_nsec * hz) / 100000000L; in clock_sleep() 86 if (ticks <= 0) in clock_sleep() 91 thread->timeout = ticks; in clock_sleep()
|
| /NextBSD/usr.sbin/watchdogd/ |
| HD | watchdogd.c | 218 int ticks; in parse_timeout_to_pow2ns() local 232 ticks = tvtohz(&tv); in parse_timeout_to_pow2ns() 239 myoptarg, (intmax_t)ts.tv_sec, ts.tv_nsec, ticks); in parse_timeout_to_pow2ns() 241 if (ticks <= 0) { in parse_timeout_to_pow2ns() 594 register unsigned long ticks; in tvtohz() local 644 ticks = 1; in tvtohz() 646 ticks = (sec * 1000000 + (unsigned long)usec + (tick - 1)) in tvtohz() 649 ticks = sec * hz in tvtohz() 652 ticks = LONG_MAX; in tvtohz() 653 if (ticks > INT_MAX) in tvtohz() [all …]
|
| /NextBSD/contrib/ntp/sntp/libevent/ |
| HD | evutil_time.c | 422 DWORD ticks = GetTickCount(); in evutil_GetTickCount_() local 423 if (ticks < base->last_tick_count) { in evutil_GetTickCount_() 426 base->last_tick_count = ticks; in evutil_GetTickCount_() 427 return ticks + base->adjust_tick_count; in evutil_GetTickCount_() 472 ev_uint64_t ticks = evutil_GetTickCount_(base); in evutil_gettime_monotonic_() local 484 ticks_elapsed = ticks - base->first_tick; in evutil_gettime_monotonic_() 504 tp->tv_sec = (time_t) (ticks / 1000); in evutil_gettime_monotonic_() 505 tp->tv_usec = (ticks % 1000) * 1000; in evutil_gettime_monotonic_()
|
| /NextBSD/usr.bin/time/ |
| HD | time.c | 152 u_long ticks; in main() local 154 ticks = hz * (ru.ru_utime.tv_sec + ru.ru_stime.tv_sec) + in main() 161 if (ticks == 0) in main() 162 ticks = 1; in main() 167 ru.ru_ixrss / ticks, "average shared memory size"); in main() 169 ru.ru_idrss / ticks, "average unshared data size"); in main() 171 ru.ru_isrss / ticks, "average unshared stack size"); in main()
|
| /NextBSD/sys/net80211/ |
| HD | ieee80211_ht.h | 92 tap->txa_lastsample = ticks; in ieee80211_txampdu_init_pps() 113 while (ticks - tap->txa_lastsample >= hz) { in ieee80211_txampdu_count_packet() 118 tap->txa_lastsample = ticks; in ieee80211_txampdu_count_packet() 135 while (ticks - tap->txa_lastsample >= hz) { in ieee80211_txampdu_getpps() 139 tap->txa_lastsample = ticks; in ieee80211_txampdu_getpps()
|
| HD | ieee80211_scan_sw.c | 306 time_before(ticks, ic->ic_lastscan + vap->iv_scanvalid)) { in ieee80211_swscan_check_scan() 364 ticks, duration); in ieee80211_swscan_bg_scan() 650 scanend = ticks + SCAN_PRIVATE(ss)->ss_duration; in scan_task() 670 time_after(ticks + ss->ss_mindwell, scanend)) in scan_task() 678 if (time_after(ticks + ss->ss_maxdwell, scanend)) in scan_task() 679 maxdwell = scanend - ticks; in scan_task() 726 SCAN_PRIVATE(ss)->ss_chanmindwell = ticks + ss->ss_mindwell; in scan_task() 767 ic->ic_lastscan = ticks; in scan_task() 791 time_before(ticks + ss->ss_mindwell, scanend)) { in scan_task() 796 ticks, ss->ss_mindwell, scanend); in scan_task() [all …]
|
| HD | ieee80211_rssadapt.c | 197 ra->ra_ticks = ticks; in rssadapt_node_init() 234 if ((ticks - ra->ra_ticks) > ra->ra_rs->interval) { in rssadapt_rate() 236 ra->ra_ticks = ticks; in rssadapt_rate() 308 ra->ra_last_raise = ticks; in rssadapt_raise_rate() 322 (ticks - ra->ra_last_raise) >= ra->ra_raise_interval) in rssadapt_tx_complete()
|
| /NextBSD/usr.sbin/bsnmpd/modules/snmp_hostres/ |
| HD | BEGEMOT-HOSTRES-MIB.txt | 66 "The maximum number of ticks the storage table is cached." 75 "The maximum number of ticks the FS table is cached." 84 "The maximum number of ticks the disk storage table is cached." 93 "The maximum number of ticks the network table is cached." 102 "The maximum number of ticks the hrSWInstalledTable is cached." 111 "The maximum number of ticks the hrSWRunTable and
|
| /NextBSD/sys/xen/ |
| HD | hypervisor.h | 25 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()
|
| /NextBSD/sys/compat/linuxkpi/common/include/linux/ |
| HD | jiffies.h | 52 #define jiffies ticks 53 #define jiffies_64 ticks 95 return ((u64)(unsigned)ticks); in get_jiffies_64()
|
| /NextBSD/contrib/ntp/libntp/ |
| HD | systime.c | 134 long ticks; in get_ostime() local 154 ticks = (long)((tsp->tv_nsec * 1e-9) / sys_tick); in get_ostime() 155 tsp->tv_nsec = (long)(ticks * 1e9 * sys_tick); in get_ostime() 288 long ticks; in adj_systime() local 325 ticks = (long)(dtemp / quant + .5); in adj_systime() 326 adjtv.tv_usec = (long)(ticks * quant * 1e6); in adj_systime()
|
| /NextBSD/usr.sbin/ppp/ |
| HD | 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()
|
| /NextBSD/sys/netinet/cc/ |
| HD | cc_cubic.c | 139 ticks_since_cong = ticks - cubic_data->t_last_cong; in cubic_ack_received() 212 cubic_data->t_last_cong = ticks; in cubic_cb_init() 250 cubic_data->t_last_cong = ticks; in cubic_cong_signal() 266 cubic_data->t_last_cong = ticks; in cubic_cong_signal() 332 cubic_data->t_last_cong = ticks; in cubic_post_recovery()
|
| HD | cc_htcp.c | 260 htcp_data->t_last_cong = ticks; in htcp_cb_init() 290 htcp_data->t_last_cong = ticks; in htcp_cong_signal() 307 htcp_data->t_last_cong = ticks; in htcp_cong_signal() 322 htcp_data->t_last_cong = ticks; in htcp_cong_signal() 379 now = ticks; in htcp_recalc_alpha()
|
| /NextBSD/sys/dev/ioat/ |
| HD | ioat_test.c | 455 start = ticks; in ioat_dma_test() 461 else if (test->duration != 0 && time_after(ticks, end)) { in ioat_dma_test() 470 ticks - start, ticks - end, (ticks - start) / hz); in ioat_dma_test() 478 ticks - start, ticks - end, (ticks - start) / hz); in ioat_dma_test()
|
| /NextBSD/sys/powerpc/powermac/ |
| HD | platform_powermac.c | 220 int32_t ticks = -1; in powermac_timebase_freq() local 224 OF_getprop(phandle, "timebase-frequency", &ticks, sizeof(ticks)); in powermac_timebase_freq() 226 if (ticks <= 0) in powermac_timebase_freq() 229 return (ticks); in powermac_timebase_freq()
|
| /NextBSD/sys/tests/callout_test/ |
| HD | callout_test.c | 149 tk_s = ticks; in execute_the_co_test() 152 tk_e = ticks; in execute_the_co_test() 170 tk_s = ticks; in execute_the_co_test() 173 tk_e = ticks; in execute_the_co_test()
|