Searched refs:realMutex (Results 1 – 11 of 11) sorted by relevance
/drivers/hdf_core/adapter/khdf/linux/osal/src/ |
D | osal_mutex.c | 42 mutex->realMutex = (void *)mutex_tmp; in OsalMutexInit() 50 if (mutex == NULL || mutex->realMutex == NULL) { in OsalMutexDestroy() 55 mutex_destroy((struct mutex *)mutex->realMutex); in OsalMutexDestroy() 56 OsalMemFree(mutex->realMutex); in OsalMutexDestroy() 57 mutex->realMutex = NULL; in OsalMutexDestroy() 65 if (mutex == NULL || mutex->realMutex == NULL) { in OsalMutexLock() 70 mutex_lock((struct mutex *)mutex->realMutex); in OsalMutexLock() 78 if (mutex == NULL || mutex->realMutex == NULL) { in OsalMutexTimedLock() 84 mutex_lock((struct mutex *)mutex->realMutex); in OsalMutexTimedLock() 92 if (mutex == NULL || mutex->realMutex == NULL) { in OsalMutexUnlock() [all …]
|
/drivers/hdf_core/adapter/khdf/liteos/osal/src/ |
D | osal_mutex.c | 52 mutex->realMutex = NULL; in OsalMutexInit() 57 mutex->realMutex = (void *)mux; in OsalMutexInit() 59 mutex->realMutex = NULL; in OsalMutexInit() 72 if (mutex == NULL || mutex->realMutex == NULL) { in OsalMutexDestroy() 77 ret = LOS_MuxDestroy((LosMux *)mutex->realMutex); in OsalMutexDestroy() 83 OsalMemFree(mutex->realMutex); in OsalMutexDestroy() 84 mutex->realMutex = NULL; in OsalMutexDestroy() 92 if (mutex == NULL || mutex->realMutex == NULL) { in OsalMutexLock() 97 ret = LOS_MuxLock((LosMux *)mutex->realMutex, LOS_MS2Tick(HDF_WAIT_FOREVER)); in OsalMutexLock() 110 if (mutex == NULL || mutex->realMutex == NULL) { in OsalMutexTimedLock() [all …]
|
/drivers/hdf_core/framework/support/posix/src/ |
D | osal_mutex.c | 28 mutex->realMutex = NULL; in OsalMutexInit() 43 mutex->realMutex = (void *)mutexTmp; in OsalMutexInit() 52 if (mutex == NULL || mutex->realMutex == NULL) { in OsalMutexDestroy() 56 ret = pthread_mutex_destroy((pthread_mutex_t *)mutex->realMutex); in OsalMutexDestroy() 61 OsalMemFree(mutex->realMutex); in OsalMutexDestroy() 62 mutex->realMutex = NULL; in OsalMutexDestroy() 69 if (mutex == NULL || mutex->realMutex == NULL) { in OsalMutexLock() 80 if (mutex == NULL || mutex->realMutex == NULL) { in OsalMutexTimedLock() 86 ret = pthread_mutex_lock((pthread_mutex_t *)mutex->realMutex); in OsalMutexTimedLock() 101 ret = pthread_mutex_timedlock((pthread_mutex_t *)mutex->realMutex, &time); in OsalMutexTimedLock() [all …]
|
/drivers/hdf_core/adapter/khdf/liteos_m/osal/src/ |
D | osal_mutex.c | 51 mutex->realMutex = (void *)(uintptr_t)muxId; in OsalMutexInit() 53 mutex->realMutex = (void *)(uintptr_t)HDF_INVALID_MUX_ID; in OsalMutexInit() 65 if (mutex == NULL || mutex->realMutex == (void *)(uintptr_t)HDF_INVALID_MUX_ID) { in OsalMutexDestroy() 70 ret = LOS_MuxDelete((uint32_t)(uintptr_t)mutex->realMutex); in OsalMutexDestroy() 76 mutex->realMutex = (void *)(uintptr_t)HDF_INVALID_MUX_ID; in OsalMutexDestroy() 84 if (mutex == NULL || mutex->realMutex == (void *)(uintptr_t)HDF_INVALID_MUX_ID) { in OsalMutexLock() 89 ret = LOS_MuxPend((uint32_t)(uintptr_t)mutex->realMutex, LOS_MS2Tick(HDF_WAIT_FOREVER)); in OsalMutexLock() 102 if (mutex == NULL || mutex->realMutex == (void *)(uintptr_t)HDF_INVALID_MUX_ID) { in OsalMutexTimedLock() 107 ret = LOS_MuxPend((uint32_t)(uintptr_t)mutex->realMutex, LOS_MS2Tick(ms)); in OsalMutexTimedLock() 123 if (mutex == NULL || mutex->realMutex == (void *)(uintptr_t)HDF_INVALID_MUX_ID) { in OsalMutexUnlock() [all …]
|
/drivers/peripheral/codec/hal/v1.0/buffer_manager/src/ |
D | buffer_manager.cpp | 44 … pthread_cond_wait(&inputCond, reinterpret_cast<pthread_mutex_t *>(bufferQueueLock.realMutex)); in GetBuffer() 50 …_cond_timedwait(&inputCond, reinterpret_cast<pthread_mutex_t *>(bufferQueueLock.realMutex), &time); in GetBuffer() 67 …pthread_cond_wait(&outputCond, reinterpret_cast<pthread_mutex_t *>(usedBufferQueueLock.realMutex)); in GetUsedBuffer() 73 …ead_cond_timedwait(&outputCond, reinterpret_cast<pthread_mutex_t *>(usedBufferQueueLock.realMutex), in GetUsedBuffer()
|
/drivers/hdf_core/interfaces/inner_api/osal/shared/ |
D | osal_mutex.h | 47 void *realMutex; /**< Pointer to a mutex object to operate */ member
|
/drivers/hdf_core/framework/core/host/src/ |
D | hdf_observer_record.c | 38 observerRecord->obsRecMutex.realMutex = NULL; in HdfServiceObserverRecordRecycle()
|
/drivers/hdf_core/adapter/uhdf2/manager/src/ |
D | servstat_listener_holder.c | 38 .realMutex = NULL,
|
/drivers/peripheral/codec/hal/v1.0/codec_instance/src/ |
D | codec_instance.c | 411 if (instance->codecStatusLock.realMutex != NULL) { in DestroyCodecInstance() 413 (pthread_mutex_t *)instance->codecStatusLock.realMutex); in DestroyCodecInstance() 425 if (instance->codecStatusLock.realMutex != NULL) { in DestroyCodecInstance() 427 (pthread_mutex_t *)instance->codecCallbackStatusLock.realMutex); in DestroyCodecInstance()
|
/drivers/hdf_core/adapter/platform/spi/ |
D | spi_wm.c | 217 if (spiDevice->mutex.realMutex == NULL) { in InitSpiDevice() 282 spiDevice->mutex.realMutex = NULL; in AttachSpiDevice()
|
/drivers/hdf_core/framework/model/network/wifi/platform/src/message/ |
D | message_router.c | 47 .realMutex = NULL 626 if (g_routerMutex.realMutex == NULL) { in StartMessageRouter()
|