Home
last modified time | relevance | path

Searched refs:ticks (Results 1 – 25 of 98) sorted by relevance

1234

/illumos-gate/usr/src/uts/i86pc/io/pcplusmp/
H A Dapic_timer.c196 uint_t ticks; in periodic_timer_reprogram() local
200 if (ticks < apic_min_timer_ticks) in periodic_timer_reprogram()
201 ticks = apic_min_timer_ticks; in periodic_timer_reprogram()
231 uint_t ticks; in oneshot_timer_reprogram() local
241 ticks = apic_min_timer_ticks; in oneshot_timer_reprogram()
248 ticks = APIC_MAXVAL; in oneshot_timer_reprogram()
258 if (ticks < apic_min_timer_ticks) in oneshot_timer_reprogram()
259 ticks = apic_min_timer_ticks; in oneshot_timer_reprogram()
271 uint64_t ticks; in deadline_timer_enable() local
292 } while (ticks == 0); in deadline_timer_enable()
[all …]
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dratectrl.c232 unsigned int ticks; local
241 ticks = now / ChtGran;
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 = now / ChtGran;
458 ct = &srv_Times[ticks % CHTSIZE];
460 if (ct->ct_Ticks != ticks)
462 ct->ct_Ticks = ticks;
[all …]
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Di386_timer.c15 void __load_timer2(unsigned int ticks) in __load_timer2() argument
33 outb(ticks & 0xFF, TIMER2_PORT); in __load_timer2()
35 outb(ticks >> 8, TIMER2_PORT); in __load_timer2()
49 void load_timer2(unsigned int ticks) in load_timer2() argument
51 return __load_timer2(ticks); in load_timer2()
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 Dmisc.c84 unsigned long ticks; in twiddle() local
93 ticks = currticks(); in twiddle()
94 if ((lastticks + (TICKS_PER_SEC/18)) > ticks) in twiddle()
96 lastticks = ticks; in twiddle()
H A Dtimer.c23 void waiton_timer2(unsigned int ticks) in waiton_timer2() argument
25 load_timer2(ticks); in waiton_timer2()
/illumos-gate/usr/src/cmd/sgs/prof/common/
H A Dprof.c100 #define PROFSEC(ticks) ((double)(ticks)/HZ) /* Convert clock ticks to seconds */ argument
787 long ticks; in main() local
822 ticks = pcp[i0]; /* # Times (clock ticks). */ in main()
836 ticks = pcp[i0]; in main()
839 fprintf(stderr, "pc00 < pc0 ticks = %d\n", ticks)); in main()
844 ticks*(1-((double)(pc0-pc00) *sf)/bias)); in main()
851 Fprint(stderr, "%ld/(%.1f) + ", (pc0 - pc00) * ticks, in main()
858 ticks = 0; in main()
863 ticks += pcp[i]; in main()
870 ticks = pcp[i1]; in main()
[all …]
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSPosix/
H A DPosixDaemon.c171 mDNSs32 ticks; in MainLoop() local
178 ticks = nextTimerEvent - mDNS_TimeNow(m); in MainLoop()
179 if (ticks < 1) ticks = 1; in MainLoop()
182 ticks = 0; in MainLoop()
184 timeout.tv_sec = ticks / mDNSPlatformOneSecond; in MainLoop()
185 timeout.tv_usec = (ticks % mDNSPlatformOneSecond) * 1000000 / mDNSPlatformOneSecond; in MainLoop()
/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/common/os/
H A Dtimers.c593 clock_t ticks; in realitexpire() local
598 if ((ticks = hzto(valp)) > 1) { in realitexpire()
898 clock_t ticks; in timespectohz() local
919 ticks = NSEC_TO_TICK(nsec); in timespectohz()
927 if (sec < 0 || (sec == 0 && ticks < 1)) in timespectohz()
932 ticks += sec * hz; /* common case */ in timespectohz()
934 return (ticks); in timespectohz()
944 int64_t ticks; in timespectohz64() local
959 ticks = NSEC_TO_TICK(nsec); in timespectohz64()
972 ticks += sec * hz; /* common case */ in timespectohz64()
[all …]
H A Dclock_realtime.c80 clock_t ticks; in clock_realtime_fire() local
137 ticks = timespectohz(val, now); in clock_realtime_fire()
138 *tidp = realtime_timeout(clock_realtime_fire, it, ticks); in clock_realtime_fire()
190 clock_t ticks; in clock_realtime_timer_settime() local
212 ticks = timespectohz(&it->it_itime.it_value, now); in clock_realtime_timer_settime()
239 *tidp = realtime_timeout(clock_realtime_fire_first, it, ticks); in clock_realtime_timer_settime()
H A Dclock.c1517 clock_t ticks; in clock_tick() local
1649 int ticks; in profil_tick() local
1656 } while (atomic_cas_32(&lwp->lwp_oweupc, ticks, 0) != ticks); in profil_tick()
1768 if (ticks > 0) in delay_common()
1787 delay(clock_t ticks) in delay() argument
1791 delay_common(ticks); in delay()
1805 if (ticks == 0) in delay_random()
1806 ticks = 1; in delay_random()
1807 ticks = (r % ticks) + 1; in delay_random()
1808 delay_common(ticks); in delay_random()
[all …]
/illumos-gate/usr/src/uts/i86pc/sys/
H A Dapic_timer.h65 #define APIC_TICKS_TO_NSECS(ticks) ((((int64_t)(ticks) * SF) + \ argument
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_thread.c297 smb_thread_continue_timedwait_locked(smb_thread_t *thread, int ticks) in smb_thread_continue_timedwait_locked() argument
302 if (ticks != -1 && !thread->sth_kill) { in smb_thread_continue_timedwait_locked()
303 if (ticks == 0) { in smb_thread_continue_timedwait_locked()
307 &thread->sth_mtx, (clock_t)ticks, TR_CLOCK_TICK); in smb_thread_continue_timedwait_locked()
/illumos-gate/usr/src/cmd/stat/mpstat/
H A Dmpstat.c220 uint64_t ticks = 0; in print_cpu() local
245 ticks = cpu_ticks_delta(old_sys, &c2->cs_sys); in print_cpu()
247 etime = (double)ticks / hz; in print_cpu()
398 uint64_t ticks = 0; in print_pset() local
431 ticks = get_nr_ticks(p1, p2); in print_pset()
433 etime = (double)ticks / hz; in print_pset()
/illumos-gate/usr/src/lib/libfakekernel/common/
H A Dkmisc.c116 delay(clock_t ticks) in delay() argument
118 int msec = ticks; /* NB: hz==1000 */ in delay()
/illumos-gate/usr/src/test/zfs-tests/tests/functional/removal/
H A Dremoval_condense_export.ksh26 typeset ticks=$1
27 echo "zfs_condense_indirect_commit_entry_delay_ticks/W 0t$ticks" | \
/illumos-gate/usr/src/uts/common/io/
H A Dbufmod.c284 clock_t ticks; in sbioc() local
307 ticks = TIMEVAL_TO_TICK(t32); in sbioc()
319 ticks = TIMEVAL_TO_TICK(tb); in sbioc()
321 sbp->sb_ticks = ticks; in sbioc()
322 if (ticks == 0) in sbioc()
575 clock_t ticks; in sbioctl() local
613 ticks = TIMEVAL_TO_TICK(t32); in sbioctl()
628 ticks = TIMEVAL_TO_TICK(t); in sbioctl()
630 sbp->sb_ticks = ticks; in sbioctl()
631 if (ticks == 0) in sbioctl()
/illumos-gate/usr/src/uts/common/io/chxge/com/
H A Dixf1010.c162 u32 ticks; member
382 mac->instance->ticks = 0; in enable_port()
435 MAJOR_UPDATE_TICKS <= mac->instance->ticks) { in mac_update_statistics()
437 mac->instance->ticks = 0; in mac_update_statistics()
443 mac->instance->ticks++; in mac_update_statistics()
526 mac->instance->ticks = 0; in ixf1010_mac_create()
/illumos-gate/usr/src/uts/common/io/cxgbe/common/
H A Dcommon.c53 unsigned int ticks) in dack_ticks_to_usec() argument
55 return (ticks << adap->params.tp.dack_re) / core_ticks_per_usec(adap); in dack_ticks_to_usec()
/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;
/illumos-gate/usr/src/uts/i86pc/io/tzmon/
H A Dtzmon.c583 clock_t ticks; in tzmon_monitor() local
591 ticks = drv_usectohz(tzp->polling_period * 1000000); in tzmon_monitor()
592 if (ticks > 0) in tzmon_monitor()
594 &tzp->lock, ticks, TR_CLOCK_TICK); in tzmon_monitor()
596 } while (ticks > 0); in tzmon_monitor()
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/
H A Demlxs_clock.c330 if (sbp && hba->timer_tics >= sbp->ticks) { in emlxs_timer_check_pkts()
389 if (sbp && hba->timer_tics >= sbp->ticks) { in emlxs_timer_check_pkts()
538 (hba->timer_tics >= sbp->ticks)) { in emlxs_timer_check_pkts()
1184 sbp->ticks = in emlxs_pkt_chip_timeout()
1197 sbp->ticks = hba->timer_tics + 30; in emlxs_pkt_chip_timeout()
1217 sbp->ticks = hba->timer_tics + 30; in emlxs_pkt_chip_timeout()
1230 sbp->ticks = hba->timer_tics + 60; in emlxs_pkt_chip_timeout()
1241 sbp->ticks = hba->timer_tics + 60; in emlxs_pkt_chip_timeout()

1234