Home
last modified time | relevance | path

Searched refs:HDF_KILO_UNIT (Results 1 – 11 of 11) sorted by relevance

/drivers/hdf_core/framework/support/posix/src/
Dosal_time.c31 time->usec = (uint64_t)ts.tv_nsec / HDF_KILO_UNIT; in OsalGetTime()
51 usec = (HDF_KILO_UNIT * HDF_KILO_UNIT); in OsalDiffTime()
70 ts.tv_sec = (time_t)ms / HDF_KILO_UNIT; in OsalMSleep()
71 ts.tv_nsec = (time_t)HDF_KILO_UNIT * HDF_KILO_UNIT * ((long)(ms % HDF_KILO_UNIT)); in OsalMSleep()
83 ts.tv_sec = (time_t)us / ((long)HDF_KILO_UNIT * HDF_KILO_UNIT); in OsalUSleep()
84 ts.tv_nsec = (time_t)HDF_KILO_UNIT * ((long)(us % HDF_KILO_UNIT)); in OsalUSleep()
108 return (time.sec * HDF_KILO_UNIT + time.usec / HDF_KILO_UNIT); in OsalGetSysTimeMs()
Dosal_sem.c64 time.tv_sec += (time_t)ms / HDF_KILO_UNIT; in OsalSemWait()
65 time.tv_nsec += (time_t)(ms % HDF_KILO_UNIT) * HDF_KILO_UNIT * HDF_KILO_UNIT; in OsalSemWait()
Dosal_mutex.c95 time.tv_sec += (time_t)ms / HDF_KILO_UNIT; in OsalMutexTimedLock()
96 time.tv_nsec += (time_t)(ms % HDF_KILO_UNIT) * HDF_KILO_UNIT * HDF_KILO_UNIT; in OsalMutexTimedLock()
/drivers/hdf_core/adapter/khdf/liteos_m/osal/src/
Dosal_time.c47 ms = LOS_TickCountGet() * (HDF_KILO_UNIT / LOSCFG_BASE_CORE_TICK_PER_SECOND); in OsalGetTime()
49 time->sec = ms / HDF_KILO_UNIT; in OsalGetTime()
50 time->usec = (ms % HDF_KILO_UNIT) * HDF_KILO_UNIT; in OsalGetTime()
71 usec = (HDF_KILO_UNIT * HDF_KILO_UNIT); in OsalDiffTime()
82 return LOS_TickCountGet() * (HDF_KILO_UNIT / LOSCFG_BASE_CORE_TICK_PER_SECOND); in OsalGetSysTimeMs()
87 LOS_Msleep(sec * HDF_KILO_UNIT); in OsalSleep()
/drivers/hdf_core/adapter/khdf/liteos/osal/src/
Dosal_time.c48 ms = LOS_TickCountGet() * (HDF_KILO_UNIT / LOSCFG_BASE_CORE_TICK_PER_SECOND); in OsalGetTime()
50 time->sec = ms / HDF_KILO_UNIT; in OsalGetTime()
51 time->usec = (ms % HDF_KILO_UNIT) * HDF_KILO_UNIT; in OsalGetTime()
72 usec = (HDF_KILO_UNIT * HDF_KILO_UNIT); in OsalDiffTime()
83 return LOS_TickCountGet() * (HDF_KILO_UNIT / LOSCFG_BASE_CORE_TICK_PER_SECOND); in OsalGetSysTimeMs()
88 LOS_Msleep(sec * HDF_KILO_UNIT); in OsalSleep()
/drivers/hdf_core/adapter/khdf/uniproton/osal/src/
Dosal_time.c48 ms = PRT_TickGetCount() * HDF_KILO_UNIT / OS_TICK_PER_SECOND; in OsalGetTime()
50 time->sec = ms / HDF_KILO_UNIT; in OsalGetTime()
51 time->usec = (ms % HDF_KILO_UNIT) * HDF_KILO_UNIT; in OsalGetTime()
72 usec = (HDF_KILO_UNIT * HDF_KILO_UNIT); in OsalDiffTime()
83 return PRT_TickGetCount() * HDF_KILO_UNIT / OS_TICK_PER_SECOND; in OsalGetSysTimeMs()
/drivers/hdf_core/adapter/khdf/linux/osal/src/
Dosal_time.c46 time->usec = ts.tv_nsec / HDF_KILO_UNIT; in OsalGetTime()
67 usec = (HDF_KILO_UNIT * HDF_KILO_UNIT); in OsalDiffTime()
79 msleep(sec * HDF_KILO_UNIT); in OsalSleep()
108 return (time.sec * HDF_KILO_UNIT + OsalDivS64(time.usec, HDF_KILO_UNIT)); in OsalGetSysTimeMs()
/drivers/peripheral/codec/hal/v1.0/buffer_manager/src/
Dbuffer_manager.cpp87 time->tv_sec += static_cast<int32_t>(timeoutMs) / HDF_KILO_UNIT; in ConstructTimespec()
88 …time->tv_nsec += (static_cast<int32_t>(timeoutMs) % HDF_KILO_UNIT) * HDF_KILO_UNIT * HDF_KILO_UNIT; in ConstructTimespec()
/drivers/hdf_core/interfaces/inner_api/utils/
Dhdf_base.h92 #define HDF_KILO_UNIT 1000 macro
/drivers/hdf_core/adapter/khdf/uniproton/test/sample_driver/src/
Dosal_all_test.c79 uint64_t t1 = time->sec * HDF_KILO_UNIT * HDF_KILO_UNIT + time->usec; in OsalCheckTime()
80 uint64_t t2 = (uint64_t)ms * HDF_KILO_UNIT; in OsalCheckTime()
526 …UT_TEST_CHECK_RET(!OsalCheckTime(&hdfTsDiff, TIME_TEST_SLEEP_S * HDF_KILO_UNIT), OSAL_TIME_DIFFTIM… in OsaTimeTest()
/drivers/hdf_core/framework/test/unittest/osal/
Dosal_all_test.c71 uint64_t t1 = time->sec * HDF_KILO_UNIT * HDF_KILO_UNIT + time->usec; in OsalCheckTime()
72 uint64_t t2 = (uint64_t)ms * HDF_KILO_UNIT; in OsalCheckTime()
740 …UT_TEST_CHECK_RET(!OsalCheckTime(&hdfTsDiff, TIME_TEST_SLEEP_S * HDF_KILO_UNIT), OSAL_TIME_DIFFTIM… in OsaTimeTest()