Lines Matching refs:gki_cb
48 gki_cb.com.OSTicksTilExp = 0; /* Remaining time (of OSTimeCurTimeout) before next timer expires */
49 gki_cb.com.OSNumOrigTicks = 0;
53 gki_cb.com.OSWaitTmr [tt] = 0;
56 gki_cb.com.OSTaskTmr0 [tt] = 0;
57 gki_cb.com.OSTaskTmr0R [tt] = 0;
61 gki_cb.com.OSTaskTmr1 [tt] = 0;
62 gki_cb.com.OSTaskTmr1R [tt] = 0;
66 gki_cb.com.OSTaskTmr2 [tt] = 0;
67 gki_cb.com.OSTaskTmr2R [tt] = 0;
71 gki_cb.com.OSTaskTmr3 [tt] = 0;
72 gki_cb.com.OSTaskTmr3R [tt] = 0;
96 if(gki_cb.com.OSTaskTmr0 [tt])
103 if(gki_cb.com.OSTaskTmr1 [tt] )
110 if(gki_cb.com.OSTaskTmr2 [tt] )
117 if(gki_cb.com.OSTaskTmr3 [tt] )
139 return gki_cb.com.OSTicks;
162 return (gki_cb.com.OSTicksTilExp);
210 if (INT32_MAX - (gki_cb.com.OSNumOrigTicks - gki_cb.com.OSTicksTilExp) > ticks)
212 ticks += gki_cb.com.OSNumOrigTicks - gki_cb.com.OSTicksTilExp;
221 gki_cb.com.OSTaskTmr0R[task_id] = reload;
222 gki_cb.com.OSTaskTmr0 [task_id] = ticks;
228 gki_cb.com.OSTaskTmr1R[task_id] = reload;
229 gki_cb.com.OSTaskTmr1 [task_id] = ticks;
235 gki_cb.com.OSTaskTmr2R[task_id] = reload;
236 gki_cb.com.OSTaskTmr2 [task_id] = ticks;
242 gki_cb.com.OSTaskTmr3R[task_id] = reload;
243 gki_cb.com.OSTaskTmr3 [task_id] = ticks;
282 gki_cb.com.OSTaskTmr0R[task_id] = 0;
283 gki_cb.com.OSTaskTmr0 [task_id] = 0;
289 gki_cb.com.OSTaskTmr1R[task_id] = 0;
290 gki_cb.com.OSTaskTmr1 [task_id] = 0;
296 gki_cb.com.OSTaskTmr2R[task_id] = 0;
297 gki_cb.com.OSTaskTmr2 [task_id] = 0;
303 gki_cb.com.OSTaskTmr3R[task_id] = 0;
304 gki_cb.com.OSTaskTmr3 [task_id] = 0;
335 gki_cb.com.OSTicks += ticks_since_last_update;
340 gki_cb.com.OSTicksTilExp -= ticks_since_last_update;
343 if (gki_cb.com.timer_nesting)
346 gki_cb.com.timer_nesting = 1;
349 if (gki_cb.com.OSTicksTilExp > 0)
354 gki_cb.com.timer_nesting = 0;
360 /* If here then gki_cb.com.OSTicksTilExp <= 0. If negative, then increase gki_cb.com.OSNumOrigTicks
362 of ticks. gki_cb.com.OSNumOrigTicks is reset at the bottom of this function so changing this
365 gki_cb.com.OSNumOrigTicks -= gki_cb.com.OSTicksTilExp;
368 * - gki_cb.com.OSTaskTmr0[task_id] -= gki_cb.com.OSNumOrigTicks;
369 * - gki_cb.com.OSTaskTmr0[task_id] = gki_cb.com.OSTaskTmr0R[task_id];
377 if (gki_cb.com.OSWaitTmr[task_id] > 0) /* If timer is running */
379 gki_cb.com.OSWaitTmr[task_id] -= gki_cb.com.OSNumOrigTicks;
380 if (gki_cb.com.OSWaitTmr[task_id] <= 0)
383 gki_cb.com.OSRdyTbl[task_id] = TASK_READY;
389 if (gki_cb.com.OSTaskTmr0[task_id] > 0)
391 gki_cb.com.OSTaskTmr0[task_id] -= gki_cb.com.OSNumOrigTicks;
393 if (gki_cb.com.OSTaskTmr0[task_id] <= 0)
396 gki_cb.com.OSTaskTmr0[task_id] = gki_cb.com.OSTaskTmr0R[task_id];
402 if (gki_cb.com.OSTaskTmr0[task_id] > 0 && gki_cb.com.OSTaskTmr0[task_id] < next_expiration)
403 next_expiration = gki_cb.com.OSTaskTmr0[task_id];
408 if (gki_cb.com.OSTaskTmr1[task_id] > 0)
410 gki_cb.com.OSTaskTmr1[task_id] -= gki_cb.com.OSNumOrigTicks;
412 if (gki_cb.com.OSTaskTmr1[task_id] <= 0)
415 gki_cb.com.OSTaskTmr1[task_id] = gki_cb.com.OSTaskTmr1R[task_id];
421 if (gki_cb.com.OSTaskTmr1[task_id] > 0 && gki_cb.com.OSTaskTmr1[task_id] < next_expiration)
422 next_expiration = gki_cb.com.OSTaskTmr1[task_id];
427 if (gki_cb.com.OSTaskTmr2[task_id] > 0)
429 gki_cb.com.OSTaskTmr2[task_id] -= gki_cb.com.OSNumOrigTicks;
431 if (gki_cb.com.OSTaskTmr2[task_id] <= 0)
434 gki_cb.com.OSTaskTmr2[task_id] = gki_cb.com.OSTaskTmr2R[task_id];
440 if (gki_cb.com.OSTaskTmr2[task_id] > 0 && gki_cb.com.OSTaskTmr2[task_id] < next_expiration)
441 next_expiration = gki_cb.com.OSTaskTmr2[task_id];
446 if (gki_cb.com.OSTaskTmr3[task_id] > 0)
448 gki_cb.com.OSTaskTmr3[task_id] -= gki_cb.com.OSNumOrigTicks;
450 if (gki_cb.com.OSTaskTmr3[task_id] <= 0)
453 gki_cb.com.OSTaskTmr3[task_id] = gki_cb.com.OSTaskTmr3R[task_id];
459 if (gki_cb.com.OSTaskTmr3[task_id] > 0 && gki_cb.com.OSTaskTmr3[task_id] < next_expiration)
460 next_expiration = gki_cb.com.OSTaskTmr3[task_id];
467 gki_cb.com.OSTicksTilExp = gki_cb.com.OSNumOrigTicks = next_expiration;
471 gki_cb.com.OSTicksTilExp = gki_cb.com.OSNumOrigTicks = 0;
479 gki_cb.com.timer_nesting = 0;
780 if (gki_cb.com.OSNumOrigTicks == 0 || (ticks < gki_cb.com.OSTicksTilExp && gki_cb.com.OSTicksTilExp > 0))
782 gki_cb.com.OSNumOrigTicks = (gki_cb.com.OSNumOrigTicks - gki_cb.com.OSTicksTilExp) + ticks;
783 gki_cb.com.OSTicksTilExp = ticks;