/haiku/src/system/libroot/posix/time/ |
H A D | time.c | 12 time(time_t* timer) argument 16 if (timer) 17 *timer = secs;
|
H A D | timer_support.cpp | 32 // A remaining_time of B_INFINITE_TIMEOUT means the timer isn't scheduled. 89 // create a timer object 90 __timer_t* timer = new(std::nothrow) __timer_t; local 91 if (timer == NULL) 93 ObjectDeleter<__timer_t> timerDeleter(timer); 103 "timer notify", &threadAttributes); 110 // create the timer 117 timer->SetTo(timerID, -1); 125 timer_delete(timer_t timer) argument 127 status_t error = _kern_delete_timer(timer 137 timer_gettime(timer_t timer, struct itimerspec* value) argument 151 timer_settime(timer_t timer, int flags, const struct itimerspec* value, struct itimerspec* oldValue) argument 179 timer_getoverrun(timer_t timer) argument [all...] |
/haiku/src/system/kernel/arch/arm/ |
H A D | arch_timer.cpp | 18 #include <timer.h> 19 #include <arch/timer.h> 40 HardwareTimer *timer = HardwareTimer::Get(); local 41 if (timer != NULL) 42 timer->SetTimeout(timeout); 49 HardwareTimer *timer = HardwareTimer::Get(); local 50 if (timer != NULL) 51 timer->Clear(); 60 TRACE("init ARMv7 generic timer\n"); 62 } else if (strncmp(args->arch_args.timer 80 HardwareTimer *timer = HardwareTimer::Get(); local [all...] |
H A D | arch_timer_generic.h | 20 ARMGenericTimer *timer = new(std::nothrow) ARMGenericTimer(); local 21 return timer != NULL ? B_OK : B_NO_MEMORY;
|
/haiku/src/system/kernel/arch/sparc/ |
H A D | arch_timer.cpp | 12 #include <timer.h> 13 #include <arch/timer.h>
|
/haiku/src/system/libroot/posix/sys/ |
H A D | itimer.cpp | 41 prepare_timer(__timer_t& timer, int which) argument 45 timer.SetTo(USER_TIMER_REAL_TIME_ID, -1); 48 timer.SetTo(USER_TIMER_TEAM_USER_TIME_ID, -1); 51 timer.SetTo(USER_TIMER_TEAM_TOTAL_TIME_ID, -1); 65 // prepare the respective timer 66 __timer_t timer; local 67 if (!prepare_timer(timer, which)) 72 if (timer_gettime(&timer, &valueSpec) != 0) 85 // prepare the respective timer 86 __timer_t timer; local [all...] |
/haiku/src/system/kernel/arch/m68k/ |
H A D | arch_timer.cpp | 17 #include <timer.h> 18 #include <arch/timer.h>
|
/haiku/src/system/boot/platform/efi/arch/arm/ |
H A D | arch_dtb.cpp | 39 { "arm,armv7-timer", TIMER_KIND_ARMV7 }, 40 { "ti,omap3430-timer", TIMER_KIND_OMAP3 }, 87 boot_timer_info &timer = gKernelArgs.arch_args.timer; local 88 if (timer.kind[0] == 0) { 93 memcpy(timer.kind, kSupportedTimers[i].kind, 94 sizeof(timer.kind)); 96 dtb_get_reg(fdt, node, 0, timer.regs); 97 timer.interrupt = dtb_get_interrupt(fdt, node); 121 boot_timer_info &timer local [all...] |
/haiku/src/add-ons/kernel/drivers/timer/ |
H A D | hpet.cpp | 42 hpet_timer* timer; member in struct:hpet_timer_cookie 97 hpet_set_hardware_timer(bigtime_t relativeTimeout, hpet_timer *timer) argument 105 //dprintf("comparator: %lld, new value: %lld\n", timer->u0.comparator64, timerValue); 108 timer->u0.comparator64 = timerValue; 110 timer->u0.comparator32 = timerValue; 113 // enable timer interrupt 114 timer->config |= HPET_CONF_TIMER_INT_ENABLE; 121 hpet_clear_hardware_timer(hpet_timer *timer) argument 123 // Disable timer interrupt 124 timer 134 hpet_timer* timer = &sHPETRegs->timer[hpetCookie->number]; local 181 hpet_dump_timer(volatile struct hpet_timer *timer) argument 220 struct hpet_timer *timer = cookie->timer; local [all...] |
H A D | hpet.h | 43 #define HPET_GET_CAP_TIMER_ROUTE(timer) (((timer)->config & HPET_CAP_TIMER_MASK) >> 32) 53 #define HPET_GET_CONF_TIMER_INT_ROUTE(timer) (((timer)->config & HPET_CONF_TIMER_INT_ROUTE_MASK) >> HPET_CONF_TIMER_INT_ROUTE_SHIFT) 54 #define HPET_GET_CONF_TIMER_INT_IS_LEVEL(timer) (((timer)->config & HPET_CONF_TIMER_INT_TYPE)) 61 /* R/W: Each bit represents one allowed interrupt for this timer. */ 67 /* periodic mode: fires when timer reaches this value, is increased by the original value */ 84 /* Level Tigger: 0 = off, 1 = set by hardware, timer is active */ 96 struct hpet_timer timer[ member in struct:hpet_regs [all...] |
/haiku/src/add-ons/kernel/network/stack/ |
H A D | utility.cpp | 333 // scan timers for new timeout and/or execute a timer 336 struct net_timer* timer = NULL; local 338 timer = (net_timer*)list_get_next_item(&sTimers, timer); 339 if (timer == NULL) 342 if (timer->due < system_time()) { 343 // execute timer 344 list_remove_item(&sTimers, timer); 345 timer->due = -1; 346 sCurrentTimer = timer; 386 init_timer(net_timer* timer, net_timer_func hook, void* data) argument 404 set_timer(net_timer* timer, bigtime_t delay) argument 431 cancel_timer(struct net_timer* timer) argument 449 wait_for_timer(struct net_timer* timer) argument 476 is_timer_active(net_timer* timer) argument 483 is_timer_running(net_timer* timer) argument 494 struct net_timer* timer = NULL; local [all...] |
H A D | utility.h | 64 // timer 65 void init_timer(net_timer* timer, net_timer_func hook, void* data); 66 void set_timer(net_timer* timer, bigtime_t delay); 67 bool cancel_timer(struct net_timer* timer); 68 status_t wait_for_timer(struct net_timer* timer); 69 bool is_timer_active(net_timer* timer); 70 bool is_timer_running(net_timer* timer);
|
/haiku/headers/private/fs_shell/ |
H A D | fssh_time.h | 65 extern fssh_time_t fssh_time(fssh_time_t *timer); 69 extern char *fssh_ctime(const fssh_time_t *timer); 70 extern char *fssh_ctime_r(const fssh_time_t *timer, char *buffer); 71 extern struct fssh_tm *fssh_gmtime(const fssh_time_t *timer); 72 extern struct fssh_tm *fssh_gmtime_r(const fssh_time_t *timer, 74 extern struct fssh_tm *fssh_localtime(const fssh_time_t *timer); 75 extern struct fssh_tm *fssh_localtime_r(const fssh_time_t *timer,
|
/haiku/src/tools/fs_shell/ |
H A D | time.cpp | 67 fssh_time(fssh_time_t *timer) argument 70 if (timer) 71 *timer = result;
|
/haiku/src/system/kernel/arch/ppc/ |
H A D | arch_timer.cpp | 11 #include <timer.h> 12 #include <arch/timer.h>
|
/haiku/src/system/kernel/arch/x86/ |
H A D | arch_timer.cpp | 18 #include <timer.h> 22 #include <arch/timer.h> 25 #include <arch/x86/timer.h> 99 timer_info *timer = NULL; local 102 for (int i = 0; (timer = sTimers[i]) != NULL; i++) { 103 if (timer->init(args) == B_OK) 107 sTimer = timer; 110 dprintf("arch_init_timer: using %s timer.\n", sTimer->name);
|
/haiku/src/system/kernel/arch/x86/timers/ |
H A D | x86_hpet.cpp | 10 #include <timer.h> 14 #include <arch/x86/timer.h> 86 // enable timer interrupt 106 // Disable timer interrupt 142 hpet_dump_timer(volatile struct hpet_timer *timer) argument 144 dprintf("HPET Timer %ld:\n", (timer - sHPETRegs->timer)); 147 uint32 interrupts = (uint32)HPET_GET_CAP_TIMER_ROUTE(timer); 153 dprintf("\tconfiguration: 0x%" B_PRIx64 "\n", timer->config); 155 timer 175 hpet_init_timer(volatile struct hpet_timer *timer) argument [all...] |
H A D | x86_pit.cpp | 10 #include <timer.h> 11 #include <arch/x86/timer.h> 85 TRACE("timer is already initialized"); 93 TRACE("timer initialized");
|
/haiku/src/add-ons/kernel/busses/random/virtio/ |
H A D | VirtioRNGPrivate.h | 39 static int32 HandleTimerHook(struct timer* timer); 60 timer fTimer;
|
/haiku/headers/private/kernel/arch/arm/ |
H A D | arch_kernel_args.h | 15 #include <boot/timer.h> 42 boot_timer_info timer; member in struct:__anon1
|
/haiku/src/system/kernel/ |
H A D | timer.cpp | 13 #include <timer.h> 17 #include <arch/timer.h> 30 timer* volatile events; 31 timer* volatile current_event; 47 /*! Sets the hardware timer to the given absolute time. 49 \param scheduleTime The absolute system time for the timer expiration. 59 /*! Sets the hardware timer to the given absolute time. 61 \param scheduleTime The absolute system time for the timer expiration. 72 add_event_to_list(timer* event, timer* volatil [all...] |
H A D | UserTimer.cpp | 23 // Minimum interval length in microseconds for a periodic timer. This is not a 24 // restriction on the user timer interval length itself, but the minimum time 26 // timer interval will result in the overrun count to be increased every time 27 // the kernel timer is rescheduled. 87 UserTimer* timer = thread != NULL local 89 if (timer == NULL) 92 _timer = timer; 125 // mark the timer unused 139 Cancels the timer, if it is already scheduled, and optionally schedules it 142 \param nextTime The time at which the timer shoul 191 HandleTimerHook(struct timer* timer) argument 1159 AddTimer(UserTimer* timer) argument 1236 UserTimer* timer; local 1745 UserTimer* timer; local 1770 UserTimer* timer; local 1807 UserTimer* timer; local [all...] |
/haiku/headers/posix/ |
H A D | time.h | 43 #define TIMER_ABSTIME 1 /* absolute timer flag */ 84 extern time_t time(time_t *timer); 87 extern char *ctime(const time_t *timer); 88 extern char *ctime_r(const time_t *timer, char *buffer); 89 extern struct tm *gmtime(const time_t *timer); 90 extern struct tm *gmtime_r(const time_t *timer, struct tm *tm); 91 extern struct tm *localtime(const time_t *timer); 92 extern struct tm *localtime_r(const time_t *timer, struct tm *tm); 108 /* timer functions */
|
/haiku/headers/private/kernel/arch/x86/ |
H A D | arch_hpet.h | 51 #define HPET_GET_CAP_TIMER_ROUTE(timer) (((timer)->config & HPET_CAP_TIMER_MASK) >> 32) 52 #define HPET_GET_CONF_TIMER_INT_ROUTE(timer) (((timer)->config & HPET_CONF_TIMER_INT_ROUTE_MASK) >> HPET_CONF_TIMER_INT_ROUTE_SHIFT) 59 /* R/W: Each bit represents one allowed interrupt for this timer. */ 65 /* periodic mode: fires when timer reaches this value, is increased by the original value */ 82 /* Level Tigger: 0 = off, 1 = set by hardware, timer is active */ 94 volatile struct hpet_timer timer[1]; member in struct:hpet_regs
|
/haiku/src/system/libnetwork/netresolv/isc/ |
H A D | ev_timers.c | 67 evTimer * timer; member in struct:__anon15 252 ctx->cur->u.timer.this == del) { 253 evPrintf(ctx, 8, "deferring delete of timer (executing)\n"); 256 * clean up the timer. 284 evTimer *timer = id.opaque; local 289 if (heap_element(ctx->timers, timer->index) != timer) 293 timer->mode |= EV_TMR_RATE; 295 timer->mode &= ~EV_TMR_RATE; 311 evTimer *timer local 408 evTimer *timer = opaqueID.opaque; local 461 evTimer *timer; local [all...] |