/freebsd/sys/dev/ioat/ |
H A D | ioat_test.c | 476 start = ticks; in ioat_dma_test() 482 else if (test->duration != 0 && time_after(ticks, end)) { in ioat_dma_test() 491 ticks - start, ticks - end, (ticks - start) / hz); in ioat_dma_test() 499 ticks - start, ticks - end, (ticks - start) / hz); in ioat_dma_test()
|
/freebsd/sys/net80211/ |
H A D | ieee80211_rssadapt.c | 207 ra->ra_ticks = ticks; in rssadapt_node_init() 252 if ((ticks - ra->ra_ticks) > ra->ra_rs->interval) { in rssadapt_rate() 254 ra->ra_ticks = ticks; in rssadapt_rate() 326 ra->ra_last_raise = ticks; in rssadapt_raise_rate() 351 (ticks - ra->ra_last_raise) >= ra->ra_raise_interval) in rssadapt_tx_complete()
|
/freebsd/sys/powerpc/powermac/ |
H A D | platform_powermac.c | 229 int32_t ticks = -1; in powermac_timebase_freq() local 233 OF_getprop(phandle, "timebase-frequency", &ticks, sizeof(ticks)); in powermac_timebase_freq() 235 if (ticks <= 0) in powermac_timebase_freq() 238 return (ticks); in powermac_timebase_freq()
|
/freebsd/sys/compat/linuxkpi/common/src/ |
H A D | linux_netdev.c | 67 (unsigned int)ticks, _n, (uintmax_t)(_n)->state, \ 71 (unsigned int)ticks, _n, (uintmax_t)(_n)->state, \ 76 (unsigned int)ticks, _n, (uintmax_t)(_n)->state, \ 79 printf("NAPI_TODO %s:%d %d\n", __func__, __LINE__, ticks) 81 printf("NAPI_IMPROVE %s:%d %d\n", __func__, __LINE__, ticks)
|
/freebsd/cddl/usr.sbin/dtrace/tests/common/tick-n/ |
H A D | Makefile | 22 tst.ticks.d \ 23 tst.ticks.d.out \
|
/freebsd/sys/netinet/cc/ |
H A D | cc_cubic.c | 273 cubic_data->t_epoch = ticks; in cubic_ack_received() 279 cubic_data->t_epoch = ticks; in cubic_ack_received() 283 usecs_since_epoch = (ticks - cubic_data->t_epoch) * tick; in cubic_ack_received() 289 cubic_data->t_epoch = ticks - INT_MAX; in cubic_ack_received() 368 cubic_data->t_epoch = ticks; in cubic_after_idle() 397 cubic_data->t_epoch = ticks; in cubic_cb_init() 441 cubic_data->t_epoch = ticks; in cubic_cong_signal() 458 cubic_data->t_epoch = ticks; in cubic_cong_signal()
|
H A D | cc_htcp.c | 270 htcp_data->t_last_cong = ticks; in htcp_cb_init() 302 htcp_data->t_last_cong = ticks; in htcp_cong_signal() 319 htcp_data->t_last_cong = ticks; in htcp_cong_signal() 346 htcp_data->t_last_cong = ticks; in htcp_cong_signal() 411 now = ticks; in htcp_recalc_alpha()
|
/freebsd/sys/dev/sfxge/common/ |
H A D | ef10_ev.c | 216 unsigned int ticks; in efx_mcdi_init_evq() local 218 if ((rc = efx_ev_usecs_to_ticks(enp, us, &ticks)) != 0) in efx_mcdi_init_evq() 223 MCDI_IN_SET_DWORD(req, INIT_EVQ_IN_TMR_LOAD, ticks); in efx_mcdi_init_evq() 224 MCDI_IN_SET_DWORD(req, INIT_EVQ_IN_TMR_RELOAD, ticks); in efx_mcdi_init_evq() 341 unsigned int ticks; in efx_mcdi_init_evq_v2() local 343 if ((rc = efx_ev_usecs_to_ticks(enp, us, &ticks)) != 0) in efx_mcdi_init_evq_v2() 348 MCDI_IN_SET_DWORD(req, INIT_EVQ_V2_IN_TMR_LOAD, ticks); in efx_mcdi_init_evq_v2() 711 unsigned int ticks; in ef10_ev_qmoderate() local 721 ERF_DD_EVQ_IND_TIMER_VAL, ticks); in ef10_ev_qmoderate() 732 ERF_DZ_TC_TIMER_VAL, ticks, in ef10_ev_qmoderate() [all …]
|
H A D | efx_ev.c | 560 unsigned int ticks; in efx_ev_usecs_to_ticks() local 564 ticks = 0; in efx_ev_usecs_to_ticks() 566 ticks = 1; /* Never round down to zero */ in efx_ev_usecs_to_ticks() 568 ticks = us * 1000 / encp->enc_evq_timer_quantum_ns; in efx_ev_usecs_to_ticks() 570 *ticksp = ticks; in efx_ev_usecs_to_ticks() 1265 unsigned int ticks; in siena_ev_qmoderate() local 1267 if ((rc = efx_ev_usecs_to_ticks(enp, us, &ticks)) != 0) in siena_ev_qmoderate() 1270 EFSYS_ASSERT(ticks > 0); in siena_ev_qmoderate() 1273 FRF_CZ_TC_TIMER_VAL, ticks - 1); in siena_ev_qmoderate()
|
/freebsd/sys/arm/mv/armada/ |
H A D | wdt.c | 349 uint64_t ticks; in mv_watchdog_event() local 362 ticks = (uint64_t)(ns * sc->wdt_config->wdt_clock_src) / 1000000000; in mv_watchdog_event() 363 if (ticks > MAX_WATCHDOG_TICKS) { in mv_watchdog_event() 368 mv_set_timer(wdt_softc->wdt_config->wdt_timer, ticks); in mv_watchdog_event()
|
/freebsd/sys/dev/iicbus/adc/ |
H A D | ad7418.c | 115 sc->sc_lastupdate = ticks - hz; in ad7418_attach() 199 if (ticks - sc->sc_lastupdate > hz) { in ad7418_update() 208 sc->sc_lastupdate = ticks; in ad7418_update()
|
/freebsd/sys/kern/ |
H A D | subr_pidctrl.c | 88 pc->pc_ticks = ticks; in pidctrl_classic() 125 if ((u_int)ticks - pc->pc_ticks >= pc->pc_interval) { in pidctrl_daemon() 126 pc->pc_ticks = ticks; in pidctrl_daemon()
|
H A D | kern_clock.c | 191 tticks = ticks - td->td_blktick; in deadlres_td_on_lock() 217 tticks = ticks - td->td_slptick; in deadlres_td_sleep_q() 372 volatile int ticks; variable 490 global = ticks; in hardclock() 499 } while (!atomic_fcmpset_int(&ticks, &global, *t)); in hardclock() 547 *t = ticks; in hardclock_sync()
|
/freebsd/sys/arm/broadcom/bcm2835/ |
H A D | bcm2835_wdog.c | 164 uint32_t ticks, reg; in bcmwd_watchdog_fn() local 188 ticks = (sec << 16) & BCM2835_WDOG_TIME_MASK; in bcmwd_watchdog_fn() 189 reg = (BCM2835_PASSWORD << BCM2835_PASSWORD_SHIFT) | ticks; in bcmwd_watchdog_fn()
|
/freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/ |
H A D | timer.h | 53 #define delay(ticks) schedule_timeout_uninterruptible(ticks) argument
|
/freebsd/sys/powerpc/ps3/ |
H A D | platform_ps3.c | 177 uint64_t ticks, node_id, junk; in ps3_timebase_freq() local 183 lv1_repository_string("clock"), 0, &ticks, &junk); in ps3_timebase_freq() 185 return (ticks); in ps3_timebase_freq()
|
/freebsd/sys/powerpc/pseries/ |
H A D | platform_chrp.c | 320 int32_t ticks = -1; in chrp_timebase_freq() local 336 OF_getencprop(cpunode, "timebase-frequency", &ticks, sizeof(ticks)); in chrp_timebase_freq() 338 if (ticks <= 0) in chrp_timebase_freq() 341 return (ticks); in chrp_timebase_freq()
|
/freebsd/tools/sched/ |
H A D | schedgraph.py | 154 def ticks2sec(ticks): argument 155 ticks = float(ticks) 157 ticks /= ns 158 if (ticks < 1000): 160 ticks /= 1000 161 if (ticks < 1000): 163 ticks /= 1000 164 if (ticks < 1000): 166 ticks /= 1000 920 self.ticks = {} [all …]
|
/freebsd/sys/powerpc/powernv/ |
H A D | platform_powernv.c | 287 int32_t ticks = -1; in powernv_timebase_freq() local 306 OF_getencprop(cpu, "timebase-frequency", &ticks, sizeof(ticks)); in powernv_timebase_freq() 308 if (ticks <= 0) in powernv_timebase_freq() 311 return (ticks); in powernv_timebase_freq()
|
/freebsd/sys/dev/ocs_fc/ |
H A D | ocs_os.h | 744 uint32_t ticks; in ocs_sem_p() local 748 ticks = tvtohz(&tv); in ocs_sem_p() 749 if (ticks == 0) { in ocs_sem_p() 750 ticks ++; in ocs_sem_p() 752 rc = sema_timedwait(&sem->sem, ticks); in ocs_sem_p() 1371 return ticks; in ocs_get_os_ticks()
|
/freebsd/contrib/ntp/html/hints/ |
H A D | solaris.xtra.4023118 | 21 The fundamental problem lies in the kernel's perception of ticks per 26 quite far from the actual ticks per second. Typical was the 143 mHz
|
/freebsd/sys/dev/liquidio/base/ |
H A D | lio_response_manager.c | 156 lio_check_timeout(ticks, sc->timeout))) { in lio_process_ordered_list() 158 __func__, ticks, sc->timeout); in lio_process_ordered_list()
|
/freebsd/contrib/bsnmp/snmp_mibII/ |
H A D | mibII.c | 385 u_int ticks; in mibif_reset_hc_timer() local 387 if ((ticks = mibif_force_hc_update_interval) == 0) { in mibif_reset_hc_timer() 390 ticks = 3000 * 100; /* 50 minutes */ in mibif_reset_hc_timer() 393 ticks = 300 * 100; /* 5 minutes */ in mibif_reset_hc_timer() 396 ticks = 40 * 100; /* 40 seconds */ in mibif_reset_hc_timer() 399 ticks = 20 * 100; /* 20 seconds */ in mibif_reset_hc_timer() 402 ticks = 100; /* 1 seconds */ in mibif_reset_hc_timer() 406 if (ticks == mibif_hc_update_interval) in mibif_reset_hc_timer() 414 if ((hc_update_timer = timer_start_repeat(ticks, ticks, in mibif_reset_hc_timer() 416 syslog(LOG_ERR, "timer_start(%u): %m", ticks); in mibif_reset_hc_timer() [all …]
|
/freebsd/sys/netgraph/ |
H A D | ng_pptpgre.c | 1073 int remain, ticks; in ng_pptpgre_start_recv_ack_timer() local 1082 ticks = howmany(remain * hz, PPTP_TIME_SCALE) + 1; in ng_pptpgre_start_recv_ack_timer() 1084 ticks, ng_pptpgre_recv_ack_timeout, hpriv, 0); in ng_pptpgre_start_recv_ack_timer() 1120 int ackTimeout, ticks; in ng_pptpgre_start_send_ack_timer() local 1130 ticks = howmany(ackTimeout * hz, PPTP_TIME_SCALE); in ng_pptpgre_start_send_ack_timer() 1132 ticks, ng_pptpgre_send_ack_timeout, hpriv, 0); in ng_pptpgre_start_send_ack_timer() 1159 int ticks; in ng_pptpgre_start_reorder_timer() local 1162 ticks = (((reorder_timeout * hz) + 1000 - 1) / 1000) + 1; in ng_pptpgre_start_reorder_timer() 1164 ticks, ng_pptpgre_reorder_timeout, hpriv, 0); in ng_pptpgre_start_reorder_timer()
|
/freebsd/contrib/ntp/parseutil/ |
H A D | dcfd.c | 166 static unsigned long ticks = 0; variable 1134 ticks += 1<<ADJINTERVAL; in tick() 1136 if ((ticks - last_sync) > MAX_UNSYNC) in tick() 1148 last_notice = ticks; in tick() 1154 if ((ticks - last_notice) > NOTICE_INTERVAL) in tick() 1157 last_notice = ticks; in tick() 1778 last_sync = ticks; in main()
|