Home
last modified time | relevance | path

Searched refs:lock (Results 1 – 25 of 196) sorted by relevance

12345678

/hardware/qcom/camera/QCamera2/HAL3/
DQCamera3StreamMem.cpp92 Mutex::Autolock lock(mLock); in getCnt() local
129 Mutex::Autolock lock(mLock); in getFd() local
149 Mutex::Autolock lock(mLock); in getSize() local
171 Mutex::Autolock lock(mLock); in invalidateCache() local
193 Mutex::Autolock lock(mLock); in cleanInvalidateCache() local
242 Mutex::Autolock lock(mLock); in getPtr() local
262 Mutex::Autolock lock(mLock); in valid() local
286 Mutex::Autolock lock(mLock); in registerBuffer() local
305 Mutex::Autolock lock(mLock); in unregisterBuffer() local
322 Mutex::Autolock lock(mLock); in getMatchBufIndex() local
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vpx_ports/
Dvpx_once.h21 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/display/msm8960/libgenlock/
Dgenlock.cpp85 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/
Dmm_jpeg_queue.c36 pthread_mutex_init(&queue->lock, NULL); in mm_jpeg_queue_init()
54 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_enq()
57 pthread_mutex_unlock(&queue->lock); in mm_jpeg_queue_enq()
80 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_enq_head()
83 pthread_mutex_unlock(&queue->lock); in mm_jpeg_queue_enq_head()
97 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_deq()
105 pthread_mutex_unlock(&queue->lock); in mm_jpeg_queue_deq()
119 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_get_size()
121 pthread_mutex_unlock(&queue->lock); in mm_jpeg_queue_get_size()
130 pthread_mutex_destroy(&queue->lock); in mm_jpeg_queue_deinit()
[all …]
Dmm_jpegdec.c202 pthread_mutex_init(&p_session->lock, NULL); in mm_jpegdec_session_create()
270 pthread_mutex_destroy(&p_session->lock); in mm_jpegdec_session_destroy()
426 pthread_mutex_lock(&p_session->lock); in mm_jpeg_session_port_enable()
428 pthread_mutex_unlock(&p_session->lock); in mm_jpeg_session_port_enable()
440 pthread_mutex_lock(&p_session->lock); in mm_jpeg_session_port_enable()
443 pthread_cond_wait(&p_session->cond, &p_session->lock); in mm_jpeg_session_port_enable()
448 pthread_mutex_unlock(&p_session->lock); in mm_jpeg_session_port_enable()
466 pthread_mutex_lock(&p_session->lock); in mm_jpeg_session_port_disable()
468 pthread_mutex_unlock(&p_session->lock); in mm_jpeg_session_port_disable()
479 pthread_mutex_lock(&p_session->lock); in mm_jpeg_session_port_disable()
[all …]
/hardware/intel/common/wrs_omxil_core/utils/src/
Dthread.cpp27 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/QCamera2/stack/common/
Dcam_queue.h40 pthread_mutex_t lock; member
45 pthread_mutex_init(&queue->lock, NULL); in cam_queue_init()
62 pthread_mutex_lock(&queue->lock); in cam_queue_enq()
65 pthread_mutex_unlock(&queue->lock); in cam_queue_enq()
77 pthread_mutex_lock(&queue->lock); in cam_queue_deq()
85 pthread_mutex_unlock(&queue->lock); in cam_queue_deq()
101 pthread_mutex_lock(&queue->lock); in cam_queue_flush()
121 pthread_mutex_unlock(&queue->lock); in cam_queue_flush()
128 pthread_mutex_destroy(&queue->lock); in cam_queue_deinit()
/hardware/libhardware/modules/soundtrigger/
Dsound_trigger_hw.c53 pthread_mutex_t lock; member
65 pthread_mutex_lock(&stdev->lock); in callback_thread_loop()
73 int rc = pthread_cond_timedwait(&stdev->cond, &stdev->lock, &ts); in callback_thread_loop()
99 pthread_mutex_unlock(&stdev->lock); in callback_thread_loop()
126 pthread_mutex_lock(&stdev->lock); in stdev_load_sound_model()
151 pthread_mutex_unlock(&stdev->lock); in stdev_load_sound_model()
162 pthread_mutex_lock(&stdev->lock); in stdev_unload_sound_model()
175 pthread_mutex_unlock(&stdev->lock); in stdev_unload_sound_model()
177 pthread_mutex_lock(&stdev->lock); in stdev_unload_sound_model()
181 pthread_mutex_unlock(&stdev->lock); in stdev_unload_sound_model()
[all …]
/hardware/qcom/camera/QCamera2/stack/mm-jpeg-interface/inc/
Dmm_jpeg_inlines.h62 pthread_mutex_lock(&my_obj->clnt_mgr[client_idx].lock); in mm_jpeg_get_session()
64 pthread_mutex_unlock(&my_obj->clnt_mgr[client_idx].lock); in mm_jpeg_get_session()
87 pthread_mutex_lock(&my_obj->clnt_mgr[client_idx].lock); in mm_jpeg_get_new_session_idx()
92 pthread_mutex_unlock(&my_obj->clnt_mgr[client_idx].lock); in mm_jpeg_get_new_session_idx()
95 pthread_mutex_unlock(&my_obj->clnt_mgr[client_idx].lock); in mm_jpeg_get_new_session_idx()
119 pthread_mutex_lock(&my_obj->clnt_mgr[client_idx].lock); in mm_jpeg_remove_session_idx()
121 pthread_mutex_unlock(&my_obj->clnt_mgr[client_idx].lock); in mm_jpeg_remove_session_idx()
Dmm_jpeg.h139 pthread_mutex_t lock; member
159 pthread_mutex_init(&q->lock, NULL); in cirq_reset()
205 pthread_mutex_lock(&q->lock); \
213 pthread_mutex_unlock(&q->lock); \
232 pthread_mutex_lock(&q->lock); \
234 pthread_mutex_unlock(&q->lock); \
240 pthread_mutex_unlock(&q->lock); \
258 pthread_mutex_t lock; member
299 pthread_mutex_t lock; member
366 pthread_mutex_t lock; /* job lock */ member
/hardware/intel/common/libmix/mix_video/src/
Dmixframemanager.c31 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/
Dradio_hw.c86 pthread_mutex_t lock; member
94 pthread_mutex_t lock; member
252 pthread_mutex_lock(&tuner->lock); in callback_thread_loop()
266 pthread_cond_timedwait(&tuner->cond, &tuner->lock, &ts); in callback_thread_loop()
269 pthread_cond_wait(&tuner->cond, &tuner->lock); in callback_thread_loop()
413 pthread_mutex_unlock(&tuner->lock); in callback_thread_loop()
415 pthread_mutex_lock(&tuner->lock); in callback_thread_loop()
446 pthread_mutex_unlock(&tuner->lock); in callback_thread_loop()
461 pthread_mutex_lock(&stub_tuner->lock); in tuner_set_configuration()
470 pthread_mutex_unlock(&stub_tuner->lock); in tuner_set_configuration()
[all …]
/hardware/libhardware/modules/usbaudio/
Daudio_hal.c66 pthread_mutex_t lock; /* see note below on mutex acquisition order */ member
82 pthread_mutex_t lock; /* see note below on mutex acquisition order */ member
107 pthread_mutex_t lock; /* see note below on mutex acquisition order */ member
218 pthread_mutex_lock(&in->lock); in lock_input_stream()
225 pthread_mutex_lock(&out->lock); in lock_output_stream()
288 pthread_mutex_lock(&out->dev->lock); in out_standby()
290 pthread_mutex_unlock(&out->dev->lock); in out_standby()
293 pthread_mutex_unlock(&out->lock); in out_standby()
321 pthread_mutex_lock(&out->dev->lock); in out_set_parameters()
340 pthread_mutex_unlock(&out->dev->lock); in out_set_parameters()
[all …]
/hardware/qcom/gps/msm8974/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/
Dloc_api_sync_call.c88 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/
Dloc_api_sync_call.c88 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/
Dloc_api_sync_call.c88 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/ti/omap4xxx/camera/OMXCameraAdapter/
DOMX3A.cpp84 Mutex::Autolock lock(m3ASettingsUpdateLock); in setParameters3A() local
285 OMX_BOOL lock = OMX_FALSE; in setParameters3A() local
291 lock = OMX_TRUE; in setParameters3A()
299 if (mParameters3A.ExposureLock != lock) in setParameters3A()
301 mParameters3A.ExposureLock = lock; in setParameters3A()
302 CAMHAL_LOGDB("ExposureLock %d", lock); in setParameters3A()
310 OMX_BOOL lock = OMX_FALSE; in setParameters3A() local
316 lock = OMX_TRUE; in setParameters3A()
323 if (mParameters3A.WhiteBalanceLock != lock) in setParameters3A()
325 mParameters3A.WhiteBalanceLock = lock; in setParameters3A()
[all …]
/hardware/qcom/gps/msm8084/core/
Dgps_extended_c.h389 #define isGpsLockNone(lock) ((lock) == 0) argument
390 #define isGpsLockMO(lock) ((lock) & ((LOC_GPS_LOCK_MASK)1)) argument
391 #define isGpsLockMT(lock) ((lock) & ((LOC_GPS_LOCK_MASK)2)) argument
392 #define isGpsLockAll(lock) (((lock) & ((LOC_GPS_LOCK_MASK)3)) == 3) argument
/hardware/qcom/gps/msm8974/core/
Dgps_extended_c.h389 #define isGpsLockNone(lock) ((lock) == 0) argument
390 #define isGpsLockMO(lock) ((lock) & ((LOC_GPS_LOCK_MASK)1)) argument
391 #define isGpsLockMT(lock) ((lock) & ((LOC_GPS_LOCK_MASK)2)) argument
392 #define isGpsLockAll(lock) (((lock) & ((LOC_GPS_LOCK_MASK)3)) == 3) argument
/hardware/ti/omap4-aah/camera/inc/
DBufferSourceAdapter.h48 android::AutoMutex lock(mReturnFrameMutex); in ReturnFrame()
54 android::AutoMutex lock(mReturnFrameMutex); in ~ReturnFrame()
58 android::AutoMutex lock(mReturnFrameMutex); in signal()
66 android::AutoMutex lock(mReturnFrameMutex); in requestExit()
72 android::AutoMutex lock(mReturnFrameMutex); in threadLoop()
102 android::AutoMutex lock(mFramesMutex); in addFrame()
112 android::AutoMutex lock(mFramesMutex); in requestExit()
125 android::AutoMutex lock(mFramesMutex); in threadLoop()
/hardware/qcom/gps/core/
Dgps_extended_c.h417 #define isGpsLockNone(lock) ((lock) == 0) argument
418 #define isGpsLockMO(lock) ((lock) & ((LOC_GPS_LOCK_MASK)1)) argument
419 #define isGpsLockMT(lock) ((lock) & ((LOC_GPS_LOCK_MASK)2)) argument
420 #define isGpsLockAll(lock) (((lock) & ((LOC_GPS_LOCK_MASK)3)) == 3) argument
/hardware/intel/audio_media/hdmi/
Dtinyaudio_hw.c117 pthread_mutex_t lock; member
128 pthread_mutex_t lock; member
351 pthread_mutex_lock(&out->dev->lock); in out_standby()
352 pthread_mutex_lock(&out->lock); in out_standby()
362 pthread_mutex_unlock(&out->lock); in out_standby()
363 pthread_mutex_unlock(&out->dev->lock); in out_standby()
387 pthread_mutex_lock(&adev->lock); in out_set_parameters()
391 pthread_mutex_unlock(&adev->lock); in out_set_parameters()
403 pthread_mutex_unlock(&adev->lock); in out_set_parameters()
574 pthread_mutex_lock(&out->dev->lock); in out_write()
[all …]
/hardware/ti/omap4-aah/camera/OMXCameraAdapter/
DOMX3A.cpp79 android::AutoMutex lock(m3ASettingsUpdateLock); in setParameters3A() local
302 OMX_BOOL lock = OMX_FALSE; in setParameters3A() local
308 lock = OMX_TRUE; in setParameters3A()
316 if (mParameters3A.ExposureLock != lock) in setParameters3A()
318 mParameters3A.ExposureLock = lock; in setParameters3A()
319 CAMHAL_LOGDB("ExposureLock %d", lock); in setParameters3A()
327 OMX_BOOL lock = OMX_FALSE; in setParameters3A() local
333 lock = OMX_TRUE; in setParameters3A()
340 if (mParameters3A.WhiteBalanceLock != lock) in setParameters3A()
342 mParameters3A.WhiteBalanceLock = lock; in setParameters3A()
[all …]
/hardware/qcom/camera/QCamera2/util/
DQCameraPerf.cpp111 Mutex::Autolock lock(mLock); in lock_init() local
177 Mutex::Autolock lock(mLock); in lock_deinit() local
205 Mutex::Autolock lock(mLock); in isTimerReset() local
256 Mutex::Autolock lock(mLock); in lock_acq_timed() local
312 Mutex::Autolock lock(mLock); in lock_acq() local
359 Mutex::Autolock lock(mLock); in lock_rel_timed() local
400 Mutex::Autolock lock(mLock); in lock_rel() local
/hardware/qcom/audio/hal/audio_extn/
Dsoundtrigger.c45 pthread_mutex_t lock; member
74 pthread_mutex_lock(&st_dev->lock); in audio_hw_call_back()
115 pthread_mutex_unlock(&st_dev->lock); in audio_hw_call_back()
136 pthread_mutex_lock(&st_dev->lock); in audio_extn_sound_trigger_read()
138 pthread_mutex_unlock(&st_dev->lock); in audio_extn_sound_trigger_read()
167 pthread_mutex_lock(&st_dev->lock); in audio_extn_sound_trigger_stop_lab()
169 pthread_mutex_unlock(&st_dev->lock); in audio_extn_sound_trigger_stop_lab()
184 pthread_mutex_lock(&st_dev->lock); in audio_extn_sound_trigger_check_and_get_session()
200 pthread_mutex_unlock(&st_dev->lock); in audio_extn_sound_trigger_check_and_get_session()

12345678