HomeSort by: relevance | last modified time | path
    Searched refs:timer (Results 1 - 25 of 565) sorted by relevancy

1 2 3 4 5 6 7 8 91011>>

  /src/common/lib/libx86emu/
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)
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->active_counter - curtick
176 struct x86emu_i8254_timer *timer; local
324 struct x86emu_i8254_timer *timer; local
    [all...]
  /src/external/bsd/atf/dist/tools/
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 {
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::timer"
    [all...]
  /src/external/mpl/bind/dist/lib/isc/netmgr/
timer.c 1 /* $NetBSD: timer.c,v 1.3 2025/01/26 16:25:43 christos Exp $ */
24 uv_timer_t timer; member in struct:isc_nm_timer
35 isc_nm_timer_t *timer = NULL; local
45 timer = isc_mem_get(worker->mctx, sizeof(*timer));
46 *timer = (isc_nm_timer_t){ .cb = cb, .cbarg = cbarg };
47 isc_refcount_init(&timer->references, 1);
48 isc_nmhandle_attach(handle, &timer->handle);
50 r = uv_timer_init(&worker->loop->loop, &timer->timer);
68 isc_nm_timer_t *timer = uv_handle_get_data(uvhandle); local
79 isc_nm_timer_t *timer = NULL; local
101 isc_nm_timer_t *timer = uv_handle_get_data((uv_handle_t *)uvtimer); local
    [all...]
  /src/sys/external/bsd/drm2/include/linux/
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 *),
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)
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)
76 mod_timer(timer, then)
    [all...]
  /src/games/warp/
play.h 10 EXT int timer; variable
  /src/external/mit/libuv/dist/test/
test-active.c 45 uv_timer_t timer; local
47 r = uv_timer_init(uv_default_loop(), &timer);
51 ASSERT_OK(uv_is_active((uv_handle_t*) &timer));
52 ASSERT_OK(uv_is_closing((uv_handle_t*) &timer));
54 r = uv_timer_start(&timer, timer_cb, 1000, 0);
57 ASSERT_EQ(1, uv_is_active((uv_handle_t*) &timer));
58 ASSERT_OK(uv_is_closing((uv_handle_t*) &timer));
60 r = uv_timer_stop(&timer);
63 ASSERT_OK(uv_is_active((uv_handle_t*) &timer));
64 ASSERT_OK(uv_is_closing((uv_handle_t*) &timer));
    [all...]
