/hardware/qcom/camera/QCamera2/HAL/ |
D | QCameraParametersIntf.cpp | 56 Mutex::Autolock lock(mLock); in ~QCameraParametersIntf() local 67 Mutex::Autolock lock(mLock); in allocate() local 81 Mutex::Autolock lock(mLock); in init() local 88 Mutex::Autolock lock(mLock); in deinit() local 95 Mutex::Autolock lock(mLock); in updateParameters() local 102 Mutex::Autolock lock(mLock); in commitParameters() local 109 Mutex::Autolock lock(mLock); in getParameters() local 116 Mutex::Autolock lock(mLock); in getPreviewFpsRange() local 124 Mutex::Autolock lock(mLock); in getTsMakeupInfo() local 132 Mutex::Autolock lock(mLock); in getPreviewHalPixelFormat() local [all …]
|
/hardware/qcom/camera/msm8998/QCamera2/HAL/ |
D | QCameraParametersIntf.cpp | 56 Mutex::Autolock lock(mLock); in ~QCameraParametersIntf() local 67 Mutex::Autolock lock(mLock); in allocate() local 82 Mutex::Autolock lock(mLock); in init() local 89 Mutex::Autolock lock(mLock); in deinit() local 96 Mutex::Autolock lock(mLock); in updateParameters() local 103 Mutex::Autolock lock(mLock); in commitParameters() local 110 Mutex::Autolock lock(mLock); in getParameters() local 117 Mutex::Autolock lock(mLock); in getPreviewFpsRange() local 125 Mutex::Autolock lock(mLock); in getTsMakeupInfo() local 133 Mutex::Autolock lock(mLock); in getPreviewHalPixelFormat() local [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vpx_ports/ |
D | vpx_once.h | 21 static CRITICAL_SECTION *lock; in once() local 24 void *lock_ptr = &lock; in once() 54 EnterCriticalSection(lock); in once() 62 LeaveCriticalSection(lock); in once() 69 DeleteCriticalSection(lock); in once() 70 free(lock); in once() 71 lock = NULL; in once() 80 static pthread_once_t lock = PTHREAD_ONCE_INIT; in once() local 81 pthread_once(&lock, func); in once()
|
/hardware/qcom/camera/msm8998/QCamera2/HAL3/ |
D | QCamera3StreamMem.cpp | 84 Mutex::Autolock lock(mLock); in getCnt() local 121 Mutex::Autolock lock(mLock); in getFd() local 141 Mutex::Autolock lock(mLock); in getSize() local 163 Mutex::Autolock lock(mLock); in invalidateCache() local 185 Mutex::Autolock lock(mLock); in cleanInvalidateCache() local 207 Mutex::Autolock lock(mLock); in cleanCache() local 257 Mutex::Autolock lock(mLock); in getPtr() local 277 Mutex::Autolock lock(mLock); in valid() local 301 Mutex::Autolock lock(mLock); in registerBuffer() local 320 Mutex::Autolock lock(mLock); in unregisterBuffer() local [all …]
|
/hardware/qcom/camera/QCamera2/HAL3/ |
D | QCamera3StreamMem.cpp | 84 Mutex::Autolock lock(mLock); in getCnt() local 121 Mutex::Autolock lock(mLock); in getFd() local 141 Mutex::Autolock lock(mLock); in getSize() local 163 Mutex::Autolock lock(mLock); in invalidateCache() local 185 Mutex::Autolock lock(mLock); in cleanInvalidateCache() local 234 Mutex::Autolock lock(mLock); in getPtr() local 254 Mutex::Autolock lock(mLock); in valid() local 278 Mutex::Autolock lock(mLock); in registerBuffer() local 297 Mutex::Autolock lock(mLock); in unregisterBuffer() local 314 Mutex::Autolock lock(mLock); in getMatchBufIndex() local [all …]
|
/hardware/qcom/display/msm8960/libgenlock/ |
D | genlock.cpp | 85 genlock_lock lock; in perform_lock_unlock_operation() local 86 lock.op = lockType; in perform_lock_unlock_operation() 87 lock.flags = flags; in perform_lock_unlock_operation() 88 lock.timeout = timeout; in perform_lock_unlock_operation() 89 lock.fd = hnd->genlockHandle; in perform_lock_unlock_operation() 92 if (ioctl(hnd->genlockPrivFd, GENLOCK_IOC_DREADLOCK, &lock)) { in perform_lock_unlock_operation() 103 if (ioctl(hnd->genlockPrivFd, GENLOCK_IOC_LOCK, &lock)) { in perform_lock_unlock_operation() 162 genlock_lock lock; in genlock_create_lock() local 166 close_genlock_fd_and_handle(fd, lock.fd); in genlock_create_lock() 172 if (ioctl(fd, GENLOCK_IOC_EXPORT, &lock)) { in genlock_create_lock() [all …]
|
/hardware/qcom/camera/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpeg_queue.c | 39 pthread_mutex_init(&queue->lock, NULL); in mm_jpeg_queue_init() 57 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_enq() 60 pthread_mutex_unlock(&queue->lock); in mm_jpeg_queue_enq() 83 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_enq_head() 86 pthread_mutex_unlock(&queue->lock); in mm_jpeg_queue_enq_head() 100 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_deq() 108 pthread_mutex_unlock(&queue->lock); in mm_jpeg_queue_deq() 122 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_get_size() 124 pthread_mutex_unlock(&queue->lock); in mm_jpeg_queue_get_size() 133 pthread_mutex_destroy(&queue->lock); in mm_jpeg_queue_deinit() [all …]
|
D | mm_jpegdec.c | 198 pthread_mutex_init(&p_session->lock, NULL); in mm_jpegdec_session_create() 266 pthread_mutex_destroy(&p_session->lock); in mm_jpegdec_session_destroy() 420 pthread_mutex_lock(&p_session->lock); in mm_jpeg_session_port_enable() 422 pthread_mutex_unlock(&p_session->lock); in mm_jpeg_session_port_enable() 434 pthread_mutex_lock(&p_session->lock); in mm_jpeg_session_port_enable() 437 pthread_cond_wait(&p_session->cond, &p_session->lock); in mm_jpeg_session_port_enable() 442 pthread_mutex_unlock(&p_session->lock); in mm_jpeg_session_port_enable() 460 pthread_mutex_lock(&p_session->lock); in mm_jpeg_session_port_disable() 462 pthread_mutex_unlock(&p_session->lock); in mm_jpeg_session_port_disable() 473 pthread_mutex_lock(&p_session->lock); in mm_jpeg_session_port_disable() [all …]
|
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpeg_queue.c | 39 pthread_mutex_init(&queue->lock, NULL); in mm_jpeg_queue_init() 57 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_enq() 60 pthread_mutex_unlock(&queue->lock); in mm_jpeg_queue_enq() 83 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_enq_head() 86 pthread_mutex_unlock(&queue->lock); in mm_jpeg_queue_enq_head() 100 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_deq() 108 pthread_mutex_unlock(&queue->lock); in mm_jpeg_queue_deq() 122 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_get_size() 124 pthread_mutex_unlock(&queue->lock); in mm_jpeg_queue_get_size() 133 pthread_mutex_destroy(&queue->lock); in mm_jpeg_queue_deinit() [all …]
|
D | mm_jpegdec.c | 198 pthread_mutex_init(&p_session->lock, NULL); in mm_jpegdec_session_create() 266 pthread_mutex_destroy(&p_session->lock); in mm_jpegdec_session_destroy() 420 pthread_mutex_lock(&p_session->lock); in mm_jpeg_session_port_enable() 422 pthread_mutex_unlock(&p_session->lock); in mm_jpeg_session_port_enable() 434 pthread_mutex_lock(&p_session->lock); in mm_jpeg_session_port_enable() 437 pthread_cond_wait(&p_session->cond, &p_session->lock); in mm_jpeg_session_port_enable() 442 pthread_mutex_unlock(&p_session->lock); in mm_jpeg_session_port_enable() 460 pthread_mutex_lock(&p_session->lock); in mm_jpeg_session_port_disable() 462 pthread_mutex_unlock(&p_session->lock); in mm_jpeg_session_port_disable() 473 pthread_mutex_lock(&p_session->lock); in mm_jpeg_session_port_disable() [all …]
|
/hardware/intel/common/wrs_omxil_core/utils/src/ |
D | thread.cpp | 27 pthread_mutex_init(&lock, NULL); in Thread() 35 pthread_mutex_init(&lock, NULL); in Thread() 42 pthread_mutex_destroy(&lock); in ~Thread() 49 pthread_mutex_lock(&lock); in Start() 55 pthread_mutex_unlock(&lock); in Start() 64 pthread_mutex_lock(&lock); in Join() 69 pthread_mutex_unlock(&lock); in Join()
|
/hardware/qcom/camera/msm8998/QCamera2/stack/common/ |
D | cam_queue.h | 44 pthread_mutex_t lock; member 49 pthread_mutex_init(&queue->lock, NULL); in cam_queue_init() 66 pthread_mutex_lock(&queue->lock); in cam_queue_enq() 69 pthread_mutex_unlock(&queue->lock); in cam_queue_enq() 81 pthread_mutex_lock(&queue->lock); in cam_queue_deq() 89 pthread_mutex_unlock(&queue->lock); in cam_queue_deq() 105 pthread_mutex_lock(&queue->lock); in cam_queue_flush() 125 pthread_mutex_unlock(&queue->lock); in cam_queue_flush() 132 pthread_mutex_destroy(&queue->lock); in cam_queue_deinit()
|
/hardware/qcom/camera/QCamera2/stack/common/ |
D | cam_queue.h | 44 pthread_mutex_t lock; member 49 pthread_mutex_init(&queue->lock, NULL); in cam_queue_init() 66 pthread_mutex_lock(&queue->lock); in cam_queue_enq() 69 pthread_mutex_unlock(&queue->lock); in cam_queue_enq() 81 pthread_mutex_lock(&queue->lock); in cam_queue_deq() 89 pthread_mutex_unlock(&queue->lock); in cam_queue_deq() 105 pthread_mutex_lock(&queue->lock); in cam_queue_flush() 125 pthread_mutex_unlock(&queue->lock); in cam_queue_flush() 132 pthread_mutex_destroy(&queue->lock); in cam_queue_deinit()
|
/hardware/qcom/camera/QCamera2/stack/mm-jpeg-interface/inc/ |
D | mm_jpeg_inlines.h | 63 pthread_mutex_lock(&my_obj->clnt_mgr[client_idx].lock); in mm_jpeg_get_session() 65 pthread_mutex_unlock(&my_obj->clnt_mgr[client_idx].lock); in mm_jpeg_get_session() 88 pthread_mutex_lock(&my_obj->clnt_mgr[client_idx].lock); in mm_jpeg_get_new_session_idx() 93 pthread_mutex_unlock(&my_obj->clnt_mgr[client_idx].lock); in mm_jpeg_get_new_session_idx() 96 pthread_mutex_unlock(&my_obj->clnt_mgr[client_idx].lock); in mm_jpeg_get_new_session_idx() 120 pthread_mutex_lock(&my_obj->clnt_mgr[client_idx].lock); in mm_jpeg_remove_session_idx() 122 pthread_mutex_unlock(&my_obj->clnt_mgr[client_idx].lock); in mm_jpeg_remove_session_idx()
|
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/inc/ |
D | mm_jpeg_inlines.h | 63 pthread_mutex_lock(&my_obj->clnt_mgr[client_idx].lock); in mm_jpeg_get_session() 65 pthread_mutex_unlock(&my_obj->clnt_mgr[client_idx].lock); in mm_jpeg_get_session() 88 pthread_mutex_lock(&my_obj->clnt_mgr[client_idx].lock); in mm_jpeg_get_new_session_idx() 93 pthread_mutex_unlock(&my_obj->clnt_mgr[client_idx].lock); in mm_jpeg_get_new_session_idx() 96 pthread_mutex_unlock(&my_obj->clnt_mgr[client_idx].lock); in mm_jpeg_get_new_session_idx() 120 pthread_mutex_lock(&my_obj->clnt_mgr[client_idx].lock); in mm_jpeg_remove_session_idx() 122 pthread_mutex_unlock(&my_obj->clnt_mgr[client_idx].lock); in mm_jpeg_remove_session_idx()
|
/hardware/intel/common/libmix/mix_video/src/ |
D | mixframemanager.c | 31 self->lock = g_mutex_new(); in mix_framemanager_init() 73 if (fm->lock) { in mix_framemanager_finalize() 74 g_mutex_free(fm->lock); in mix_framemanager_finalize() 75 fm->lock = NULL; in mix_framemanager_finalize() 111 if (!fm->lock) { in mix_framemanager_initialize() 112 fm->lock = g_mutex_new(); in mix_framemanager_initialize() 113 if (!fm->lock) { in mix_framemanager_initialize() 163 if (!fm->lock) { in mix_framemanager_deinitialize() 173 g_mutex_lock(fm->lock); in mix_framemanager_deinitialize() 186 g_mutex_unlock(fm->lock); in mix_framemanager_deinitialize() [all …]
|
/hardware/libhardware/modules/radio/ |
D | radio_hw.c | 92 pthread_mutex_t lock; member 100 pthread_mutex_t lock; member 262 pthread_mutex_lock(&tuner->lock); in callback_thread_loop() 280 pthread_cond_timedwait(&tuner->cond, &tuner->lock, &ts); in callback_thread_loop() 283 pthread_cond_wait(&tuner->cond, &tuner->lock); in callback_thread_loop() 452 pthread_mutex_unlock(&tuner->lock); in callback_thread_loop() 454 pthread_mutex_lock(&tuner->lock); in callback_thread_loop() 485 pthread_mutex_unlock(&tuner->lock); in callback_thread_loop() 500 pthread_mutex_lock(&stub_tuner->lock); in tuner_set_configuration() 509 pthread_mutex_unlock(&stub_tuner->lock); in tuner_set_configuration() [all …]
|
/hardware/qcom/gps/msm8996/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/ |
D | loc_api_sync_call.c | 88 pthread_mutex_init(&slot->lock, NULL); in loc_api_sync_call_init() 133 pthread_mutex_lock(&slot->lock); in loc_api_sync_call_destroy() 137 pthread_mutex_unlock(&slot->lock); in loc_api_sync_call_destroy() 140 pthread_mutex_destroy(&slot->lock); in loc_api_sync_call_destroy() 205 pthread_mutex_lock(&slot->lock); in loc_api_callback_process_sync_call() 220 pthread_mutex_unlock(&slot->lock); in loc_api_callback_process_sync_call() 226 pthread_mutex_unlock(&slot->lock); in loc_api_callback_process_sync_call() 255 if (pthread_mutex_trylock(&slot->lock) == EBUSY) in loc_lock_a_slot() 270 pthread_mutex_unlock(&slot->lock); in loc_lock_a_slot() 295 pthread_mutex_unlock(&loc_sync_data.slots[select_id].lock); in loc_unlock_slot() [all …]
|
/hardware/qcom/gps/msm8084/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/ |
D | loc_api_sync_call.c | 88 pthread_mutex_init(&slot->lock, NULL); in loc_api_sync_call_init() 133 pthread_mutex_lock(&slot->lock); in loc_api_sync_call_destroy() 137 pthread_mutex_unlock(&slot->lock); in loc_api_sync_call_destroy() 140 pthread_mutex_destroy(&slot->lock); in loc_api_sync_call_destroy() 205 pthread_mutex_lock(&slot->lock); in loc_api_callback_process_sync_call() 220 pthread_mutex_unlock(&slot->lock); in loc_api_callback_process_sync_call() 226 pthread_mutex_unlock(&slot->lock); in loc_api_callback_process_sync_call() 255 if (pthread_mutex_trylock(&slot->lock) == EBUSY) in loc_lock_a_slot() 270 pthread_mutex_unlock(&slot->lock); in loc_lock_a_slot() 295 pthread_mutex_unlock(&loc_sync_data.slots[select_id].lock); in loc_unlock_slot() [all …]
|
/hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/ |
D | loc_api_sync_call.c | 88 pthread_mutex_init(&slot->lock, NULL); in loc_api_sync_call_init() 133 pthread_mutex_lock(&slot->lock); in loc_api_sync_call_destroy() 137 pthread_mutex_unlock(&slot->lock); in loc_api_sync_call_destroy() 140 pthread_mutex_destroy(&slot->lock); in loc_api_sync_call_destroy() 205 pthread_mutex_lock(&slot->lock); in loc_api_callback_process_sync_call() 220 pthread_mutex_unlock(&slot->lock); in loc_api_callback_process_sync_call() 226 pthread_mutex_unlock(&slot->lock); in loc_api_callback_process_sync_call() 255 if (pthread_mutex_trylock(&slot->lock) == EBUSY) in loc_lock_a_slot() 270 pthread_mutex_unlock(&slot->lock); in loc_lock_a_slot() 295 pthread_mutex_unlock(&loc_sync_data.slots[select_id].lock); in loc_unlock_slot() [all …]
|
/hardware/qcom/gps/msm8994/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/ |
D | loc_api_sync_call.c | 88 pthread_mutex_init(&slot->lock, NULL); in loc_api_sync_call_init() 133 pthread_mutex_lock(&slot->lock); in loc_api_sync_call_destroy() 137 pthread_mutex_unlock(&slot->lock); in loc_api_sync_call_destroy() 140 pthread_mutex_destroy(&slot->lock); in loc_api_sync_call_destroy() 205 pthread_mutex_lock(&slot->lock); in loc_api_callback_process_sync_call() 220 pthread_mutex_unlock(&slot->lock); in loc_api_callback_process_sync_call() 226 pthread_mutex_unlock(&slot->lock); in loc_api_callback_process_sync_call() 255 if (pthread_mutex_trylock(&slot->lock) == EBUSY) in loc_lock_a_slot() 270 pthread_mutex_unlock(&slot->lock); in loc_lock_a_slot() 295 pthread_mutex_unlock(&loc_sync_data.slots[select_id].lock); in loc_unlock_slot() [all …]
|
/hardware/qcom/gps/msm8998/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/ |
D | loc_api_sync_call.c | 88 pthread_mutex_init(&slot->lock, NULL); in loc_api_sync_call_init() 133 pthread_mutex_lock(&slot->lock); in loc_api_sync_call_destroy() 137 pthread_mutex_unlock(&slot->lock); in loc_api_sync_call_destroy() 140 pthread_mutex_destroy(&slot->lock); in loc_api_sync_call_destroy() 205 pthread_mutex_lock(&slot->lock); in loc_api_callback_process_sync_call() 220 pthread_mutex_unlock(&slot->lock); in loc_api_callback_process_sync_call() 226 pthread_mutex_unlock(&slot->lock); in loc_api_callback_process_sync_call() 255 if (pthread_mutex_trylock(&slot->lock) == EBUSY) in loc_lock_a_slot() 270 pthread_mutex_unlock(&slot->lock); in loc_lock_a_slot() 295 pthread_mutex_unlock(&loc_sync_data.slots[select_id].lock); in loc_unlock_slot() [all …]
|
/hardware/qcom/gps/msm8909/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/ |
D | loc_api_sync_call.c | 88 pthread_mutex_init(&slot->lock, NULL); in loc_api_sync_call_init() 133 pthread_mutex_lock(&slot->lock); in loc_api_sync_call_destroy() 137 pthread_mutex_unlock(&slot->lock); in loc_api_sync_call_destroy() 140 pthread_mutex_destroy(&slot->lock); in loc_api_sync_call_destroy() 205 pthread_mutex_lock(&slot->lock); in loc_api_callback_process_sync_call() 220 pthread_mutex_unlock(&slot->lock); in loc_api_callback_process_sync_call() 226 pthread_mutex_unlock(&slot->lock); in loc_api_callback_process_sync_call() 255 if (pthread_mutex_trylock(&slot->lock) == EBUSY) in loc_lock_a_slot() 270 pthread_mutex_unlock(&slot->lock); in loc_lock_a_slot() 295 pthread_mutex_unlock(&loc_sync_data.slots[select_id].lock); in loc_unlock_slot() [all …]
|
/hardware/bsp/intel/peripheral/audio/generic/ |
D | audio_hal.c | 78 pthread_mutex_t lock; /* see note below on mutex acquisition order */ member 97 pthread_mutex_t lock; /* see note below on mutex acquisition order */ member 122 pthread_mutex_t lock; /* see note below on mutex acquisition order */ member 328 pthread_mutex_lock(&in->lock); in lock_input_stream() 335 pthread_mutex_lock(&out->lock); in lock_output_stream() 397 pthread_mutex_lock(&out->dev->lock); in out_standby() 399 pthread_mutex_unlock(&out->dev->lock); in out_standby() 402 pthread_mutex_unlock(&out->lock); in out_standby() 430 pthread_mutex_lock(&out->dev->lock); in out_set_parameters() 449 pthread_mutex_unlock(&out->dev->lock); in out_set_parameters() [all …]
|
/hardware/libhardware/modules/usbaudio/ |
D | audio_hal.c | 54 pthread_mutex_t lock; /* see note below on mutex acquisition order */ member 74 pthread_mutex_t lock; /* see note below on mutex acquisition order */ member 81 struct stream_lock lock; member 112 struct stream_lock lock; member 151 static void stream_lock_init(struct stream_lock *lock) { in stream_lock_init() argument 152 pthread_mutex_init(&lock->lock, (const pthread_mutexattr_t *) NULL); in stream_lock_init() 153 pthread_mutex_init(&lock->pre_lock, (const pthread_mutexattr_t *) NULL); in stream_lock_init() 156 static void stream_lock(struct stream_lock *lock) { in stream_lock() argument 157 pthread_mutex_lock(&lock->pre_lock); in stream_lock() 158 pthread_mutex_lock(&lock->lock); in stream_lock() [all …]
|