/src/sys/arch/pmax/stand/common/ |
clock.c | 40 long ticks; local in function:getsecs 41 ticks = (*callv->_time)((long *)0); 42 return (ticks);
|
/src/sys/arch/sun68k/stand/libsa/ |
clock.c | 15 long ticks; local in function:getsecs 17 ticks = getticks(); 18 return ((ticks / hz)); 24 long ticks; local in function:getticks 26 ticks = *romVectorPtr->nmiClock; 27 return (ticks);
|
/src/sys/arch/sgimips/dev/ |
ctl.c | 200 int ticks = ((averunnable.ldavg[0] + FSCALE) * hz) >> (FSHIFT + 1); local in function:ctl_blink 201 callout_reset(&ctl_blink_ch, ticks, ctl_blink, sc);
|
/src/sys/arch/riscv/riscv/ |
clock_machdep.c | 156 const uint64_t ticks = (uint64_t)us * timer_ticks_per_usec; local in function:delay 157 const uint64_t finish = csr_time_read() + ticks;
|
/src/sys/arch/arm/ti/ |
am3_platform.c | 118 long ticks = n * 24; local in function:am33xx_platform_delay 124 while (ticks > 0) { 127 ticks -= (cur - prev); 129 ticks -= (UINT32_MAX - cur + prev);
|
omap3_platform.c | 178 long ticks = howmany(n * 32768, 1000000); local in function:omap3_platform_delay 180 while (ticks > 0) { 183 ticks -= (cur - prev); 185 ticks -= (UINT32_MAX - cur + prev);
|
/src/sys/arch/arm/at91/ |
at91st.c | 93 /* Match value for clock timer; running at 32.768kHz, want HZ ticks per second */ 105 /* convert specified number of ticks to usec, and round up */ 125 /* convert specified number of usec to timer ticks, and round up */ 336 static void tdelay(unsigned int ticks) 342 end = start + ticks; 344 /* just loop for the specified number of ticks */ 390 /* have more than 1 tick; just do in ticks */ 391 unsigned int ticks = usec / USEC_PER_TICK; local in function:delay 392 if (ticks*USEC_PER_TICK != usec) 393 ticks += 1 [all...] |
at91tctmr.c | 99 /* Match value for clock timer; running at master clock, want HZ ticks per second */ 122 /* convert specified number of usec to timer ticks, and round up */ 301 int prev_ticks, ticks, ticks2; local in function:udelay 308 ticks = getticks(); 310 if (ticks != prev_ticks) { 312 prev_ticks = ticks; 315 ticks = getticks(); 320 if (ticks2 != ticks) { 364 /* have more than 1 tick; just do in ticks */ 365 unsigned int ticks = (usec + sc->sc_usec_per_tick - 1) / sc->sc_usec_per_tick local in function:delay [all...] |
/src/sys/arch/i386/pci/ |
geodewdg.c | 168 uint32_t ticks; local in function:geode_wdog_setmode 184 ticks = smw->smw_period * SC1100_WDCLK_HZ; 186 GEODE_DPRINTF(("%s: ticks0 %" PRIu32 "\n", __func__, ticks)); 188 for (prescale = 0; ticks > UINT16_MAX; prescale++) 189 ticks /= 2; 191 GEODE_DPRINTF(("%s: ticks %" PRIu32 "\n", __func__, ticks)); 195 KASSERT(ticks <= UINT16_MAX); 200 sc->sc_countdown = (uint16_t)ticks;
|
/src/usr.bin/time/ |
time.c | 166 unsigned long long ticks; local in function:main 167 #define SCALE(x) (long)(ticks ? x / ticks : 0) 169 ticks = hz * (ru.ru_utime.tv_sec + ru.ru_stime.tv_sec) +
|
/src/sys/arch/amiga/stand/bootblock/boot/ |
console.c | 273 unsigned long ticks; local in function:getchar 284 ticks = 10 * timelimit; 287 ticks = 2; 297 ticks = 1; 304 ticks = 1; 308 if (ticks == 1) 313 --ticks; 314 } while (ticks != 0);
|
/src/sys/arch/powerpc/powerpc/ |
clock.c | 145 long ticks; local in function:decr_intr 156 __asm ("mfdec %0" : "=r"(ticks)); 157 for (nticks = 0; ticks < 0; nticks++) 158 ticks += ticks_per_intr; 159 __asm volatile ("mtdec %0" :: "r"(ticks)); 182 ci->ci_lasttb = tb + ticks - ticks_per_intr;
|
/src/sys/kern/ |
subr_time_arith.c | 96 * Compute number of ticks in the specified amount of time. 101 unsigned long ticks; local in function:tvtohz 108 * ticks, rounding up and adding 1 to allow for the current tick 112 * Otherwise, if the number of ticks in the whole seconds part of 114 * ticks separately and add, using similar rounding methods and 122 * 10ms ticks is 248 days. 138 * Would expire now or in the past. Return 0 ticks. 142 ticks = 0; 144 ticks = (((sec * 1000000) + (unsigned long)usec + (tick - 1)) 147 ticks = (sec * hz) [all...] |
/src/sys/arch/arm/cortex/ |
a9tmr.c | 346 u_int ticks = hz; local in function:a9tmr_intr 348 delta >= sc->sc_autoinc && ticks > 0; 349 delta -= sc->sc_autoinc, ticks--) {
|
gtmr.c | 326 int64_t ticks = (int64_t)n * incr_per_us; local in function:gtmr_delay 330 while (ticks > 0) { 334 ticks -= (curr - last); 336 ticks -= (UINT64_MAX - curr + last);
|
/src/sys/arch/arm/ixp12x0/ |
ixp12x0_clk.c | 167 /* using first timer for system ticks */ 308 uint32_t ticks; local in function:delay 340 ticks = gettick(); 341 delta = otick < ticks 342 ? ixpclk_sc->sc_clock_count + otick - ticks 343 : otick - ticks; 349 otick = ticks;
|
/src/sys/arch/arm/samsung/ |
mct.c | 297 long ticks = n * incs_per_us; local in function:mct_delay 300 while (ticks > 0) { 303 ticks -= (cur - prev); 305 ticks -= (UINT64_MAX - cur + prev);
|
/src/sys/dev/usb/ |
if_cdce.c | 252 uint32_t ticks = getticks(); local in function:cdce_attach 253 memcpy(&un->un_eaddr[1], &ticks, sizeof(ticks));
|
if_ncm.c | 219 uint32_t ticks = getticks(); local in function:ncm_attach 220 memcpy(&un->un_eaddr[1], &ticks, sizeof(ticks));
|
/src/sys/arch/x68k/dev/ |
opmbell.c | 432 int ticks; local in function:opm_bell 440 ticks = bellmstohz(sc->msec); 445 callout_reset(&bell_ch, ticks, bell_timeout, NULL);
|
/src/sys/arch/shark/isa/ |
clock.c | 214 /* number of timer ticks in a Musec = 2^20 usecs */ 291 printf("HAT test on @ %d Hz = %d ticks\n", HATHZ, hatCount); 311 unsigned current, ticks, oldlo; local in function:gettimer0count 321 ticks = timer0last - current; 323 ticks = timer0last + (TIMER0_ROLLOVER - current); 329 if (oldlo > (timer0count.lo = oldlo + ticks)) /* carry? */ 341 static int ticks = 0; local in function:clockintr 356 ++ticks; 358 if (testHatOn && ((ticks & 0x3f) == 0)) { 368 } else if (!testHatOn && (ticks & 0x1ff) == 0) 422 int ticks, otick; local in function:delay 480 int ticks; local in function:findcpuspeed [all...] |
/src/common/dist/zlib/contrib/testzlib/ |
testzlib.c | 95 LARGE_INTEGER endTime64,ticksPerSecond,ticks;
local in function:GetMsecSincePerfCounter 103 MyDoMinus64(&ticks,endTime64,beginTime64);
108 ticksShifted = Int64ShrlMod32(*(DWORDLONG*)&ticks,dwLog);
|
/src/sys/arch/x86/isa/ |
clock.c | 219 static int ticks[6]; variable in typeref:typename:int[6] 249 ticks[0] = ticks[3]; 250 ticks[1] = ticks[4]; 251 ticks[2] = ticks[5]; 252 ticks[3] = v1; 253 ticks[4] = v2; 254 ticks[5] = v3 [all...] |
/src/sys/arch/x86/x86/ |
tsc.c | 433 int ticks; local in function:tsc_get_timecount 445 ticks = getticks(); 446 if (ticks - lastwarn >= hz) { 451 lastwarn = ticks;
|
/src/sys/dev/sdmmc/ |
sdmmc.c | 831 unsigned ticks = mstohz(usecs/1000); local in function:sdmmc_pause 833 if (cold || ticks < 1) 836 kpause("sdmmcdelay", false, ticks, lock);
|