/kernel/liteos_a/kernel/extended/cpup/ |
H A D | los_cpup.c | 42 LITE_OS_SEC_BSS STATIC UINT16 cpupSwtmrID; 43 LITE_OS_SEC_BSS STATIC UINT16 cpupInitFlg = 0; 46 LITE_OS_SEC_BSS STATIC UINT16 cpupHisPos = 0; /* current Sampling point of historyTime */ 87 UINT16 prevPos; in OsCpupGuard() 162 UINT16 loop; in OsCpupInit() 190 UINT16 loop; in OsResetCpup() 256 UINT16 cpuid = ArchCurrCpuid(); in OsCpupCycleEndStart() 280 LITE_OS_SEC_TEXT_MINOR STATIC VOID OsCpupGetPos(UINT16 mode, UINT16 *curPosPointer, UINT16 *prePosPointe [all...] |
H A D | los_cpup_pri.h | 61 UINT16 status; /**< irq status */ 78 extern UINT32 OsGetAllIrqCpuUsageUnsafe(UINT16 mode, CPUP_INFO_S *cpupInfo, UINT32 len); 79 extern VOID OsCpupIrqStart(UINT16); 80 extern VOID OsCpupIrqEnd(UINT16, UINT32);
|
/kernel/liteos_m/components/cpup/ |
H A D | los_cpup.c | 64 LITE_OS_SEC_BSS UINT16 g_cpupInitFlg = 0;
67 LITE_OS_SEC_BSS UINT16 g_hisPos; /* current Sampling point of historyTime */
70 LITE_OS_SEC_BSS UINT16 g_irqCpupInitFlg = 0;
71 LITE_OS_SEC_BSS UINT16 g_irqHisPos = 0; /* current Sampling point of historyTime */
80 UINT16 prevPos;
in OsCpupGuard() 245 UINT16 loopNum;
in OsTskCycleEndStart() 284 LITE_OS_SEC_TEXT_MINOR STATIC INLINE UINT16 OsGetPrePos(UINT16 curPos)
in OsGetPrePos() 289 LITE_OS_SEC_TEXT_MINOR STATIC VOID OsGetPositions(UINT16 mode, UINT16* curPosAdd [all...] |
H A D | los_cpup.h | 134 UINT16 status; /**< Task status */
145 UINT16 status; /**< Irq status */
200 UINT16 usStatus; /**< save the cur task status */
257 * @param mode [IN] UINT16. Task mode. The parameter value 0 indicates that the CPU usage within 10s will be
267 extern UINT32 LOS_HistorySysCpuUsage(UINT16 mode);
310 * @param mode [IN] UINT16. Task mode. The parameter value 0 indicates that the CPU usage within 10s
322 extern UINT32 LOS_HistoryTaskCpuUsage(UINT32 taskID, UINT16 mode);
338 * @param mode [IN] UINT16. Task mode. The parameter value 0 indicates that the CPU usage within 10s
349 extern UINT32 LOS_AllTaskCpuUsage(CPUP_INFO_S *cpupInfo, UINT16 mode);
380 extern UINT32 LOS_GetAllIrqCpuUsage(UINT16 mod [all...] |
/kernel/liteos_a/kernel/base/include/ |
H A D | los_info_pri.h | 46 UINT16 status; 47 UINT16 policy; 48 UINT16 priority; 50 UINT16 currCpu; 51 UINT16 cpuAffiMask; 71 UINT16 status; 72 UINT16 mode; 75 UINT16 policy;
|
H A D | los_sched_pri.h | 69 #define AFFI_MASK_TO_CPUID(mask) ((UINT16)((mask) - 1)) 131 STATIC INLINE SchedRunqueue *OsSchedRunqueueByID(UINT16 id) in OsSchedRunqueueByID() 233 UINT16 policy; 235 UINT16 basePrio; 236 UINT16 priority; 246 UINT16 policy; /* This field must be present for all scheduling policies and must be the first in the structure */ 247 UINT16 basePrio; 248 UINT16 priority; 258 UINT16 policy; 259 UINT16 cpui [all...] |
H A D | los_queue_pri.h | 70 UINT16 queueState; /**< Queue state */ 71 UINT16 queueLen; /**< Queue length */ 72 UINT16 queueSize; /**< Node size */ 74 UINT16 queueHead; /**< Node head */ 75 UINT16 queueTail; /**< Node tail */ 76 UINT16 readWriteableCnt[OS_QUEUE_N_RW]; /**< Count of readable or writable resources, 0:readable, 1:writable */
|
/kernel/liteos_a/testsuites/kernel/sample/kernel_base/ipc/event/ |
H A D | It_los_event.h | 64 extern UINT16 usSwTmrID1; 65 extern UINT16 usSwTmrID2; 66 extern UINT16 usSwTmrID3; 75 UINT16 rsvd1 : 4; // 3:0 Reserved 76 UINT16 TSS : 1; // 4 Timer Start/Stop 77 UINT16 TRB : 1; // 5 Timer reload 78 UINT16 rsvd2 : 4; // 9:6 Reserved 79 UINT16 SOFT : 1; // 10 Emulation modes 80 UINT16 FREE : 1; // 11 81 UINT16 rsvd [all...] |
/kernel/liteos_a/kernel/extended/dynload/include/ |
H A D | los_ld_elf_pri.h | 48 UINT16 elfType; /* Object file type */ 49 UINT16 elfMachine; /* Architecture */ 55 UINT16 elfHeadSize; /* ELF header size in bytes */ 56 UINT16 elfPhEntSize; /* Program header table entry size */ 57 UINT16 elfPhNum; /* Program header table entry count */ 58 UINT16 elfShEntSize; /* Section header table entry size */ 59 UINT16 elfShNum; /* Section header table entry count */ 60 UINT16 elfShStrIndex; /* Section header string table index */ 65 UINT16 elfType; /* Object file type */ 66 UINT16 elfMachin [all...] |
/kernel/liteos_m/kernel/include/ |
H A D | los_sem.h | 192 extern UINT32 LOS_SemCreate(UINT16 count, UINT32 *semHandle);
218 extern UINT32 LOS_BinarySemCreate(UINT16 count, UINT32 *semHandle);
304 UINT16 semStat; /**< Semaphore state */
305 UINT16 semCount; /**< Number of available semaphores */
306 UINT16 maxSemCount; /**< Max number of available semaphores */
307 UINT16 semID; /**< Semaphore control structure ID */
374 * @param count [IN]Type #UINT16 Semaphore count.
375 * @param maxCount [IN]Type #UINT16 Max semaphore count.
383 UINT32 OsSemCreate(UINT16 count, UINT16 maxCoun [all...] |
H A D | los_queue.h | 364 UINT16 queueLen; /**< Queue length */
365 UINT16 queueSize; /**< Node size */
366 UINT16 queueHead; /**< Node head */
367 UINT16 queueTail; /**< Node tail */
368 UINT16 writableCnt; /**< Count of writable resources */
369 UINT16 readableCnt; /**< Count of readable resources */
403 UINT16 len,
406 UINT16 maxMsgSize);
437 UINT16 len,
441 UINT16 maxMsgSiz [all...] |
H A D | los_task.h | 458 UINT16 usTaskPrio; /**< Task priority */
485 UINT16 usTaskStatus; /**< Task status */
486 UINT16 usTaskPrio; /**< Task priority */
859 * @param taskPrio [IN] Type #UINT16 Task priority.
870 extern UINT32 LOS_TaskPriSet(UINT32 taskID, UINT16 taskPrio);
886 * @param taskPrio [IN] Type #UINT16 Task priority.
898 extern UINT32 LOS_CurTaskPriSet(UINT16 taskPrio);
938 * @retval #UINT16 The task priority.
943 extern UINT16 LOS_TaskPriGet(UINT32 taskID);
1477 UINT16 taskStatu [all...] |
/kernel/liteos_a/kernel/include/ |
H A D | los_task.h | 504 UINT16 usTaskPrio; /**< Task priority */ 505 UINT16 policy; /**< Task policy */ 510 UINT16 usCpuAffiMask; /**< Task cpu affinity mask */ 514 UINT16 consoleID; /**< The console id of task belongs */ 547 UINT16 usTaskStatus; /**< Task status */ 548 UINT16 usTaskPrio; /**< Task priority */ 832 * @param taskPrio [IN] Type #UINT16 Task priority. 843 extern UINT32 LOS_TaskPriSet(UINT32 taskID, UINT16 taskPrio); 859 * @param taskPrio [IN] Type #UINT16 Task priority. 871 extern UINT32 LOS_CurTaskPriSet(UINT16 taskPri [all...] |
H A D | los_cpup.h | 123 UINT16 status; /**< Save the cur cpup status */ 149 * @param mode [IN] UINT16. process mode. The parameter value 0 indicates that the CPU usage within 10s will be 160 extern UINT32 LOS_HistorySysCpuUsage(UINT16 mode); 177 * @param mode [IN] UINT16. cpup mode. The parameter value 0 indicates that the CPU usage within 10s will be 190 extern UINT32 LOS_HistoryProcessCpuUsage(UINT32 pid, UINT16 mode); 207 * @param mode [IN] UINT16. cpup mode. The parameter value 0 indicates that the CPU usage within 10s will be 220 extern UINT32 LOS_HistoryTaskCpuUsage(UINT32 tid, UINT16 mode); 237 * @param mode [IN] UINT16. Time mode. The parameter value 0 indicates that the CPU usage within 10s will be 252 extern UINT32 LOS_GetAllProcessCpuUsage(UINT16 mode, CPUP_INFO_S *cpupInfo, UINT32 len); 270 * @param mode [IN] UINT16 [all...] |
H A D | los_queue.h | 340 UINT16 usQueueLen; /**< Queue length */ 341 UINT16 usQueueSize; /**< Node size */ 342 UINT16 usQueueHead; /**< Node head */ 343 UINT16 usQueueTail; /**< Node tail */ 344 UINT16 usWritableCnt; /**< Count of writable resources */ 345 UINT16 usReadableCnt; /**< Count of readable resources */ 379 UINT16 len, 382 UINT16 maxMsgSize);
|
H A D | los_swtmr.h | 270 UINT16 usTimerID; /**< Software timer ID */ 304 extern UINT32 LOS_SwtmrStart(UINT16 swtmrID); 329 extern UINT32 LOS_SwtmrStop(UINT16 swtmrID); 356 extern UINT32 LOS_SwtmrTimeGet(UINT16 swtmrID, UINT32 *tick); 391 extern UINT32 LOS_SwtmrCreate(UINT32 interval, UINT8 mode, SWTMR_PROC_FUNC handler, UINT16 *swtmrID, UINTPTR arg); 415 extern UINT32 LOS_SwtmrDelete(UINT16 swtmrID);
|
H A D | los_bitmap.h | 94 VOID LOS_BitmapSet(UINT32 *bitmap, UINT16 pos); 114 VOID LOS_BitmapClr(UINT32 *bitmap, UINT16 pos); 128 * @retval UINT16 The bit index of the lowest one bit that is set. 133 UINT16 LOS_LowBitGet(UINT32 bitmap); 147 * @retval UINT16 The bit index of the highest one bit that is set. 152 UINT16 LOS_HighBitGet(UINT32 bitmap);
|
/kernel/liteos_a/security/vid/ |
H A D | vid.c | 73 static TimerIdMapNode *FindListNodeByVid(UINT16 vid) in FindListNodeByVid() 107 static UINT16 GetFreeVid(VOID) in GetFreeVid() 109 UINT16 i, j; in GetFreeVid() 114 UINT16 mapMaxNum = idMap->mapCount; in GetFreeVid() 148 static VOID ReleaseVid(UINT16 vid) in ReleaseVid() 150 UINT16 a, b; in ReleaseVid() 154 UINT16 mapMaxNum = idMap->mapCount; in ReleaseVid() 178 UINT16 AddNodeByRid(UINT16 rid) in AddNodeByRid() 182 UINT16 vi in AddNodeByRid() [all...] |
H A D | vid_api.h | 45 UINT16 AddNodeByRid(UINT16 rid); 46 UINT16 GetRidByVid(UINT16 vid); 47 VOID RemoveNodeByVid(UINT16 vid);
|
H A D | vid_type.h | 39 UINT16 mapCount; 45 UINT16 rid; 46 UINT16 vid;
|
/kernel/liteos_m/arch/xtensa/lx6/gcc/ |
H A D | los_arch_interrupt.h | 55 UINT16 cpenable; 56 UINT16 cpstored; 198 UINT16 phase; 199 UINT16 type; 202 UINT16 nestCnt; 203 UINT16 reserved;
|
/kernel/liteos_a/kernel/base/core/ |
H A D | los_bitmap.c | 41 STATIC INLINE UINT16 Ffz(UINTPTR x) in Ffz() 46 VOID LOS_BitmapSet(UINT32 *bitmap, UINT16 pos) in LOS_BitmapSet() 55 VOID LOS_BitmapClr(UINT32 *bitmap, UINT16 pos) in LOS_BitmapClr() 64 UINT16 LOS_HighBitGet(UINT32 bitmap) in LOS_HighBitGet() 73 UINT16 LOS_LowBitGet(UINT32 bitmap) in LOS_LowBitGet() 86 UINT16 bitsToSet = BITMAP_BITS_PER_WORD - (start % BITMAP_BITS_PER_WORD); in LOS_BitmapSetNBits() 106 UINT16 bitsToClear = BITMAP_BITS_PER_WORD - (start % BITMAP_BITS_PER_WORD); in LOS_BitmapClrNBits()
|
H A D | los_swtmr.c | 47 STATIC INLINE UINT64 SwtmrToStart(SWTMR_CTRL_S *swtmr, UINT16 cpuid); 127 STATIC INLINE VOID SwtmrDebugDataStart(SWTMR_CTRL_S *swtmr, UINT16 cpuid) in SwtmrDebugDataStart() 288 STATIC UINT32 SwtmrTaskCreate(UINT16 cpuid, UINT32 *swtmrTaskID) in SwtmrTaskCreate() 310 UINT32 OsSwtmrTaskIDGetByCpuid(UINT16 cpuid) in OsSwtmrTaskIDGetByCpuid() 325 for (UINT16 index = 0; index < LOSCFG_BASE_CORE_SWTMR_LIMIT; index++) { in OsSwtmrRecycle() 344 for (UINT16 index = 0; index < LOSCFG_BASE_CORE_SWTMR_LIMIT; index++, swtmr++) { in SwtmrBaseInit() 360 for (UINT16 index = 0; index < LOSCFG_KERNEL_CORE_NUM; index++) { in SwtmrBaseInit() 406 STATIC INLINE VOID FindIdleSwtmrRunqueue(UINT16 *idleCpuid) in FindIdleSwtmrRunqueue() 410 UINT16 cpuid = 1; in FindIdleSwtmrRunqueue() 423 STATIC INLINE VOID AddSwtmr2TimeList(SortLinkList *node, UINT64 responseTime, UINT16 cpui [all...] |
/kernel/liteos_a/kernel/base/misc/ |
H A D | task_shellcmd.c | 82 STATIC UINT8 *ConvertProcessModeToString(UINT16 mode) in ConvertProcessModeToString() 93 STATIC UINT8 *ConvertSchedPolicyToString(UINT16 policy) in ConvertSchedPolicyToString() 108 STATIC UINT8 *ConvertProcessStatusToString(UINT16 status) in ConvertProcessStatusToString() 122 STATIC VOID ProcessInfoTitle(VOID *seqBuf, UINT16 flag) in ProcessInfoTitle() 142 STATIC VOID ProcessDataShow(const ProcessInfo *processInfo, VOID *seqBuf, UINT16 flag) in ProcessDataShow() 170 STATIC VOID AllProcessDataShow(const ProcessInfo *pcbArray, VOID *seqBuf, UINT16 flag) in AllProcessDataShow() 181 STATIC VOID ProcessInfoShow(const ProcessInfo *pcbArray, VOID *seqBuf, UINT16 flag) in ProcessInfoShow() 194 STATIC UINT8 *ConvertTaskStatusToString(UINT16 taskStatus) in ConvertTaskStatusToString() 288 STATIC VOID TaskInfoTitle(VOID *seqBuf, UINT16 flag) in TaskInfoTitle() 310 STATIC VOID TaskInfoDataShow(const TaskInfo *taskInfo, VOID *seqBuf, UINT16 fla [all...] |
/kernel/liteos_a/arch/arm/include/ |
H A D | los_exc.h | 100 UINT16 phase; /**< Phase in which an exception occurs */ 101 UINT16 type; /**< Exception type */ 102 UINT16 nestCnt; /**< Count of nested exception */ 103 UINT16 reserved; /**< Reserved for alignment */
|