Home
last modified time | relevance | path

Searched refs:hz (Results 1 – 25 of 37) sorted by relevance

12

/xnu-12377.1.9/bsd/kern/
H A Dkern_clock.c111 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 Dkern_synch.c346 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 Dkern_acct.c278 t = (int)(tmp.tv_sec * hz + tmp.tv_usec / tick); in acct_process()
419 timeout(acctwatch, NULL, acctchkfreq * hz); in acctwatch()
H A Dsocket_info.c66 sbi->sbi_timeo = (short)((sb->sb_timeo.tv_sec * hz) + in fill_sockbuf_info()
H A Dtty.c1607 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 Dsubr_log.c259 error = tsleep((caddr_t)mbp, (PZERO + 1) | PCATCH, "klog", 5 * hz); in logread()
H A Duipc_domain.c662 timeout(domain_timeout, NULL, hz); in domain_sched_timeout()
H A Dkpi_socket.c362 if (tv->tv_sec < 0 || tv->tv_sec > SHRT_MAX / hz || in sock_connectwait()
H A Dmcache.c1539 timeout(func, arg, hz / 1000); in mcache_dispatch()
/xnu-12377.1.9/tests/
H A Dso_linger.c127 …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 Dmptcp_timer.c67 #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 Dmp_pcb.c137 timeout(mp_timeout, NULL, hz); in mp_sched_timeout()
H A Dip_dummynet.c558 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 Din_pcblist.c178 xsb->sb_timeo = (short)((sb->sb_timeo.tv_sec * hz) + in sbtoxsockbuf_n()
H A Dmptcp_usrreq.c135 mp_so->so_linger = (short)(TCP_LINGERTIME * hz); in mptcp_usr_attach()
/xnu-12377.1.9/bsd/dev/arm/
H A Dkm.c27 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 Dkernel.h100 extern int hz; /* system clock's frequency */
H A Dtime.h196 int hz; /* clock frequency */ member
/xnu-12377.1.9/bsd/dev/i386/
H A Dkm.c51 extern int hz;
377 timeout(kmtimeout, tp, hz); in kmoutput()
/xnu-12377.1.9/bsd/netinet6/
H A Dnd6_nbr.c1825 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 Din6_ifattach.c1245 ip6_desync_factor - ip6_temp_regen_advance) * hz); in in6_tmpaddrtimer()
H A Dfrag6.c1158 timeout(frag6_timeout, NULL, hz); in frag6_sched_timeout()
H A Dnd6.c310 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 Dbpf.c912 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 Dnfs.h94 #define NFS_HZ (hz / nfs_ticks) /* Ticks/sec */

12