Lines Matching defs:task_id
202 UINT8 task_id = GKI_get_taskid();
256 gki_cb.com.OSTaskTmr0R[task_id] = reload;
257 gki_cb.com.OSTaskTmr0 [task_id] = ticks;
263 gki_cb.com.OSTaskTmr1R[task_id] = reload;
264 gki_cb.com.OSTaskTmr1 [task_id] = ticks;
270 gki_cb.com.OSTaskTmr2R[task_id] = reload;
271 gki_cb.com.OSTaskTmr2 [task_id] = ticks;
277 gki_cb.com.OSTaskTmr3R[task_id] = reload;
278 gki_cb.com.OSTaskTmr3 [task_id] = ticks;
311 UINT8 task_id = GKI_get_taskid();
317 gki_cb.com.OSTaskTmr0R[task_id] = 0;
318 gki_cb.com.OSTaskTmr0 [task_id] = 0;
324 gki_cb.com.OSTaskTmr1R[task_id] = 0;
325 gki_cb.com.OSTaskTmr1 [task_id] = 0;
331 gki_cb.com.OSTaskTmr2R[task_id] = 0;
332 gki_cb.com.OSTaskTmr2 [task_id] = 0;
338 gki_cb.com.OSTaskTmr3R[task_id] = 0;
339 gki_cb.com.OSTaskTmr3 [task_id] = 0;
391 UINT8 task_id;
446 * - gki_cb.com.OSTaskTmr0[task_id] -= gki_cb.com.OSNumOrigTicks;
447 * - gki_cb.com.OSTaskTmr0[task_id] = gki_cb.com.OSTaskTmr0R[task_id];
455 for (task_id = 0; task_id < GKI_MAX_TASKS; task_id++)
457 if (gki_cb.com.OSWaitTmr[task_id] > 0) /* If timer is running */
459 gki_cb.com.OSWaitTmr[task_id] -= gki_cb.com.OSNumOrigTicks;
460 if (gki_cb.com.OSWaitTmr[task_id] <= 0)
463 gki_cb.com.OSRdyTbl[task_id] = TASK_READY;
469 if (gki_cb.com.OSTaskTmr0[task_id] > 0)
471 gki_cb.com.OSTaskTmr0[task_id] -= gki_cb.com.OSNumOrigTicks;
473 if (gki_cb.com.OSTaskTmr0[task_id] <= 0)
476 gki_cb.com.OSTaskTmr0[task_id] = gki_cb.com.OSTaskTmr0R[task_id];
479 GKI_isend_event (task_id, TIMER_0_EVT_MASK);
481 GKI_send_event (task_id, TIMER_0_EVT_MASK);
487 if (gki_cb.com.OSTaskTmr0[task_id] > 0 && gki_cb.com.OSTaskTmr0[task_id] < next_expiration)
488 next_expiration = gki_cb.com.OSTaskTmr0[task_id];
493 if (gki_cb.com.OSTaskTmr1[task_id] > 0)
495 gki_cb.com.OSTaskTmr1[task_id] -= gki_cb.com.OSNumOrigTicks;
497 if (gki_cb.com.OSTaskTmr1[task_id] <= 0)
500 gki_cb.com.OSTaskTmr1[task_id] = gki_cb.com.OSTaskTmr1R[task_id];
503 GKI_isend_event (task_id, TIMER_1_EVT_MASK);
505 GKI_send_event (task_id, TIMER_1_EVT_MASK);
511 if (gki_cb.com.OSTaskTmr1[task_id] > 0 && gki_cb.com.OSTaskTmr1[task_id] < next_expiration)
512 next_expiration = gki_cb.com.OSTaskTmr1[task_id];
517 if (gki_cb.com.OSTaskTmr2[task_id] > 0)
519 gki_cb.com.OSTaskTmr2[task_id] -= gki_cb.com.OSNumOrigTicks;
521 if (gki_cb.com.OSTaskTmr2[task_id] <= 0)
524 gki_cb.com.OSTaskTmr2[task_id] = gki_cb.com.OSTaskTmr2R[task_id];
527 GKI_isend_event (task_id, TIMER_2_EVT_MASK);
529 GKI_send_event (task_id, TIMER_2_EVT_MASK);
535 if (gki_cb.com.OSTaskTmr2[task_id] > 0 && gki_cb.com.OSTaskTmr2[task_id] < next_expiration)
536 next_expiration = gki_cb.com.OSTaskTmr2[task_id];
541 if (gki_cb.com.OSTaskTmr3[task_id] > 0)
543 gki_cb.com.OSTaskTmr3[task_id] -= gki_cb.com.OSNumOrigTicks;
545 if (gki_cb.com.OSTaskTmr3[task_id] <= 0)
548 gki_cb.com.OSTaskTmr3[task_id] = gki_cb.com.OSTaskTmr3R[task_id];
551 GKI_isend_event (task_id, TIMER_3_EVT_MASK);
553 GKI_send_event (task_id, TIMER_3_EVT_MASK);
559 if (gki_cb.com.OSTaskTmr3[task_id] > 0 && gki_cb.com.OSTaskTmr3[task_id] < next_expiration)
560 next_expiration = gki_cb.com.OSTaskTmr3[task_id];