Home
last modified time | relevance | path

Searched refs:OS_SYS_US_PER_SECOND (Results 1 – 13 of 13) sorted by relevance

/kernel/liteos_a/kernel/base/include/
Dlos_sys_pri.h54 #define OS_SYS_US_PER_SECOND 1000000 macro
96 #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)))
/kernel/liteos_m/kernel/include/
Dlos_tick.h136 #define OS_SYS_US_PER_SECOND 1000000 macro
150 #define OS_US_PER_TICK (OS_SYS_US_PER_SECOND / LOSCFG_BASE_CORE_TICK_PER_SECOND)
523 #define OS_SYS_US_PER_SECOND 1000000 macro
634 UINT64 tmp = g_sysClock / OS_SYS_US_PER_SECOND; in OsCycle2US()
/kernel/uniproton/src/core/kernel/sys/
Dprt_sys_init.c38 if (modInfo->systemClock < OS_SYS_US_PER_SECOND) { in OsSysRegister()
67 return DIV64(cycle, g_systemClock / OS_SYS_US_PER_SECOND); in PRT_ClkCycle2Us()
/kernel/liteos_m/kernel/src/
Dlos_tick.c388 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()
Dlos_sched.c448 …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()
/kernel/uniproton/src/include/uapi/
Dprt_sys.h142 #define OS_SYS_US_PER_SECOND 1000000 macro
/kernel/liteos_m/kal/posix/src/
Dtime.c510 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()
Dtime_internal.h50 #define OS_SYS_US_PER_SECOND 1000000 macro
/kernel/uniproton/src/core/kernel/include/
Dprt_sys_external.h43 #define OS_US2CYCLE(us, clock) DIV64(((us) * (U64)(clock)), OS_SYS_US_PER_SECOND) /* 微秒转换成cycle */
/kernel/liteos_a/compat/posix/src/
Dtime.c90 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()
/kernel/liteos_a/arch/arm/arm/src/
Darm_generic_timer.c151 UINT64 cycles = (UINT64)usecs * g_sysClock / OS_SYS_US_PER_SECOND; in HalDelayUs()
/kernel/liteos_m/components/cpup/
Dlos_cpup.c61 #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))
/kernel/liteos_a/testsuites/kernel/include/
DosTest.h120 #define LOS_US_PER_TICK (OS_SYS_US_PER_SECOND / LOSCFG_BASE_CORE_TICK_PER_SECOND)