HomeSort by: relevance | last modified time | path
    Searched refs:ticks (Results 1 - 25 of 97) sorted by relevancy

1 2 3 4

  /src/sys/arch/sun68k/stand/libsa/
clock.c 15 long ticks; local
17 ticks = getticks();
18 return ((ticks / hz));
24 long ticks; local
26 ticks = *romVectorPtr->nmiClock;
27 return (ticks);
  /src/sys/arch/pmax/stand/common/
clock.c 40 long ticks; local
41 ticks = (*callv->_time)((long *)0);
42 return (ticks);
  /src/sys/arch/evbppc/stand/wii/
timer.c 42 int64_t ticks = usecs * 2; /* Each tick is appx. 526.7ns */ local
45 while (ticks > 0) {
55 ticks -= elapsed;
  /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
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 & 0x1ff) == 0)
422 int ticks, otick; local
480 int ticks; local
    [all...]
  /src/sys/external/bsd/common/include/linux/
completion.h 193 unsigned long ticks)
203 if (ticks == 0) {
208 &completion->c_lock, MIN(ticks, INT_MAX/2));
212 ticks -= MIN(ticks, (now - start));
227 return MAX(1, MIN(ticks, INT_MAX/2));
232 wait_for_completion_timeout(struct completion *completion, unsigned long ticks)
242 if (ticks == 0) {
247 MIN(ticks, INT_MAX/2));
251 ticks -= MIN(ticks, (now - start))
    [all...]
workqueue.h 144 unsigned long ticks);
146 unsigned long ticks);
  /src/sys/arch/x86/isa/
clock.c 219 static int ticks[6]; variable
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/powerpc/powerpc/
clock.c 145 long ticks; local
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/dev/
spkr_audio.c 66 spkr_audio_tone(device_t self, u_int xhz, u_int ticks)
71 device_printf(self, "%s: %u %u\n", __func__, xhz, ticks);
74 if (xhz == 0 || ticks == 0)
77 audiobell(sc->sc_audiodev, xhz, hztoms(ticks), sc->sc_spkr.sc_vol, 0);
  /src/sys/arch/amiga/stand/bootblock/boot/
console.c 273 unsigned long ticks; local
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/arm/at91/
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
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
    [all...]
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
392 if (ticks*USEC_PER_TICK != usec)
393 ticks += 1
    [all...]
  /src/sys/arch/i386/pci/
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;
  /src/sys/kern/
subr_time_arith.c 98 * Compute number of ticks in the specified amount of time.
103 unsigned long ticks; local
110 * ticks, rounding up and adding 1 to allow for the current tick
114 * Otherwise, if the number of ticks in the whole seconds part of
116 * ticks separately and add, using similar rounding methods and
124 * 10ms ticks is 248 days.
140 * Would expire now or in the past. Return 0 ticks.
144 ticks = 0;
146 ticks = (((sec * 1000000) + (unsigned long)usec + (tick - 1))
149 ticks = (sec * hz)
    [all...]
  /src/sys/dev/isa/
spkr_pcppi.c 81 /* emit tone of frequency hz for given number of ticks */
83 spkr_pcppi_tone(device_t self, u_int xhz, u_int ticks)
86 device_printf(self, "%s: %u %u\n", __func__, xhz, ticks);
89 (*sc->sc_bell_func)(sc->sc_pcppicookie, xhz, ticks, PCPPI_BELL_SLEEP);
  /src/sys/arch/xen/xen/
xen_clock.c 162 * NetBSD ticks, set the Xen hypervisor's wall clock time.
166 int ticks; member in struct:__anon2258
617 * Wait until as many tsc ticks as there are in n
947 xen_timepush.ticks = 53*hz + 3; /* avoid exact # of min/sec */
965 sysctl_xen_timepush, 0, &xen_timepush.ticks, 0,
971 callout_schedule(&xen_timepush.ch, xen_timepush.ticks);
991 if (xen_timepush.ticks)
992 callout_schedule(&xen_timepush.ch, xen_timepush.ticks);
1004 int ticks; local
1007 ticks = xen_timepush.ticks
    [all...]
  /src/sys/arch/arm/ti/
am3_platform.c 118 long ticks = n * 24; local
124 while (ticks > 0) {
127 ticks -= (cur - prev);
129 ticks -= (UINT32_MAX - cur + prev);
omap3_platform.c 325 long ticks = howmany(n * 32768, 1000000); local
327 while (ticks > 0) {
330 ticks -= (cur - prev);
332 ticks -= (UINT32_MAX - cur + prev);
344 long ticks = howmany(n * 32768, 1000000); local
346 while (ticks > 0) {
349 ticks -= (cur - prev);
351 ticks -= (UINT32_MAX - cur + prev);
  /src/usr.bin/time/
time.c 166 unsigned long long ticks; local
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/riscv/riscv/
clock_machdep.c 161 const uint64_t ticks = (uint64_t)us * timer_ticks_per_usec; local
162 const uint64_t finish = csr_time_read() + ticks;
  /src/sys/arch/arm/ixp12x0/
ixp12x0_clk.c 167 /* using first timer for system ticks */
308 uint32_t ticks; local
340 ticks = gettick();
341 delta = otick < ticks
342 ? ixpclk_sc->sc_clock_count + otick - ticks
343 : otick - ticks;
349 otick = ticks;
  /src/sys/rump/librump/rumpkern/
locks_up.c 374 cv_timedwait(kcondvar_t *cv, kmutex_t *mtx, int ticks)
383 ts.tv_sec = ticks / hz;
384 ts.tv_nsec = (ticks % hz) * (1000000000/hz);
386 if (ticks == 0) {
402 cv_timedwait_sig(kcondvar_t *cv, kmutex_t *mtx, int ticks)
405 return cv_timedwait(cv, mtx, ticks);
  /src/sys/external/bsd/common/linux/
linux_work.c 101 "unsigned long"/*ticks*/);
888 * schedule_delayed_work(dw, ticks)
891 * ticks on system_wq. If currently executing and not already
895 * If ticks == 0, queue it to run as soon as the worker can,
899 schedule_delayed_work(struct delayed_work *dw, unsigned long ticks)
902 return queue_delayed_work(system_wq, dw, ticks);
967 * queue_delayed_work(wq, dw, ticks)
970 * ticks on wq. If currently queued, remove it from the queue
973 * If ticks == 0, queue it to run as soon as the worker can,
978 unsigned long ticks)
    [all...]
  /src/sys/dev/i2c/
pca9685.c 315 * Compute the number of ticks, accounting for a non-zero
458 * feature of this chip, so all duty cycles start at 0 ticks.
472 uint64_t ticks = local
475 ticks = (ticks * 100) / sc->sc_period;
477 if (ticks % 100)
478 ticks += 100;
479 ticks /= 100;
480 if (ticks >= PCA9685_PWM_TICKS) {
481 ticks = PCA9685_PWM_TICKS - 1
    [all...]
  /src/sys/arch/arm/samsung/
mct.c 297 long ticks = n * incs_per_us; local
300 while (ticks > 0) {
303 ticks -= (cur - prev);
305 ticks -= (UINT64_MAX - cur + prev);

Completed in 58 milliseconds

1 2 3 4