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

12345

/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 Dtimer.h52 extern void load_timer2(unsigned int ticks);
54 extern void waiton_timer2(unsigned int ticks);
55 extern void __load_timer2(unsigned int 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/cmd/dtrace/test/tst/common/privs/
H A Dtst.tick.ksh39 ticks++;
43 /ticks > 10 && (this->ms = (timestamp - start) / 1000000) > 2000/
50 /ticks > 10/
H A Dtst.noprivrestrict.ksh52 ticks++;
56 /ticks > 100/
H A Dtst.noprivdrop.ksh52 ticks++;
56 /ticks > 100/
/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/i86pc/io/pcplusmp/
H A Dapic_timer.c52 uint64_t apic_ticks_per_SFnsecs; /* # of ticks in SF nsecs */
106 /* total number of PIT ticks corresponding to apic_ticks */
111 * and then determine how many APIC ticks to interrupt at the
217 uint_t ticks; local
219 ticks = APIC_NSECS_TO_TICKS(time);
221 if (ticks < apic_min_timer_ticks)
222 ticks = apic_min_timer_ticks;
224 apic_reg_ops->apic_write(APIC_INIT_COUNT, ticks);
252 uint_t ticks; local
262 ticks
292 uint64_t ticks; local
329 uint64_t ticks; local
[all...]
/illumos-gate/usr/src/uts/i86pc/sys/
H A Dapic_timer.h57 * Use scaled-fixed-point arithmetic to calculate apic ticks.
63 #define APIC_TICKS_TO_NSECS(ticks) ((((int64_t)(ticks) * SF) + \
/illumos-gate/usr/src/uts/common/io/cxgbe/common/
H A Dcommon.c50 core_ticks_to_us(const struct adapter *adapter, unsigned int ticks) argument
52 /* add Core Clock / 2 to round ticks to nearest uS */
53 return ((ticks * 1000 + adapter->params.vpd.cclk/2) /
58 dack_ticks_to_usec(const struct adapter *adap, unsigned int ticks) argument
60 return ((ticks << adap->params.tp.dack_re) / core_ticks_per_usec(adap));
/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/libfakekernel/common/
H A Dkmisc.c66 delay(clock_t ticks) argument
68 int msec = ticks; /* NB: hz==1000 */
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/mdnsd/
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/common/avs/ns/sdbc/
H A Dsd_misc.h51 extern void _sd_timed_block(clock_t ticks, kcondvar_t *cvp);
/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...]
H A Dtimers.c592 clock_t ticks; local
597 if ((ticks = hzto(valp)) > 1) {
602 * number of ticks. For the special meaning of the value "1"
605 p->p_itimerid = realtime_timeout(realitexpire, p, ticks);
897 clock_t ticks; local
902 * Compute number of ticks we will see between now and
905 * and returns LONG_MAX ticks if we would overflow.
918 ticks = NSEC_TO_TICK(nsec);
921 * Compute ticks, accounting for negative and overflow as above.
926 if (sec < 0 || (sec == 0 && ticks <
943 int64_t ticks; local
[all...]
H A Dclock.c234 * calibration interval jitter exceeds two ticks.
1010 * reboot, we calculate the number of clock ticks the system's been up
1355 * intervals and small ticks. Note that the counter can be
1394 * excessive frequency error. The number of timer ticks during
1514 clock_t ticks; local
1541 ticks = (pp->p_utime + pp->p_stime) % hz;
1606 if ((ticks + pending) >= hz) {
1614 * If we have accumulated enough ticks, increment the task CPU
1646 int ticks; local
1652 ticks
1755 delay_common(clock_t ticks) argument
1784 delay(clock_t ticks) argument
1795 delay_random(clock_t ticks) argument
1812 delay_sig(clock_t ticks) argument
[all...]
/illumos-gate/usr/src/cmd/sgs/prof/common/
H A Dprof.c99 #define PROFSEC(ticks) ((double)(ticks)/HZ) /* Convert clock ticks to seconds */
194 float sl_time; /* Count of clock ticks in this routine, */
207 float tot_sl_time; /* total clock ticks (a la sl_time) */
752 * ticks for values of pc in the range pc, pc+1, ..., pc+s_inv-1
793 long ticks; local
828 ticks = pcp[i0]; /* # Times (clock ticks). */
829 OLD_DEBUG(if (debug_value & 010) fprintf(stderr, "ticks
[all...]
/illumos-gate/usr/src/lib/libnisdb/
H A Ddb_entry_c.x83 long ticks; /* for statistics */
/illumos-gate/usr/src/head/rpcsvc/
H A Dnis_db.h84 long ticks; member in struct:db_result
/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/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/uts/common/io/chxge/com/
H A Dixf1010.c162 u32 ticks; member in struct:_cmac_instance
382 mac->instance->ticks = 0;
429 * and do a full update at major ticks, which can be every 30 minutes or more.
435 MAJOR_UPDATE_TICKS <= mac->instance->ticks) {
437 mac->instance->ticks = 0;
443 mac->instance->ticks++;
526 mac->instance->ticks = 0;
/illumos-gate/usr/src/cmd/bnu/
H A Dperfstat.c526 float ticks; /* Clock interrupts per second. */ local
535 ticks = (float) HZ; /* HZ defined in <sys/param.h>. */
542 diff->tu_real = ((float) ltemp)/ticks;
550 diff->tu_user = ((float) ltemp)/ticks;
558 diff->tu_sys = ((float) ltemp)/ticks;

Completed in 125 milliseconds

12345