/drivers/hdf_core/adapter/khdf/linux/osal/src/ |
D | osal_mutex.c | 27 int32_t OsalMutexInit(struct OsalMutex *mutex) in OsalMutexInit() argument 29 struct mutex *mutex_tmp = NULL; in OsalMutexInit() 31 if (mutex == NULL) { in OsalMutexInit() 36 mutex_tmp = (struct mutex *)OsalMemCalloc(sizeof(*mutex_tmp)); in OsalMutexInit() 42 mutex->realMutex = (void *)mutex_tmp; in OsalMutexInit() 48 int32_t OsalMutexDestroy(struct OsalMutex *mutex) in OsalMutexDestroy() argument 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() [all …]
|
D | osal_timer.c | 40 struct OsalMutex mutex; member 59 OsalMutexTimedLock(&ktimer->mutex, HDF_WAIT_FOREVER); in osal_timer_callback() 62 OsalMutexUnlock(&ktimer->mutex); in osal_timer_callback() 66 OsalMutexTimedLock(&ktimer->mutex, HDF_WAIT_FOREVER); in osal_timer_callback() 68 OsalMutexUnlock(&ktimer->mutex); in osal_timer_callback() 75 OsalMutexDestroy(&ktimer->mutex); in osal_timer_callback() 101 OsalMutexInit(&ktimer->mutex); in OsalTimerCreate() 154 OsalMutexTimedLock(&ktimer->mutex, HDF_WAIT_FOREVER); in OsalTimerSetTimeout() 156 OsalMutexUnlock(&ktimer->mutex); in OsalTimerSetTimeout() 172 OsalMutexTimedLock(&ktimer->mutex, HDF_WAIT_FOREVER); in OsalTimerDelete() [all …]
|
/drivers/hdf_core/adapter/khdf/liteos/osal/src/ |
D | osal_mutex.c | 39 int32_t OsalMutexInit(struct OsalMutex *mutex) in OsalMutexInit() argument 44 if (mutex == NULL) { in OsalMutexInit() 52 mutex->realMutex = NULL; in OsalMutexInit() 57 mutex->realMutex = (void *)mux; in OsalMutexInit() 59 mutex->realMutex = NULL; in OsalMutexInit() 68 int32_t OsalMutexDestroy(struct OsalMutex *mutex) in OsalMutexDestroy() argument 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() [all …]
|
/drivers/hdf_core/framework/support/posix/src/ |
D | osal_mutex.c | 18 int32_t OsalMutexInit(struct OsalMutex *mutex) in OsalMutexInit() argument 23 if (mutex == NULL) { in OsalMutexInit() 28 mutex->realMutex = NULL; in OsalMutexInit() 43 mutex->realMutex = (void *)mutexTmp; in OsalMutexInit() 48 int32_t OsalMutexDestroy(struct OsalMutex *mutex) in OsalMutexDestroy() argument 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() 67 int32_t OsalMutexLock(struct OsalMutex *mutex) in OsalMutexLock() argument [all …]
|
/drivers/hdf_core/adapter/khdf/liteos_m/osal/src/ |
D | osal_mutex.c | 39 int32_t OsalMutexInit(struct OsalMutex *mutex) in OsalMutexInit() argument 44 if (mutex == NULL) { in OsalMutexInit() 51 mutex->realMutex = (void *)(uintptr_t)muxId; in OsalMutexInit() 53 mutex->realMutex = (void *)(uintptr_t)HDF_INVALID_MUX_ID; in OsalMutexInit() 61 int32_t OsalMutexDestroy(struct OsalMutex *mutex) in OsalMutexDestroy() argument 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() 80 int32_t OsalMutexLock(struct OsalMutex *mutex) in OsalMutexLock() argument 84 if (mutex == NULL || mutex->realMutex == (void *)(uintptr_t)HDF_INVALID_MUX_ID) { in OsalMutexLock() [all …]
|
/drivers/hdf_core/adapter/khdf/uniproton/osal/src/ |
D | osal_mutex.c | 40 int32_t OsalMutexInit(struct OsalMutex *mutex) in OsalMutexInit() argument 42 (void)mutex; in OsalMutexInit() 50 int32_t OsalMutexDestroy(struct OsalMutex *mutex) in OsalMutexDestroy() argument 52 (void)mutex; in OsalMutexDestroy() 60 int32_t OsalMutexLock(struct OsalMutex *mutex) in OsalMutexLock() argument 62 (void)mutex; in OsalMutexLock() 70 int32_t OsalMutexTimedLock(struct OsalMutex *mutex, uint32_t ms) in OsalMutexTimedLock() argument 72 (void)mutex; in OsalMutexTimedLock() 81 int32_t OsalMutexUnlock(struct OsalMutex *mutex) in OsalMutexUnlock() argument 83 (void)mutex; in OsalMutexUnlock()
|
/drivers/hdf_core/interfaces/inner_api/osal/shared/ |
D | osal_mutex.h | 53 #define OSAL_DECLARE_MUTEX(mutex) struct OsalMutex mutex argument 70 int32_t OsalMutexInit(struct OsalMutex *mutex); 87 int32_t OsalMutexDestroy(struct OsalMutex *mutex); 104 int32_t OsalMutexLock(struct OsalMutex *mutex); 123 int32_t OsalMutexTimedLock(struct OsalMutex *mutex, uint32_t ms); 140 int32_t OsalMutexUnlock(struct OsalMutex *mutex);
|
/drivers/peripheral/camera/vdi_base/common/buffer_manager/src/ |
D | image_buffer.cpp | 151 std::lock_guard<std::mutex> l(l_); in SetIndex() 158 std::lock_guard<std::mutex> l(l_); in SetWidth() 165 std::lock_guard<std::mutex> l(l_); in SetHeight() 172 std::lock_guard<std::mutex> l(l_); in SetStride() 179 std::lock_guard<std::mutex> l(l_); in SetFormat() 186 std::lock_guard<std::mutex> l(l_); in SetSize() 193 std::lock_guard<std::mutex> l(l_); in SetUsage() 200 std::lock_guard<std::mutex> l(l_); in SetVirAddress() 207 std::lock_guard<std::mutex> l(l_); in SetPhyAddress() 214 std::lock_guard<std::mutex> l(l_); in SetFileDescriptor() [all …]
|
D | buffer_loop_tracking.cpp | 28 std::lock_guard<std::mutex> l(lock_); in ~TrackingNode() 44 std::lock_guard<std::mutex> l(lock_); in FindTrackingBuffer() 58 std::lock_guard<std::mutex> l(lock_); in AttachTrackingBuffer() 68 std::lock_guard<std::mutex> l(lock_); in DetachTrackingBuffer() 83 std::lock_guard<std::mutex> l(lock_); in IsEmpty() 95 std::lock_guard<std::mutex> l(lock_); in ~TrackingStream() 107 std::lock_guard<std::mutex> l(lock_); in FindTrackingNode() 124 std::lock_guard<std::mutex> l(lock_); in AttachTrackingNode() 139 std::lock_guard<std::mutex> l(lock_); in DetachTrackingNode() 152 std::lock_guard<std::mutex> l(lock_); in LocateBuffer() [all …]
|
/drivers/peripheral/vibrator/hal/src/ |
D | vibrator_controller.c | 90 (void)OsalMutexLock(&priv->mutex); in GetVibratorInfo() 94 (void)OsalMutexUnlock(&priv->mutex); in GetVibratorInfo() 102 (void)OsalMutexUnlock(&priv->mutex); in GetVibratorInfo() 108 (void)OsalMutexUnlock(&priv->mutex); in GetVibratorInfo() 113 (void)OsalMutexUnlock(&priv->mutex); in GetVibratorInfo() 154 (void)OsalMutexLock(&priv->mutex); in EnableVibratorModulation() 158 (void)OsalMutexUnlock(&priv->mutex); in EnableVibratorModulation() 165 (void)OsalMutexUnlock(&priv->mutex); in EnableVibratorModulation() 172 (void)OsalMutexUnlock(&priv->mutex); in EnableVibratorModulation() 179 (void)OsalMutexUnlock(&priv->mutex); in EnableVibratorModulation() [all …]
|
/drivers/peripheral/distributed_camera/hdi_service/src/dstream_operator/ |
D | dimage_buffer.cpp | 108 std::lock_guard<std::mutex> l(l_); in SetIndex() 115 std::lock_guard<std::mutex> l(l_); in SetWidth() 122 std::lock_guard<std::mutex> l(l_); in SetHeight() 129 std::lock_guard<std::mutex> l(l_); in SetStride() 136 std::lock_guard<std::mutex> l(l_); in SetFormat() 143 std::lock_guard<std::mutex> l(l_); in SetSize() 150 std::lock_guard<std::mutex> l(l_); in SetUsage() 157 std::lock_guard<std::mutex> l(l_); in SetPhyAddress() 164 std::lock_guard<std::mutex> l(l_); in SetFileDescriptor() 171 std::lock_guard<std::mutex> l(l_); in SetTimestamp() [all …]
|
/drivers/peripheral/input/hal/src/ |
D | input_controller.c | 212 pthread_mutex_lock(&manager->mutex); in SetPowerStatus() 218 pthread_mutex_unlock(&manager->mutex); in SetPowerStatus() 222 pthread_mutex_unlock(&manager->mutex); in SetPowerStatus() 226 pthread_mutex_unlock(&manager->mutex); in SetPowerStatus() 243 pthread_mutex_lock(&manager->mutex); in GetPowerStatus() 249 pthread_mutex_unlock(&manager->mutex); in GetPowerStatus() 254 pthread_mutex_unlock(&manager->mutex); in GetPowerStatus() 258 pthread_mutex_unlock(&manager->mutex); in GetPowerStatus() 262 pthread_mutex_unlock(&manager->mutex); in GetPowerStatus() 279 pthread_mutex_lock(&manager->mutex); in GetDeviceType() [all …]
|
D | input_reporter.c | 105 pthread_mutex_lock(&manager->mutex); in RegisterReportCallback() 112 pthread_mutex_unlock(&manager->mutex); in RegisterReportCallback() 117 pthread_mutex_unlock(&manager->mutex); in RegisterReportCallback() 124 pthread_mutex_unlock(&manager->mutex); in RegisterReportCallback() 130 pthread_mutex_unlock(&manager->mutex); in RegisterReportCallback() 147 pthread_mutex_lock(&manager->mutex); in UnregisterReportCallback() 154 pthread_mutex_unlock(&manager->mutex); in UnregisterReportCallback() 162 pthread_mutex_unlock(&manager->mutex); in UnregisterReportCallback() 166 pthread_mutex_unlock(&manager->mutex); in UnregisterReportCallback() 172 pthread_mutex_unlock(&manager->mutex); in UnregisterReportCallback() [all …]
|
D | input_manager.c | 69 pthread_mutex_lock(&manager->mutex); in GetInputDevice() 75 pthread_mutex_unlock(&manager->mutex); in GetInputDevice() 80 pthread_mutex_unlock(&manager->mutex); in GetInputDevice() 100 pthread_mutex_lock(&manager->mutex); in GetInputDeviceList() 104 pthread_mutex_unlock(&manager->mutex); in GetInputDeviceList() 114 pthread_mutex_unlock(&manager->mutex); in GetInputDeviceList() 126 pthread_mutex_lock(&manager->mutex); in CloseInputDevice() 135 pthread_mutex_unlock(&manager->mutex); in CloseInputDevice() 139 pthread_mutex_unlock(&manager->mutex); in CloseInputDevice() 159 pthread_mutex_lock(&manager->mutex); in AddService() [all …]
|
/drivers/hdf_core/framework/utils/src/ |
D | osal_msg_queue.c | 16 OsalMutexInit(&queue->mutex); in OsalMessageQueueInit() 25 OsalMutexDestroy(&queue->mutex); in OsalMessageQueueDestroy() 41 OsalMutexLock(&queue->mutex); in HdfMessageQueueEnqueue() 53 OsalMutexUnlock(&queue->mutex); in HdfMessageQueueEnqueue() 63 OsalMutexLock(&queue->mutex); in HdfMessageQueueNext() 69 OsalMutexUnlock(&queue->mutex); in HdfMessageQueueNext() 74 OsalMutexUnlock(&queue->mutex); in HdfMessageQueueNext() 82 OsalMutexLock(&queue->mutex); in HdfMessageQueueFlush() 89 OsalMutexUnlock(&queue->mutex); in HdfMessageQueueFlush()
|
/drivers/hdf_core/adapter/uhdf2/host/src/ |
D | devhost_dump.c | 35 struct OsalMutex mutex; member 43 OsalMutexInit(&g_dumpHostNode.mutex); in DevHostDumpInit() 53 OsalMutexLock(&g_dumpHostNode.mutex); in DevHostDumpDeInit() 59 OsalMutexUnlock(&g_dumpHostNode.mutex); in DevHostDumpDeInit() 61 OsalMutexDestroy(&g_dumpHostNode.mutex); in DevHostDumpDeInit() 70 OsalMutexLock(&g_dumpHostNode.mutex); in DevHostCheckDumpExist() 77 OsalMutexUnlock(&g_dumpHostNode.mutex); in DevHostCheckDumpExist() 104 OsalMutexLock(&g_dumpHostNode.mutex); in DevHostRegisterDumpService() 106 OsalMutexUnlock(&g_dumpHostNode.mutex); in DevHostRegisterDumpService() 145 OsalMutexLock(&g_dumpHostNode.mutex); in DevHostDump() [all …]
|
/drivers/peripheral/camera/vdi_base/common/adapter/platform/hdf_driver/src/driver_adapter/include/ |
D | buffer_operator.h | 100 std::mutex l_; 217 std::lock_guard<std::mutex> l(l_); in SetIndex() 224 std::lock_guard<std::mutex> l(l_); in SetWidth() 231 std::lock_guard<std::mutex> l(l_); in SetHeight() 238 std::lock_guard<std::mutex> l(l_); in SetStride() 245 std::lock_guard<std::mutex> l(l_); in SetFormat() 252 std::lock_guard<std::mutex> l(l_); in SetSize() 259 std::lock_guard<std::mutex> l(l_); in SetUsage() 266 std::lock_guard<std::mutex> l(l_); in SetVirAddress() 273 std::lock_guard<std::mutex> l(l_); in SetPhyAddress() [all …]
|
/drivers/hdf_core/framework/core/adapter/syscall/src/ |
D | hdf_syscall_adapter.c | 120 OsalMutexLock(&adapter->mutex); in HdfDevEventDispatchLocked() 130 OsalMutexUnlock(&adapter->mutex); in HdfDevEventDispatchLocked() 150 OsalMutexLock(&thread->mutex); in HdfDevEventReadAndDispatch() 185 OsalMutexUnlock(&thread->mutex); in HdfDevEventReadAndDispatch() 194 OsalMutexLock(&thread->mutex); in AssignPfds() 199 OsalMutexUnlock(&thread->mutex); in AssignPfds() 218 OsalMutexUnlock(&thread->mutex); in AssignPfds() 285 OsalMutexDestroy(&thread->mutex); in HdfDevEventListenTask() 329 if (OsalMutexInit(&thread->mutex) != HDF_SUCCESS) { in HdfDevListenerThreadDoInit() 338 OsalMutexDestroy(&thread->mutex); in HdfDevListenerThreadDoInit() [all …]
|
/drivers/hdf_core/framework/core/manager/src/ |
D | devsvc_manager.c | 93 OsalMutexLock(&devSvcManager->mutex); in DevSvcManagerAddService() 98 OsalMutexUnlock(&devSvcManager->mutex); in DevSvcManagerAddService() 102 OsalMutexUnlock(&devSvcManager->mutex); in DevSvcManagerAddService() 123 OsalMutexLock(&devSvcManager->mutex); in DevSvcManagerAddService() 126 OsalMutexUnlock(&devSvcManager->mutex); in DevSvcManagerAddService() 140 OsalMutexLock(&devSvcManager->mutex); in DevSvcManagerUpdateService() 143 OsalMutexUnlock(&devSvcManager->mutex); in DevSvcManagerUpdateService() 150 OsalMutexUnlock(&devSvcManager->mutex); in DevSvcManagerUpdateService() 161 OsalMutexUnlock(&devSvcManager->mutex); in DevSvcManagerUpdateService() 194 OsalMutexLock(&devSvcManager->mutex); in DevSvcManagerRemoveService() [all …]
|
D | servstat_listener_holder.c | 22 struct OsalMutex mutex; member 30 OsalMutexInit(&g_holoderList.mutex); in KServStatListenerHolderListInit() 103 OsalMutexLock(&g_holoderList.mutex); in ServStatListenerHolderCreate() 105 OsalMutexUnlock(&g_holoderList.mutex); in ServStatListenerHolderCreate() 114 OsalMutexLock(&g_holoderList.mutex); in ServStatListenerHolderGet() 121 OsalMutexUnlock(&g_holoderList.mutex); in ServStatListenerHolderGet() 133 OsalMutexLock(&g_holoderList.mutex); in ServStatListenerHolderRelease() 137 OsalMutexUnlock(&g_holoderList.mutex); in ServStatListenerHolderRelease()
|
/drivers/hdf_core/adapter/uhdf2/hdi/src/ |
D | stub_collector.cpp | 23 static std::mutex g_consMapLock; 24 static std::mutex g_stubMapLock; 32 const std::lock_guard<std::mutex> lock(g_consMapLock); in StubConstructorRegister() 47 const std::lock_guard<std::mutex> lock(g_consMapLock); in StubConstructorUnregister() 57 const std::lock_guard<std::mutex> stublock(g_stubMapLock); in StubCollectorGetOrNewObject() 64 const std::lock_guard<std::mutex> lock(g_consMapLock); in StubCollectorGetOrNewObject() 95 const std::lock_guard<std::mutex> stublock(g_stubMapLock); in StubCollectorRemoveObject() 100 const std::lock_guard<std::mutex> lock(g_consMapLock); in StubCollectorRemoveObject()
|
/drivers/peripheral/light/hal/src/ |
D | light_controller.c | 145 (void)OsalMutexLock(&priv->mutex); in GetLightInfo() 149 (void)OsalMutexUnlock(&priv->mutex); in GetLightInfo() 157 (void)OsalMutexUnlock(&priv->mutex); in GetLightInfo() 163 (void)OsalMutexUnlock(&priv->mutex); in GetLightInfo() 168 (void)OsalMutexUnlock(&priv->mutex); in GetLightInfo() 213 (void)OsalMutexLock(&priv->mutex); in OnLight() 218 (void)OsalMutexUnlock(&priv->mutex); in OnLight() 225 (void)OsalMutexUnlock(&priv->mutex); in OnLight() 232 (void)OsalMutexUnlock(&priv->mutex); in OnLight() 239 (void)OsalMutexUnlock(&priv->mutex); in OnLight() [all …]
|
/drivers/hdf_core/adapter/uhdf2/manager/src/ |
D | servstat_listener_holder.c | 31 struct OsalMutex mutex; member 37 .mutex = { 49 OsalMutexInit(&g_holoderList.mutex); in UServStatListenerHolderListInit() 60 OsalMutexLock(&g_holoderList.mutex); in UServStatListenerHolderListListAdd() 62 OsalMutexUnlock(&g_holoderList.mutex); in UServStatListenerHolderListListAdd() 123 OsalMutexLock(&g_holoderList.mutex); in ServStatListenerHolderGet() 130 OsalMutexUnlock(&g_holoderList.mutex); in ServStatListenerHolderGet() 169 OsalMutexLock(&g_holoderList.mutex); in ServStatListenerHolderRelease() 171 OsalMutexUnlock(&g_holoderList.mutex); in ServStatListenerHolderRelease()
|
/drivers/peripheral/usb/ddk_service/src/ |
D | usb_ddk_hash.cpp | 24 std::mutex g_mapMutex; 30 std::lock_guard<std::mutex> lock(g_mapMutex); in UsbDdkHash() 43 std::lock_guard<std::mutex> lock(g_mapMutex); in UsbDdkUnHash() 54 std::lock_guard<std::mutex> lock(g_mapMutex); in UsbDdkDelHashRecord() 60 std::lock_guard<std::mutex> lock(g_mapMutex); in UsbDdkGetRecordByVal()
|
/drivers/hdf_core/framework/core/adapter/vnode/src/ |
D | hdf_vnode_adapter.c | 38 struct OsalMutex mutex; member 320 OsalMutexLock(&client->mutex); in ReadDeviceEventInEventQueue() 322 OsalMutexUnlock(&client->mutex); in ReadDeviceEventInEventQueue() 329 OsalMutexUnlock(&client->mutex); in ReadDeviceEventInEventQueue() 334 OsalMutexUnlock(&client->mutex); in ReadDeviceEventInEventQueue() 386 OsalMutexLock(&vnodeClient->mutex); in VNodeAdapterSendDevEventToClient() 388 OsalMutexUnlock(&vnodeClient->mutex); in VNodeAdapterSendDevEventToClient() 396 OsalMutexUnlock(&vnodeClient->mutex); in VNodeAdapterSendDevEventToClient() 402 OsalMutexUnlock(&vnodeClient->mutex); in VNodeAdapterSendDevEventToClient() 410 OsalMutexUnlock(&vnodeClient->mutex); in VNodeAdapterSendDevEventToClient() [all …]
|