• Home
  • Raw
  • Download

Lines Matching full:index

93     U32 index;  in OsCpupTask()  local
99 for (index = 0; index < (OS_MAX_TCB_NUM - 1); index++) { in OsCpupTask()
105 if (g_tskCbArray[index].taskStatus == OS_TSK_UNUSED) { in OsCpupTask()
109 cpup[maxNum].id = g_tskCbArray[index].taskPid; in OsCpupTask()
110 cpup[maxNum].usage = g_cpup[index].usage; in OsCpupTask()
135 U32 index; in OsCpupAllTaskTimeGet() local
138 for (index = 0; index < (OS_MAX_TCB_NUM - 1); index++) { in OsCpupAllTaskTimeGet()
139 allTime += g_cpup[index].allTime; in OsCpupAllTaskTimeGet()
150 U32 index; in OsCpupTimeClear() local
152 for (index = 0; index < (OS_MAX_TCB_NUM - 1); index++) { in OsCpupTimeClear()
153 g_cpup[index].allTime = 0; in OsCpupTimeClear()
163 U32 index; in OsCpupTickCal() local
165 for (index = 0; index < (OS_MAX_TCB_NUM - 1); index++) { in OsCpupTickCal()
166 g_cpup[index].usage = (U16)DIV64(g_cpup[index].allTime * CPUP_USE_RATE, g_baseValue); in OsCpupTickCal()
167 if (g_cpup[index].usage > CPUP_USE_RATE) { in OsCpupTickCal()
168 g_cpup[index].usage = CPUP_USE_RATE; in OsCpupTickCal()
182 U32 index; in OsCpupIntGet() local
185 for (index = 0; index < (OS_MAX_TCB_NUM - 1); index++) { in OsCpupIntGet()
186 usage += g_cpup[index].usage; in OsCpupIntGet()
247 U32 index; in PRT_CpupThread() local
292 for (index = 0; index < (OS_MAX_TCB_NUM - 1) && maxNum < inNum; index++) { in PRT_CpupThread()
294 if (g_tskCbArray[index].taskStatus == OS_TSK_UNUSED) { in PRT_CpupThread()
298 allTime = g_cpup[index].allTime; in PRT_CpupThread()
300 cpup[maxNum].id = g_tskCbArray[index].taskPid; in PRT_CpupThread()