Searched refs:ticks (Results 1 - 25 of 94) sorted by relevance

1234

/netbsd-6-1-5-RELEASE/sys/arch/sun68k/stand/libsa/
H A Dclock.c15 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 Dh8300-div-delay-slot.c8 #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 Dclock.c40 long ticks; local
41 ticks = (*callv->_time)((long *)0);
42 return (ticks);
/netbsd-6-1-5-RELEASE/sys/arch/shark/isa/
H A Dclock.c214 /* 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 Dtests.sh28 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 Dttmtest.c170 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 Dtp_timer.c124 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 Dconsole.c221 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 Dsubr_time.c61 * 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 Dkern_timeout.c658 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 Dclock.c223 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 Dclock.c125 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 Dltsleep.c67 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 Dlocks_up.c368 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 Dlocks.c353 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 Dgeodewdg.c168 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 Dat91tctmr.c99 /* 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 Dat91st.c94 /* 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 Domap_mputmr.c237 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 DPosixDaemon.c241 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 Dinst.h92 int ticks; member in struct:__anon1633
/netbsd-6-1-5-RELEASE/usr.bin/time/
H A Dtime.c153 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 Dixp12x0_clk.c172 /* 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 Dshutdown_test.c39 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 Dspkr.c92 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...]

Completed in 415 milliseconds

1234