/darwin-on-arm/xnu/osfmk/kern/ |
H A D | timer.c | 67 #include <kern/timer.h> 76 * timer_init initializes a timer. 80 timer_t timer) 82 timer->tstamp = 0; 84 timer->all_bits = 0; 86 timer->low_bits = 0; 87 timer->high_bits = 0; 88 timer->high_bits_check = 0; 93 * Calculate the difference between a timer 98 timer_t timer, 79 timer_init( timer_t timer) argument 97 timer_delta( timer_t timer, uint64_t *save) argument 109 timer_advance( timer_t timer, uint64_t delta) argument 127 timer_start( timer_t timer, uint64_t tstamp) argument 135 timer_stop( timer_t timer, uint64_t tstamp) argument 146 timer_switch( timer_t timer, uint64_t tstamp, timer_t new_timer) argument 176 timer_t timer; local [all...] |
H A D | timer.h | 67 * time billed to the system timer. However, when exposed to userspace, 90 struct timer { struct 101 typedef struct timer timer_data_t, *timer_t; 107 /* Start a timer by setting the timestamp */ 109 timer_t timer, 112 /* Stop a timer by updating from the timestamp */ 114 timer_t timer, 117 /* Update the timer and start a new one */ 119 timer_t timer, 123 /* Update the thread timer a 148 timer_grab( timer_t timer) argument [all...] |
H A D | mk_timer.c | 62 mk_timer_t timer; local 68 timer = (mk_timer_t)zalloc(mk_timer_zone); 69 if (timer == NULL) 78 zfree(mk_timer_zone, timer); 83 simple_lock_init(&timer->lock, 0); 84 thread_call_setup(&timer->call_entry, mk_timer_expire, timer); 85 timer->is_armed = timer->is_dead = FALSE; 86 timer 102 mk_timer_t timer = NULL; local 149 mk_timer_t timer = p0; local 249 mk_timer_t timer; local 302 mk_timer_t timer; local [all...] |
H A D | processor_data.c | 35 #include <kern/timer.h>
|
H A D | processor_data.h | 42 #include <kern/timer.h> 90 uint64_t timer_call_ttd; /* current timer call time-to-deadline */
|
H A D | pms.h | 79 uint32_t pmsTDelay; /* State if command was pmsDelay and timer expired */ 159 extern void pmsStep(int timer);
|
/darwin-on-arm/xnu/bsd/net/ |
H A D | devtimer.c | 31 * - timer source based on <kern/thread_call.h> 97 devtimer_valid(devtimer_ref timer) argument 99 return (timer->dt_callout != NULL); 103 devtimer_retain(devtimer_ref timer) argument 105 OSIncrementAtomic(&timer->dt_retain_count); 110 devtimer_invalidate(devtimer_ref timer) argument 112 devtimer_cancel(timer); 113 timer->dt_arg0 = NULL; 114 if (timer->dt_callout != NULL) { 115 thread_call_free(timer 122 devtimer_release(devtimer_ref timer) argument 148 devtimer_ref timer = (devtimer_ref)param0; local 169 devtimer_arg0(devtimer_ref timer) argument 177 devtimer_ref timer; local 197 devtimer_set_absolute(devtimer_ref timer, struct timeval abs_time, devtimer_timeout_func timeout_func, void * arg1, void * arg2) argument 224 devtimer_set_relative(devtimer_ref timer, struct timeval rel_time, devtimer_timeout_func timeout_func, void * arg1, void * arg2) argument 239 devtimer_cancel(devtimer_ref timer) argument 257 devtimer_enabled(devtimer_ref timer) argument [all...] |
H A D | devtimer.h | 31 * - timer source based on <kern/thread_call.h> 50 typedef void (*devtimer_process_func)(devtimer_ref timer, 55 devtimer_valid(devtimer_ref timer); 58 devtimer_retain(devtimer_ref timer); 61 devtimer_arg0(devtimer_ref timer); 67 devtimer_invalidate(devtimer_ref timer); 70 devtimer_release(devtimer_ref timer);
|
/darwin-on-arm/xnu/osfmk/kperf/ |
H A D | timetrigger.h | 42 extern int kperf_timer_get_period( unsigned timer, uint64_t *period ); 43 extern int kperf_timer_set_period( unsigned timer, uint64_t period ); 51 /* so PET thread can re-arm the timer */ 52 extern int kperf_timer_pet_set( unsigned timer );
|
H A D | timetrigger.c | 46 /* represents a periodic timer */ 63 /* minimal interval for a timer (100usec in nsec) */ 76 /* re-schedule the timer, making sure we don't apply slop */ 94 /* On a timer, we can see the "real" current thread */ 104 ctx.trigger_id = (unsigned)(trigger-timerv); /* computer timer number */ 130 /* timer re-enabled when thread done */ 135 /* re-enable the timer 146 /* program the timer from the pet thread */ 148 kperf_timer_pet_set( unsigned timer ) 153 if( timer ! 243 kperf_timer_get_period( unsigned timer, uint64_t *period ) argument 256 kperf_timer_set_period( unsigned timer, uint64_t period ) argument [all...] |
H A D | kperfbsd.c | 58 unsigned timer, set = 0; local 69 timer = (unsigned) inputs[0]; 73 printf( "%s timer: %u, inp[0] %llu\n", set ? "set" : "get", 74 timer, inputs[0] ); 78 printf( "timer set period\n" ); 79 error = kperf_timer_set_period( timer, inputs[1] ); 84 error = kperf_timer_get_period(timer, &retval); 212 printf( "setting timer count to %d\n", value ); 232 printf( "setting timer petid to %d\n", value ); 295 /* timer su [all...] |
/darwin-on-arm/xnu/tools/tests/kqueue_tests/ |
H A D | Makefile | 1 all: file timer 6 timer:
|
/darwin-on-arm/xnu/osfmk/chud/ |
H A D | chud_osfmk_callback.c | 49 #pragma mark **** timer **** 60 chud_timer_t timer, 67 thread_call_enter1_delayed((thread_call_t)timer, param1, t_delay); 72 chudxnu_timer_callback_cancel(chud_timer_t timer) argument 74 thread_call_cancel((thread_call_t)timer); 79 chudxnu_timer_free(chud_timer_t timer) argument 81 thread_call_cancel((thread_call_t)timer); 82 thread_call_free((thread_call_t)timer); 59 chudxnu_timer_callback_enter( chud_timer_t timer, thread_call_param_t param1, uint32_t time, uint32_t units) argument
|
H A D | chud_xnu.h | 176 // cpu timer - each cpu has its own callback 229 // timer callback - multiple callbacks 233 extern kern_return_t chudxnu_timer_callback_enter(chud_timer_t timer, thread_call_param_t param1, uint32_t time, uint32_t units); 234 extern kern_return_t chudxnu_timer_callback_cancel(chud_timer_t timer); 235 extern kern_return_t chudxnu_timer_free(chud_timer_t timer);
|
/darwin-on-arm/xnu/bsd/netat/ |
H A D | adsp_TimerElem.c | 65 * t timer element to link in 66 * vbl timer value to use 88 if (val <= n->timer) /* Do we go in front of this? */ 90 n->timer -= val; /* Yes, adjust his delta */ 93 val -= n->timer; /* No, subtract off delta from our value */ 102 t->timer = val; /* this is our value */ 113 * t timer element to link in 138 n->link->timer += t->timer; /* and update child's timer */ [all...] |
/darwin-on-arm/xnu/osfmk/chud/i386/ |
H A D | chud_xnu_private.h | 35 #pragma mark **** cpu timer ****
|
/darwin-on-arm/xnu/iokit/IOKit/pwr_mgt/ |
H A D | IOPMinformee.h | 48 int32_t timer; // -1, 0, or positive number of ticks member in class:IOPMinformee
|
/darwin-on-arm/xnu/iokit/Kernel/ |
H A D | IOPMinformee.cpp | 58 timer = 0;
|
/darwin-on-arm/xnu/osfmk/arm/ |
H A D | etimer.c | 31 * ARM event timer. 54 * Return the raw timer value from the timer. 56 uint64_t timer_grab(timer_t timer) argument 58 return *(uint64_t *) timer; 65 * Update the raw timer value. 67 void timer_update(timer_t timer, uint32_t new_high, uint32_t new_low) argument 69 uint64_t *ptr = (uint64_t *) timer; 87 mytimer = &pp->rt_timer; /* Point to the timer itself */ 98 * Resynchronize the timer deadline [all...] |
/darwin-on-arm/xnu/tools/tests/affinity/ |
H A D | pool.c | 54 uint64_t timer; variable 229 * The tets thread to get here releases everyone and starts the timer. 242 timer = mach_absolute_time(); 498 timer = mach_absolute_time() - timer; 499 timer = timer / 1000000ULL; 501 (int) (timer/1000ULL), (int) (timer % 1000ULL));
|
H A D | sets.c | 54 uint64_t timer; variable 219 * The tets thread to get here releases everyone and starts the timer. 232 timer = mach_absolute_time(); 499 timer = mach_absolute_time() - timer; 500 timer = timer / 1000000ULL; 502 (int) (timer/1000ULL), (int) (timer % 1000ULL));
|
/darwin-on-arm/xnu/bsd/netinet/ |
H A D | igmp.c | 884 uint16_t timer; local 925 timer = igmp->igmp_code * PR_SLOWHZ / IGMP_TIMER_SCALE; 926 if (timer == 0) 927 timer = 1; 936 * interface, kick the report timer. 943 igmp_v2_update_group(inm, timer); 961 igmp_v2_update_group(inm, timer); 971 * Update the report timer on a group in response to an IGMPv2 query. 973 * If we are becoming the reporting member for this group, start the timer. 974 * If we already are the reporting member for this group, and timer i 986 igmp_v2_update_group(struct in_multi *inm, const int timer) argument 1040 uint16_t timer; local 1214 igmp_input_v3_group_query(struct in_multi *inm, int timer, struct igmpv3 *igmpv3) argument [all...] |
H A D | tcp_timer.c | 179 /* This parameter determines how long the timer list will stay in fast mode even 180 * though all connections are idle. In fast mode, the timer will fire more frequently 206 "Number of times timer list was rescheduled as part of processing a packet"); 223 /* TCP delack timer is set to 100 ms. Since the processing of timer list in fast 224 * mode will happen no faster than 100 ms, the delayed ack timer will fire some where 232 /* tcp timer list */ 235 /* The frequency of running through the TCP timer list in 240 "Frequency of running timer list in fast mode"); 244 "Frequency of running timer lis 276 uint32_t timer; local [all...] |
/darwin-on-arm/xnu/bsd/netinet6/ |
H A D | mld6.c | 745 uint16_t timer; local 801 timer = (ntohs(mld->mld_maxdelay) * PR_SLOWHZ) / MLD_TIMER_SCALE; 802 if (timer == 0) 803 timer = 1; 812 * interface, kick the report timer. 819 mld_v1_update_group(inm, timer); 839 mld_v1_update_group(inm, timer); 851 * Update the report timer on a group in response to an MLDv1 query. 853 * If we are becoming the reporting member for this group, start the timer. 854 * If we already are the reporting member for this group, and timer i 866 mld_v1_update_group(struct in6_multi *inm, const int timer) argument 922 uint16_t timer; local 1101 mld_v2_process_group_query(struct in6_multi *inm, int timer, struct mbuf *m0, const int off) argument [all...] |
/darwin-on-arm/xnu/osfmk/i386/ |
H A D | genassym.c | 570 /* values from kern/timer.h */ 572 DECLARE("TIMER_ALL", offsetof(struct timer *, all_bits)); 574 DECLARE("TIMER_LOW", offsetof(struct timer *, low_bits)); 575 DECLARE("TIMER_HIGH", offsetof(struct timer *, high_bits)); 576 DECLARE("TIMER_HIGHCHK", offsetof(struct timer *, high_bits_check)); 579 offsetof(struct timer *, tstamp));
|