/freebsd-12-stable/sys/geom/sched/ |
H A D | gs_rr.c | 94 int q_slice_end; /* actual slice end time, in ticks */ 100 unsigned int q_slice_duration; /* slice size in ticks */ 283 * Get a bounded value, optionally convert to a min of t_min ticks. 296 x = x * hz / 1000; /* convert to ticks */ 324 * slice size in bytes and ticks, and wait ticks. 369 ticks - qp->q_slice_end >= 0) 491 int delta = ticks - qp->q_lastsub, wait = get_bounded(&me.wait_ms, 2); 496 qp->q_lastsub = ticks; 660 qp->q_slice_end = ticks [all...] |
H A D | g_sched.c | 404 gsc->gsc_expire = ticks + me.gs_expire_secs * hz; 419 gsc->gsc_expire = ticks + me.gs_expire_secs * hz; 474 if (!sc->sc_hash || ticks - sc->sc_flush_ticks <= 0) 479 if (cp->gsc_refs == 1 && ticks - cp->gsc_expire > 0) 484 sc->sc_flush_ticks = ticks + me.gs_expire_secs * hz; 498 int endticks = ticks + hz; 502 while (sc->sc_pending && endticks - ticks >= 0) 929 int error = 0, endticks = ticks + hz; 942 endticks - ticks >= 0)
|
/freebsd-12-stable/sys/kern/ |
H A D | kern_synch.c | 424 td->td_swvoltick = ticks; 427 td->td_swinvoltick = ticks; 443 PCPU_SET(switchticks, ticks); 546 return ((u_int)ticks - (u_int)curthread->td_swvoltick >= hogticks);
|
H A D | subr_counter.c | 136 now = ticks;
|
H A D | subr_lock.c | 211 int ticks; member in struct:lock_prof 386 if (l->ticks == t) 391 l->ticks = t; 416 if (l->ticks == t) 440 t = ticks;
|
/freebsd-12-stable/sys/arm/mv/ |
H A D | timer.c | 483 uint64_t ticks; local 495 ticks = (uint64_t)(ns * timer_softc->config->clock_src) / 1000000000; 496 if (ticks > MAX_WATCHDOG_TICKS) { 500 mv_set_timer(WATCHDOG_TIMER_ARMV5, ticks);
|
/freebsd-12-stable/sys/compat/linuxkpi/common/include/linux/ |
H A D | wait.h | 154 int __start = ticks; \ 171 __ret = __timeout + __start - ticks; \
|
/freebsd-12-stable/tools/sched/ |
H A D | schedgraph.py | 151 def ticks2sec(ticks): 152 ticks = float(ticks) 154 ticks /= ns 155 if (ticks < 1000): 156 return ("%.2fns" % ticks) 157 ticks /= 1000 158 if (ticks < 1000): 159 return ("%.2fus" % ticks) 160 ticks / [all...] |
/freebsd-12-stable/contrib/ntp/parseutil/ |
H A D | dcfd.c | 166 static unsigned long ticks = 0; variable 1133 ticks += 1<<ADJINTERVAL; 1135 if ((ticks - last_sync) > MAX_UNSYNC) 1147 last_notice = ticks; 1153 if ((ticks - last_notice) > NOTICE_INTERVAL) 1156 last_notice = ticks; 1774 last_sync = ticks;
|
/freebsd-12-stable/sys/netinet/ |
H A D | tcp_timer.c | 349 if (ticks - tp->t_rcvtime <= TP_MAXIDLE(tp)) { 418 idletime = ticks - tp->t_rcvtime; 438 if (ticks - tp->t_rcvtime >= TP_KEEPIDLE(tp) + TP_MAXIDLE(tp)) 539 (ticks - tp->t_rcvtime >= tcp_maxpersistidle || 540 ticks - tp->t_rcvtime >= TCP_REXMTVAL(tp) * tcp_totbackoff)) { 557 (ticks - tp->t_rcvtime) >= TCPTV_PERSMAX) { 667 tp->t_badrxtwin = ticks + (tp->t_srtt >> (TCP_RTT_SHIFT + 1));
|
/freebsd-12-stable/sys/dev/cxgbe/common/ |
H A D | common.h | 408 unsigned int idma_1s_thresh; /* 1s threshold in Core Clock ticks */ 531 unsigned int ticks) 533 /* add Core Clock / 2 to round ticks to nearest uS */ 534 return ((ticks * 1000 + adapter->params.vpd.cclk/2) / 539 unsigned int ticks) 541 return (ticks << adap->params.tp.dack_re) / core_ticks_per_usec(adap); 550 static inline u_int tcp_ticks_to_us(const struct adapter *adap, u_int ticks) argument 552 return ((uint64_t)ticks << adap->params.tp.tre) / 693 int hz, int ticks); 530 core_ticks_to_us(const struct adapter *adapter, unsigned int ticks) argument 538 dack_ticks_to_usec(const struct adapter *adap, unsigned int ticks) argument
|
/freebsd-12-stable/sys/dev/sfxge/common/ |
H A D | efx_ev.c | 560 unsigned int ticks; local 564 ticks = 0; 566 ticks = 1; /* Never round down to zero */ 568 ticks = us * 1000 / encp->enc_evq_timer_quantum_ns; 570 *ticksp = ticks; 1266 unsigned int ticks; local 1268 if ((rc = efx_ev_usecs_to_ticks(enp, us, &ticks)) != 0) 1271 EFSYS_ASSERT(ticks > 0); 1274 FRF_CZ_TC_TIMER_VAL, ticks - 1);
|
/freebsd-12-stable/sys/netgraph/ |
H A D | ng_pptpgre.c | 1069 int remain, ticks; local 1078 ticks = howmany(remain * hz, PPTP_TIME_SCALE) + 1; 1080 ticks, ng_pptpgre_recv_ack_timeout, hpriv, 0); 1116 int ackTimeout, ticks; local 1126 ticks = howmany(ackTimeout * hz, PPTP_TIME_SCALE); 1128 ticks, ng_pptpgre_send_ack_timeout, hpriv, 0); 1155 int ticks; local 1158 ticks = (((reorder_timeout * hz) + 1000 - 1) / 1000) + 1; 1160 ticks, ng_pptpgre_reorder_timeout, hpriv, 0);
|
/freebsd-12-stable/contrib/ntp/ntpd/ |
H A D | ntpsim.c | 556 long ticks; local 572 ticks = (long)(dtemp / sys_tick + .5); 573 adjtv.tv_usec = (long)(ticks * sys_tick * 1e6);
|
/freebsd-12-stable/contrib/bsnmp/snmp_mibII/ |
H A D | mibII.c | 385 u_int ticks; local 387 if ((ticks = mibif_force_hc_update_interval) == 0) { 390 ticks = 3000 * 100; /* 50 minutes */ 393 ticks = 300 * 100; /* 5 minutes */ 396 ticks = 40 * 100; /* 40 seconds */ 399 ticks = 20 * 100; /* 20 seconds */ 402 ticks = 100; /* 1 seconds */ 406 if (ticks == mibif_hc_update_interval) 414 if ((hc_update_timer = timer_start_repeat(ticks * 10, ticks * 1 [all...] |
/freebsd-12-stable/sys/net80211/ |
H A D | ieee80211_amrr.c | 231 amn->amn_ticks = ticks; 358 if (is_enough(amn) && (ticks - amn->amn_ticks) > amrr->amrr_interval) { 370 amn->amn_ticks = ticks; 508 sbuf_printf(s, "ticks: %d\n", amn->amn_ticks);
|
H A D | ieee80211_power.c | 618 "%s: lastdata=%llu, ticks=%llu\n", 620 (unsigned long long) ticks); 628 if (ieee80211_time_after(ic->ic_lastdata + 500, ticks)) 648 (int) ticks_to_msecs(ticks - ic->ic_lastdata));
|
H A D | ieee80211_alq.c | 159 r->r_timestamp = htobe64(ticks);
|
/freebsd-12-stable/tools/tools/vhba/mptest/ |
H A D | vhba_mptest.c | 379 int ticks; local 388 ticks = tvtohz(&t); 389 csio->ccb_h.timeout_ch = timeout(vhba_iodelay, &csio->ccb_h, ticks);
|
/freebsd-12-stable/sys/dev/acpica/Osd/ |
H A D | OsdSynch.c | 51 * Convert milliseconds to ticks. 210 prevtick = ticks; 220 slptick = ticks - prevtick; 420 prevtick = ticks; 431 slptick = ticks - prevtick;
|
/freebsd-12-stable/sys/dev/drm2/i915/ |
H A D | intel_drv.h | 41 end = ticks + (MS) * hz / 1000; \ 45 if (time_after(ticks, end)) { \ 61 int timeout__ = ticks + (MS) * hz / 1000; \ 64 if (time_after(ticks, timeout__)) { \
|
/freebsd-12-stable/sys/dev/ath/ |
H A D | if_ath_led.c | 196 sc->sc_ledevent = ticks; /* time of last event */
|
/freebsd-12-stable/sys/sys/ |
H A D | taskqueue.h | 86 struct timeout_task *timeout_task, int ticks);
|
/freebsd-12-stable/sys/contrib/vchiq/interface/compat/ |
H A D | vchi_bsd.h | 223 int wait_for_completion_interruptible_timeout(struct completion *, unsigned long ticks); 372 #define jiffies ticks
|
/freebsd-12-stable/sys/compat/linuxkpi/common/src/ |
H A D | linux_schedule.c | 310 remainder = ticks + timeout; 327 remainder -= ticks;
|