/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/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/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/qcom/camera/msm8998/QCamera2/HAL3/ |
D | QCamera3StreamMem.cpp | 83 Mutex::Autolock lock(mLock); in getCnt() local 125 Mutex::Autolock lock(mLock); in getFd() local 145 Mutex::Autolock lock(mLock); in getSize() local 167 Mutex::Autolock lock(mLock); in invalidateCache() local 189 Mutex::Autolock lock(mLock); in cleanInvalidateCache() local 211 Mutex::Autolock lock(mLock); in cleanCache() local 262 Mutex::Autolock lock(mLock); in getPtr() local 282 Mutex::Autolock lock(mLock); in valid() local 306 Mutex::Autolock lock(mLock); in registerBuffer() local 325 Mutex::Autolock lock(mLock); in unregisterBuffer() local [all …]
|
/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/interfaces/graphics/composer/2.1/utils/vts/ |
D | GraphicsComposerCallback.cpp | 27 std::lock_guard<std::mutex> lock(mMutex); in setVsyncAllowed() local 32 std::lock_guard<std::mutex> lock(mMutex); in getDisplays() local 37 std::lock_guard<std::mutex> lock(mMutex); in getInvalidHotplugCount() local 42 std::lock_guard<std::mutex> lock(mMutex); in getInvalidRefreshCount() local 47 std::lock_guard<std::mutex> lock(mMutex); in getInvalidVsyncCount() local 52 std::lock_guard<std::mutex> lock(mMutex); in onHotplug() local 68 std::lock_guard<std::mutex> lock(mMutex); in onRefresh() local 78 std::lock_guard<std::mutex> lock(mMutex); in onVsync() local
|
/hardware/interfaces/health/storage/1.0/vts/functional/ |
D | VtsHalHealthStorageV1_0TargetTest.cpp | 54 std::unique_lock<std::mutex> lock(mMutex); in onFinish() local 55 onFinishLocked(&lock); in onFinish() 59 std::unique_lock<std::mutex> lock(mMutex); in wait() local 60 return waitLocked(&lock, duration); in wait() 65 void onFinishLocked(std::unique_lock<std::mutex>* lock) { in onFinishLocked() argument 67 lock->unlock(); in onFinishLocked() 71 bool waitLocked(std::unique_lock<std::mutex>* lock, std::chrono::duration<R, P> duration) { in waitLocked() argument 72 mCv.wait_for(*lock, duration, [this] { return mFinished; }); in waitLocked() 84 std::unique_lock<std::mutex> lock(mMutex); in onFinish() local 86 Flag::onFinishLocked(&lock); in onFinish() [all …]
|
/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/interfaces/sensors/common/vts/utils/ |
D | SensorsHidlEnvironmentBase.cpp | 38 std::lock_guard<std::mutex> lock(mEventsMutex); in catEvents() local 46 std::lock_guard<std::mutex> lock(mEventsMutex); in setCollection() local 51 std::lock_guard<std::mutex> lock(mEventsMutex); in addEvent() local 62 std::lock_guard<std::mutex> lock(mEventsMutex); in registerCallback() local 67 std::lock_guard<std::mutex> lock(mEventsMutex); in unregisterCallback() local
|
/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/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/interfaces/automotive/evs/1.0/vts/functional/ |
D | FrameHandler.cpp | 61 mLock.lock(); in startStream() 81 std::unique_lock<std::mutex> lock(mLock); in blockingStopStream() local 83 mSignal.wait(lock, [this]() { return !mRunning; }); in blockingStopStream() 89 std::unique_lock<std::mutex> lock(mLock); in returnHeldBuffer() local 106 std::unique_lock<std::mutex> lock(mLock); in isRunning() local 113 std::unique_lock<std::mutex> lock(mLock); in waitForFrameCount() local 114 mSignal.wait(lock, [this, frameCount](){ return mFramesReceived >= frameCount; }); in waitForFrameCount() 119 std::unique_lock<std::mutex> lock(mLock); in getFramesCounters() local 175 mLock.lock(); in deliverFrame() 201 mLock.lock(); in deliverFrame() [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/sdm845/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/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/sdm845/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/sdm845/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/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/sdm845/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/sdm845/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/libhardware/modules/radio/ |
D | radio_hw.c | 96 pthread_mutex_t lock; member 104 pthread_mutex_t lock; member 278 pthread_mutex_lock(&tuner->lock); in callback_thread_loop() 296 pthread_cond_timedwait(&tuner->cond, &tuner->lock, &ts); in callback_thread_loop() 299 pthread_cond_wait(&tuner->cond, &tuner->lock); in callback_thread_loop() 467 pthread_mutex_unlock(&tuner->lock); in callback_thread_loop() 469 pthread_mutex_lock(&tuner->lock); in callback_thread_loop() 500 pthread_mutex_unlock(&tuner->lock); in callback_thread_loop() 515 pthread_mutex_lock(&stub_tuner->lock); in tuner_set_configuration() 528 pthread_mutex_unlock(&stub_tuner->lock); in tuner_set_configuration() [all …]
|
/hardware/libhardware/modules/usbaudio/ |
D | audio_hal.c | 56 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 114 struct stream_lock lock; member 155 static void stream_lock_init(struct stream_lock *lock) { in stream_lock_init() argument 156 pthread_mutex_init(&lock->lock, (const pthread_mutexattr_t *) NULL); in stream_lock_init() 157 pthread_mutex_init(&lock->pre_lock, (const pthread_mutexattr_t *) NULL); in stream_lock_init() 160 static void stream_lock(struct stream_lock *lock) { in stream_lock() argument 161 pthread_mutex_lock(&lock->pre_lock); in stream_lock() 162 pthread_mutex_lock(&lock->lock); in stream_lock() [all …]
|
/hardware/interfaces/automotive/evs/1.0/default/ |
D | EvsCamera.cpp | 86 std::lock_guard <std::mutex> lock(mAccessLock); in forceShutdown() local 119 std::lock_guard<std::mutex> lock(mAccessLock); in setMaxFramesInFlight() local 144 std::lock_guard<std::mutex> lock(mAccessLock); in startVideoStream() local 178 std::lock_guard <std::mutex> lock(mAccessLock); in doneWithFrame() local 214 std::unique_lock <std::mutex> lock(mAccessLock); in stopVideoStream() local 223 lock.unlock(); in stopVideoStream() 225 lock.lock(); in stopVideoStream() 238 std::lock_guard<std::mutex> lock(mAccessLock); in getExtendedInfo() local 252 std::lock_guard<std::mutex> lock(mAccessLock); in setExtendedInfo() local 388 std::lock_guard<std::mutex> lock(mAccessLock); in generateFrames() local [all …]
|
/hardware/interfaces/wifi/1.3/default/ |
D | wifi_sta_iface.cpp | 41 legacy_hal_.lock()->setDfsFlag(ifname_, true); in WifiStaIface() 289 legacy_hal_.lock()->getSupportedFeatureSet(ifname_); in getCapabilitiesInternal() 295 legacy_hal_.lock()->getLoggerSupportedFeatureSet(ifname_); in getCapabilitiesInternal() 313 legacy_hal_.lock()->getPacketFilterCapabilities(ifname_); in getApfPacketFilterCapabilitiesInternal() 328 legacy_hal_.lock()->setPacketFilter(ifname_, program); in installApfPacketFilterInternal() 336 legacy_hal_.lock()->readApfPacketFilterData(ifname_); in readApfPacketFilterDataInternal() 346 legacy_hal_.lock()->getGscanCapabilities(ifname_); in getBackgroundScanCapabilitiesInternal() 365 legacy_hal_.lock()->getValidFrequenciesForBand( in getValidFrequenciesForBandInternal() 442 legacy_hal::wifi_error legacy_status = legacy_hal_.lock()->startGscan( in startBackgroundScanInternal() 450 legacy_hal_.lock()->stopGscan(ifname_, cmd_id); in stopBackgroundScanInternal() [all …]
|