/haiku-fatelf/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-fatelf/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-fatelf/src/libs/fluidsynth/src/ |
H A D | fluid_sys.c | 345 fluid_timer_t* timer = FLUID_NEW(fluid_timer_t); local 346 if (timer == NULL) { 351 timer->cont = 1; 352 timer->msec = msec; 353 timer->callback = callback; 354 timer->data = data; 355 timer->thread = 0; 356 timer->auto_destroy = auto_destroy; 359 timer->thread = CreateThread(NULL, 0, fluid_timer_run, (LPVOID) timer, 379 fluid_timer_t* timer; local 420 delete_fluid_timer(fluid_timer_t* timer) argument 429 fluid_timer_join(fluid_timer_t* timer) argument 542 _timerCallback(fluid_timer_t *timer) argument 558 fluid_timer_t* timer = FLUID_NEW(fluid_timer_t); local 591 delete_fluid_timer(fluid_timer_t* timer) argument 601 fluid_timer_join(fluid_timer_t* timer) argument 669 fluid_timer_t* timer = FLUID_NEW(fluid_timer_t); local 703 fluid_timer_t* timer; local 743 delete_fluid_timer(fluid_timer_t* timer) argument 752 fluid_timer_join(fluid_timer_t* timer) argument 831 fluid_timer_t *timer = (fluid_timer_t *)data; local 849 fluid_timer_t* timer = FLUID_NEW(fluid_timer_t); local 875 delete_fluid_timer(fluid_timer_t* timer) argument 883 fluid_timer_join(fluid_timer_t* timer) argument 940 fluid_timer_t* timer; local 986 fluid_timer_t* timer = FLUID_NEW(fluid_timer_t); local 1032 delete_fluid_timer(fluid_timer_t* timer) argument 1042 fluid_timer_join(fluid_timer_t* timer) argument [all...] |
/haiku-fatelf/src/libs/compat/freebsd_network/ |
H A D | clock.c | 13 static timer sHardClockTimer; 17 * Implementation of FreeBSD's hardclock timer. 20 hardClock(timer* hardClockTimer) 28 * Initialization of the hardclock timer which ticks according to hz defined in
|
/haiku-fatelf/src/system/kernel/arch/m68k/ |
H A D | arch_timer.cpp | 17 #include <timer.h> 18 #include <arch/timer.h>
|
/haiku-fatelf/src/system/kernel/arch/mipsel/ |
H A D | arch_timer.cpp | 18 #include <timer.h> 19 #include <arch/timer.h>
|
/haiku-fatelf/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-fatelf/src/tests/system/libroot/posix/bonnie++-1.03d/ |
H A D | bon_file.h | 15 int create(CPCCHAR dirname, BonTimer &timer, int num, int max_size 17 int delete_random(BonTimer &timer); 18 int delete_sequential(BonTimer &timer); 19 int stat_random(BonTimer &timer); 20 int stat_sequential(BonTimer &timer);
|
/haiku-fatelf/src/add-ons/kernel/network/stack/ |
H A D | utility.cpp | 468 // scan timers for new timeout and/or execute a timer 471 struct net_timer* timer = NULL; local 473 timer = (net_timer*)list_get_next_item(&sTimers, timer); 474 if (timer == NULL) 477 if (timer->due < system_time()) { 478 // execute timer 479 list_remove_item(&sTimers, timer); 480 timer->due = -1; 481 sCurrentTimer = timer; 521 init_timer(net_timer* timer, net_timer_func hook, void* data) argument 539 set_timer(net_timer* timer, bigtime_t delay) argument 566 cancel_timer(struct net_timer* timer) argument 584 wait_for_timer(struct net_timer* timer) argument 611 is_timer_active(net_timer* timer) argument 618 is_timer_running(net_timer* timer) argument 629 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-fatelf/headers/private/fs_shell/ |
H A D | fssh_time.h | 61 extern fssh_time_t fssh_time(fssh_time_t *timer); 65 extern char *fssh_ctime(const fssh_time_t *timer); 66 extern char *fssh_ctime_r(const fssh_time_t *timer, char *buffer); 67 extern struct fssh_tm *fssh_gmtime(const fssh_time_t *timer); 68 extern struct fssh_tm *fssh_gmtime_r(const fssh_time_t *timer, 70 extern struct fssh_tm *fssh_localtime(const fssh_time_t *timer); 71 extern struct fssh_tm *fssh_localtime_r(const fssh_time_t *timer,
|
/haiku-fatelf/src/tools/fs_shell/ |
H A D | time.cpp | 67 fssh_time(fssh_time_t *timer) argument 70 if (timer) 71 *timer = result;
|
/haiku-fatelf/src/system/kernel/arch/ppc/ |
H A D | arch_timer.cpp | 11 #include <timer.h> 12 #include <arch/timer.h>
|
/haiku-fatelf/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> 98 timer_info *timer = NULL; local 101 for (int i = 0; (timer = sTimers[i]) != NULL; i++) { 102 if (timer->init(args) == B_OK) 106 sTimer = timer; 109 dprintf("arch_init_timer: using %s timer.\n", sTimer->name);
|
/haiku-fatelf/src/system/kernel/arch/x86/timers/ |
H A D | x86_hpet.cpp | 10 #include <timer.h> 14 #include <arch/x86/timer.h> 85 // enable timer interrupt 105 // Disable timer interrupt 141 hpet_dump_timer(volatile struct hpet_timer *timer) argument 143 dprintf("HPET Timer %ld:\n", (timer - sHPETRegs->timer)); 146 uint32 interrupts = (uint32)HPET_GET_CAP_TIMER_ROUTE(timer); 152 dprintf("\tconfiguration: 0x%llx\n", timer->config); 154 timer 174 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>
|
/haiku-fatelf/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 | 22 // Minimum interval length in microseconds for a periodic timer. This is not a 23 // restriction on the user timer interval length itself, but the minimum time 25 // timer interval will result in the overrun count to be increased every time 26 // the kernel timer is rescheduled. 84 UserTimer* timer = thread != NULL local 86 if (timer == NULL) 89 _timer = timer; 121 // mark the timer unused 134 Cancels the timer, if it is already scheduled, and optionally schedules it 139 \param nextTime The time at which the timer shoul 192 HandleTimerHook(struct timer* timer) argument 1113 AddTimer(UserTimer* timer) argument 1190 UserTimer* timer; local 1699 UserTimer* timer; local 1724 UserTimer* timer; local 1761 UserTimer* timer; local [all...] |
/haiku-fatelf/src/tests/kits/net/sock/ |
H A D | sockopts.c | 41 struct timeval timer; local 286 timer.tv_sec = rcvtimeo / 1000; 287 timer.tv_usec = (rcvtimeo % 1000) * 1000; 289 &timer, sizeof(timer)) < 0) 292 timer.tv_sec = timer.tv_usec = 0; 293 optlen = sizeof(timer); 295 &timer, &optlen) < 0) 300 timer [all...] |
/haiku-fatelf/headers/posix/ |
H A D | time.h | 36 #define TIMER_ABSTIME 1 /* absolute timer flag */ 77 extern time_t time(time_t *timer); 80 extern char *ctime(const time_t *timer); 81 extern char *ctime_r(const time_t *timer, char *buffer); 82 extern struct tm *gmtime(const time_t *timer); 83 extern struct tm *gmtime_r(const time_t *timer, struct tm *tm); 84 extern struct tm *localtime(const time_t *timer); 85 extern struct tm *localtime_r(const time_t *timer, struct tm *tm); 99 /* timer functions */
|
/haiku-fatelf/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-fatelf/src/kits/network/libbind/isc/ |
H A D | ev_timers.c | 59 evTimer * timer; member in struct:__anon4624 233 ctx->cur->u.timer.this == del) { 234 evPrintf(ctx, 8, "deferring delete of timer (executing)\n"); 237 * clean up the timer. 265 evTimer *timer = id.opaque; local 270 if (heap_element(ctx->timers, timer->index) != timer) 274 timer->mode |= EV_TMR_RATE; 276 timer->mode &= ~EV_TMR_RATE; 292 evTimer *timer local 389 evTimer *timer = opaqueID.opaque; local 442 evTimer *timer; local [all...] |
/haiku-fatelf/headers/os/drivers/ |
H A D | KernelExport.h | 56 /* timer interrupts services */ 58 typedef struct timer timer; typedef in typeref:struct:timer 59 typedef int32 (*timer_hook)(timer *); 61 struct timer { struct 62 struct timer *next; 134 extern status_t add_timer(timer *t, timer_hook hook, bigtime_t period, 136 extern bool cancel_timer(timer *t);
|