| /f-stack/freebsd/kern/ |
| H A D | kern_et.c | 63 et->et_name, et->et_quality); in et_register() 67 et->et_name, (uintmax_t)et->et_frequency, in et_register() 111 if ((err = et->et_deregister_cb(et, et->et_arg)) != 0) in et_deregister() 153 return (et); in et_find() 166 if (et->et_active) in et_init() 169 et->et_active = 1; in et_init() 172 et->et_arg = arg; in et_init() 204 return (et->et_start(et, first, period)); in et_start() 214 if (et->et_stop) in et_stop() 215 return (et->et_stop(et)); in et_stop() [all …]
|
| H A D | kern_clocksource.c | 573 if (et->et_frequency != 0) { 581 et->et_name); 584 if (et->et_max_period < SBT_1S && et->et_max_period != 0) 827 if (et == timer) { 829 et->et_frequency = newfreq; 892 struct eventtimer *et; local 896 et = timer; 901 et = timer; 907 et = et_find(buf, 0, 0); 908 if (et == NULL) { [all …]
|
| H A D | subr_epoch.c | 228 et->et_epoch = epoch; in epoch_trace_enter() 229 et->et_file = file; in epoch_trace_enter() 230 et->et_line = line; in epoch_trace_enter() 239 if (SLIST_FIRST(&td->td_epochs) != et) { in epoch_trace_exit() 447 MPASS((vm_offset_t)et >= td->td_kstack && in _epoch_enter_preempt() 455 et->et_td = td; in _epoch_enter_preempt() 502 MPASS(et != NULL); in _epoch_exit_preempt() 503 MPASS(et->et_td == td); in _epoch_exit_preempt() 505 et->et_td = (void*)0xDEADBEEF; in _epoch_exit_preempt() 510 TAILQ_REMOVE(&er->er_tdlist, et, et_link); in _epoch_exit_preempt() [all …]
|
| /f-stack/freebsd/mips/nlm/ |
| H A D | tick.c | 78 struct eventtimer et; member 306 if (sc->et.et_active) in clock_intr() 307 sc->et.et_event_cb(&sc->et, sc->et.et_arg); in clock_intr() 312 if (sc->et.et_active) in clock_intr() 313 sc->et.et_event_cb(&sc->et, sc->et.et_arg); in clock_intr() 351 sc->et.et_name = "MIPS32"; in clock_attach() 357 sc->et.et_quality = 800; in clock_attach() 360 sc->et.et_max_period = (0xfffffffeLLU << 32) / sc->et.et_frequency; in clock_attach() 362 sc->et.et_stop = clock_stop; in clock_attach() 363 sc->et.et_priv = sc; in clock_attach() [all …]
|
| /f-stack/freebsd/sys/ |
| H A D | timeet.h | 49 typedef int et_start_t(struct eventtimer *et, 51 typedef int et_stop_t(struct eventtimer *et); 52 typedef void et_event_cb_t(struct eventtimer *et, void *arg); 53 typedef int et_deregister_cb_t(struct eventtimer *et, void *arg); 92 int et_register(struct eventtimer *et); 93 int et_deregister(struct eventtimer *et); 94 void et_change_frequency(struct eventtimer *et, uint64_t newfreq); 97 int et_init(struct eventtimer *et, et_event_cb_t *event, 100 int et_stop(struct eventtimer *et); 101 int et_ban(struct eventtimer *et); [all …]
|
| H A D | epoch.h | 84 void _epoch_enter_preempt(epoch_t epoch, epoch_tracker_t et EPOCH_FILE_LINE); 85 void _epoch_exit_preempt(epoch_t epoch, epoch_tracker_t et EPOCH_FILE_LINE); 88 #define epoch_enter_preempt(epoch, et) _epoch_enter_preempt(epoch, et, __FILE__, __LINE__) argument 89 #define epoch_exit_preempt(epoch, et) _epoch_exit_preempt(epoch, et, __FILE__, __LINE__) argument 91 #define epoch_enter_preempt(epoch, et) _epoch_enter_preempt(epoch, et) argument 92 #define epoch_exit_preempt(epoch, et) _epoch_exit_preempt(epoch, et) argument 102 #define NET_EPOCH_ENTER(et) epoch_enter_preempt(net_epoch_preempt, &(et)) argument 103 #define NET_EPOCH_EXIT(et) epoch_exit_preempt(net_epoch_preempt, &(et)) argument
|
| /f-stack/freebsd/mips/mips/ |
| H A D | tick.c | 77 struct eventtimer et; member 305 if (sc->et.et_active) in clock_intr() 306 sc->et.et_event_cb(&sc->et, sc->et.et_arg); in clock_intr() 311 if (sc->et.et_active) in clock_intr() 312 sc->et.et_event_cb(&sc->et, sc->et.et_arg); in clock_intr() 369 sc->et.et_name = "MIPS32"; in clock_attach() 372 sc->et.et_quality = 800; in clock_attach() 375 sc->et.et_max_period = (0xfffffffeLLU << 32) / sc->et.et_frequency; in clock_attach() 377 sc->et.et_stop = clock_stop; in clock_attach() 378 sc->et.et_priv = sc; in clock_attach() [all …]
|
| /f-stack/tools/compat/include/sys/ |
| H A D | epoch.h | 84 void _epoch_enter_preempt(epoch_t epoch, epoch_tracker_t et EPOCH_FILE_LINE); 85 void _epoch_exit_preempt(epoch_t epoch, epoch_tracker_t et EPOCH_FILE_LINE); 88 #define epoch_enter_preempt(epoch, et) _epoch_enter_preempt(epoch, et, __FILE__, __LINE__) argument 89 #define epoch_exit_preempt(epoch, et) _epoch_exit_preempt(epoch, et, __FILE__, __LINE__) argument 91 #define epoch_enter_preempt(epoch, et) _epoch_enter_preempt(epoch, et) argument 92 #define epoch_exit_preempt(epoch, et) _epoch_exit_preempt(epoch, et) argument 102 #define NET_EPOCH_ENTER(et) epoch_enter_preempt(net_epoch_preempt, &(et)) argument 103 #define NET_EPOCH_EXIT(et) epoch_exit_preempt(net_epoch_preempt, &(et)) argument
|
| /f-stack/freebsd/mips/ingenic/ |
| H A D | jz4780_timer.c | 58 struct eventtimer et; member 98 if (sc->et.et_active) in jz4780_hardclock() 99 sc->et.et_event_cb(&sc->et, sc->et.et_arg); in jz4780_hardclock() 217 sc->et.et_name = "JZ4780 TCU5"; in jz4780_timer_attach() 218 sc->et.et_flags = ET_FLAGS_ONESHOT; in jz4780_timer_attach() 219 sc->et.et_frequency = counter_freq; in jz4780_timer_attach() 220 sc->et.et_quality = 1000; in jz4780_timer_attach() 221 sc->et.et_min_period = (0x00000002LLU * SBT_1S) / sc->et.et_frequency; in jz4780_timer_attach() 222 sc->et.et_max_period = (0x0000fffeLLU * SBT_1S) / sc->et.et_frequency; in jz4780_timer_attach() 225 sc->et.et_priv = sc; in jz4780_timer_attach() [all …]
|
| /f-stack/freebsd/arm/broadcom/bcm2835/ |
| H A D | bcm2835_systimer.c | 72 struct eventtimer et; member 135 struct systimer *st = et->et_priv; in bcm_systimer_start() 141 count = ((uint32_t)et->et_frequency * first) >> 32; in bcm_systimer_start() 168 bcm_systimer_stop(struct eventtimer *et) in bcm_systimer_stop() argument 170 struct systimer *st = et->et_priv; in bcm_systimer_stop() 189 if (st->et.et_active) { in bcm_systimer_intr() 190 st->et.et_event_cb(&st->et, st->et.et_arg); in bcm_systimer_intr() 254 sc->st[DEFAULT_TIMER].et.et_quality = 1000; in bcm_systimer_attach() 256 sc->st[DEFAULT_TIMER].et.et_min_period = in bcm_systimer_attach() 258 sc->st[DEFAULT_TIMER].et.et_max_period = in bcm_systimer_attach() [all …]
|
| /f-stack/freebsd/arm/versatile/ |
| H A D | sp804.c | 104 struct eventtimer et; member 178 if (sc->et.et_active) { in sp804_timer_intr() 179 sc->et.et_event_cb(&sc->et, sc->et.et_arg); in sp804_timer_intr() 270 sc->et.et_name = "SP804-2"; in sp804_timer_attach() 272 sc->et.et_quality = 1000; in sp804_timer_attach() 274 sc->et.et_min_period = (0x00000002LLU << 32) / sc->et.et_frequency; in sp804_timer_attach() 275 sc->et.et_max_period = (0xfffffffeLLU << 32) / sc->et.et_frequency; in sp804_timer_attach() 276 sc->et.et_start = sp804_timer_start; in sp804_timer_attach() 277 sc->et.et_stop = sp804_timer_stop; in sp804_timer_attach() 278 sc->et.et_priv = sc; in sp804_timer_attach() [all …]
|
| /f-stack/freebsd/arm/freescale/imx/ |
| H A D | imx_gpt.c | 92 struct eventtimer et; member 264 sc->et.et_name = "iMXGPT"; in imx_gpt_attach() 266 sc->et.et_quality = 800; in imx_gpt_attach() 267 sc->et.et_frequency = sc->clkfreq; in imx_gpt_attach() 271 sc->et.et_stop = imx_gpt_timer_stop; in imx_gpt_attach() 272 sc->et.et_priv = sc; in imx_gpt_attach() 273 et_register(&sc->et); in imx_gpt_attach() 359 if (sc->et.et_active) { in imx_gpt_intr() 360 sc->et.et_event_cb(&sc->et, sc->et.et_arg); in imx_gpt_intr() 366 if (sc->et.et_active) in imx_gpt_intr() [all …]
|
| H A D | imx_epit.c | 105 struct eventtimer et; member 254 epit_et_stop(struct eventtimer *et) in epit_et_stop() argument 294 if (sc->et.et_active) in epit_intr() 295 sc->et.et_event_cb(&sc->et, sc->et.et_arg); in epit_intr() 324 sc->et.et_name = "EPIT"; in epit_et_attach() 326 sc->et.et_quality = 1000; in epit_et_attach() 327 sc->et.et_frequency = sc->clkfreq; in epit_et_attach() 330 sc->et.et_start = epit_et_start; in epit_et_attach() 331 sc->et.et_stop = epit_et_stop; in epit_et_attach() 332 sc->et.et_priv = sc; in epit_et_attach() [all …]
|
| /f-stack/freebsd/arm/ti/am335x/ |
| H A D | am335x_dmtimer.c | 67 struct eventtimer et; member 100 sc = et->et_priv; in am335x_dmtimer_et_start() 151 sc = et->et_priv; in am335x_dmtimer_et_stop() 170 if (sc->func.et.et_active) in am335x_dmtimer_et_intr() 171 sc->func.et.et_event_cb(&sc->func.et, sc->func.et.et_arg); in am335x_dmtimer_et_intr() 193 sc->func.et.et_name = sc->tmr_name; in am335x_dmtimer_et_init() 195 sc->func.et.et_quality = 500; in am335x_dmtimer_et_init() 197 sc->func.et.et_min_period = in am335x_dmtimer_et_init() 199 sc->func.et.et_max_period = in am335x_dmtimer_et_init() 203 sc->func.et.et_priv = sc; in am335x_dmtimer_et_init() [all …]
|
| /f-stack/freebsd/arm/arm/ |
| H A D | mpcore_timer.c | 109 struct eventtimer et; member 190 sc = et->et_priv; in arm_tmr_start() 228 sc = et->et_priv; in arm_tmr_stop() 250 if (sc->et.et_active) in arm_tmr_intr() 251 sc->et.et_event_cb(&sc->et, sc->et.et_arg); in arm_tmr_intr() 349 sc->et.et_name = "MPCore"; in attach_et() 351 sc->et.et_quality = 1000; in attach_et() 356 sc->et.et_stop = arm_tmr_stop; in attach_et() 357 sc->et.et_priv = sc; in attach_et() 358 et_register(&sc->et); in attach_et() [all …]
|
| H A D | generic_timer.c | 96 struct eventtimer et; member 288 arm_tmr_stop(struct eventtimer *et) in arm_tmr_stop() argument 311 if (sc->et.et_active) in arm_tmr_intr() 312 sc->et.et_event_cb(&sc->et, sc->et.et_arg); in arm_tmr_intr() 477 sc->et.et_quality = 1000; in arm_tmr_attach() 480 sc->et.et_min_period = (0x00000010LLU << 32) / sc->et.et_frequency; in arm_tmr_attach() 481 sc->et.et_max_period = (0xfffffffeLLU << 32) / sc->et.et_frequency; in arm_tmr_attach() 482 sc->et.et_start = arm_tmr_start; in arm_tmr_attach() 483 sc->et.et_stop = arm_tmr_stop; in arm_tmr_attach() 484 sc->et.et_priv = sc; in arm_tmr_attach() [all …]
|
| /f-stack/freebsd/arm/allwinner/ |
| H A D | a10_timer.c | 101 struct eventtimer et; member 282 if (sc->et.et_active) in a10_timer_irq() 283 sc->et.et_event_cb(&sc->et, sc->et.et_arg); in a10_timer_irq() 310 sc->et.et_frequency = sc->timer0_freq; in a10_timer_eventtimer_setup() 311 sc->et.et_name = "a10_timer Eventtimer"; in a10_timer_eventtimer_setup() 313 sc->et.et_quality = 1000; in a10_timer_eventtimer_setup() 314 sc->et.et_min_period = (0x00000005LLU << 32) / sc->et.et_frequency; in a10_timer_eventtimer_setup() 315 sc->et.et_max_period = (0xfffffffeLLU << 32) / sc->et.et_frequency; in a10_timer_eventtimer_setup() 317 sc->et.et_stop = a10_timer_timer_stop; in a10_timer_eventtimer_setup() 318 sc->et.et_priv = sc; in a10_timer_eventtimer_setup() [all …]
|
| /f-stack/freebsd/arm/mv/ |
| H A D | timer.c | 87 struct eventtimer et; member 250 sc->et.et_name = "CPUTimer0"; in mv_timer_attach() 252 sc->et.et_quality = 1000; in mv_timer_attach() 255 sc->et.et_min_period = (0x00000002LLU << 32) / sc->et.et_frequency; in mv_timer_attach() 256 sc->et.et_max_period = (0xfffffffeLLU << 32) / sc->et.et_frequency; in mv_timer_attach() 257 sc->et.et_start = mv_timer_start; in mv_timer_attach() 258 sc->et.et_stop = mv_timer_stop; in mv_timer_attach() 259 sc->et.et_priv = sc; in mv_timer_attach() 260 et_register(&sc->et); in mv_timer_attach() 281 if (sc->et.et_active) in mv_hardclock() [all …]
|
| /f-stack/app/redis-5.0.5/deps/lua/src/ |
| H A D | ltm.h | 41 #define gfasttm(g,et,e) ((et) == NULL ? NULL : \ argument 42 ((et)->flags & (1u<<(e))) ? NULL : luaT_gettm(et, e, (g)->tmname[e])) 44 #define fasttm(l,et,e) gfasttm(G(l), et, e) argument
|
| /f-stack/freebsd/contrib/openzfs/module/lua/ |
| H A D | ltm.h | 42 #define gfasttm(g,et,e) ((et) == NULL ? NULL : \ argument 43 ((et)->flags & (1u<<(e))) ? NULL : luaT_gettm(et, e, (g)->tmname[e])) 45 #define fasttm(l,et,e) gfasttm(G(l), et, e) argument
|
| /f-stack/freebsd/x86/isa/ |
| H A D | clock.c | 100 struct eventtimer et; member 151 sc->et.et_event_cb(&sc->et, sc->et.et_arg); in clkintr() 503 device_t dev = (device_t)et->et_priv; in attimer_start() 522 attimer_stop(struct eventtimer *et) in attimer_stop() argument 606 sc->et.et_name = "i8254"; in attimer_attach() 610 sc->et.et_quality = 100; in attimer_attach() 611 sc->et.et_frequency = i8254_freq; in attimer_attach() 614 sc->et.et_start = attimer_start; in attimer_attach() 615 sc->et.et_stop = attimer_stop; in attimer_attach() 616 sc->et.et_priv = dev; in attimer_attach() [all …]
|
| H A D | atrtc.c | 205 struct eventtimer et; member 221 rtc_stop(struct eventtimer *et) in rtc_stop() argument 257 if (sc->et.et_active) in rtc_intr() 258 sc->et.et_event_cb(&sc->et, sc->et.et_arg); in rtc_intr() 476 sc->et.et_name = "RTC"; in atrtc_attach() 478 sc->et.et_quality = 0; in atrtc_attach() 479 sc->et.et_frequency = 32768; in atrtc_attach() 482 sc->et.et_start = rtc_start; in atrtc_attach() 483 sc->et.et_stop = rtc_stop; in atrtc_attach() 484 sc->et.et_priv = dev; in atrtc_attach() [all …]
|
| /f-stack/freebsd/netpfil/pf/ |
| H A D | pf_if.c | 140 NET_EPOCH_ENTER(et); in pfi_initialize_vnet() 156 NET_EPOCH_EXIT(et); in pfi_initialize_vnet() 524 NET_EPOCH_ENTER(et); in pfi_dynaddr_setup() 526 NET_EPOCH_EXIT(et); in pfi_dynaddr_setup() 857 NET_EPOCH_EXIT(et); in pfi_get_ifaces() 904 NET_EPOCH_EXIT(et); in pfi_set_flags() 927 NET_EPOCH_EXIT(et); in pfi_clear_flags() 969 NET_EPOCH_EXIT(et); in pfi_attach_ifnet_event() 1003 NET_EPOCH_EXIT(et); in pfi_detach_ifnet_event() 1021 NET_EPOCH_EXIT(et); in pfi_attach_group_event() [all …]
|
| /f-stack/freebsd/netinet/ |
| H A D | tcp_timer.c | 294 NET_EPOCH_ENTER(et); in tcp_timer_delack() 297 NET_EPOCH_EXIT(et); in tcp_timer_delack() 366 NET_EPOCH_EXIT(et); in tcp_timer_2msl() 505 NET_EPOCH_ENTER(et); in tcp_timer_keep() 514 NET_EPOCH_EXIT(et); in tcp_timer_keep() 571 NET_EPOCH_EXIT(et); in tcp_timer_persist() 588 NET_EPOCH_EXIT(et); in tcp_timer_persist() 594 NET_EPOCH_ENTER(et); in tcp_timer_persist() 596 NET_EPOCH_EXIT(et); in tcp_timer_persist() 660 NET_EPOCH_EXIT(et); in tcp_timer_rexmt() [all …]
|
| /f-stack/freebsd/netgraph/ |
| H A D | ng_ip_input.c | 129 struct epoch_tracker et; in ngipi_rcvdata() local 131 NET_EPOCH_ENTER(et); in ngipi_rcvdata() 133 NET_EPOCH_EXIT(et); in ngipi_rcvdata()
|