/netbsd-current/common/lib/libx86emu/ |
H A D | x86emu_i8254.c | 56 * Compute tick of the virtual timer based on start time and 75 x86emu_i8254_counter(struct x86emu_i8254_timer *timer, uint64_t curtick) argument 79 /* Initial value if timer is disabled or not yet started */ 80 if (timer->gate_high || timer->start_tick > curtick) 81 return timer->active_counter; 84 if (timer->active_is_bcd) 89 curtick -= timer->start_tick; 92 if (curtick <= timer->active_counter) 93 return timer 110 x86emu_i8254_out(struct x86emu_i8254_timer *timer, uint64_t curtick) argument 154 x86emu_i8254_latch_status(struct x86emu_i8254_timer *timer, uint64_t curtick) argument 165 x86emu_i8254_latch_counter(struct x86emu_i8254_timer *timer, uint64_t curtick) argument 176 struct x86emu_i8254_timer *timer; local 223 x86emu_i8254_read_counter(struct x86emu_i8254 *sc, struct x86emu_i8254_timer *timer) argument 266 x86emu_i8254_write_counter(struct x86emu_i8254 *sc, struct x86emu_i8254_timer *timer, uint8_t val) argument 324 struct x86emu_i8254_timer *timer; local [all...] |
/netbsd-current/external/bsd/atf/dist/tools/ |
H A D | timers.hpp | 45 // The "timer" class. 48 class timer { class in namespace:tools::timers 50 timer(const timer&); 51 timer& operator=(const timer&); 57 timer(const unsigned int); 58 virtual ~timer(void); 69 class child_timer : public timer {
|
H A D | timers.cpp | 55 impl::timer* timer = static_cast< impl::timer* >(si->si_value.sival_ptr); local 56 timer->set_fired(); 57 timer->timeout_callback(); 61 // The "timer" class. 64 struct impl::timer::impl { 76 impl::timer::timer(const unsigned int seconds) : function in class:impl::timer 84 throw tools::system_error(IMPL_NAME "::timer [all...] |
/netbsd-current/external/mpl/bind/dist/lib/isc/netmgr/ |
H A D | timer.c | 1 /* $NetBSD: timer.c,v 1.2 2024/02/21 22:52:32 christos Exp $ */ 25 uv_timer_t timer; member in struct:isc_nm_timer 36 isc_nm_timer_t *timer = NULL; local 47 timer = isc_mem_get(sock->mgr->mctx, sizeof(*timer)); 48 *timer = (isc_nm_timer_t){ .cb = cb, .cbarg = cbarg }; 49 isc_refcount_init(&timer->references, 1); 50 isc_nmhandle_attach(handle, &timer->handle); 52 r = uv_timer_init(&worker->loop, &timer->timer); 61 isc_nm_timer_attach(isc_nm_timer_t *timer, isc_nm_timer_t **timerp) argument 71 isc_nm_timer_t *timer = uv_handle_get_data(uvhandle); local 82 isc_nm_timer_t *timer = NULL; local 105 isc_nm_timer_t *timer = uv_handle_get_data((uv_handle_t *)uvtimer); local 113 isc_nm_timer_start(isc_nm_timer_t *timer, uint64_t timeout) argument 119 isc_nm_timer_stop(isc_nm_timer_t *timer) argument [all...] |
/netbsd-current/sys/external/bsd/drm2/include/linux/ |
H A D | timer.h | 1 /* $NetBSD: timer.h,v 1.17 2021/12/19 12:33:48 riastradh Exp $ */ 49 timer_setup(struct timer_list *timer, void (*fn)(struct timer_list *), argument 53 callout_init(&timer->tl_callout, 0); 56 callout_setfunc(&timer->tl_callout, (void (*)(void *))(void *)fn, 57 (void *)timer); 61 mod_timer(struct timer_list *timer, unsigned long then) argument 66 pending = callout_pending(&timer->tl_callout); 67 callout_schedule(&timer->tl_callout, (now < then? (then - now) : 0)); 72 mod_timer_pinned(struct timer_list *timer, unsigned long then) argument 76 mod_timer(timer, the 80 del_timer(struct timer_list *timer) argument 98 del_timer_sync(struct timer_list *timer) argument 116 timer_pending(struct timer_list *timer) argument [all...] |
/netbsd-current/games/warp/ |
H A D | play.h | 10 EXT int timer; variable
|
/netbsd-current/external/mit/libuv/dist/test/ |
H A D | test-active.c | 45 uv_timer_t timer; local 47 r = uv_timer_init(uv_default_loop(), &timer); 51 ASSERT(0 == uv_is_active((uv_handle_t*) &timer)); 52 ASSERT(0 == uv_is_closing((uv_handle_t*) &timer)); 54 r = uv_timer_start(&timer, timer_cb, 1000, 0); 57 ASSERT(1 == uv_is_active((uv_handle_t*) &timer)); 58 ASSERT(0 == uv_is_closing((uv_handle_t*) &timer)); 60 r = uv_timer_stop(&timer); 63 ASSERT(0 == uv_is_active((uv_handle_t*) &timer)); 64 ASSERT(0 == uv_is_closing((uv_handle_t*) &timer)); [all...] |
H A D | test-metrics.c | 41 uv_timer_t timer; local 46 timer.data = &cntr; 49 ASSERT_EQ(0, uv_timer_init(uv_default_loop(), &timer)); 50 ASSERT_EQ(0, uv_timer_start(&timer, timer_spin_cb, timeout, 0)); 69 uv_timer_t timer; local 74 timer.data = &cntr; 78 ASSERT_EQ(0, uv_timer_init(&loop, &timer)); 79 ASSERT_EQ(0, uv_timer_start(&timer, timer_spin_cb, timeout, 0)); 119 uv_timer_t timer; local 123 timer [all...] |
H A D | test-walk-handles.c | 30 static uv_timer_t timer; variable 36 if (handle == (uv_handle_t*)&timer) { 45 ASSERT(handle == &timer); 58 r = uv_timer_init(loop, &timer); 61 r = uv_timer_start(&timer, timer_cb, 1, 0); 64 /* Start event loop, expect to see the timer handle in walk_cb. */ 70 /* Loop is finished, walk_cb should not see our timer handle. */
|
H A D | test-loop-time.c | 37 static void cb(uv_timer_t* timer) { argument 38 uv_close((uv_handle_t*)timer, NULL); 43 uv_timer_t timer; local 53 r = uv_timer_init(loop, &timer); 59 r = uv_timer_start(&timer, cb, 1000, 0); /* 1 sec */
|
/netbsd-current/external/mpl/dhcp/bind/dist/lib/isc/ |
H A D | timer.c | 1 /* $NetBSD: timer.c,v 1.1 2024/02/18 20:57:50 christos Exp $ */ 33 #include <isc/timer.h> 67 /*! Locked by timer lock. */ 104 schedule(isc_timer_t *timer, isc_time_t *now, bool signal_ok) { argument 113 REQUIRE(timer->type != isc_timertype_inactive); 115 manager = timer->manager; 120 if (timer->type != isc_timertype_once) { 121 isc_result_t result = isc_time_add(now, &timer->interval, &due); 125 if (timer->type == isc_timertype_limited && 126 isc_time_compare(&timer 188 deschedule(isc_timer_t *timer) argument 213 timerevent_unlink(isc_timer_t *timer, isc_timerevent_t *event) argument 220 isc_timer_t *timer = event0->ev_destroy_arg; local 234 timer_purge(isc_timer_t *timer) argument 254 isc_timer_t *timer; local 361 isc_timer_reset(isc_timer_t *timer, isc_timertype_t type, const isc_time_t *expires, const isc_interval_t *interval, bool purge) argument 435 isc_timer_gettype(isc_timer_t *timer) argument 448 isc_timer_touch(isc_timer_t *timer) argument 479 isc_timer_t *timer = NULL; local 507 timer_post_event(isc_timermgr_t *manager, isc_timer_t *timer, isc_eventtype_t type) argument 533 isc_timer_t *timer; local 672 isc_timer_t *timer; local [all...] |
/netbsd-current/external/mpl/bind/dist/lib/isc/ |
H A D | timer.c | 1 /* $NetBSD: timer.c,v 1.13 2024/02/21 22:52:29 christos Exp $ */ 33 #include <isc/timer.h> 65 /*! Locked by timer lock. */ 102 schedule(isc_timer_t *timer, isc_time_t *now, bool signal_ok) { argument 110 REQUIRE(timer->type != isc_timertype_inactive); 112 manager = timer->manager; 117 if (timer->type != isc_timertype_once) { 118 isc_result_t result = isc_time_add(now, &timer->interval, &due); 122 if (timer->type == isc_timertype_limited && 123 isc_time_compare(&timer 185 deschedule(isc_timer_t *timer) argument 210 timerevent_unlink(isc_timer_t *timer, isc_timerevent_t *event) argument 217 isc_timer_t *timer = event0->ev_destroy_arg; local 231 timer_purge(isc_timer_t *timer) argument 251 isc_timer_t *timer; local 358 isc_timer_reset(isc_timer_t *timer, isc_timertype_t type, const isc_time_t *expires, const isc_interval_t *interval, bool purge) argument 432 isc_timer_gettype(isc_timer_t *timer) argument 445 isc_timer_touch(isc_timer_t *timer) argument 476 isc_timer_t *timer = NULL; local 504 timer_post_event(isc_timermgr_t *manager, isc_timer_t *timer, isc_eventtype_t type) argument 530 isc_timer_t *timer; local 660 isc_timer_t *timer; local [all...] |
/netbsd-current/external/bsd/jemalloc/dist/test/include/test/ |
H A D | timer.h | 1 /* Simple timer, for use in benchmark reporting. */ 8 void timer_start(timedelta_t *timer); 9 void timer_stop(timedelta_t *timer); 10 uint64_t timer_usec(const timedelta_t *timer);
|
/netbsd-current/external/bsd/jemalloc/dist/test/src/ |
H A D | timer.c | 4 timer_start(timedelta_t *timer) { argument 5 nstime_init(&timer->t0, 0); 6 nstime_update(&timer->t0); 10 timer_stop(timedelta_t *timer) { argument 11 nstime_copy(&timer->t1, &timer->t0); 12 nstime_update(&timer->t1); 16 timer_usec(const timedelta_t *timer) { argument 19 nstime_copy(&delta, &timer->t1); 20 nstime_subtract(&delta, &timer [all...] |
/netbsd-current/external/bsd/ntp/dist/lib/isc/ |
H A D | timer.c | 1 /* $NetBSD: timer.c,v 1.5 2020/05/25 20:47:20 christos Exp $ */ 36 #include <isc/timer.h> 84 /*! Locked by timer lock. */ 139 isc__timer_reset(isc_timer_t *timer, isc_timertype_t type, 143 isc__timer_gettype(isc_timer_t *timer); 145 isc__timer_touch(isc_timer_t *timer); 203 schedule(isc__timer_t *timer, isc_time_t *now, isc_boolean_t signal_ok) { argument 216 REQUIRE(timer->type != isc_timertype_inactive); 222 manager = timer->manager; 236 if (timer 337 deschedule(isc__timer_t *timer) argument 369 destroy(isc__timer_t *timer) argument 402 isc__timer_t *timer; local 522 isc__timer_t *timer = (isc__timer_t *)timer0; local 595 isc__timer_t *timer = (isc__timer_t *)timer0; local 609 isc__timer_t *timer = (isc__timer_t *)timer0; local 640 isc__timer_t *timer = (isc__timer_t *)timer0; local 658 isc__timer_t *timer; local 687 isc__timer_t *timer; local 864 isc__timer_t *timer; local [all...] |
H A D | timer_api.c | 29 #include <isc/timer.h> 113 isc_timer_attach(isc_timer_t *timer, isc_timer_t **timerp) { argument 114 REQUIRE(ISCAPI_TIMER_VALID(timer)); 117 timer->methods->attach(timer, timerp); 119 ENSURE(*timerp == timer); 132 isc_timer_reset(isc_timer_t *timer, isc_timertype_t type, argument 136 REQUIRE(ISCAPI_TIMER_VALID(timer)); 138 return (timer->methods->reset(timer, typ 142 isc_timer_touch(isc_timer_t *timer) argument [all...] |
/netbsd-current/crypto/external/bsd/heimdal/dist/lib/roken/ |
H A D | localtime_r.c | 45 localtime_r(const time_t *timer, struct tm *result) argument 49 return (localtime_s(result, timer) == 0)? result : NULL; 54 tm = localtime((time_t *)timer);
|
/netbsd-current/sys/netinet/ |
H A D | tcp_timer.h | 77 #define TCPT_2MSL 3 /* 2*msl quiet time timer */ 80 * The TCPT_REXMT timer is used to force retransmissions. 81 * The TCP has the TCPT_REXMT timer set whenever segments 84 * then the retransmit timer is cleared (if there are no more 86 * are more ACKs expected). Whenever the retransmit timer goes off, 88 * on the retransmit timer. 90 * The TCPT_PERSIST timer is used to keep window size information 94 * the TCPT_PERSIST timer. When it expires, if the window is nonzero, 99 * packet time. The TCPT_PERSIST timer is cleared whenever we receive 102 * The TCPT_KEEP timer i [all...] |
/netbsd-current/sys/arch/next68k/next68k/ |
H A D | clock.c | 56 volatile struct timer_reg *timer; local 67 timer = (volatile struct timer_reg *)IIOV(NEXT_P_TIMER); 68 timer->csr |= TIMER_REG_UPDATE; 85 * if no alternative timer is available. 93 volatile struct timer_reg *timer; local 98 timer = (volatile struct timer_reg *)IIOV(NEXT_P_TIMER); 99 cnt = 1000000/hz; /* usec timer */ 100 timer->csr = 0; 101 timer->msb = (cnt >> 8); 102 timer [all...] |
/netbsd-current/external/bsd/ntp/dist/scripts/deprecated/ |
H A D | freq_adj.in | 16 chop($timer = `sysctl -n kern.timecounter.hardware 2> /dev/null`); 18 $timer =~ tr/\U/\L/; 20 if ($timer eq '') { 25 $timer = $1; 32 $opt_t = $timer if !defined($opt_t); 34 if ($timer ne '') { # $timer found... 36 if ($timer ne $opt_t) { # - - and they differ 37 warn "You specified a $opt_t timer but I detected a $timer time [all...] |
/netbsd-current/sys/arch/powerpc/include/ |
H A D | openpicreg.h | 62 #define OPENPIC_TIMER_CC(timer) (0x1100 + (timer) * 0x40) 64 #define OPENPIC_TIMER_BC(timer) (0x1110 + (timer) * 0x40) 66 #define OPENPIC_TIMER_VECTOR(timer) (0x1120 + (timer) * 0x40) 68 #define OPENPIC_TIMER_DEST(timer) (0x1130 + (timer) * 0x40)
|
/netbsd-current/external/apache2/llvm/dist/libcxx/utils/google-benchmark/src/ |
H A D | benchmark_api_internal.cc | 7 size_t iters, int thread_id, internal::ThreadTimer* timer, 9 State st(iters, arg, thread_id, threads, timer, manager); 6 Run( size_t iters, int thread_id, internal::ThreadTimer* timer, internal::ThreadManager* manager) const argument
|
/netbsd-current/usr.sbin/rtadvd/ |
H A D | timer.c | 1 /* $NetBSD: timer.c,v 1.20 2021/03/23 18:16:53 christos Exp $ */ 2 /* $KAME: timer.c,v 1.11 2005/04/14 06:22:35 suz Exp $ */ 44 #include "timer.h" 89 rtadvd_remove_timer(struct rtadvd_timer **timer) argument 92 if (*timer) { 93 TAILQ_REMOVE(&ra_timer, *timer, next); 94 free(*timer); 95 *timer = NULL; 100 rtadvd_set_timer(struct timespec *tm, struct rtadvd_timer *timer) argument 104 /* reset the timer */ 156 rtadvd_timer_rest(struct rtadvd_timer *timer) argument [all...] |
/netbsd-current/external/bsd/ntp/dist/sntp/libevent/test/ |
H A D | test-changelist.c | 67 start_cpu_usage_timer(struct cpu_usage_timer *timer) argument 72 timer->thread = GetCurrentThread(); 73 r = GetThreadTimes(timer->thread, &createtime, &exittime, 74 &timer->usertimeBegin, &timer->kerneltimeBegin); 77 timer->ticksBegin = clock(); 80 evutil_gettimeofday(&timer->timeBegin, NULL); 106 get_cpu_usage(struct cpu_usage_timer *timer, double *secElapsedOut, argument 120 r = GetThreadTimes(timer->thread, &createtime, &exittime, 123 usertime_seconds = filetime_diff(&timer 172 struct cpu_usage_timer timer; local [all...] |
/netbsd-current/external/bsd/libevent/dist/test/ |
H A D | test-changelist.c | 68 start_cpu_usage_timer(struct cpu_usage_timer *timer) argument 73 timer->thread = GetCurrentThread(); 74 r = GetThreadTimes(timer->thread, &createtime, &exittime, 75 &timer->usertimeBegin, &timer->kerneltimeBegin); 78 timer->ticksBegin = clock(); 81 evutil_gettimeofday(&timer->timeBegin, NULL); 107 get_cpu_usage(struct cpu_usage_timer *timer, double *secElapsedOut, argument 121 r = GetThreadTimes(timer->thread, &createtime, &exittime, 124 usertime_seconds = filetime_diff(&timer 173 struct cpu_usage_timer timer; local [all...] |