Searched refs:hz (Results 1 - 25 of 42) sorted by relevance

12

/macosx-10.5.8/xnu-1228.15.4/bsd/sys/
H A Dkernel.h98 extern int tick; /* usec per tick (1000000 / hz) */
99 extern int hz; /* system clock's frequency */
H A Dtime.h217 int hz; /* clock frequency */ member in struct:clockinfo
218 int tick; /* micro-seconds per hz tick */
/macosx-10.5.8/xnu-1228.15.4/osfmk/kern/
H A Dpage_decrypt.c35 extern int hz; /* system clock's frequency */
52 tsleep(&dsmos_hook, PZERO, "dsmos", hz / 10);
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/
H A Dkern_clock.c102 * independently of each other. The main clock, running at hz
106 * can be performed by a single clock (ie hz == phz), however the
114 * The hz hardware interval timer.
117 int hz = 100; /* GET RID OF THIS !!! */ variable
129 * interval: timeout interval, in hz.
139 clock_interval_to_deadline(interval, NSEC_PER_SEC / hz, &deadline);
190 * Compute number of hz until specified time.
205 * ticks. Otherwise just compute number of hz in time, rounding
216 else if (sec <= 0x7fffffff / hz)
217 ticks = sec * hz;
[all...]
H A Dkern_synch.c295 clock_interval_to_deadline(timo, NSEC_PER_SEC / hz, &abstime);
339 clock_interval_to_deadline(timo, NSEC_PER_SEC / hz, &abstime);
354 clock_interval_to_deadline(timo, NSEC_PER_SEC / hz, &abstime);
H A Dkern_acct.c262 t = tmp.tv_sec * hz + tmp.tv_usec / tick;
409 timeout(acctwatch_funnel, NULL, acctchkfreq * hz);
H A Duipc_domain.c539 timeout(pfslowtimo, NULL, hz/PR_SLOWHZ);
555 timeout(pffasttimo, NULL, hz/PR_FASTHZ);
H A Dbsd_init.c686 timeout(lightning_bolt, 0, hz);
926 timeout(lightning_bolt,0,hz);
H A Dsocket_info.c62 sbi->sbi_timeo = (u_long)(sb->sb_timeo.tv_sec * hz) + sb->sb_timeo.tv_usec / tick;
H A Dsubr_log.c195 "klog", 5 * hz)) != 0) {
H A Dtty.c1219 tp->t_timeout = *(int *)data * hz;
1224 *(int *)data = tp->t_timeout / hz;
1392 "ttyfls", hz / 10);
1752 * The formula is ceiling(slp * hz/1000000).
1753 * 32-bit arithmetic is enough for hz < 169.
1754 * XXX see hzto() for how to avoid overflow if hz
1756 * use hzto() if hz is large).
1758 slp = (long) (((u_long)slp * hz) + 999999) / 1000000;
1901 tsleep(TSA_OLOWAT(tp), PZERO - 1, "ttoutq", hz); local
H A Dmcache.c212 mcache_reap_interval = 15 * hz;
1388 timeout(func, arg, hz/1000);
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/
H A Din_dhcp.c87 #define RAND_TICKS (hz) /* one second */
544 wait_ticks = INITIAL_WAIT_SECS * hz;
586 if (wait_ticks > (MAX_WAIT_SECS * hz))
587 wait_ticks = MAX_WAIT_SECS * hz;
680 hz * GATHER_TIME_SECS);
750 wait_ticks = INITIAL_WAIT_SECS * hz;
785 tsleep(&error, PRIBIO, "dhcp_init", 10 * hz);
794 if (wait_ticks > (MAX_WAIT_SECS * hz))
795 wait_ticks = MAX_WAIT_SECS * hz;
H A Dip_dummynet.c535 /* hz is 100, which gives a granularity of 10ms in the old timer.
537 * hz has been modified here. All instances of hz have been left
538 * in place but adjusted by a factor of 10 so that hz is functionally
542 ((_m)->m_pkthdr.len*8*(hz*10) - (q)->numbytes + p->bandwidth - 1 ) / \
602 int len_scaled = p->bandwidth ? len*8*(hz*10) : 0 ;
672 int len_scaled = p->bandwidth ? len*8*(hz*10) : 0 ;
1650 p->delay = ( p->delay * (hz*10) ) / 1000 ;
2002 pipe_bp->delay = (pipe_bp->delay * 1000) / (hz*10) ;
H A Din_arp.c197 timeout(arptimer, (caddr_t)0, arpt_prune * hz); local
218 timeout(arptimer, (caddr_t)0, hz);
H A Dtcp_subr.c374 timeout(tcp_fasttimo, NULL, hz/TCP_RETRANSHZ);
1460 (((u_int)isn_last_reseed + (u_int)tcp_isn_reseed_interval*hz)
1491 new_isn += timenow.tv_sec * (ISN_BYTES_PER_SECOND / hz);
H A Dtcp_timer.c300 timeout(tcp_fasttimo, 0, hz/TCP_RETRANSHZ);
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/i386/
H A Dkm.c51 extern int hz;
348 timeout(kmtimeout, tp, hz);
/macosx-10.5.8/xnu-1228.15.4/bsd/netat/
H A Dsysglue.h121 #define HZ hz /* HZ ticks definition used throughout AppleTalk */
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet6/
H A Dip6_input.c279 timeout(ip6_init2, (caddr_t)0, 1 * hz);
295 timeout(ip6_init2, (caddr_t)0, 1 * hz);
302 timeout(nd6_timer, (caddr_t)0, hz);
305 timeout(in6_rr_timer, (caddr_t)0, hz);
310 ip6_temp_regen_advance) * hz);
325 callout_reset(&nd6_timer_ch, hz, nd6_timer, NULL);
329 callout_reset(&in6_rr_timer_ch, hz, in6_rr_timer, NULL);
334 ip6_temp_regen_advance) * hz,
H A Dnd6_nbr.c1126 nd_ifinfo[ifa->ifa_ifp->if_index].retrans * hz / 1000);
1131 ntick = random() % (MAX_RTR_SOLICITATION_DELAY * hz);
1133 ntick = *tick_delay + random() % (hz / 2);
1221 nd_ifinfo[ifa->ifa_ifp->if_index].retrans * hz / 1000);
H A Dnd6.c145 timeout(nd6_slowtimo, (caddr_t)0, ND6_SLOWTIMER_INTERVAL * hz); local
686 timeout(nd6_timer, (caddr_t)0, nd6_prune * hz); local
1943 timeout(nd6_slowtimo, (caddr_t)0, ND6_SLOWTIMER_INTERVAL * hz); local
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/ppc/
H A Dkm.c311 timeout((timeout_fcn_t)kmtimeout, tp, hz);
/macosx-10.5.8/xnu-1228.15.4/bsd/net/
H A Dbridge.c440 timeout(bdg_timeout, (void *)0, 2*hz );
H A Dbpf.c1141 tv->tv_sec = d->bd_rtout / hz;
1142 tv->tv_usec = (d->bd_rtout % hz) * tick;

Completed in 123 milliseconds

12