test-loop-time.c 37 static void cb(uv_timer_t* timer) {
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 */
test-walk-handles.c 30 static uv_timer_t timer; variable
36 if (handle == (uv_handle_t*)&timer) {
45 ASSERT_PTR_EQ(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. */
  /src/external/mpl/bind/dist/lib/isc/
timer.c 1 /* $NetBSD: timer.c,v 1.16 2025/05/21 14:48:05 christos Exp $ */
32 #include <isc/timer.h>
44 uv_timer_t timer; member in struct:isc_timer
56 isc_timer_t *timer; local
69 timer = isc_mem_get(loop->mctx, sizeof(*timer));
70 *timer = (isc_timer_t){
76 isc_loop_attach(loop, &timer->loop);
78 r = uv_timer_init(&loop->loop, &timer->timer);
104 isc_timer_t *timer = uv_handle_get_data(handle); local
155 isc_timer_t *timer = uv_handle_get_data(handle); local
169 isc_timer_t *timer = arg; local
178 isc_timer_t *timer = NULL; local
192 isc_timer_t *timer = NULL; local
    [all...]
  /src/external/mpl/dhcp/bind/dist/lib/isc/
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) {
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->expires, &due) < 0
220 isc_timer_t *timer = event0->ev_destroy_arg; local
254 isc_timer_t *timer; local
479 isc_timer_t *timer = NULL; local
533 isc_timer_t *timer; local
672 isc_timer_t *timer; local
    [all...]
  /src/external/bsd/jemalloc/dist/test/include/test/
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);
  /src/external/bsd/jemalloc.old/dist/test/include/test/
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);
  /src/external/bsd/jemalloc.old/dist/test/src/
timer.c 4 timer_start(timedelta_t *timer) {
5 nstime_init(&timer->t0, 0);
6 nstime_update(&timer->t0);
10 timer_stop(timedelta_t *timer) {
11 nstime_copy(&timer->t1, &timer->t0);
12 nstime_update(&timer->t1);
16 timer_usec(const timedelta_t *timer) {
19 nstime_copy(&delta, &timer->t1);
20 nstime_subtract(&delta, &timer->t0)
    [all...]
  /src/crypto/external/bsd/heimdal/dist/lib/roken/
localtime_r.c 45 localtime_r(const time_t *timer, struct tm *result)
49 return (localtime_s(result, timer) == 0)? result : NULL;
54 tm = localtime((time_t *)timer);
  /src/sys/arch/next68k/next68k/
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->lsb = cnt
    [all...]
  /src/sys/netinet/
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 is used to keep connections alive. If a
    [all...]
  /src/external/bsd/jemalloc/dist/test/src/
timer.c 4 timer_start(timedelta_t *timer) {
5 nstime_init_update(&timer->t0);
9 timer_stop(timedelta_t *timer) {
10 nstime_copy(&timer->t1, &timer->t0);
11 nstime_update(&timer->t1);
15 timer_usec(const timedelta_t *timer) {
18 nstime_copy(&delta, &timer->t1);
19 nstime_subtract(&delta, &timer->t0);
  /src/external/bsd/ntp/dist/scripts/deprecated/
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 timer.\n"
    [all...]
  /src/sys/arch/powerpc/include/
openpicreg.h 30 * GLOBAL/TIMER register (IDU base + 0x1000)
58 /* Timer frequency register */
61 /* Timer current count register */
62 #define OPENPIC_TIMER_CC(timer) (0x1100 + (timer) * 0x40)
63 /* Timer basecount register */
64 #define OPENPIC_TIMER_BC(timer) (0x1110 + (timer) * 0x40)
65 /* Timer Vector/Priority register (uses imask,activity,priority and vector)*/
66 #define OPENPIC_TIMER_VECTOR(timer) (0x1120 + (timer) * 0x40
    [all...]
  /src/external/apache2/llvm/dist/libcxx/utils/google-benchmark/src/
benchmark_api_internal.cc 7 size_t iters, int thread_id, internal::ThreadTimer* timer,
9 State st(iters, arg, thread_id, threads, timer, manager);
  /src/external/bsd/jemalloc/dist/test/stress/
hookbench.c 41 timedelta_t timer; local
42 timer_start(&timer);
44 timer_stop(&timer);
46 i + 1 == 1 ? "" : "s", timer_usec(&timer));
57 timedelta_t timer; local
58 timer_start(&timer);
60 timer_stop(&timer);
62 malloc_printf("Without hooks: %"FMTu64"us\n", timer_usec(&timer));
  /src/usr.sbin/rtadvd/
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)
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)
104 /* reset the timer */
    [all...]
  /src/external/mpl/bind/dist/lib/isc/include/isc/
timer.h 1 /* $NetBSD: timer.h,v 1.12 2025/05/21 14:48:05 christos Exp $ */
22 /*! \file isc/timer.h
35 * Clients of this module must not be holding a timer's task's lock when
36 * making a call that affects that timer. Failure to follow this rule
71 /*% Timer Type */
79 *** Timer and Timer Manager Functions
89 * Create a new 'type' timer managed by 'loop'. The timers parameters are
92 * value. The new timer is returned in 'timerp'.
102 *\li '*timerp' is attached to the newly created timer
    [all...]
  /src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/pmu/fuc/
test.fuc 52 call(timer)
61 call(timer)

Completed in 42 milliseconds

1 2 3 4 5 6 7 8 91011>>