Home
last modified time | relevance | path

Searched full:ticks (Results 1 – 25 of 531) sorted by relevance

12345678910>>...22

/freebsd/sys/powerpc/booke/
H A Dplatform_bare.c92 u_long ticks; in bare_timebase_freq() local
99 ticks = bootinfo[3] >> 3; in bare_timebase_freq()
102 ticks = bootinfo[5] >> 3; in bare_timebase_freq()
105 ticks = 0; in bare_timebase_freq()
118 ticks = tbase; in bare_timebase_freq()
119 return (ticks); in bare_timebase_freq()
125 ticks = tbase; in bare_timebase_freq()
126 return (ticks); in bare_timebase_freq()
142 ticks = freq / 8; in bare_timebase_freq()
145 if (ticks <= 0) in bare_timebase_freq()
[all …]
/freebsd/contrib/sendmail/src/
H A Dratectrl.c273 unsigned int ticks; local
285 ticks = now / ChtGran;
373 ct = &chBest->ch_Times[ticks % CHTSIZE];
375 if (ct->ct_Ticks != ticks)
377 ct->ct_Ticks = ticks;
390 if (cth->ct_Ticks <= ticks && cth->ct_Ticks >= ticks - CHTSIZE)
506 unsigned int ticks; local
509 ticks = now / ChtGran;
514 ct = &srv_Times[ticks % CHTSIZE];
516 if (ct->ct_Ticks != ticks)
[all …]
/freebsd/sys/kern/
H A Dsubr_ticks.S8 * Define the "ticks" and "ticksl" variables. The former is overlaid onto the
33 .global ticks symbol
34 .type ticks, %object
35 ticks =ticksl + TICKS_OFFSET label
36 .size ticks, __SIZEOF_INT__
H A Dsubr_prof.c106 * lose profile ticks when the next tick overwrites this one, but in this
111 addupc_intr(struct thread *td, uintfptr_t pc, u_int ticks) in addupc_intr() argument
115 if (ticks == 0) in addupc_intr()
126 td->td_profil_ticks = ticks; in addupc_intr()
136 addupc_task(struct thread *td, uintfptr_t pc, u_int ticks) in addupc_task() argument
145 if (ticks == 0) in addupc_task()
166 v += ticks; in addupc_task()
H A Dsubr_pidctrl.c65 SYSCTL_ADD_INT(NULL, parent, OID_AUTO, "ticks", CTLFLAG_RD, in pidctrl_init_sysctl()
70 &pc->pc_interval, 0, "Interval between calculations (ticks)"); in pidctrl_init_sysctl()
88 pc->pc_ticks = ticks; in pidctrl_classic()
120 * When ticks expires we reset our variables and start a new in pidctrl_daemon()
125 if ((u_int)ticks - pc->pc_ticks >= pc->pc_interval) { in pidctrl_daemon()
126 pc->pc_ticks = ticks; in pidctrl_daemon()
/freebsd/usr.sbin/watchdogd/
H A Dwatchdogd.c210 int ticks; in parse_timeout_to_pow2ns() local
224 ticks = tvtohz(&tv); in parse_timeout_to_pow2ns()
228 "(in: %s sec -> out: %jd sec %ld ns -> %d ticks)\n", in parse_timeout_to_pow2ns()
231 myoptarg, (intmax_t)ts.tv_sec, ts.tv_nsec, ticks); in parse_timeout_to_pow2ns()
233 if (ticks <= 0) { in parse_timeout_to_pow2ns()
580 * Convert a timeval to a number of ticks.
586 register unsigned long ticks; in tvtohz() local
605 * ticks, rounding up and adding 1 to allow for the current tick in tvtohz()
609 * Otherwise, if the number of ticks in the whole seconds part of in tvtohz()
611 * ticks separately and add, using similar rounding methods and in tvtohz()
[all …]
/freebsd/usr.sbin/bsnmpd/modules/snmp_hostres/
H A DBEGEMOT-HOSTRES-MIB.txt67 "The maximum number of ticks the storage table is cached."
76 "The maximum number of ticks the FS table is cached."
85 "The maximum number of ticks the disk storage table is cached."
94 "The maximum number of ticks the network table is cached."
103 "The maximum number of ticks the hrSWInstalledTable is cached."
112 "The maximum number of ticks the hrSWRunTable and
H A Dhostres_snmp.h167 /* Maximum number of ticks between two updates for hrStorageTable */
170 /* Maximum number of ticks between updated of FS table */
173 /* maximum number of ticks between updates of SWRun and SWRunPerf table */
176 /* Maximum number of ticks between device table refreshs. */
179 /* maximum number of ticks between refreshs */
182 /* maximum number of ticks between updates of network table */
185 /* maximum number of ticks between updates of network table */
/freebsd/contrib/tcpdump/
H A Dprint-mpcp.c141 ND_PRINT(", Timestamp %u ticks", timestamp); in mpcp_print()
165 ND_PRINT("\n\tGrant #%u, Start-Time %u ticks, duration %u ticks", in mpcp_print()
172 ND_PRINT("\n\tSync-Time %u ticks", GET_BE_U_2(tptr)); in mpcp_print()
191 ND_PRINT("\n\t Q%u Report, Duration %u ticks", in mpcp_print()
212 "\n\tSync-Time %u ticks, Echoed-Pending-Grants %u", in mpcp_print()
222 "\n\tEchoed-Sync-Time %u ticks", in mpcp_print()
/freebsd/lib/libsys/
H A Dgetrusage.299 in units of kilobytes * ticks-of-execution.
100 Ticks are statistics clock ticks.
103 ticks per second.
107 kilobytes * ticks-of-execution).
111 kilobytes * ticks-of-execution).
/freebsd/share/man/man9/
H A Dcallout.982 .Fa "int ticks"
89 .Fa "int ticks"
96 .Fa "int ticks"
130 .Fn callout_schedule "struct callout *c" "int ticks"
132 .Fn callout_schedule_curcpu "struct callout *c" "int ticks"
134 .Fn callout_schedule_on "struct callout *c" "int ticks" "int cpu"
327 .Fa ticks
335 .Fa ticks
338 .Fa ticks Ns No /hz
341 .Fa ticks
[all …]
/freebsd/sys/contrib/dev/acpica/components/hardware/
H A Dhwtimer.c205 * PARAMETERS: Ticks - Where the timer value is returned in ACPI_EXPORT_SYMBOL()
207 * RETURN: Status and current timer value (ticks) in ACPI_EXPORT_SYMBOL()
209 * DESCRIPTION: Obtains current value of ACPI PM Timer (in ticks). in ACPI_EXPORT_SYMBOL()
215 UINT32 *Ticks) in ACPI_EXPORT_SYMBOL()
224 if (!Ticks) in ACPI_EXPORT_SYMBOL()
241 *Ticks = (UINT32) TimerValue; in ACPI_EXPORT_SYMBOL()
264 * The PM Timer's clock ticks at roughly 3.6 times per in ACPI_EXPORT_SYMBOL()
274 * 2**24 Ticks / 3,600,000 Ticks/Sec = 4.66 sec in ACPI_EXPORT_SYMBOL()
275 * 2**32 Ticks / 3,600,000 Ticks/Sec = 1193 sec or 19.88 minutes in ACPI_EXPORT_SYMBOL()
/freebsd/sys/net80211/
H A Dieee80211_scan_sw.c289 ieee80211_time_before(ticks, ic->ic_lastscan + vap->iv_scanvalid)) { in ieee80211_swscan_check_scan()
299 "cache hot; ic_lastscan=%d, scanvalid=%d, ticks=%d\n", in ieee80211_swscan_check_scan()
302 ticks); in ieee80211_swscan_check_scan()
354 "%s: %s scan, ticks %u duration %u\n", __func__, in ieee80211_swscan_bg_scan()
356 ticks, duration); in ieee80211_swscan_bg_scan()
558 * Arrange for the channel change after maxdwell ticks.
666 ss_priv->ss_scanend = ticks + ss_priv->ss_duration; in scan_start()
712 ieee80211_time_after(ticks + ss->ss_mindwell, ss_priv->ss_scanend)) { in scan_curchan_task()
724 if (ieee80211_time_after(ticks + ss->ss_maxdwell, ss_priv->ss_scanend)) in scan_curchan_task()
725 maxdwell = ss_priv->ss_scanend - ticks; in scan_curchan_task()
[all...]
H A Dieee80211_ht.h53 int txa_lastsample; /* ticks @ last traffic sample */
109 tap->txa_lastsample = ticks; in ieee80211_txampdu_init_pps()
130 while (ticks - tap->txa_lastsample >= hz) { in ieee80211_txampdu_count_packet()
135 tap->txa_lastsample = ticks; in ieee80211_txampdu_count_packet()
152 while (ticks - tap->txa_lastsample >= hz) { in ieee80211_txampdu_getpps()
156 tap->txa_lastsample = ticks; in ieee80211_txampdu_getpps()
/freebsd/sys/netinet/cc/
H A Dcc_htcp.c80 #define HTCP_DELTA_L hz /* 1 sec in ticks. */
99 * in units of ticks.
162 /* Time of last congestion event in ticks. */
168 * The maximum number of ticks the value of diff can reach in
214 * for the first HTCP_DELTA_L ticks after either the flow starts in htcp_ack_received()
271 htcp_data->t_last_cong = ticks; in htcp_cb_init()
303 htcp_data->t_last_cong = ticks; in htcp_cong_signal()
320 htcp_data->t_last_cong = ticks; in htcp_cong_signal()
341 htcp_data->t_last_cong = ticks; in htcp_cong_signal()
400 now = ticks; in htcp_recalc_alpha()
[all …]
/freebsd/sys/tests/epoch/
H A Depoch_test.c69 startticks = ticks; in epoch_testcase1()
84 printf("test1: thread: %d took %d ticks to complete %d iterations\n", in epoch_testcase1()
85 eti->threadid, ticks - startticks, iterations); in epoch_testcase1()
95 startticks = ticks; in epoch_testcase2()
108 printf("test2: thread: %d took %d ticks to complete %d iterations\n", in epoch_testcase2()
109 eti->threadid, ticks - startticks, iterations); in epoch_testcase2()
/freebsd/sys/powerpc/mpc85xx/
H A Dplatform_mpc85xx.c224 u_long ticks; in mpc85xx_timebase_freq() local
231 ticks = bootinfo[3] >> 3; in mpc85xx_timebase_freq()
234 ticks = bootinfo[5] >> 3; in mpc85xx_timebase_freq()
237 ticks = 0; in mpc85xx_timebase_freq()
250 ticks = tbase; in mpc85xx_timebase_freq()
251 return (ticks); in mpc85xx_timebase_freq()
257 ticks = tbase; in mpc85xx_timebase_freq()
258 return (ticks); in mpc85xx_timebase_freq()
277 ticks = freq / 32; in mpc85xx_timebase_freq()
279 ticks = freq / 8; in mpc85xx_timebase_freq()
[all …]
/freebsd/tools/tools/netrate/tcpp/
H A Dtcpp_server.c279 long cp_time_last[CPUSTATES], cp_time_now[CPUSTATES], ticks; in tcpp_server()
322 ticks = 0; in tcpp_server()
326 ticks += cp_time_last[i]; in tcpp_server()
330 (100 * cp_time_last[CP_USER]) / ticks, in tcpp_server()
331 (100 * cp_time_last[CP_NICE]) / ticks, in tcpp_server()
332 (100 * cp_time_last[CP_SYS]) / ticks, in tcpp_server()
333 (100 * cp_time_last[CP_INTR]) / ticks, in tcpp_server()
334 (100 * cp_time_last[CP_IDLE]) / ticks); in tcpp_server()
H A Dtcpp_client.c269 long ticks; in tcpp_client() local
354 ticks = 0; in tcpp_client()
357 ticks += cp_time_finish[i]; in tcpp_client()
359 printf("%0.02f,", (float)(100 * cp_time_finish[CP_USER]) / ticks); in tcpp_client()
360 printf("%0.02f,", (float)(100 * cp_time_finish[CP_NICE]) / ticks); in tcpp_client()
361 printf("%0.02f,", (float)(100 * cp_time_finish[CP_SYS]) / ticks); in tcpp_client()
362 printf("%0.02f,", (float)(100 * cp_time_finish[CP_INTR]) / ticks); in tcpp_client()
363 printf("%0.02f", (float)(100 * cp_time_finish[CP_IDLE]) / ticks); in tcpp_client()
/freebsd/contrib/ntp/ntpd/
H A Djupiter.h79 u_short stime[2]; /* set time (10 ms ticks) */
123 u_short stime[2]; /* set time (10 ms ticks) */
139 u_short stime[2]; /* set time (10 ms ticks) */
157 u_short stime[2]; /* set time (10 ms ticks) */
169 u_short stime[2]; /* set time (10 ms ticks) */
186 u_short stime[2]; /* set time (10 ms ticks) */
200 u_short stime[2]; /* set time (10 ms ticks) */
/freebsd/usr.bin/time/
H A Dtime.c144 u_long ticks; in main() local
146 ticks = hz * (ru.ru_utime.tv_sec + ru.ru_stime.tv_sec) + in main()
153 if (ticks == 0) in main()
154 ticks = 1; in main()
159 ru.ru_ixrss / ticks, "average shared memory size"); in main()
161 ru.ru_idrss / ticks, "average unshared data size"); in main()
163 ru.ru_isrss / ticks, "average unshared stack size"); in main()
/freebsd/share/man/man4/
H A Dcyapa.4146 Minimum tap duration in ticks to create a click, the default is 1.
148 Maximum tap duration in ticks to create a click, the default is 8.
150 Minimum ticks before cursor movement occurs, the default is 4.
152 Ticks to wait before starting to scroll, the default is 0.
154 Ticks while preventing cursor movement on single finger after scroll,
/freebsd/sys/arm/freescale/imx/
H A Dimx_epit.c87 * so I'm setting the lower limit to 2 ticks.
169 uint64_t curcnt, endcnt, startcnt, ticks; in epit_do_delay() local
173 * clock frequency. Loop until the hardware count reaches start+ticks. in epit_do_delay()
179 ticks = 1 + ((uint64_t)usec * sc->clkfreq) / 1000000; in epit_do_delay()
181 endcnt = startcnt + ticks; in epit_do_delay()
223 uint32_t ticks; in epit_et_start() local
236 ticks = ((uint32_t)et->et_frequency * period) >> 32; in epit_et_start()
239 ticks = ((uint32_t)et->et_frequency * first) >> 32; in epit_et_start()
245 WR4(sc, EPIT_LR, ticks); in epit_et_start()
H A Dimx_gpt.c248 * Measure how many clock ticks it takes to setup a one-shot event (it's in imx_gpt_attach()
288 uint32_t ticks; in imx_gpt_timer_start() local
306 ticks = ((uint32_t)et->et_frequency * first) >> 32; in imx_gpt_timer_start()
310 WRITE4(sc, IMX_GPT_OCR3, READ4(sc, IMX_GPT_CNT) + ticks); in imx_gpt_timer_start()
400 uint64_t curcnt, endcnt, startcnt, ticks; in imx_gpt_do_delay() local
404 * clock frequency. Loop until the hardware count reaches start+ticks. in imx_gpt_do_delay()
410 ticks = 1 + ((uint64_t)usec * sc->clkfreq) / 1000000; in imx_gpt_do_delay()
412 endcnt = startcnt + ticks; in imx_gpt_do_delay()
/freebsd/sys/dev/ioat/
H A Dioat_test.c470 start = ticks; in ioat_dma_test()
476 else if (test->duration != 0 && time_after(ticks, end)) { in ioat_dma_test()
484 ioat_test_log(1, "Test Elapsed: %d ticks (overrun %d), %d sec.\n", in ioat_dma_test()
485 ticks - start, ticks - end, (ticks - start) / hz); in ioat_dma_test()
492 ioat_test_log(1, "Test Elapsed2: %d ticks (overrun %d), %d sec.\n", in ioat_dma_test()
493 ticks - start, ticks - end, (ticks in ioat_dma_test()
[all...]

12345678910>>...22