Searched defs:ticks (Results 1 - 25 of 67) sorted by relevance

123

/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Dtimer.c23 void waiton_timer2(unsigned int ticks) argument
25 load_timer2(ticks);
H A Di386_timer.c15 void __load_timer2(unsigned int ticks) argument
32 /* LSB of ticks */
33 outb(ticks & 0xFF, TIMER2_PORT);
34 /* MSB of ticks */
35 outb(ticks >> 8, TIMER2_PORT);
49 void load_timer2(unsigned int ticks) argument
51 return __load_timer2(ticks);
78 /* Number of clock ticks to time with the rtc */
H A Dmisc.c84 unsigned long ticks; local
93 ticks = currticks();
94 if ((lastticks + (TICKS_PER_SEC/18)) > ticks)
96 lastticks = ticks;
/illumos-gate/usr/src/compat/bhyve/sys/
H A Dkernel.h40 #define ticks ddi_get_lbolt() macro
/illumos-gate/usr/src/uts/i86pc/io/
H A Dmicrofind.c78 * number of such ticks that passed while tenmicrosec() was running, or
153 * Return the number of timer ticks that passed while tenmicrosec was
195 int ticks = -1; local
209 int ticksprev = ticks;
217 if ((ticks = microfind_pit_delta_avg(microdata_trial_count,
221 * previous ticks count and break out of the loop.
231 ticks = ticksprev;
235 if (ticks > 0x3000) {
238 * PIT ticks.
255 if (ticks <
[all...]
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_thread.c266 * Setting ticks=-1 requests a non-blocking check. We will
297 smb_thread_continue_timedwait_locked(smb_thread_t *thread, int ticks) argument
302 if (ticks != -1 && !thread->sth_kill) {
303 if (ticks == 0) {
307 &thread->sth_mtx, (clock_t)ticks, TR_CLOCK_TICK);
/illumos-gate/usr/src/uts/common/os/
H A Dclock_realtime.c80 clock_t ticks; local
137 ticks = timespectohz(val, now);
138 *tidp = realtime_timeout(clock_realtime_fire, it, ticks);
190 clock_t ticks; local
212 ticks = timespectohz(&it->it_itime.it_value, now);
220 * The "ticks" we've been returned from timespectohz(), then,
225 * "ticks" will be interpreted against lbolt. That is,
229 * registering a callout for "ticks" of the clock, which
230 * may be less than ("ticks" / hz) seconds (but not more than
239 *tidp = realtime_timeout(clock_realtime_fire_first, it, ticks);
[all...]
/illumos-gate/usr/src/lib/libfakekernel/common/
H A Dkmisc.c116 delay(clock_t ticks) argument
118 int msec = ticks; /* NB: hz==1000 */
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/
H A Dschedule.c42 ticks; member in struct:later
106 * ticks aren't counted, so the events won't be started.
235 pl->ticks = va_arg(ap, int);
274 if (--pl->ticks)
/illumos-gate/usr/src/cmd/sh/
H A Dfault.c431 sh_sleep(unsigned int ticks) argument
458 alarm(ticks);
/illumos-gate/usr/src/head/rpcsvc/
H A Dnis_db.h84 long ticks; member in struct:db_result
/illumos-gate/usr/src/uts/i86pc/io/pcplusmp/
H A Dapic_timer.c53 uint64_t apic_ticks_per_SFnsecs; /* # of ticks in SF nsecs */
196 uint_t ticks; local
198 ticks = APIC_NSECS_TO_TICKS(time);
200 if (ticks < apic_min_timer_ticks)
201 ticks = apic_min_timer_ticks;
203 apic_reg_ops->apic_write(APIC_INIT_COUNT, ticks);
231 uint_t ticks; local
241 ticks = apic_min_timer_ticks;
248 ticks = APIC_MAXVAL;
255 ticks
271 uint64_t ticks; local
308 uint64_t ticks; local
[all...]
/illumos-gate/usr/src/uts/common/io/cxgbe/common/
H A Dcommon.c53 unsigned int ticks)
55 return (ticks << adap->params.tp.dack_re) / core_ticks_per_usec(adap);
52 dack_ticks_to_usec(const struct adapter *adap, unsigned int ticks) argument
/illumos-gate/usr/src/cmd/sa/
H A Dtimex.c209 printt(char *label, hrtime_t ticks) argument
211 long tk; /* number of leftover ticks */
215 longlong_t total = ticks;
217 tk = total % hz; /* ticks % hz */
219 ss = total % 60; /* ticks / hz % 60 */
221 mm = total % 60; /* ticks / hz / 60 % 60 */
222 hh = total / 60; /* ticks / hz / 60 / 60 */
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dratectrl.c197 /* 6 buckets for ticks: 60s */
232 unsigned int ticks; local
241 ticks = now / ChtGran;
392 CTime_T *ct = &chBest->ch_Times[ticks % CHTSIZE];
394 if (ct->ct_Ticks != ticks)
396 ct->ct_Ticks = ticks;
408 if (ct->ct_Ticks <= ticks && ct->ct_Ticks >= ticks - CHTSIZE)
442 unsigned int ticks; local
448 ticks
[all...]
/illumos-gate/usr/src/lib/smbsrv/libsmbns/common/
H A Dsmbns_netbios.c99 static uint32_t ticks = 0; local
141 ticks++;
149 if ((ticks % 600) == 0) {
/illumos-gate/usr/src/cmd/stat/common/
H A Dacquire.c491 uint64_t ticks = 0; local
494 ticks += kstat_delta(old, new, cpu_states[i]);
495 return (ticks);
512 * Return the number of ticks delta between two hrtime_t
/illumos-gate/usr/src/uts/common/io/hxge/
H A Dhxge_hw.c442 hxge_rx_hw_blank(void *arg, time_t ticks, uint_t count) argument
449 * Replace current ticks and counts for later
452 hxgep->intr_timeout = (uint16_t)ticks;
/illumos-gate/usr/src/cmd/stat/mpstat/
H A Dmpstat.c220 uint64_t ticks = 0; local
245 ticks = cpu_ticks_delta(old_sys, &c2->cs_sys);
247 etime = (double)ticks / hz;
398 uint64_t ticks = 0; local
431 ticks = get_nr_ticks(p1, p2);
433 etime = (double)ticks / hz;
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSPosix/
H A DPosixDaemon.c160 mDNSs32 ticks; local
167 ticks = nextTimerEvent - mDNS_TimeNow(m);
168 if (ticks < 1) ticks = 1;
171 ticks = 0;
173 timeout.tv_sec = ticks / mDNSPlatformOneSecond;
174 timeout.tv_usec = (ticks % mDNSPlatformOneSecond) * 1000000 / mDNSPlatformOneSecond;
/illumos-gate/usr/src/uts/intel/io/dktp/hba/ghd/
H A Dghd_timer.c200 * Called every t_ticks ticks to scan the CCB timer lists
735 ghd_timer_init(tmr_t *tmrp, long ticks) argument
746 if (ticks == 0)
747 ticks = scsi_watchdog_tick * ghd_HZ;
748 tmrp->t_ticks = ticks;
/illumos-gate/usr/src/uts/common/io/chxge/com/
H A Dvsc7326.c50 u32 ticks; member in struct:_cmac_instance
657 * and do a full update at major ticks, which can be every 30 minutes or more.
663 mac->instance->ticks >= MAJOR_UPDATE_TICKS) {
665 mac->instance->ticks = 0;
675 mac->instance->ticks++;
738 mac->instance->ticks = 0;
/illumos-gate/usr/src/uts/common/io/
H A Dcpudrv.c972 clock_t ticks; local
1072 * ticks have elapsed since the last call and adjusting
1076 ticks = NSEC_TO_TICK(gethrtime());
1077 tick_cnt = ticks - cpupm->lastquan_ticks;
1079 cpupm->lastquan_ticks = ticks;
/illumos-gate/usr/src/uts/common/io/audio/drv/audio1575/
H A Daudio1575.c1083 clock_t ticks; local
1098 ticks = drv_usectohz(M1575_LOOP_CTR);
1115 delay(ticks<<1);
1123 delay(ticks);
1135 delay(ticks);
1143 delay(ticks);
/illumos-gate/usr/src/uts/sun4u/io/pci/
H A Dpci_ib.c233 * Converts into nsec, ticks logged with a given CPU. Adds nsec to ih.
240 hrtime_t ticks; local
256 ticks = atomic_swap_64(&ih_p->ih_ticks, 0);
257 ih_p->ih_nsec += (uint64_t)tick2ns(ticks, cpu_id);
404 * ticks into nsec, based upon the clock

Completed in 133 milliseconds

123