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

1234

/src/sys/arch/sun68k/stand/libsa/
H A Dclock.c15 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/pmax/stand/common/
H A Dclock.c40 long ticks; local in function:getsecs
41 ticks = (*callv->_time)((long *)0);
42 return (ticks);
/src/sys/arch/evbppc/stand/wii/
H A Dtimer.c42 int64_t ticks = usecs * 2; /* Each tick is appx. 526.7ns */ local in function:timer_udelay
45 while (ticks > 0) {
55 ticks -= elapsed;
/src/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 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
422 int ticks, otick; local in function:delay
480 int ticks; local in function:findcpuspeed
[all...]
/src/sys/external/bsd/common/include/linux/
H A Dcompletion.h193 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) argument
242 if (ticks == 0) {
247 MIN(ticks, INT_MAX/2));
251 ticks
192 wait_for_completion_interruptible_timeout(struct completion * completion,unsigned long ticks) argument
[all...]
H A Dworkqueue.h144 unsigned long ticks);
146 unsigned long ticks);
/src/sys/arch/x86/isa/
H A Dclock.c219 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[
[all...]
/src/sys/arch/powerpc/powerpc/
H A Dclock.c145 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/dev/
H A Dspkr_audio.c66 spkr_audio_tone(device_t self, u_int xhz, u_int ticks) argument
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/kern/
H A Dsubr_time_arith.c96 * 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
[all...]
/src/sys/arch/i386/pci/
H A Dgeodewdg.c168 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/sys/arch/amiga/stand/bootblock/boot/
H A Dconsole.c273 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/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 */
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 local in function:delay
[all...]
H A Dat91st.c93 /* 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
[all...]
/src/sys/dev/isa/
H A Dspkr_pcppi.c81 /* emit tone of frequency hz for given number of ticks */
83 spkr_pcppi_tone(device_t self, u_int xhz, u_int ticks) argument
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/
H A Dxen_clock.c162 * NetBSD ticks, set the Xen hypervisor's wall clock time.
166 int ticks; member in struct:__anon00379ce90108
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 in function:sysctl_xen_timepush
1007 ticks
[all...]
/src/sys/arch/arm/ti/
H A Dam3_platform.c118 long ticks = n * 24; local in function:am33xx_platform_delay
124 while (ticks > 0) {
127 ticks -= (cur - prev);
129 ticks -= (UINT32_MAX - cur + prev);
H A Domap3_platform.c178 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/usr.bin/time/
H A Dtime.c166 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/riscv/riscv/
H A Dclock_machdep.c161 const uint64_t ticks = (uint64_t)us * timer_ticks_per_usec; local in function:delay
162 const uint64_t finish = csr_time_read() + ticks;
/src/sys/arch/arm/ixp12x0/
H A Dixp12x0_clk.c167 /* 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/rump/librump/rumpkern/
H A Dlocks_up.c374 cv_timedwait(kcondvar_t *cv, kmutex_t *mtx, int ticks) argument
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) argument
405 return cv_timedwait(cv, mtx, ticks);
/src/sys/external/bsd/common/linux/
H A Dlinux_work.c101 "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, argument
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, argument
978 unsigned long ticks)
1046 mod_delayed_work(struct workqueue_struct * wq,struct delayed_work * dw,unsigned long ticks) argument
[all...]
/src/sys/dev/i2c/
H A Dpca9685.c315 * 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 in function:pcapwm_pwm_set_config
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
[all...]
/src/sys/arch/arm/samsung/
H A Dmct.c297 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);

Completed in 27 milliseconds

1234