Searched refs:ticks (Results 26 - 50 of 173) sorted by relevance

1234567

/freebsd-9.3-release/sys/contrib/rdma/
H A Drdma_addr.c160 callout_reset(&addr_ch, req->timeout - ticks, addr_timeout, NULL);
244 if (req->status && time_after_eq(ticks, req->timeout))
255 callout_reset(&addr_ch, req->timeout - ticks, addr_timeout,
303 req->timeout = ticks;
307 req->timeout = msecs_to_ticks(timeout_ms) + ticks;
332 req->timeout = ticks;
335 callout_reset(&addr_ch, req->timeout - ticks, addr_timeout, NULL);
/freebsd-9.3-release/sys/net80211/
H A Dieee80211_rssadapt.c193 ra->ra_ticks = ticks;
230 if ((ticks - ra->ra_ticks) > ra->ra_rs->interval) {
232 ra->ra_ticks = ticks;
304 ra->ra_last_raise = ticks;
318 (ticks - ra->ra_last_raise) >= ra->ra_raise_interval)
H A Dieee80211_scan.c532 time_before(ticks, ic->ic_lastscan + vap->iv_scanvalid)) {
609 "%s: %s scan, ticks %u duration %lu\n", __func__,
611 ticks, duration);
802 * Arrange for the channel change after maxdwell ticks.
882 scanend = ticks + SCAN_PRIVATE(ss)->ss_duration;
892 time_after(ticks + ss->ss_mindwell, scanend))
900 if (time_after(ticks + ss->ss_maxdwell, scanend))
901 maxdwell = scanend - ticks;
935 * timeout to switch channels after maxdwell ticks.
945 SCAN_PRIVATE(ss)->ss_chanmindwell = ticks
[all...]
H A Dieee80211_amrr.c161 amn->amn_ticks = ticks;
236 if (is_enough(amn) && (ticks - amn->amn_ticks) > amrr->amrr_interval) {
244 amn->amn_ticks = ticks;
H A Dieee80211_alq.c149 r->r_timestamp = htonl(ticks);
/freebsd-9.3-release/sys/netinet/cc/
H A Dcc_htcp.c77 #define HTCP_DELTA_L hz /* 1 sec in ticks. */
96 * in units of ticks.
158 /* Time of last congestion event in ticks. */
164 * The maximum number of ticks the value of diff can reach in
210 * for the first HTCP_DELTA_L ticks after either the flow starts
260 htcp_data->t_last_cong = ticks;
290 htcp_data->t_last_cong = ticks;
307 htcp_data->t_last_cong = ticks;
322 htcp_data->t_last_cong = ticks;
379 now = ticks;
[all...]
/freebsd-9.3-release/sys/dev/ipmi/
H A Dipmi_kcs.c57 int status, start = ticks;
62 while (ticks - start < MAX_TIMEOUT && status & KCS_STATUS_IBF) {
68 while (ticks - start < MAX_TIMEOUT &&
80 int status, start = ticks;
85 while (ticks - start < MAX_TIMEOUT && status & KCS_STATUS_OBF) {
91 while (ticks - start < MAX_TIMEOUT &&
/freebsd-9.3-release/sys/sys/
H A Dresourcevar.h114 void addupc_intr(struct thread *td, uintfptr_t pc, u_int ticks);
115 void addupc_task(struct thread *td, uintfptr_t pc, u_int ticks);
/freebsd-9.3-release/sys/arm/mv/
H A Dtimer.c345 uint64_t ticks; local
356 ticks = (uint64_t)(ns * get_tclk()) / 1000000000;
357 if (ticks > MAX_WATCHDOG_TICKS)
361 mv_set_timer(2, ticks);
/freebsd-9.3-release/sys/dev/cfe/
H A Dcfe_api_int.h126 cfe_xint_t ticks; /* current time in ticks */ member in struct:xiocb_time_s
/freebsd-9.3-release/sys/kern/
H A Dsubr_prof.c454 * lose profile ticks when the next tick overwrites this one, but in this
459 addupc_intr(struct thread *td, uintfptr_t pc, u_int ticks) argument
466 if (ticks == 0)
478 if ((v = fuswintr(addr)) == -1 || suswintr(addr, v + ticks) == -1) {
480 td->td_profil_ticks = ticks;
493 addupc_task(struct thread *td, uintfptr_t pc, u_int ticks) argument
502 if (ticks == 0)
523 v += ticks;
H A Dsubr_taskqueue.c237 struct timeout_task *timeout_task, int ticks)
247 if (ticks == 0) {
255 if (ticks < 0)
256 ticks = -ticks; /* Ignore overflow. */
258 if (ticks > 0) {
259 callout_reset(&timeout_task->c, ticks,
236 taskqueue_enqueue_timeout(struct taskqueue *queue, struct timeout_task *timeout_task, int ticks) argument
H A Dsubr_lock.c153 int ticks; member in struct:lock_prof
349 if (l->ticks == t)
354 l->ticks = t;
379 if (l->ticks == t)
403 t = ticks;
H A Dkern_synch.c344 * pause() delays the calling thread by the given number of system ticks.
452 td->td_swvoltick = ticks;
469 PCPU_SET(switchticks, ticks);
581 return ((u_int)ticks - (u_int)curthread->td_swvoltick >= hogticks);
/freebsd-9.3-release/sys/geom/sched/
H A Dgs_rr.c92 int q_slice_end; /* actual slice end time, in ticks */
98 unsigned int q_slice_duration; /* slice size in ticks */
281 * Get a bounded value, optionally convert to a min of t_min ticks.
294 x = x * hz / 1000; /* convert to ticks */
322 * slice size in bytes and ticks, and wait ticks.
367 ticks - qp->q_slice_end >= 0)
489 int delta = ticks - qp->q_lastsub, wait = get_bounded(&me.wait_ms, 2);
494 qp->q_lastsub = ticks;
658 qp->q_slice_end = ticks
[all...]
H A Dg_sched.c411 gsc->gsc_expire = ticks + me.gs_expire_secs * hz;
426 gsc->gsc_expire = ticks + me.gs_expire_secs * hz;
481 if (!sc->sc_hash || ticks - sc->sc_flush_ticks <= 0)
486 if (cp->gsc_refs == 1 && ticks - cp->gsc_expire > 0)
491 sc->sc_flush_ticks = ticks + me.gs_expire_secs * hz;
505 int endticks = ticks + hz;
509 while (sc->sc_pending && endticks - ticks >= 0)
936 int error = 0, endticks = ticks + hz;
949 endticks - ticks >= 0)
/freebsd-9.3-release/sys/netinet/
H A Dtcp_timewait.c337 new_iss += (ticks - tw->t_starttime) * (ISN_BYTES_PER_SECOND / hz);
338 new_irs += (ticks - tw->t_starttime) * (MS_ISN_BYTES_PER_SECOND / hz);
621 tw->tw_time = ticks + 2 * tcp_msl;
641 if (tw == NULL || (!reuse && (tw->tw_time - ticks) > 0))
/freebsd-9.3-release/contrib/ntp/ntpd/
H A Drefclock_shm.c115 int ticks; /* number of attempts to read data*/ member in struct:shmunit
538 up->ticks++;
655 up->ticks, up->good, up->notready,
658 up->ticks = up->good = up->notready = up->bad = up->clash = 0;
H A Dntpsim.c555 long ticks; local
571 ticks = (long)(dtemp / sys_tick + .5);
572 adjtv.tv_usec = (long)(ticks * sys_tick * 1e6);
/freebsd-9.3-release/sys/dev/iicbus/
H A Dad7418.c73 int sc_lastupdate; /* in ticks */
205 if (ticks - sc->sc_lastupdate > hz) {
214 sc->sc_lastupdate = ticks;
/freebsd-9.3-release/sys/vm/
H A Dvm_glue.c667 p->p_swtick = ticks;
711 swtime = (ticks - p->p_swtick) / hz;
720 slptime = (ticks - td->td_slptick) / hz;
880 slptime = (ticks - td->td_slptick) / hz;
1037 p->p_swtick = ticks;
/freebsd-9.3-release/tools/sched/
H A Dschedgraph.py151 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-9.3-release/contrib/ntp/parseutil/
H A Ddcfd.c166 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-9.3-release/contrib/bsnmp/snmp_mibII/
H A DmibII.c385 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-9.3-release/tools/tools/vhba/mptest/
H A Dvhba_mptest.c379 int ticks; local
388 ticks = tvtohz(&t);
389 csio->ccb_h.timeout_ch = timeout(vhba_iodelay, &csio->ccb_h, ticks);

Completed in 701 milliseconds

1234567