/xnu-2422.115.4/bsd/sys/ |
H A D | kernel.h | 96 extern int tick; /* usec per tick (1000000 / hz) */ 97 extern int hz; /* system clock's frequency */
|
H A D | time.h | 183 int hz; /* clock frequency */ member in struct:clockinfo 184 int tick; /* micro-seconds per hz tick */
|
/xnu-2422.115.4/bsd/kern/ |
H A D | kern_clock.c | 102 * 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 D | kern_synch.c | 327 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 D | kern_acct.c | 262 t = tmp.tv_sec * hz + tmp.tv_usec / tick; 410 timeout(acctwatch_funnel, NULL, acctchkfreq * hz);
|
H A D | socket_info.c | 63 sbi->sbi_timeo = (u_int32_t)(sb->sb_timeo.tv_sec * hz) +
|
H A D | subr_log.c | 195 "klog", 5 * hz)) != 0) {
|
H A D | tty.c | 1488 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 D | mcache.c | 212 mcache_reap_interval = 15 * hz; 1419 timeout(func, arg, hz/1000);
|
H A D | kpi_socket.c | 293 if (tv->tv_sec < 0 || tv->tv_sec > SHRT_MAX / hz ||
|
H A D | tty_pty.c | 314 hz);
|
H A D | uipc_domain.c | 633 timeout(domain_timeout, NULL, hz);
|
/xnu-2422.115.4/bsd/netinet/ |
H A D | mptcp_timer.c | 67 #define TIMEVAL_TO_HZ(_tv_) ((_tv_).tv_sec * hz + (_tv_).tv_usec / hz) 87 (mptcp_rto*hz)) { 115 (mptcp_tw * hz)) {
|
H A D | in_dhcp.c | 87 #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 D | mp_pcb.c | 139 timeout(mp_timeout, NULL, hz);
|
H A D | ip_dummynet.c | 484 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 D | in_pcblist.c | 147 xsb->sb_timeo = (short)(sb->sb_timeo.tv_sec * hz) +
|
H A D | in_pcb.c | 381 timeout(inpcb_timeout, NULL, hz); 384 timeout_with_leeway(inpcb_timeout, NULL, hz, 397 timeout(inpcb_timeout, NULL, hz);
|
H A D | ip_mroute.c | 237 #define EXPIRE_TIMEOUT (hz / 4) /* 4x / second */ 246 #define TBF_REPROCESS (hz / 100) /* 100x / second */
|
/xnu-2422.115.4/bsd/net/pktsched/ |
H A D | pktsched_cbq.h | 159 #define CBQ_WATCHDOG (hz / 20) 161 #define CBQ_LS_TIMEOUT (20 * hz / 1000)
|
/xnu-2422.115.4/bsd/dev/i386/ |
H A D | km.c | 51 extern int hz; 370 timeout(kmtimeout, tp, hz);
|
/xnu-2422.115.4/bsd/net/ |
H A D | bpf.c | 573 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 D | nd6_nbr.c | 1606 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 D | nfs_syscalls.c | 277 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 D | nfs_bio.c | 1348 /* 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;
|