• Home
  • Raw
  • Download

Lines Matching refs:com

50   gki_cb.com.OSTicksTilExp =  in gki_timers_init()
52 gki_cb.com.OSNumOrigTicks = 0; in gki_timers_init()
54 gki_cb.com.OSTicksTilStop = 0; /* clear inactivity delay timer */ in gki_timers_init()
58 gki_cb.com.OSWaitTmr[tt] = 0; in gki_timers_init()
61 gki_cb.com.OSTaskTmr0[tt] = 0; in gki_timers_init()
62 gki_cb.com.OSTaskTmr0R[tt] = 0; in gki_timers_init()
66 gki_cb.com.OSTaskTmr1[tt] = 0; in gki_timers_init()
67 gki_cb.com.OSTaskTmr1R[tt] = 0; in gki_timers_init()
71 gki_cb.com.OSTaskTmr2[tt] = 0; in gki_timers_init()
72 gki_cb.com.OSTaskTmr2R[tt] = 0; in gki_timers_init()
76 gki_cb.com.OSTaskTmr3[tt] = 0; in gki_timers_init()
77 gki_cb.com.OSTaskTmr3R[tt] = 0; in gki_timers_init()
82 gki_cb.com.timer_queues[tt] = nullptr; in gki_timers_init()
85 gki_cb.com.p_tick_cb = nullptr; in gki_timers_init()
86 gki_cb.com.system_tick_running = false; in gki_timers_init()
107 if (gki_cb.com.OSTaskTmr0[tt]) { in gki_timers_is_timer_running()
113 if (gki_cb.com.OSTaskTmr1[tt]) { in gki_timers_is_timer_running()
119 if (gki_cb.com.OSTaskTmr2[tt]) { in gki_timers_is_timer_running()
125 if (gki_cb.com.OSTaskTmr3[tt]) { in gki_timers_is_timer_running()
143 uint32_t GKI_get_tick_count(void) { return gki_cb.com.OSTicks; } in GKI_get_tick_count()
162 int32_t GKI_ready_to_sleep(void) { return (gki_cb.com.OSTicksTilExp); } in GKI_ready_to_sleep()
206 if (gki_cb.com.OSTicksTilStop == 0) { in GKI_start_timer()
208 if (gki_cb.com.p_tick_cb) { in GKI_start_timer()
210 gki_cb.com.system_tick_running = true; in GKI_start_timer()
211 (gki_cb.com.p_tick_cb)(true); in GKI_start_timer()
216 gki_cb.com.OSTicksTilStop = 0; in GKI_start_timer()
224 if (GKI_MAX_INT32 - (gki_cb.com.OSNumOrigTicks - gki_cb.com.OSTicksTilExp) > in GKI_start_timer()
226 ticks += gki_cb.com.OSNumOrigTicks - gki_cb.com.OSTicksTilExp; in GKI_start_timer()
233 gki_cb.com.OSTaskTmr0R[task_id] = reload; in GKI_start_timer()
234 gki_cb.com.OSTaskTmr0[task_id] = ticks; in GKI_start_timer()
240 gki_cb.com.OSTaskTmr1R[task_id] = reload; in GKI_start_timer()
241 gki_cb.com.OSTaskTmr1[task_id] = ticks; in GKI_start_timer()
247 gki_cb.com.OSTaskTmr2R[task_id] = reload; in GKI_start_timer()
248 gki_cb.com.OSTaskTmr2[task_id] = ticks; in GKI_start_timer()
254 gki_cb.com.OSTaskTmr3R[task_id] = reload; in GKI_start_timer()
255 gki_cb.com.OSTaskTmr3[task_id] = ticks; in GKI_start_timer()
293 gki_cb.com.OSTaskTmr0R[task_id] = 0; in GKI_stop_timer()
294 gki_cb.com.OSTaskTmr0[task_id] = 0; in GKI_stop_timer()
300 gki_cb.com.OSTaskTmr1R[task_id] = 0; in GKI_stop_timer()
301 gki_cb.com.OSTaskTmr1[task_id] = 0; in GKI_stop_timer()
307 gki_cb.com.OSTaskTmr2R[task_id] = 0; in GKI_stop_timer()
308 gki_cb.com.OSTaskTmr2[task_id] = 0; in GKI_stop_timer()
314 gki_cb.com.OSTaskTmr3R[task_id] = 0; in GKI_stop_timer()
315 gki_cb.com.OSTaskTmr3[task_id] = 0; in GKI_stop_timer()
321 if (gki_cb.com.p_tick_cb) { in GKI_stop_timer()
324 if ((gki_cb.com.system_tick_running) && in GKI_stop_timer()
325 (gki_cb.com.OSTicksTilStop == 0)) { in GKI_stop_timer()
328 gki_cb.com.OSTicksTilStop = GKI_DELAY_STOP_SYS_TICK; in GKI_stop_timer()
331 gki_cb.com.system_tick_running = false; in GKI_stop_timer()
332 (gki_cb.com.p_tick_cb)(false); /* stop system tick */ in GKI_stop_timer()
366 gki_cb.com.OSTicks += ticks_since_last_update; in GKI_timer_update()
371 gki_cb.com.OSTicksTilExp -= ticks_since_last_update; in GKI_timer_update()
374 if (gki_cb.com.timer_nesting) return; in GKI_timer_update()
376 gki_cb.com.timer_nesting = 1; in GKI_timer_update()
380 if (gki_cb.com.OSTicksTilStop) { in GKI_timer_update()
381 if (gki_cb.com.OSTicksTilStop <= (uint32_t)ticks_since_last_update) { in GKI_timer_update()
382 if (gki_cb.com.p_tick_cb) { in GKI_timer_update()
383 gki_cb.com.system_tick_running = false; in GKI_timer_update()
384 (gki_cb.com.p_tick_cb)(false); /* stop system tick */ in GKI_timer_update()
386 gki_cb.com.OSTicksTilStop = 0; /* clear inactivity delay timer */ in GKI_timer_update()
387 gki_cb.com.timer_nesting = 0; in GKI_timer_update()
390 gki_cb.com.OSTicksTilStop -= ticks_since_last_update; in GKI_timer_update()
395 if (gki_cb.com.OSTicksTilExp > 0) { in GKI_timer_update()
396 gki_cb.com.timer_nesting = 0; in GKI_timer_update()
412 gki_cb.com.OSNumOrigTicks -= gki_cb.com.OSTicksTilExp; in GKI_timer_update()
416 if (gki_cb.com.OSRdyTbl[task_id] == TASK_DEAD) { in GKI_timer_update()
421 if (gki_cb.com.OSWaitTmr[task_id] > 0) /* If timer is running */ in GKI_timer_update()
423 gki_cb.com.OSWaitTmr[task_id] -= gki_cb.com.OSNumOrigTicks; in GKI_timer_update()
424 if (gki_cb.com.OSWaitTmr[task_id] <= 0) { in GKI_timer_update()
426 gki_cb.com.OSRdyTbl[task_id] = TASK_READY; in GKI_timer_update()
432 if (gki_cb.com.OSTaskTmr0[task_id] > 0) { in GKI_timer_update()
433 gki_cb.com.OSTaskTmr0[task_id] -= gki_cb.com.OSNumOrigTicks; in GKI_timer_update()
435 if (gki_cb.com.OSTaskTmr0[task_id] <= 0) { in GKI_timer_update()
442 gki_cb.com.OSTaskTmr0[task_id] = gki_cb.com.OSTaskTmr0R[task_id]; in GKI_timer_update()
447 if (gki_cb.com.OSTaskTmr0[task_id] > 0 && in GKI_timer_update()
448 gki_cb.com.OSTaskTmr0[task_id] < next_expiration) in GKI_timer_update()
449 next_expiration = gki_cb.com.OSTaskTmr0[task_id]; in GKI_timer_update()
454 if (gki_cb.com.OSTaskTmr1[task_id] > 0) { in GKI_timer_update()
455 gki_cb.com.OSTaskTmr1[task_id] -= gki_cb.com.OSNumOrigTicks; in GKI_timer_update()
457 if (gki_cb.com.OSTaskTmr1[task_id] <= 0) { in GKI_timer_update()
464 gki_cb.com.OSTaskTmr1[task_id] = gki_cb.com.OSTaskTmr1R[task_id]; in GKI_timer_update()
469 if (gki_cb.com.OSTaskTmr1[task_id] > 0 && in GKI_timer_update()
470 gki_cb.com.OSTaskTmr1[task_id] < next_expiration) in GKI_timer_update()
471 next_expiration = gki_cb.com.OSTaskTmr1[task_id]; in GKI_timer_update()
476 if (gki_cb.com.OSTaskTmr2[task_id] > 0) { in GKI_timer_update()
477 gki_cb.com.OSTaskTmr2[task_id] -= gki_cb.com.OSNumOrigTicks; in GKI_timer_update()
479 if (gki_cb.com.OSTaskTmr2[task_id] <= 0) { in GKI_timer_update()
486 gki_cb.com.OSTaskTmr2[task_id] = gki_cb.com.OSTaskTmr2R[task_id]; in GKI_timer_update()
491 if (gki_cb.com.OSTaskTmr2[task_id] > 0 && in GKI_timer_update()
492 gki_cb.com.OSTaskTmr2[task_id] < next_expiration) in GKI_timer_update()
493 next_expiration = gki_cb.com.OSTaskTmr2[task_id]; in GKI_timer_update()
498 if (gki_cb.com.OSTaskTmr3[task_id] > 0) { in GKI_timer_update()
499 gki_cb.com.OSTaskTmr3[task_id] -= gki_cb.com.OSNumOrigTicks; in GKI_timer_update()
501 if (gki_cb.com.OSTaskTmr3[task_id] <= 0) { in GKI_timer_update()
508 gki_cb.com.OSTaskTmr3[task_id] = gki_cb.com.OSTaskTmr3R[task_id]; in GKI_timer_update()
513 if (gki_cb.com.OSTaskTmr3[task_id] > 0 && in GKI_timer_update()
514 gki_cb.com.OSTaskTmr3[task_id] < next_expiration) in GKI_timer_update()
515 next_expiration = gki_cb.com.OSTaskTmr3[task_id]; in GKI_timer_update()
521 gki_cb.com.OSTicksTilExp = gki_cb.com.OSNumOrigTicks = next_expiration; in GKI_timer_update()
523 gki_cb.com.OSTicksTilExp = gki_cb.com.OSNumOrigTicks = 0; in GKI_timer_update()
526 gki_cb.com.timer_nesting = 0; in GKI_timer_update()
549 if (gki_cb.com.timer_queues[tt]) return false; in GKI_timer_queue_empty()
569 gki_cb.com.p_tick_cb = p_callback; in GKI_timer_queue_register_callback()
810 if (gki_cb.com.timer_queues[tt] == p_timer_listq) return; in GKI_add_to_timer_list()
814 if (gki_cb.com.timer_queues[tt] == nullptr) break; in GKI_add_to_timer_list()
817 gki_cb.com.timer_queues[tt] = p_timer_listq; in GKI_add_to_timer_list()
894 if (gki_cb.com.timer_queues[tt] == p_timer_listq) { in GKI_remove_from_timer_list()
895 gki_cb.com.timer_queues[tt] = nullptr; in GKI_remove_from_timer_list()
927 if (gki_cb.com.OSNumOrigTicks == 0 || in gki_adjust_timer_count()
928 (ticks < gki_cb.com.OSTicksTilExp && gki_cb.com.OSTicksTilExp > 0)) { in gki_adjust_timer_count()
929 gki_cb.com.OSNumOrigTicks = in gki_adjust_timer_count()
930 (gki_cb.com.OSNumOrigTicks - gki_cb.com.OSTicksTilExp) + ticks; in gki_adjust_timer_count()
931 gki_cb.com.OSTicksTilExp = ticks; in gki_adjust_timer_count()