Searched refs:OS_SYS_US_PER_SECOND (Results 1 – 13 of 13) sorted by relevance
54 #define OS_SYS_US_PER_SECOND 1000000 macro96 #define OS_US_PER_TICK (OS_SYS_US_PER_SECOND / LOSCFG_BASE_CORE_TICK_PER_SECOND)104 #define OS_US_TO_CYCLE(time, freq) ((((time) / OS_SYS_US_PER_SECOND) * (freq)) + \105 (((time) % OS_SYS_US_PER_SECOND) * (freq) / OS_SYS_US_PER_SECOND))109 #define OS_CYCLE_TO_US(cycle, freq) ((((cycle) / (freq)) * OS_SYS_US_PER_SECOND) + \110 ((cycle) % (freq) * OS_SYS_US_PER_SECOND / (freq)))
136 #define OS_SYS_US_PER_SECOND 1000000 macro150 #define OS_US_PER_TICK (OS_SYS_US_PER_SECOND / LOSCFG_BASE_CORE_TICK_PER_SECOND)523 #define OS_SYS_US_PER_SECOND 1000000 macro634 UINT64 tmp = g_sysClock / OS_SYS_US_PER_SECOND; in OsCycle2US()
38 if (modInfo->systemClock < OS_SYS_US_PER_SECOND) { in OsSysRegister()67 return DIV64(cycle, g_systemClock / OS_SYS_US_PER_SECOND); in PRT_ClkCycle2Us()
388 temp = tmpCpuTick / ((DOUBLE)g_sysClock / OS_SYS_US_PER_SECOND); in OsCpuTick2US()427 endTime = (microseconds / OS_SYS_US_PER_SECOND) * g_sysClock + in LOS_UDelay()428 (microseconds % OS_SYS_US_PER_SECOND) * g_sysClock / OS_SYS_US_PER_SECOND; in LOS_UDelay()
448 …eSlice = (INT32)(((UINT64)g_sysClock * LOSCFG_BASE_CORE_TIMESLICE_TIMEOUT) / OS_SYS_US_PER_SECOND); in SchedTimeBaseInit()449 …g_schedTimeSliceMin = (INT32)(((UINT64)g_sysClock * 50) / OS_SYS_US_PER_SECOND); /* Minimum time s… in SchedTimeBaseInit()
142 #define OS_SYS_US_PER_SECOND 1000000 macro
510 sec = usec / OS_SYS_US_PER_SECOND; in time()726 tv->tv_sec = usec / OS_SYS_US_PER_SECOND; in gettimeofday()727 tv->tv_usec = usec % OS_SYS_US_PER_SECOND; in gettimeofday()764 if ((tv != NULL) && (tv->tv_usec >= OS_SYS_US_PER_SECOND)) { in settimeofday()787 usec = tv->tv_sec * OS_SYS_US_PER_SECOND + tv->tv_usec; in settimeofday()
50 #define OS_SYS_US_PER_SECOND 1000000 macro
43 #define OS_US2CYCLE(us, clock) DIV64(((us) * (U64)(clock)), OS_SYS_US_PER_SECOND) /* 微秒转换成cycle */
90 if ((tv->tv_usec < 0) || (tv->tv_usec >= OS_SYS_US_PER_SECOND) || (tv->tv_sec < 0)) { in ValidTimeval()105 if ((tv->tv_usec < 0) || (tv->tv_usec >= OS_SYS_US_PER_SECOND) || (tv->tv_sec < 0)) { in ValidTimeval64()218 if ((delta->tv_usec > OS_SYS_US_PER_SECOND) || (delta->tv_usec < -OS_SYS_US_PER_SECOND)) { in adjtime()227 if ((delta->tv_sec < (INT_MIN / OS_SYS_US_PER_SECOND + 2)) || in adjtime()228 (delta->tv_sec > (INT_MAX / OS_SYS_US_PER_SECOND + 2))) { in adjtime()
151 UINT64 cycles = (UINT64)usecs * g_sysClock / OS_SYS_US_PER_SECOND; in HalDelayUs()
61 #define OS_SYS_CYCLE_TO_US(cycle) ((cycle) / (g_sysClock)) * OS_SYS_US_PER_SECOND + \62 ((cycle) % (g_sysClock) * OS_SYS_US_PER_SECOND / (g_sysClock))
120 #define LOS_US_PER_TICK (OS_SYS_US_PER_SECOND / LOSCFG_BASE_CORE_TICK_PER_SECOND)