/netbsd-6-1-5-RELEASE/sys/arch/sun68k/stand/libsa/ |
H A D | clock.c | 15 long ticks; local 17 ticks = getticks(); 18 return ((ticks / hz)); 24 long ticks; local 26 ticks = *romVectorPtr->nmiClock; 27 return (ticks);
|
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/gcc/testsuite/gcc.dg/ |
H A D | h8300-div-delay-slot.c | 8 #define timer_ms_elapsed(ticks) (((unsigned long)(timer_ticks-ticks))/10) 9 unsigned long ticks; variable 15 case 0x62: return timer_ms_elapsed(ticks);
|
/netbsd-6-1-5-RELEASE/sys/arch/pmax/stand/common/ |
H A D | clock.c | 40 long ticks; local 41 ticks = (*callv->_time)((long *)0); 42 return (ticks);
|
/netbsd-6-1-5-RELEASE/sys/arch/shark/isa/ |
H A D | 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 321 ticks = timer0last - current; 323 ticks = timer0last + (TIMER0_ROLLOVER - current); 329 if (oldlo > (timer0count.lo = oldlo + ticks)) /* carry? */ 341 static int ticks = 0; local 356 ++ticks; 358 if (testHatOn && ((ticks & 0x3f) == 0)) { 368 } else if (!testHatOn && (ticks 422 int ticks, otick; local 480 int ticks; local [all...] |
/netbsd-6-1-5-RELEASE/external/bsd/bind/dist/bin/tests/system/xferquota/ |
H A D | tests.sh | 28 ticks=0 30 if [ $ticks = 1 ]; then 36 ticks=`expr $ticks + 1` 37 seconds=`expr $ticks \* 1` 38 if [ $ticks = 360 ]; then
|
/netbsd-6-1-5-RELEASE/sys/external/bsd/drm/dist/tests/ttmtest/src/ |
H A D | ttmtest.c | 170 unsigned long *ticks) 186 *ticks++ = time_diff(oldTime, curTime); 192 *ticks++ = time_diff(oldTime, curTime); 197 *ticks++ = time_diff(oldTime, curTime); 202 *ticks++ = time_diff(oldTime, curTime); 207 *ticks++ = time_diff(oldTime, curTime); 212 *ticks++ = time_diff(oldTime, curTime); 224 *ticks++ = time_diff(oldTime, curTime); 230 *ticks++ = time_diff(oldTime, curTime); 235 *ticks 169 benchmarkBuffer(TinyDRIContext * ctx, unsigned long size, unsigned long *ticks) argument 307 unsigned long ticks[128], *pTicks; local [all...] |
/netbsd-6-1-5-RELEASE/sys/netiso/ |
H A D | tp_timer.c | 124 int ticks) 136 tpcb->tp_state, ticks, tp_stat.ts_Eticks); 142 if (ticks == 0) 143 ticks = 1; 145 if (*callp == 0 || *callp > ticks) 146 *callp = ticks; 316 * Set a C type timer of type (which) to go off after (ticks) time. 319 tp_ctimeout(struct tp_pcb *tpcb, int which, int ticks) argument 331 if (ticks <= 0) 332 ticks 121 tp_etimeout( struct tp_pcb *tpcb, int fun, int ticks) argument 344 tp_ctimeout_MIN(struct tp_pcb *tpcb, int which, int ticks) argument [all...] |
/netbsd-6-1-5-RELEASE/sys/arch/amiga/stand/bootblock/boot/ |
H A D | console.c | 221 unsigned long ticks; local 232 ticks = 10 * timelimit; 235 ticks = 2; 245 ticks = 1; 251 ticks = 1; 254 if (ticks == 1) 259 --ticks; 260 } while (ticks != 0);
|
/netbsd-6-1-5-RELEASE/sys/kern/ |
H A D | subr_time.c | 61 * Compute number of ticks in the specified amount of time. 66 unsigned long ticks; local 73 * ticks, rounding up and adding 1 to allow for the current tick 77 * Otherwise, if the number of ticks in the whole seconds part of 79 * ticks separately and add, using similar rounding methods and 87 * 10ms ticks is 248 days. 102 * Would expire now or in the past. Return 0 ticks. 106 ticks = 0; 108 ticks = (((sec * 1000000) + (unsigned long)usec + (tick - 1)) 111 ticks [all...] |
H A D | kern_timeout.c | 658 int needsoftclock, ticks; local 663 ticks = ++cc->cc_ticks; 665 MOVEBUCKET(cc, 0, ticks); 666 if (MASKWHEEL(0, ticks) == 0) { 667 MOVEBUCKET(cc, 1, ticks); 668 if (MASKWHEEL(1, ticks) == 0) { 669 MOVEBUCKET(cc, 2, ticks); 670 if (MASKWHEEL(2, ticks) == 0) 671 MOVEBUCKET(cc, 3, ticks); 695 int mpsafe, count, ticks, delt local [all...] |
/netbsd-6-1-5-RELEASE/sys/arch/x86/isa/ |
H A D | clock.c | 223 static int ticks[6]; variable 253 ticks[0] = ticks[3]; 254 ticks[1] = ticks[4]; 255 ticks[2] = ticks[5]; 256 ticks[3] = v1; 257 ticks[4] = v2; 258 ticks[ [all...] |
/netbsd-6-1-5-RELEASE/sys/arch/powerpc/powerpc/ |
H A D | clock.c | 125 long ticks; local 136 __asm ("mfdec %0" : "=r"(ticks)); 137 for (nticks = 0; ticks < 0; nticks++) 138 ticks += ticks_per_intr; 139 __asm volatile ("mtdec %0" :: "r"(ticks)); 163 ci->ci_lasttb = tb + ticks - ticks_per_intr;
|
/netbsd-6-1-5-RELEASE/sys/rump/librump/rumpkern/ |
H A D | ltsleep.c | 67 struct timespec ts, ticks; local 92 ticks.tv_sec = timo / hz; 93 ticks.tv_nsec = (timo % hz) * (1000000000/hz); 95 timespecadd(&ts, &ticks, &ts);
|
H A D | locks_up.c | 368 cv_timedwait(kcondvar_t *cv, kmutex_t *mtx, int ticks) argument 382 tstick.tv_sec = ticks / hz; 383 tstick.tv_nsec = (ticks % hz) * (1000000000/hz); 386 if (ticks == 0) { 402 cv_timedwait_sig(kcondvar_t *cv, kmutex_t *mtx, int ticks) argument 405 return cv_timedwait(cv, mtx, ticks);
|
H A D | locks.c | 353 cv_timedwait(kcondvar_t *cv, kmutex_t *mtx, int ticks) argument 359 if (ticks == 0) { 367 tick.tv_sec = ticks / hz; 368 tick.tv_nsec = (ticks % hz) * (1000000000/hz);
|
/netbsd-6-1-5-RELEASE/sys/arch/i386/pci/ |
H A D | geodewdg.c | 168 uint32_t ticks; local 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;
|
/netbsd-6-1-5-RELEASE/sys/arch/arm/at91/ |
H A D | 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 */ 304 int prev_ticks, ticks, ticks2; local 311 ticks = hardclock_ticks; 313 if (ticks != prev_ticks) { 315 prev_ticks = ticks; 318 ticks = hardclock_ticks; 323 if (ticks2 != ticks) { 367 /* have more than 1 tick; just do in ticks */ 368 unsigned int ticks local [all...] |
H A D | at91st.c | 94 /* Match value for clock timer; running at 32.768kHz, want HZ ticks per second */ 106 /* convert specified number of ticks to usec, and round up */ 126 /* convert specified number of usec to timer ticks, and round up */ 338 static void tdelay(unsigned int ticks) 344 end = start + ticks; 346 /* just loop for the specified number of ticks */ 392 /* have more than 1 tick; just do in ticks */ 393 unsigned int ticks = usec / USEC_PER_TICK; local 394 if (ticks*USEC_PER_TICK != usec) 395 ticks [all...] |
/netbsd-6-1-5-RELEASE/sys/arch/arm/omap/ |
H A D | omap_mputmr.c | 237 int ticks, i, oldirqstate; local 242 ticks = hardref ? (hardref - newref) / counts_per_hz : 1; 246 if (ticks == 0) 247 ticks = 1; 250 if (ticks > 1) 251 printf("Missed %d ticks.\n", ticks-1); 255 for (i = 0; i < ticks; i++) 258 if (ticks > 1) {
|
/netbsd-6-1-5-RELEASE/external/apache2/mDNSResponder/dist/mDNSPosix/ |
H A D | PosixDaemon.c | 241 mDNSs32 ticks; local 248 ticks = nextTimerEvent - mDNS_TimeNow(m); 249 if (ticks < 1) ticks = 1; 252 ticks = 0; 254 timeout.tv_sec = ticks / mDNSPlatformOneSecond; 255 timeout.tv_usec = (ticks % mDNSPlatformOneSecond) * 1000000 / mDNSPlatformOneSecond;
|
/netbsd-6-1-5-RELEASE/external/gpl3/gdb/dist/sim/h8300/ |
H A D | inst.h | 92 int ticks; member in struct:__anon1633
|
/netbsd-6-1-5-RELEASE/usr.bin/time/ |
H A D | time.c | 153 unsigned long long ticks; local 154 #define SCALE(x) (long)(ticks ? x / ticks : 0) 156 ticks = hz * (ru.ru_utime.tv_sec + ru.ru_stime.tv_sec) +
|
/netbsd-6-1-5-RELEASE/sys/arch/arm/ixp12x0/ |
H A D | ixp12x0_clk.c | 172 /* using first timer for system ticks */ 313 u_int32_t ticks; local 345 ticks = gettick(); 346 delta = otick < ticks 347 ? ixpclk_sc->sc_clock_count + otick - ticks 348 : otick - ticks; 354 otick = ticks;
|
/netbsd-6-1-5-RELEASE/external/bsd/bind/dist/bin/tests/ |
H A D | shutdown_test.c | 39 unsigned int ticks; member in struct:__anon1254 108 info->ticks++; 110 if (info->ticks == 10) { 112 } else if (info->ticks >= 15 && info->exiting) { 147 ti->ticks = 0;
|
/netbsd-6-1-5-RELEASE/sys/dev/isa/ |
H A D | spkr.c | 92 tone(u_int xhz, u_int ticks) argument 93 /* emit tone of frequency hz for given number of ticks */ 95 pcppi_bell(ppicookie, xhz, ticks, PCPPI_BELL_SLEEP); 99 rest(int ticks) argument 100 /* rest for given number of ticks */ 108 printf("rest: %d\n", ticks); 110 if (ticks > 0) 111 tsleep(rest, SPKRPRI | PCATCH, "rest", ticks); 125 static int whole; /* whole-note time at current tempo, in ticks */ 204 printf("playtone: pitch %d for %d ticks, res [all...] |