Searched refs:timer (Results 1 - 25 of 240) sorted by relevance

12345678910

/freebsd-12-stable/sys/dev/isci/
H A Disci_timer.c43 struct ISCI_TIMER *timer = (struct ISCI_TIMER *)arg; local
45 isci_log_message(3, "TIMER", "timeout %p\n", timer);
47 /* callout_stop() will *not* keep the timer from running if it is
51 * the timer routine should actually be run or not.
53 if (timer->is_started == TRUE)
54 timer->callback(timer->cookie);
58 * @brief This callback method asks the user to start the supplied timer.
62 * removes the timer from it's list when a timer actuall
77 scif_cb_timer_start(SCI_CONTROLLER_HANDLE_T controller, void *timer, uint32_t milliseconds) argument
98 scif_cb_timer_stop(SCI_CONTROLLER_HANDLE_T controller, void *timer) argument
133 struct ISCI_TIMER *timer; local
[all...]
/freebsd-12-stable/sys/compat/linuxkpi/common/include/linux/
H A Dtimer.h57 #define timer_setup(timer, func, flags) do { \
59 (timer)->function_415 = (func); \
60 (timer)->data = (unsigned long)(timer); \
61 callout_init(&(timer)->callout, 1); \
64 #define setup_timer(timer, func, dat) do { \
65 (timer)->function = (func); \
66 (timer)->data = (dat); \
67 callout_init(&(timer)->callout, 1); \
70 #define __setup_timer(timer, fun
[all...]
/freebsd-12-stable/contrib/ntp/lib/isc/
H A Dtimer.c34 #include <isc/timer.h>
82 /*! Locked by timer lock. */
137 isc__timer_reset(isc_timer_t *timer, isc_timertype_t type,
141 isc__timer_gettype(isc_timer_t *timer);
143 isc__timer_touch(isc_timer_t *timer);
201 schedule(isc__timer_t *timer, isc_time_t *now, isc_boolean_t signal_ok) { argument
214 REQUIRE(timer->type != isc_timertype_inactive);
220 manager = timer->manager;
234 if (timer->type != isc_timertype_once) {
235 result = isc_time_add(now, &timer
335 deschedule(isc__timer_t *timer) argument
367 destroy(isc__timer_t *timer) argument
400 isc__timer_t *timer; local
520 isc__timer_t *timer = (isc__timer_t *)timer0; local
593 isc__timer_t *timer = (isc__timer_t *)timer0; local
607 isc__timer_t *timer = (isc__timer_t *)timer0; local
638 isc__timer_t *timer = (isc__timer_t *)timer0; local
656 isc__timer_t *timer; local
685 isc__timer_t *timer; local
862 isc__timer_t *timer; local
[all...]
H A Dtimer_api.c27 #include <isc/timer.h>
111 isc_timer_attach(isc_timer_t *timer, isc_timer_t **timerp) { argument
112 REQUIRE(ISCAPI_TIMER_VALID(timer));
115 timer->methods->attach(timer, timerp);
117 ENSURE(*timerp == timer);
130 isc_timer_reset(isc_timer_t *timer, isc_timertype_t type, argument
134 REQUIRE(ISCAPI_TIMER_VALID(timer));
136 return (timer->methods->reset(timer, typ
140 isc_timer_touch(isc_timer_t *timer) argument
[all...]
H A Dratelimiter.c28 #include <isc/timer.h>
43 isc_timer_t * timer; member in struct:isc_ratelimiter
74 rl->timer = NULL;
84 rl, &rl->timer);
115 * If the timer is currently running, change its rate.
118 result = isc_timer_reset(rl->timer, isc_timertype_ticker, NULL,
152 result = isc_timer_reset(rl->timer, isc_timertype_ticker, NULL,
191 * No work left to do. Stop the timer so that we don't
194 result = isc_timer_reset(rl->timer,
216 (void)isc_timer_reset(rl->timer, isc_timertype_inactiv
[all...]
/freebsd-12-stable/crypto/heimdal/lib/roken/
H A Dlocaltime_r.c43 localtime_r(const time_t *timer, struct tm *result) argument
47 return (localtime_s(result, timer) == 0)? result : NULL;
52 tm = localtime((time_t *)timer);
/freebsd-12-stable/contrib/ntp/scripts/deprecated/
H A Dfreq_adj.in16 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...]
/freebsd-12-stable/sys/dev/isci/scil/
H A Dscif_sas_timer.c87 void * timer
92 if (timer != NULL)
94 scif_cb_timer_destroy(fw_controller, timer);
95 timer = NULL;
103 void * timer,
110 scif_cb_timer_start(fw_controller, timer, milliseconds);
117 void * timer
123 scif_cb_timer_stop(fw_controller, timer);
101 scic_cb_timer_start( SCI_CONTROLLER_HANDLE_T controller, void * timer, U32 milliseconds ) argument
/freebsd-12-stable/contrib/ntp/sntp/libevent/test/
H A Dtest-changelist.c65 start_cpu_usage_timer(struct cpu_usage_timer *timer) argument
70 timer->thread = GetCurrentThread();
71 r = GetThreadTimes(timer->thread, &createtime, &exittime,
72 &timer->usertimeBegin, &timer->kerneltimeBegin);
75 timer->ticksBegin = clock();
78 evutil_gettimeofday(&timer->timeBegin, NULL);
104 get_cpu_usage(struct cpu_usage_timer *timer, double *secElapsedOut, argument
118 r = GetThreadTimes(timer->thread, &createtime, &exittime,
121 usertime_seconds = filetime_diff(&timer
170 struct cpu_usage_timer timer; local
[all...]
/freebsd-12-stable/contrib/libevent/test/
H A Dtest-changelist.c65 start_cpu_usage_timer(struct cpu_usage_timer *timer) argument
70 timer->thread = GetCurrentThread();
71 r = GetThreadTimes(timer->thread, &createtime, &exittime,
72 &timer->usertimeBegin, &timer->kerneltimeBegin);
75 timer->ticksBegin = clock();
78 evutil_gettimeofday(&timer->timeBegin, NULL);
104 get_cpu_usage(struct cpu_usage_timer *timer, double *secElapsedOut, argument
118 r = GetThreadTimes(timer->thread, &createtime, &exittime,
121 usertime_seconds = filetime_diff(&timer
170 struct cpu_usage_timer timer; local
[all...]
/freebsd-12-stable/lib/librt/
H A Dtimer.c84 struct __timer *timer; local
89 timer = malloc(sizeof(struct __timer));
90 if (timer == NULL)
94 ret = __sys_ktimer_create(clockid, evp, &timer->oshandle);
97 free(timer);
101 timer->node = NULL;
102 *timerid = timer;
107 free(timer);
114 free(timer);
120 ret = __sys_ktimer_create(clockid, &ev, &timer
[all...]
/freebsd-12-stable/sys/amd64/vmm/io/
H A Dvhpet.c93 } timer[VHPET_NUM_TIMERS]; member in struct:vhpet
110 cap &= ~HPET_CAP_COUNT_SIZE; /* 32-bit timer */
130 if ((vhpet->timer[n].cap_config & msi_enable) == msi_enable)
140 * If the timer is configured to use MSI then treat it as if the
141 * timer is not connected to the ioapic.
146 return ((vhpet->timer[n].cap_config & HPET_TCNF_INT_ROUTE) >> 9);
182 KASSERT(pin != 0, ("vhpet timer %d irq incorrectly routed", n));
192 return ((vhpet->timer[n].cap_config & HPET_TCNF_TYPE) != 0);
199 return ((vhpet->timer[n].cap_config & HPET_TCNF_INT_ENB) != 0);
207 "timer
[all...]
/freebsd-12-stable/sys/sys/
H A Dtimers.h67 /* cpu timer */
103 int (*timer_create)(struct itimer *timer);
104 int (*timer_settime)(struct itimer * timer, int flags,
107 int (*timer_delete)(struct itimer * timer);
108 int (*timer_gettime)(struct itimer * timer,
/freebsd-12-stable/tests/sys/kqueue/libkqueue/
H A DMakefile14 timer.c \
/freebsd-12-stable/usr.sbin/rtadvd/
H A DMakefile19 SRCS= rtadvd.c rrenum.c advcap.c if.c config.c timer.c timer_subr.c \
/freebsd-12-stable/contrib/ntp/lib/isc/include/isc/
H A Dtimer.h18 /* $Id: timer.h,v 1.43 2009/09/02 23:48:03 tbox Exp $ */
27 /*! \file isc/timer.h
44 * Timers can change type. It is typical to create a timer as
45 * an 'inactive' timer and then change it into a 'ticker' or
46 * 'once' timer.
51 * Clients of this module must not be holding a timer's task's lock when
52 * making a call that affects that timer. Failure to follow this rule
106 /*% Timer and timer manager methods */
120 void (*attach)(isc_timer_t *timer, isc_timer_t **timerp);
122 isc_result_t (*reset)(isc_timer_t *timer, isc_timertype_
[all...]
/freebsd-12-stable/lib/libc/isc/
H A Dev_timers.c70 evTimer * timer; member in struct:__anon8470
250 ctx->cur->u.timer.this == del) {
251 evPrintf(ctx, 8, "deferring delete of timer (executing)\n");
254 * clean up the timer.
282 evTimer *timer = id.opaque; local
287 if (heap_element(ctx->timers, timer->index) != timer)
291 timer->mode |= EV_TMR_RATE;
293 timer->mode &= ~EV_TMR_RATE;
309 evTimer *timer local
406 evTimer *timer = opaqueID.opaque; local
459 evTimer *timer; local
[all...]
/freebsd-12-stable/sys/dev/mthca/
H A Dmthca_catas.c37 #include <linux/timer.h>
146 mod_timer(&dev->catas_err.timer,
154 init_timer(&dev->catas_err.timer);
169 dev->catas_err.timer.data = (unsigned long) dev;
170 dev->catas_err.timer.function = poll_catas;
171 dev->catas_err.timer.expires = jiffies + MTHCA_CATAS_POLL_INTERVAL;
173 add_timer(&dev->catas_err.timer);
178 del_timer_sync(&dev->catas_err.timer);
/freebsd-12-stable/sys/dev/ocs_fc/
H A Docs_os.c925 ocs_timer_t *timer = t; local
927 if (callout_pending(&timer->callout)) {
932 if (!callout_active(&timer->callout)) {
937 callout_deactivate(&timer->callout);
939 if (timer->func) {
940 timer->func(timer->data);
945 ocs_setup_timer(ocs_os_handle_t os, ocs_timer_t *timer, void(*func)(void *arg), void *data, uint32_t timeout_ms) argument
950 if (timer == NULL) {
955 if (!mtx_initialized(&timer
981 ocs_mod_timer(ocs_timer_t *timer, uint32_t timeout_ms) argument
1008 ocs_timer_pending(ocs_timer_t *timer) argument
1014 ocs_del_timer(ocs_timer_t *timer) argument
[all...]
/freebsd-12-stable/sys/kern/
H A Dkern_clocksource.c76 if (timer->et_flags & ET_FLAGS_PERCPU) \
84 if (timer->et_flags & ET_FLAGS_PERCPU) \
90 static struct eventtimer *timer = NULL; variable in typeref:struct:eventtimer
94 static sbintime_t nexttick; /* Next global timer tick time. */
98 static char timername[32]; /* Wanted timer. */
99 TUNABLE_STR("kern.eventtimer.timer", timername, sizeof(timername));
114 struct mtx et_hw_mtx; /* Per-CPU timer mutex. */
119 sbintime_t nexttick; /* Next timer tick time. */
222 (timer->et_flags & ET_FLAGS_PERCPU));
283 if ((timer
[all...]
/freebsd-12-stable/contrib/netbsd-tests/lib/libpthread/
H A Dt_sem.c222 struct itimerval timer; local
223 timer.it_interval.tv_sec = 0;
224 timer.it_interval.tv_usec = 0;
225 timer.it_value.tv_sec = 0;
226 timer.it_value.tv_usec = ms * 1000;
227 ATF_REQUIRE(setitimer(ITIMER_REAL, &timer, NULL) == 0);
/freebsd-12-stable/sys/compat/linuxkpi/common/src/
H A Dlinux_work.c43 WORK_ST_TIMER, /* timer is being started */
231 dwork->timer.expires = jiffies;
237 dwork->timer.expires = jiffies + delay;
242 mtx_lock(&dwork->timer.mtx);
243 callout_reset_on(&dwork->timer.callout, delay,
245 mtx_unlock(&dwork->timer.mtx);
247 mtx_lock(&dwork->timer.mtx);
248 callout_reset(&dwork->timer.callout, delay,
250 mtx_unlock(&dwork->timer.mtx);
325 * Make sure the timer belongin
[all...]
/freebsd-12-stable/usr.sbin/ppp/
H A Dcbcp.h59 struct pppTimer timer; /* Resend last option */ member in struct:cbcp::__anon17541
H A Dradius.h47 struct pppTimer timer; /* for this long */ member in struct:radius::__anon17599
77 struct pppTimer timer; /* for this long */ member in struct:radius::__anon17602
/freebsd-12-stable/sys/mips/nlm/hal/
H A Dpic.h44 #define PIC_CTRL_STE 10 /* system timer interrupt enable */
49 #define PIC_CTRL_WTE 0 /* watchdog timer enable */
54 #define PIC_STS_STATUS 4 /* System timer interrupt status */
278 nlm_pic_read_timer(uint64_t base, int timer) argument
280 return nlm_read_pic_reg(base, PIC_TIMER_COUNT(timer));
284 nlm_pic_write_timer(uint64_t base, int timer, uint64_t value) argument
286 nlm_write_pic_reg(base, PIC_TIMER_COUNT(timer), value);
290 nlm_pic_set_timer(uint64_t base, int timer, uint64_t value, int irq, int cpu) argument
302 nlm_write_pic_reg(base, PIC_TIMER_MAXVAL(timer), value);
303 nlm_pic_write_irt_direct(base, PIC_IRT_TIMER_INDEX(timer),
[all...]

Completed in 140 milliseconds

12345678910