• Home
  • Raw
  • Download

Lines Matching refs:task_id

188   uint8_t task_id = GKI_get_taskid();  in GKI_start_timer()  local
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()
286 uint8_t task_id = GKI_get_taskid(); in GKI_stop_timer() local
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()
361 uint8_t task_id; in GKI_timer_update() local
415 for (task_id = 0; task_id < GKI_MAX_TASKS; task_id++) { 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()
438 GKI_isend_event(task_id, TIMER_0_EVT_MASK); in GKI_timer_update()
440 GKI_send_event(task_id, TIMER_0_EVT_MASK); 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()
460 GKI_isend_event(task_id, TIMER_1_EVT_MASK); in GKI_timer_update()
462 GKI_send_event(task_id, TIMER_1_EVT_MASK); 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()
482 GKI_isend_event(task_id, TIMER_2_EVT_MASK); in GKI_timer_update()
484 GKI_send_event(task_id, TIMER_2_EVT_MASK); 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()
504 GKI_isend_event(task_id, TIMER_3_EVT_MASK); in GKI_timer_update()
506 GKI_send_event(task_id, TIMER_3_EVT_MASK); 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()