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

123

/xnu-2422.115.4/bsd/sys/
H A Dkernel.h96 extern int tick; /* usec per tick (1000000 / hz) */
97 extern int hz; /* system clock's frequency */
H A Dtime.h183 int hz; /* clock frequency */ member in struct:clockinfo
184 int tick; /* micro-seconds per hz tick */
/xnu-2422.115.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);
148 * interval: timeout interval, in hz.
149 * leeway_interval: leeway interval, in hz.
161 clock_interval_to_deadline(interval, NSEC_PER_SEC / hz, &deadline);
163 clock_interval_to_absolutetime_interval(leeway_interval, NSEC_PER_SEC / hz,
[all...]
H A Dkern_synch.c327 clock_interval_to_deadline(timo, NSEC_PER_SEC / hz, &abstime);
371 clock_interval_to_deadline(timo, NSEC_PER_SEC / hz, &abstime);
386 clock_interval_to_deadline(timo, NSEC_PER_SEC / hz, &abstime);
H A Dkern_acct.c262 t = tmp.tv_sec * hz + tmp.tv_usec / tick;
410 timeout(acctwatch_funnel, NULL, acctchkfreq * hz);
H A Dsocket_info.c63 sbi->sbi_timeo = (u_int32_t)(sb->sb_timeo.tv_sec * hz) +
H A Dsubr_log.c195 "klog", 5 * hz)) != 0) {
H A Dtty.c1488 tp->t_timeout = *(int *)data * hz;
1493 *(int *)data = tp->t_timeout / hz;
1723 "ttyfls", hz / 10);
2105 * The formula is ceiling(slp * hz/1000000).
2106 * 32-bit arithmetic is enough for hz < 169.
2107 * XXX see hzto() for how to avoid overflow if hz
2109 * use hzto() if hz is large).
2111 slp = (long) (((u_int32_t)slp * hz) + 999999) / 1000000;
2190 "ttybg3", hz);
2267 ttysleep(tp, TSA_OLOWAT(tp), PZERO - 1, "ttoutq", hz);
[all...]
H A Dmcache.c212 mcache_reap_interval = 15 * hz;
1419 timeout(func, arg, hz/1000);
H A Dkpi_socket.c293 if (tv->tv_sec < 0 || tv->tv_sec > SHRT_MAX / hz ||
H A Dtty_pty.c314 hz);
H A Duipc_domain.c633 timeout(domain_timeout, NULL, hz);
/xnu-2422.115.4/bsd/netinet/
H A Dmptcp_timer.c67 #define TIMEVAL_TO_HZ(_tv_) ((_tv_).tv_sec * hz + (_tv_).tv_usec / hz)
87 (mptcp_rto*hz)) {
115 (mptcp_tw * hz)) {
H A Din_dhcp.c87 #define RAND_TICKS (hz) /* one second */
526 wait_ticks = INITIAL_WAIT_SECS * hz;
564 if (wait_ticks > (MAX_WAIT_SECS * hz))
565 wait_ticks = MAX_WAIT_SECS * hz;
658 hz * GATHER_TIME_SECS);
728 wait_ticks = INITIAL_WAIT_SECS * hz;
759 tsleep(&error, PRIBIO, "dhcp_init", 10 * hz);
768 if (wait_ticks > (MAX_WAIT_SECS * hz))
769 wait_ticks = MAX_WAIT_SECS * hz;
H A Dmp_pcb.c139 timeout(mp_timeout, NULL, hz);
H A Dip_dummynet.c484 pipe_bp->delay = (pipe_bp->delay * 1000) / (hz*10) ;
525 pipe_bp->delay = (pipe_bp->delay * 1000) / (hz*10) ;
772 /* hz is 100, which gives a granularity of 10ms in the old timer.
774 * hz has been modified here. All instances of hz have been left
775 * in place but adjusted by a factor of 10 so that hz is functionally
779 ((_m)->m_pkthdr.len*8*(hz*10) - (q)->numbytes + p->bandwidth - 1 ) / \
839 int len_scaled = p->bandwidth ? len*8*(hz*10) : 0 ;
910 int len_scaled = p->bandwidth ? len*8*(hz*10) : 0 ;
2082 p->delay = ( p->delay * (hz*1
[all...]
H A Din_pcblist.c147 xsb->sb_timeo = (short)(sb->sb_timeo.tv_sec * hz) +
H A Din_pcb.c381 timeout(inpcb_timeout, NULL, hz);
384 timeout_with_leeway(inpcb_timeout, NULL, hz,
397 timeout(inpcb_timeout, NULL, hz);
H A Dip_mroute.c237 #define EXPIRE_TIMEOUT (hz / 4) /* 4x / second */
246 #define TBF_REPROCESS (hz / 100) /* 100x / second */
/xnu-2422.115.4/bsd/net/pktsched/
H A Dpktsched_cbq.h159 #define CBQ_WATCHDOG (hz / 20)
161 #define CBQ_LS_TIMEOUT (20 * hz / 1000)
/xnu-2422.115.4/bsd/dev/i386/
H A Dkm.c51 extern int hz;
370 timeout(kmtimeout, tp, hz);
/xnu-2422.115.4/bsd/net/
H A Dbpf.c573 tv.tv_sec = d->bd_rtout / hz;
574 tv.tv_usec = (d->bd_rtout % hz) * tick;
804 clock_interval_to_deadline(timo, NSEC_PER_SEC / hz, &abstime);
1479 tv.tv_sec = d->bd_rtout / hz;
1480 tv.tv_usec = (d->bd_rtout % hz) * tick;
1489 tv.tv_sec = d->bd_rtout / hz;
1490 tv.tv_usec = (d->bd_rtout % hz) * tick;
/xnu-2422.115.4/bsd/netinet6/
H A Dnd6_nbr.c1606 retrans = ndi->retrans * hz / 1000;
1614 ntick = random() % (MAX_RTR_SOLICITATION_DELAY * hz);
1616 ntick = *tick_delay + random() % (hz / 2);
1776 retrans = ndi->retrans * hz / 1000;
/xnu-2422.115.4/bsd/nfs/
H A Dnfs_syscalls.c277 error = msleep0(niod, nfsiod_mutex, PWAIT | PDROP, "nfsiod", NFS_ASYNCTHREADMAXIDLE*hz, nfsiod_continue);
385 error = msleep0(niod, nfsiod_mutex, PWAIT | PDROP, "nfsiod", NFS_ASYNCTHREADMAXIDLE*hz, nfsiod_continue);
H A Dnfs_bio.c1348 /* the hz value is 100; which leads to 10ms */
1737 tsleep(&nmp->nm_state, (PZERO-1), "nfsgrace", 2*hz);
2889 tsleep(&nmp->nm_state, (PZERO-1), "nfsgrace", 2*hz);
3319 slptimeo = 2 * hz;
3377 slptimeo = 2 * hz;
3632 slptimeo = 2 * hz;

Completed in 147 milliseconds

123