Searched refs:ticks (Results 51 - 75 of 173) sorted by relevance

1234567

/freebsd-9.3-release/sys/dev/acpica/Osd/
H A DOsdSynch.c51 * Convert milliseconds to ticks.
193 prevtick = ticks;
203 slptick = ticks - prevtick;
386 prevtick = ticks;
397 slptick = ticks - prevtick;
/freebsd-9.3-release/sys/sys/
H A Dtaskqueue.h66 struct timeout_task *timeout_task, int ticks);
H A Dkernel.h66 extern volatile int ticks;
/freebsd-9.3-release/contrib/ntp/tests/libntp/
H A Dtimevalops.c20 static u_int32 my_tick_to_tsf(u_int32 ticks);
173 my_tick_to_tsf(u_int32 ticks) argument
181 return (u_int32)((( ((u_int64)(ticks)) << 32) + 500000) / 1000000); //I put too much () when casting just to be safe
183 return (u_int32)( ((double)(ticks)) * 4294.967296 + 0.5);
185 // And before you ask: if ticks >= 1000000, the result is
H A Dtimespecops.c25 static u_int32 my_tick_to_tsf(u_int32 ticks);
178 my_tick_to_tsf(u_int32 ticks) argument
186 return (u_int32)((( ((u_int64)(ticks)) << 32) + 500000000) / 1000000000);
188 return (u_int32)((double(ticks)) * 4.294967296 + 0.5);
190 // And before you ask: if ticks >= 1000000000, the result is
/freebsd-9.3-release/sys/dev/ath/ath_rate/onoe/
H A Donoe.c174 if (on->on_interval != 0 && ticks - on->on_ticks > on->on_interval) {
176 on->on_ticks = ticks;
/freebsd-9.3-release/sys/dev/netmap/
H A Dif_lem_netmap.h157 if (ticks != kring->last_reclaim || flags & NAF_FORCE_RECLAIM || nm_kr_txempty(kring)) {
158 kring->last_reclaim = ticks;
/freebsd-9.3-release/sys/net80211/
H A Dieee80211_dfs.c212 now = oldest = ticks;
278 now = ticks;
H A Dieee80211_scan_sta.c367 if (se->se_fails && (ticks - se->se_lastfail) > STA_FAILS_AGE*hz) {
373 se->se_lastupdate = ticks; /* update time */
1329 if (time_after(ticks, ic->ic_lastscan + vap->iv_scanvalid)) {
1339 time_after(ticks, ic->ic_lastdata + vap->iv_bgscanidle))
1410 se->base.se_age = ticks - se->se_lastupdate;
1431 se->se_lastfail = ticks;
1453 se->se_lastassoc = ticks;
/freebsd-9.3-release/sys/dev/ath/ath_rate/sample/
H A Dsample.c250 ticks - sn->stats[size_bin][rix].last_tx < ssc->stale_failure_timeout) {
391 } else if (ticks - ssc->min_switch > sn->ticks_since_switch[size_bin]) {
420 sn->ticks_since_switch[size_bin] = ticks;
558 sn->stats[y][rix0].last_tx = ticks;
567 sn->stats[size_bin][rix0].last_tx = ticks;
888 printf("[%4u] cur rix %d (%d %s) since switch: packets %d ticks %u\n",
915 ticks - sn->stats[y][rix].last_tx);
/freebsd-9.3-release/sys/netgraph/
H A Dng_pptpgre.c840 int remain, ticks; local
849 ticks = (((remain * hz) + PPTP_TIME_SCALE - 1) / PPTP_TIME_SCALE) + 1;
851 ticks, ng_pptpgre_recv_ack_timeout, hpriv, 0);
887 int ackTimeout, ticks; local
897 ticks = (((ackTimeout * hz) + PPTP_TIME_SCALE - 1) / PPTP_TIME_SCALE);
899 ticks, ng_pptpgre_send_ack_timeout, hpriv, 0);
/freebsd-9.3-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Ddmu_zfetch.c607 clock_t ticks; local
609 ticks = zfetch_min_sec_reap * hz;
616 if (ddi_get_lbolt() - zs->zst_last > ticks)
/freebsd-9.3-release/sys/dev/ath/ath_hal/ar9002/
H A Dar9285_diversity.c363 unsigned long ticks, int hz)
408 if (time_after(ticks, antcomb->scan_start_time +
631 antcomb->scan_start_time = ticks;
362 ar9285_ant_comb_scan(struct ath_hal *ah, struct ath_rx_status *rs, unsigned long ticks, int hz) argument
/freebsd-9.3-release/sys/dev/drm/
H A Dvia_dmablit.c354 } else if (blitq->is_active && (ticks >= blitq->end)) {
362 blitq->end = ticks + DRM_HZ;
371 blitq->end = ticks + DRM_HZ;
/freebsd-9.3-release/sys/netinet/
H A Dtcp_input.c1519 tp->t_rcvtime = ticks;
1661 (int)(ticks - tp->t_badrxtwin) < 0) {
1685 tp->t_rttlow > ticks - tp->t_rtttime)
1686 tp->t_rttlow = ticks - tp->t_rtttime;
1688 ticks - tp->t_rtttime);
1958 tp->t_starttime = ticks;
2360 tp->t_starttime = ticks;
2640 (int)(ticks - tp->t_badrxtwin) < 0)
2665 if (!tp->t_rttlow || tp->t_rttlow > ticks - tp->t_rtttime)
2666 tp->t_rttlow = ticks
[all...]
/freebsd-9.3-release/sys/x86/x86/
H A Dmca.c501 delta = (u_int)(ticks - cc->last_intr);
518 cc->last_intr = ticks;
817 cc->last_intr = -ticks;
/freebsd-9.3-release/sys/dev/ath/ath_rate/amrr/
H A Damrr.c181 ticks - amn->amn_ticks > amn->amn_interval) {
183 amn->amn_ticks = ticks;
/freebsd-9.3-release/sys/dev/cfe/
H A Dcfe_api.c362 xiocb.plist.xiocb_time.ticks = 0;
366 return xiocb.plist.xiocb_time.ticks;
/freebsd-9.3-release/sys/dev/drm2/i915/
H A Dintel_drv.h41 end = ticks + (MS) * hz / 1000; \
45 if (time_after(ticks, end)) { \
/freebsd-9.3-release/usr.sbin/boot0cfg/
H A Dboot0cfg.c60 int ticks; member in struct:opt_offsets
74 #define OFF_TICKS (b0_ofs[b0_ver].ticks) /* clock ticks */
427 printf("version=%d.%d drive=0x%x mask=0x%x ticks=%u",
572 " [-o options] [-s slice] [-t ticks] disk");
/freebsd-9.3-release/sys/compat/ndis/
H A Dsubr_hal.c387 return ((uint64_t)ticks);
/freebsd-9.3-release/sys/i386/acpica/
H A Dacpi_wakeup.c286 PCPU_SET(switchticks, ticks);
/freebsd-9.3-release/sys/kern/
H A Dkern_clocksource.c75 static void cpu_new_callout(int cpu, int ticks);
768 * Switch to idle mode (all ticks handled).
801 * Switch to active mode (skip empty ticks).
867 cpu_new_callout(int cpu, int ticks) argument
873 curcpu, cpu, ticks);
886 bintime_mul(&tmp, ticks - 1);
H A Dkern_timeout.c107 * It tracks the global 'ticks' but in a way that the individual
155 void (*callout_new_inserted)(int cpu, int ticks) = NULL;
347 cc->cc_firsttick = cc->cc_ticks = ticks;
378 /* search scanning ticks */
427 c->c_time = ticks + to_ticks;
434 to_ticks + (ticks - cc->cc_ticks));
1098 * How many ticks were we asleep?
1131 /* take back the ticks the timer didn't use (p->c_time <= 0) */
H A Dsched_ule.c100 u_int ts_slptime; /* Number of ticks we vol. slept */
101 u_int ts_runtime; /* Number of ticks we were running */
139 * SCHED_TICK_TARG: Number of hz ticks to average the cpu usage across.
140 * SCHED_TICK_MAX: Maximum number of ticks before scaling back.
142 * SCHED_TICK_HZ: Compute the number of hz ticks for a given ticks count.
143 * SCHED_TICK_TOTAL: Gives the amount of time we've been recording ticks.
155 * by the ratio of ticks to the tick total. NHALF priorities at the start
161 * PRI_TICKS: Compute a priority in PRI_RANGE from the ticks count and total.
256 #define SCHED_AFFINITY(ts, t) ((ts)->ts_rltick > ticks
[all...]

Completed in 316 milliseconds

1234567