| /xnu-12377.1.9/bsd/kern/ |
| H A D | kern_clock.c | 111 int hz = 100; /* GET RID OF THIS !!! */ variable 133 clock_interval_to_deadline(interval, NSEC_PER_SEC / hz, &deadline); in timeout() 155 clock_interval_to_deadline(interval, NSEC_PER_SEC / hz, &deadline); in timeout_with_leeway() 157 clock_interval_to_absolutetime_interval(leeway_interval, NSEC_PER_SEC / hz, &leeway); in timeout_with_leeway() 239 } else if (sec <= 0x7fffffff / hz) { in hzto() 240 ticks = sec * hz; in hzto() 256 .hz = hz, in sysctl_clockrate() 259 .stathz = hz, in sysctl_clockrate() 260 .profhz = hz, in sysctl_clockrate() 319 } else if (sec <= LONG_MAX / hz) { in tvtohz() [all …]
|
| H A D | kern_synch.c | 346 clock_interval_to_deadline(timo, NSEC_PER_SEC / hz, &abstime); in msleep0() 391 clock_interval_to_deadline(timo, NSEC_PER_SEC / hz, &abstime); in tsleep() 407 clock_interval_to_deadline(timo, NSEC_PER_SEC / hz, &abstime); in tsleep0()
|
| H A D | kern_acct.c | 278 t = (int)(tmp.tv_sec * hz + tmp.tv_usec / tick); in acct_process() 419 timeout(acctwatch, NULL, acctchkfreq * hz); in acctwatch()
|
| H A D | socket_info.c | 66 sbi->sbi_timeo = (short)((sb->sb_timeo.tv_sec * hz) + in fill_sockbuf_info()
|
| H A D | tty.c | 1607 tp->t_timeout = *(int *)data * hz; in ttioctl_locked() 1612 *(int *)data = tp->t_timeout / hz; in ttioctl_locked() 1880 "ttyfls", hz / 10); in ttyflush() 2277 slp = (long) (((u_int32_t)slp * hz) + 999999) / 1000000; in ttread() 2364 "ttybg3", hz); in ttread() 2448 ttysleep(tp, TSA_OLOWAT(tp), PZERO - 1, "ttoutq", hz); in ttycheckoutq()
|
| H A D | subr_log.c | 259 error = tsleep((caddr_t)mbp, (PZERO + 1) | PCATCH, "klog", 5 * hz); in logread()
|
| H A D | uipc_domain.c | 662 timeout(domain_timeout, NULL, hz); in domain_sched_timeout()
|
| H A D | kpi_socket.c | 362 if (tv->tv_sec < 0 || tv->tv_sec > SHRT_MAX / hz || in sock_connectwait()
|
| H A D | mcache.c | 1539 timeout(func, arg, hz / 1000); in mcache_dispatch()
|
| /xnu-12377.1.9/tests/ |
| H A D | so_linger.c | 127 …T_LOG("l_linger %d * clkinfo.hz %d = %d", set_l.l_linger, clkinfo.hz, (set_l.l_linger * clkinfo.hz… 156 …T_LOG("l_linger %d * clkinfo.hz %d = %d", set_l.l_linger, clkinfo.hz, (set_l.l_linger * clkinfo.hz…
|
| /xnu-12377.1.9/bsd/netinet/ |
| H A D | mptcp_timer.c | 67 #define TIMEVAL_TO_HZ(_tv_) ((_tv_).tv_sec * hz + (_tv_).tv_usec / hz) 85 if ((now_msecs - mp_tp->mpt_rxtstart) > (mptcp_rto * hz)) { in mptcp_timer_demux() 113 (mptcp_tw * hz)) { in mptcp_timer_demux()
|
| H A D | mp_pcb.c | 137 timeout(mp_timeout, NULL, hz); in mp_sched_timeout()
|
| H A D | ip_dummynet.c | 558 pipe_bp->delay = (pipe_bp->delay * 1000) / (hz * 10); in cp_pipe_to_32_user() 613 pipe_bp->delay = (pipe_bp->delay * 1000) / (hz * 10); in cp_pipe_to_64_user() 921 ((_m)->m_pkthdr.len*8*(hz*10) - (q)->numbytes + p->bandwidth - 1 ) / \ 982 int len_scaled = p->bandwidth ? len * 8 * (hz * 10) : 0; in ready_event() 1055 u_int64_t len_scaled = p->bandwidth ? len * 8 * (hz * 10) : 0; in ready_event_wfq() 2162 p->delay = (p->delay * (hz * 10)) / 1000; in config_pipe()
|
| H A D | in_pcblist.c | 178 xsb->sb_timeo = (short)((sb->sb_timeo.tv_sec * hz) + in sbtoxsockbuf_n()
|
| H A D | mptcp_usrreq.c | 135 mp_so->so_linger = (short)(TCP_LINGERTIME * hz); in mptcp_usr_attach()
|
| /xnu-12377.1.9/bsd/dev/arm/ |
| H A D | km.c | 27 extern int hz; 296 timeout(kmtimeout, tp, hz); in kmstart() 372 timeout(kmtimeout, tp, hz); in kmoutput()
|
| /xnu-12377.1.9/bsd/sys/ |
| H A D | kernel.h | 100 extern int hz; /* system clock's frequency */
|
| H A D | time.h | 196 int hz; /* clock frequency */ member
|
| /xnu-12377.1.9/bsd/dev/i386/ |
| H A D | km.c | 51 extern int hz; 377 timeout(kmtimeout, tp, hz); in kmoutput()
|
| /xnu-12377.1.9/bsd/netinet6/ |
| H A D | nd6_nbr.c | 1825 retrans = ndi->retrans * hz / 1000; in nd6_dad_start() 1832 ntick = random() % (MAX_RTR_SOLICITATION_DELAY * hz); in nd6_dad_start() 1834 ntick = *tick_delay + random() % (hz / 2); in nd6_dad_start() 2004 retrans = ndi->retrans * hz / 1000; in nd6_dad_timer() 2036 retrans = ndi->retrans * hz / 1000; in nd6_dad_timer()
|
| H A D | in6_ifattach.c | 1245 ip6_desync_factor - ip6_temp_regen_advance) * hz); in in6_tmpaddrtimer()
|
| H A D | frag6.c | 1158 timeout(frag6_timeout, NULL, hz); in frag6_sched_timeout()
|
| H A D | nd6.c | 310 timeout(nd6_slowtimo, NULL, ND6_SLOWTIMER_INTERVAL * hz); in nd6_init() 3865 timeout(nd6_slowtimo, NULL, ND6_SLOWTIMER_INTERVAL * hz); in nd6_slowtimo()
|
| /xnu-12377.1.9/bsd/net/ |
| H A D | bpf.c | 912 tv.tv_sec = d->bd_rtout / hz; in bpf_start_timer() 913 tv.tv_usec = (d->bd_rtout % hz) * tick; in bpf_start_timer() 1212 clock_interval_to_deadline(timo, NSEC_PER_SEC / hz, &abstime); in bpf_sleep() 2325 tv.tv_sec = d->bd_rtout / hz; in bpfioctl() 2326 tv.tv_usec = (d->bd_rtout % hz) * tick; in bpfioctl() 2335 tv.tv_sec = d->bd_rtout / hz; in bpfioctl() 2336 tv.tv_usec = (d->bd_rtout % hz) * tick; in bpfioctl()
|
| /xnu-12377.1.9/bsd/nfs/ |
| H A D | nfs.h | 94 #define NFS_HZ (hz / nfs_ticks) /* Ticks/sec */
|