Lines Matching refs:sTimerCount
42 static int sTimerCount; variable
73 for (i = 0; i < sTimerCount; i++) { in timer_thread()
82 ASSERT(index >= 0 && index < sTimerCount); in timer_thread()
90 if (index != (sTimerCount - 1) && sTimerCount != 1) { in timer_thread()
91 memcpy(&sTimerData[index], &sTimerData[sTimerCount - 1], sizeof(struct timer_info)); in timer_thread()
93 sTimerCount--; in timer_thread()
128 if (sTimerCount < MAX_TIMERS) { in create_timer()
130 sTimerData[sTimerCount].id = id; in create_timer()
131 sTimerData[sTimerCount].func = func; in create_timer()
132 sTimerData[sTimerCount].cookie = cookie; in create_timer()
133 …sTimerData[sTimerCount].next_event = (flags == B_ONE_SHOT_ABSOLUTE_TIMER) ? interval : system_time… in create_timer()
134 sTimerData[sTimerCount].interval = interval; in create_timer()
135 sTimerData[sTimerCount].periodic = flags == B_PERIODIC_TIMER; in create_timer()
137 sTimerCount++; in create_timer()
164 for (i = 0; i < sTimerCount; i++) { in delete_timer()
166 if (i != (sTimerCount - 1) && sTimerCount != 1) { in delete_timer()
167 memcpy(&sTimerData[i], &sTimerData[sTimerCount - 1], sizeof(struct timer_info)); in delete_timer()
169 sTimerCount--; in delete_timer()
189 sTimerCount = 0; in initialize_timer()