Home
last modified time | relevance | path

Searched refs:ms (Results 1 - 25 of 60) sorted by relevance

123

/drivers/hdf_core/adapter/khdf/liteos/osal/src/
H A Dosal_time.c42 uint64_t ms; in OsalGetTime() local
48 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()
91 void OsalMSleep(uint32_t ms) in OsalMSleep() argument
93 LOS_Msleep(ms); in OsalMSleep()
101 void OsalMDelay(uint32_t ms) in OsalMDelay() argument
103 LOS_Mdelay(ms); in OsalMDelay()
H A Dosal_sem.c61 int32_t OsalSemWait(struct OsalSem *sem, uint32_t ms) in OsalSemWait() argument
70 ret = LOS_SemPend((uint32_t)(uintptr_t)sem->realSemaphore, LOS_MS2Tick(ms)); in OsalSemWait()
H A Dosal_mutex.c106 int32_t OsalMutexTimedLock(struct OsalMutex *mutex, uint32_t ms) in OsalMutexTimedLock() argument
115 ret = LOS_MuxLock((LosMux *)mutex->realMutex, LOS_MS2Tick(ms)); in OsalMutexTimedLock()
/drivers/hdf_core/adapter/khdf/liteos_m/osal/src/
H A Dosal_time.c41 uint64_t ms; in OsalGetTime() local
47 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()
90 void OsalMSleep(uint32_t ms) in OsalMSleep() argument
92 LOS_Msleep(ms); in OsalMSleep()
H A Dosal_sem.c65 int32_t OsalSemWait(struct OsalSem *sem, uint32_t ms) in OsalSemWait() argument
74 ret = LOS_SemPend((uint32_t)(uintptr_t)sem->realSemaphore, LOS_MS2Tick(ms)); in OsalSemWait()
H A Dosal_mutex.c98 int32_t OsalMutexTimedLock(struct OsalMutex *mutex, uint32_t ms) in OsalMutexTimedLock() argument
107 ret = LOS_MuxPend((uint32_t)(uintptr_t)mutex->realMutex, LOS_MS2Tick(ms)); in OsalMutexTimedLock()
/drivers/hdf_core/adapter/khdf/uniproton/osal/src/
H A Dosal_time.c42 uint64_t ms; in OsalGetTime() local
48 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()
91 void OsalMSleep(uint32_t ms) in OsalMSleep() argument
93 uint32_t ticks = (uint32_t)(((uint64_t)ms * OS_TICK_PER_SECOND) / 1000); in OsalMSleep()
H A Dosal_mutex.c70 int32_t OsalMutexTimedLock(struct OsalMutex *mutex, uint32_t ms) in OsalMutexTimedLock() argument
73 (void)ms; in OsalMutexTimedLock()
H A Dosal_sem.c60 int32_t OsalSemWait(struct OsalSem *sem, uint32_t ms) in OsalSemWait() argument
63 uint32_t ticks = (uint32_t)(((uint64_t)ms * OS_TICK_PER_SECOND) / 1000); in OsalSemWait()
/drivers/hdf_core/framework/support/posix/src/
H A Dosal_mutex.c76 int32_t OsalMutexTimedLock(struct OsalMutex *mutex, uint32_t ms) in OsalMutexTimedLock() argument
85 if (ms == HDF_WAIT_FOREVER) { in OsalMutexTimedLock()
95 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()
106 HDF_LOGE("%s time_out time:%u ret:%d", __func__, ms, ret); in OsalMutexTimedLock()
H A Dosal_sem.c48 int32_t OsalSemWait(struct OsalSem *sem, uint32_t ms) in OsalSemWait() argument
55 if (ms == HDF_WAIT_FOREVER) { in OsalSemWait()
64 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()
75 HDF_LOGE("%s time_out time:%d ret:%d,errno:%d", __func__, ms, ret, errno); in OsalSemWait()
H A Dosal_time.c71 void OsalMSleep(uint32_t ms) in OsalMSleep() argument
76 ts.tv_sec = (time_t)ms / HDF_KILO_UNIT; in OsalMSleep()
77 ts.tv_nsec = (time_t)HDF_KILO_UNIT * HDF_KILO_UNIT * ((long)(ms % HDF_KILO_UNIT)); in OsalMSleep()
102 void OsalMDelay(uint32_t ms) in OsalMDelay() argument
104 (void)ms; in OsalMDelay()
/drivers/hdf_core/interfaces/inner_api/osal/shared/
H A Dosal_time.h64 * @param ms Indicates the sleep time, in milliseconds.
68 void OsalMSleep(uint32_t ms);
130 * @param ms Indicates the delay time, in milliseconds.
134 void OsalMDelay(uint32_t ms);
H A Dosal_mutex.h110 * @param ms Indicates the timeout duration, in milliseconds.
123 int32_t OsalMutexTimedLock(struct OsalMutex *mutex, uint32_t ms);
H A Dosal_sem.h76 * @param ms Indicates the timeout interval.
89 int32_t OsalSemWait(struct OsalSem *sem, uint32_t ms);
/drivers/peripheral/camera/vdi_base/common/utils/watchdog/
H A Dwatchdog.cpp26 void WatchDog::Init(int ms, std::function<void()> executor, bool isKill) in Init() argument
28 timeMs_ = ms; in Init()
H A Dwatchdog.h28 void Init(int ms, std::function<void()> executor, bool isKill = false);
/drivers/hdf_core/adapter/khdf/linux/osal/src/
H A Dosal_time.c95 void OsalMDelay(uint32_t ms) in OsalMDelay() argument
97 mdelay(ms); in OsalMDelay()
/drivers/hdf_core/framework/include/platform/
H A Drtc_base.h50 #define IS_INVALID_MS(ms) ((ms) >= RTC_MAX_MS)
/drivers/hdf_core/framework/include/utils/
H A Dhdf_workqueue.h186 * A delayed work item is added to a work queue after the configured delayed time (ms),
195 bool HdfAddDelayedWork(HdfWorkQueue *queue, HdfWork *work, uint32_t ms);
/drivers/peripheral/audio/interfaces/2.0/include/
H A Daudio_render.h80 * @param ms Indicates the pointer to the latency (in milliseconds) to be obtained.
83 int32_t (*GetLatency)(struct AudioRender *render, uint32_t *ms);
/drivers/peripheral/bluetooth/audio/interfaces/include/
H A Daudio_render.h78 * @param ms Indicates the pointer to the latency (in milliseconds) to be obtained.
81 int32_t (*GetLatency)(struct AudioRender *render, uint32_t *ms);
/drivers/peripheral/audio/interfaces/include/
H A Daudio_render.h78 * @param ms Indicates the pointer to the latency (in milliseconds) to be obtained.
81 int32_t (*GetLatency)(struct AudioRender *render, uint32_t *ms);
/drivers/peripheral/display/composer/test/moduletest/
H A Dhdi_device_test.h59 int32_t WaitVblank(uint32_t ms);
/drivers/peripheral/display/composer/test/unittest/
H A Dhdi_composer_ut.h49 int32_t WaitVblank(uint32_t ms);

Completed in 7 milliseconds

123