/freebsd-12-stable/sys/powerpc/booke/ |
H A D | platform_bare.c | 95 u_long ticks; local 102 ticks = bootinfo[3] >> 3; 105 ticks = bootinfo[5] >> 3; 108 ticks = 0; 121 ticks = tbase; 122 return (ticks); 128 ticks = tbase; 129 return (ticks); 145 ticks = freq / 8; 148 if (ticks < [all...] |
/freebsd-12-stable/contrib/sendmail/src/ |
H A D | ratectrl.c | 273 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 549 unsigned int ticks; local [all...] |
/freebsd-12-stable/sys/xen/ |
H A D | hypervisor.h | 25 extern uint64_t get_system_time(int ticks); 81 /* of the specified ports or the specified number of ticks elapse */ 84 evtchn_port_t *ports, unsigned int nr_ports, int ticks) 89 .timeout = get_system_time(ticks) 83 HYPERVISOR_poll( evtchn_port_t *ports, unsigned int nr_ports, int ticks) argument
|
/freebsd-12-stable/sys/arm/amlogic/aml8726/ |
H A D | aml8726_rng.c | 56 int ticks; member in struct:aml8726_rng_softc 80 callout_reset(&sc->co, sc->ticks, aml8726_rng_harvest, sc); 112 sc->ticks = hz / 100; 114 sc->ticks = 1; 117 callout_reset(&sc->co, sc->ticks, aml8726_rng_harvest, sc);
|
H A D | aml8726_timer.c | 173 uint32_t ticks; local 179 ticks = first_ticks; 183 ticks = period_ticks; 187 if (ticks == 0) 195 CSR_WRITE_4(sc, AML_TIMER_A_REG, ticks);
|
/freebsd-12-stable/cddl/usr.sbin/dtrace/tests/common/tick-n/ |
H A D | Makefile | 24 tst.ticks.d \ 25 tst.ticks.d.out \
|
/freebsd-12-stable/tools/tools/netrate/tcpp/ |
H A D | tcpp_server.c | 281 long cp_time_last[CPUSTATES], cp_time_now[CPUSTATES], ticks; 324 ticks = 0; 328 ticks += cp_time_last[i]; 332 (100 * cp_time_last[CP_USER]) / ticks, 333 (100 * cp_time_last[CP_NICE]) / ticks, 334 (100 * cp_time_last[CP_SYS]) / ticks, 335 (100 * cp_time_last[CP_INTR]) / ticks, 336 (100 * cp_time_last[CP_IDLE]) / ticks);
|
H A D | tcpp_client.c | 271 long ticks; local 356 ticks = 0; 359 ticks += cp_time_finish[i]; 361 printf("%0.02f,", (float)(100 * cp_time_finish[CP_USER]) / ticks); 362 printf("%0.02f,", (float)(100 * cp_time_finish[CP_NICE]) / ticks); 363 printf("%0.02f,", (float)(100 * cp_time_finish[CP_SYS]) / ticks); 364 printf("%0.02f,", (float)(100 * cp_time_finish[CP_INTR]) / ticks); 365 printf("%0.02f", (float)(100 * cp_time_finish[CP_IDLE]) / ticks);
|
/freebsd-12-stable/sys/net80211/ |
H A D | ieee80211_ht.h | 55 int txa_lastsample; /* ticks @ last traffic sample */ 110 tap->txa_lastsample = ticks; 131 while (ticks - tap->txa_lastsample >= hz) { 136 tap->txa_lastsample = ticks; 153 while (ticks - tap->txa_lastsample >= hz) { 157 tap->txa_lastsample = ticks;
|
/freebsd-12-stable/usr.bin/time/ |
H A D | time.c | 158 u_long ticks; local 160 ticks = hz * (ru.ru_utime.tv_sec + ru.ru_stime.tv_sec) + 167 if (ticks == 0) 168 ticks = 1; 173 ru.ru_ixrss / ticks, "average shared memory size"); 175 ru.ru_idrss / ticks, "average unshared data size"); 177 ru.ru_isrss / ticks, "average unshared stack size");
|
/freebsd-12-stable/sys/compat/linuxkpi/common/include/linux/ |
H A D | jiffies.h | 41 #define jiffies ticks 42 #define jiffies_64 ticks 153 return ((uint64_t)(unsigned int)ticks);
|
/freebsd-12-stable/usr.sbin/watchdogd/ |
H A D | watchdogd.c | 212 int ticks; local 226 ticks = tvtohz(&tv); 230 "(in: %s sec -> out: %jd sec %ld ns -> %d ticks)\n", 233 myoptarg, (intmax_t)ts.tv_sec, ts.tv_nsec, ticks); 235 if (ticks <= 0) { 582 * Convert a timeval to a number of ticks. 588 register unsigned long ticks; local 607 * ticks, rounding up and adding 1 to allow for the current tick 611 * Otherwise, if the number of ticks in the whole seconds part of 613 * ticks separatel [all...] |
/freebsd-12-stable/sys/dev/ath/ |
H A D | if_ath_lna_div.h | 89 struct ath_rx_status *rs, unsigned long ticks, int hz);
|
/freebsd-12-stable/sys/tests/epoch/ |
H A D | epoch_test.c | 72 startticks = ticks; 87 printf("test1: thread: %d took %d ticks to complete %d iterations\n", 88 eti->threadid, ticks - startticks, iterations); 98 startticks = ticks; 111 printf("test2: thread: %d took %d ticks to complete %d iterations\n", 112 eti->threadid, ticks - startticks, iterations);
|
/freebsd-12-stable/contrib/ntp/sntp/libevent/ |
H A D | evutil_time.c | 353 ticks since startup. The accuracy here might be as bad as 10-20 msec, I 422 DWORD ticks = GetTickCount(); local 423 if (ticks < base->last_tick_count) { 426 base->last_tick_count = ticks; 427 return ticks + base->adjust_tick_count; 472 ev_uint64_t ticks = evutil_GetTickCount_(base); local 484 ticks_elapsed = ticks - base->first_tick; 504 tp->tv_sec = (time_t) (ticks / 1000); 505 tp->tv_usec = (ticks % 1000) * 1000;
|
/freebsd-12-stable/contrib/libevent/ |
H A D | evutil_time.c | 391 ticks since startup. The accuracy here might be as bad as 10-20 msec, I 460 DWORD ticks = GetTickCount(); local 461 if (ticks < base->last_tick_count) { 464 base->last_tick_count = ticks; 465 return ticks + base->adjust_tick_count; 510 ev_uint64_t ticks = evutil_GetTickCount_(base); local 522 ticks_elapsed = ticks - base->first_tick; 542 tp->tv_sec = (time_t) (ticks / 1000); 543 tp->tv_usec = (ticks % 1000) * 1000;
|
/freebsd-12-stable/sys/kern/ |
H A D | kern_clock.c | 201 tticks = ticks - td->td_blktick; 208 "blocked for %d ticks\n", __func__, 227 tticks = ticks - td->td_slptick; 243 "blocked for %d ticks\n", __func__, 363 * cpu ticks. The mean frequency of the second timer is stathz. 384 volatile int ticks; variable 387 DPCPU_DEFINE_STATIC(int, pcputicks); /* Per-CPU version of ticks. */ 437 * Update per-CPU and possibly global ticks values. 441 global = ticks; 449 } while (!atomic_cmpset_int(&ticks, globa 522 unsigned long ticks; local [all...] |
H A D | subr_pidctrl.c | 68 SYSCTL_ADD_INT(NULL, parent, OID_AUTO, "ticks", CTLFLAG_RD, 73 &pc->pc_interval, 0, "Interval between calculations (ticks)"); 91 pc->pc_ticks = ticks; 123 * When ticks expires we reset our variables and start a new 128 if ((u_int)ticks - pc->pc_ticks >= pc->pc_interval) { 129 pc->pc_ticks = ticks;
|
/freebsd-12-stable/sys/arm/freescale/imx/ |
H A D | imx_epit.c | 89 * so I'm setting the lower limit to 2 ticks. 171 uint64_t curcnt, endcnt, startcnt, ticks; local 175 * clock frequency. Loop until the hardware count reaches start+ticks. 181 ticks = 1 + ((uint64_t)usec * sc->clkfreq) / 1000000; 183 endcnt = startcnt + ticks; 225 uint32_t ticks; local 238 ticks = ((uint32_t)et->et_frequency * period) >> 32; 241 ticks = ((uint32_t)et->et_frequency * first) >> 32; 247 WR4(sc, EPIT_LR, ticks);
|
/freebsd-12-stable/usr.sbin/ppp/ |
H A D | timer.c | 83 u_long ticks = 0; local 104 ticks = RESTVAL(itimer) - TimerList->rest; 108 if (ticks + t->rest >= tp->load) 110 ticks += t->rest; 115 tp->rest = tp->load - ticks;
|
/freebsd-12-stable/contrib/ipfilter/lib/ |
H A D | printactivenat.c | 20 printactivenat(nat, opts, ticks) 23 u_long ticks; 107 nat->nat_age - ticks, nat->nat_use,
|
/freebsd-12-stable/sys/dev/iicbus/ |
H A D | ad7418.c | 66 int sc_lastupdate; /* in ticks */ 116 sc->sc_lastupdate = ticks - hz; 200 if (ticks - sc->sc_lastupdate > hz) { 209 sc->sc_lastupdate = ticks;
|
/freebsd-12-stable/sys/powerpc/mpc85xx/ |
H A D | platform_mpc85xx.c | 225 u_long ticks; local 232 ticks = bootinfo[3] >> 3; 235 ticks = bootinfo[5] >> 3; 238 ticks = 0; 251 ticks = tbase; 252 return (ticks); 258 ticks = tbase; 259 return (ticks); 278 ticks = freq / 32; 280 ticks [all...] |
/freebsd-12-stable/sys/arm/broadcom/bcm2835/ |
H A D | bcm2835_wdog.c | 151 uint32_t ticks, reg; local 174 ticks = (sec << 16) & BCM2835_WDOG_TIME_MASK; 175 reg = (BCM2835_PASSWORD << BCM2835_PASSWORD_SHIFT) | ticks;
|
/freebsd-12-stable/contrib/ntp/libntp/ |
H A D | systime.c | 143 long ticks; local 163 ticks = (long)((tsp->tv_nsec * 1e-9) / sys_tick); 164 tsp->tv_nsec = (long)(ticks * 1e9 * sys_tick); 295 long ticks; local 332 ticks = (long)(dtemp / quant + .5); 333 adjtv.tv_usec = (long)(ticks * quant * 1.e6 + .5);
|