Home
last modified time | relevance | path

Searched refs:mutex (Results 1 – 21 of 21) sorted by relevance

/hardware/ti/omap4xxx/domx/mm_osal/src/
Dtimm_osal_events.c69 pthread_mutex_t mutex; member
98 if (SUCCESS != pthread_mutex_init(&(plEvent->mutex), NULL)) in TIMM_OSAL_EventCreate()
108 pthread_mutex_destroy(&(plEvent->mutex)); in TIMM_OSAL_EventCreate()
142 if (SUCCESS != pthread_mutex_lock(&(plEvent->mutex))) in TIMM_OSAL_EventDelete()
154 if (SUCCESS != pthread_mutex_unlock(&(plEvent->mutex))) in TIMM_OSAL_EventDelete()
160 if (SUCCESS != pthread_mutex_destroy(&(plEvent->mutex))) in TIMM_OSAL_EventDelete()
192 if (SUCCESS != pthread_mutex_lock(&(plEvent->mutex))) in TIMM_OSAL_EventSet()
210 pthread_mutex_unlock(&plEvent->mutex); in TIMM_OSAL_EventSet()
221 pthread_mutex_unlock(&plEvent->mutex); in TIMM_OSAL_EventSet()
225 if (SUCCESS != pthread_mutex_unlock(&plEvent->mutex)) in TIMM_OSAL_EventSet()
[all …]
/hardware/invensense/mlsdk/mllite/
Dmlstates.c58 HANDLE mutex; member
71 return inv_create_mutex(&sStateChangeCallbacks.mutex); in inv_init_state_callbacks()
77 result = inv_destroy_mutex(sStateChangeCallbacks.mutex); in MLStateCloseCallbacks()
181 result = inv_lock_mutex(sStateChangeCallbacks.mutex); in inv_register_state_callback()
207 inv_unlock_mutex(sStateChangeCallbacks.mutex); in inv_register_state_callback()
224 result = inv_lock_mutex(sStateChangeCallbacks.mutex); in inv_unregister_state_callback()
243 inv_unlock_mutex(sStateChangeCallbacks.mutex); in inv_unregister_state_callback()
252 result = inv_lock_mutex(sStateChangeCallbacks.mutex); in inv_run_state_callbacks()
267 inv_unlock_mutex(sStateChangeCallbacks.mutex); in inv_run_state_callbacks()
DmlFIFO.c156 HANDLE mutex; member
532 result = inv_create_mutex(&fifo_rate_obj.mutex); in inv_init_fifo_param()
555 result = inv_destroy_mutex(fifo_rate_obj.mutex); in inv_close_fifo()
2146 result = inv_lock_mutex(fifo_rate_obj.mutex); in inv_register_fifo_rate_process()
2155 inv_unlock_mutex(fifo_rate_obj.mutex); in inv_register_fifo_rate_process()
2186 inv_unlock_mutex(fifo_rate_obj.mutex); in inv_register_fifo_rate_process()
2202 result = inv_lock_mutex(fifo_rate_obj.mutex); in inv_unregister_fifo_rate_process()
2224 inv_unlock_mutex(fifo_rate_obj.mutex); in inv_unregister_fifo_rate_process()
2244 result = inv_lock_mutex(fifo_rate_obj.mutex); in inv_run_fifo_rate_processes()
2264 inv_unlock_mutex(fifo_rate_obj.mutex); in inv_run_fifo_rate_processes()
/hardware/msm7k/libgralloc-qsd8k/
Dgr.h49 pthread_mutex_t mutex; variable
57 inline Locker() { pthread_mutex_init(&mutex, 0); } in Locker()
58 inline ~Locker() { pthread_mutex_destroy(&mutex); } in ~Locker()
59 inline void lock() { pthread_mutex_lock(&mutex); } in lock()
60 inline void unlock() { pthread_mutex_unlock(&mutex); } in unlock()
/hardware/invensense/mlsdk/platform/linux/
Dmlos_linux.c84 inv_error_t inv_create_mutex(HANDLE *mutex) in inv_create_mutex() argument
97 *mutex = (HANDLE)pm; in inv_create_mutex()
108 inv_error_t inv_lock_mutex(HANDLE mutex) in inv_lock_mutex() argument
111 pthread_mutex_t *pm = (pthread_mutex_t*)mutex; in inv_lock_mutex()
126 inv_error_t inv_unlock_mutex(HANDLE mutex) in inv_unlock_mutex() argument
129 pthread_mutex_t *pm = (pthread_mutex_t*)mutex; in inv_unlock_mutex()
/hardware/msm7k/libgralloc/
Dgr.h50 pthread_mutex_t mutex; variable
58 inline Locker() { pthread_mutex_init(&mutex, 0); } in Locker()
59 inline ~Locker() { pthread_mutex_destroy(&mutex); } in ~Locker()
60 inline void lock() { pthread_mutex_lock(&mutex); } in lock()
61 inline void unlock() { pthread_mutex_unlock(&mutex); } in unlock()
/hardware/libhardware/modules/gralloc/
Dgr.h50 pthread_mutex_t mutex; variable
58 inline Locker() { pthread_mutex_init(&mutex, 0); } in Locker()
59 inline ~Locker() { pthread_mutex_destroy(&mutex); } in ~Locker()
60 inline void lock() { pthread_mutex_lock(&mutex); } in lock()
61 inline void unlock() { pthread_mutex_unlock(&mutex); } in unlock()
/hardware/qcom/media/mm-video/vidc/venc/test/
Dqueue.c80 pthread_mutex_lock(&ptr_q->mutex); in queue_get_cmd()
96 pthread_mutex_unlock(&ptr_q->mutex); in queue_get_cmd()
115 pthread_mutex_lock(&ptr_q->mutex); in queue_post_cmdq()
131 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_cmdq()
152 pthread_mutex_lock(&ptr_q->mutex); in queue_post_dataq()
168 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_dataq()
Dvideo_encoder_test.c391 pthread_mutex_init (&queue_ptr->mutex,&init_values); in init_encoder()
799 pthread_mutex_destroy(&init_decode->queue_context.mutex); in deinit_encoder()
/hardware/qcom/media/mm-video/vidc/vdec/src/
Dmessage_queue.c80 pthread_mutex_lock(&ptr_q->mutex); in queue_get_cmd()
96 pthread_mutex_unlock(&ptr_q->mutex); in queue_get_cmd()
115 pthread_mutex_lock(&ptr_q->mutex); in queue_post_cmdq()
131 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_cmdq()
152 pthread_mutex_lock(&ptr_q->mutex); in queue_post_dataq()
168 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_dataq()
/hardware/invensense/mlsdk/platform/include/
Dmlos.h64 inv_error_t inv_create_mutex(HANDLE *mutex);
65 inv_error_t inv_lock_mutex(HANDLE mutex);
66 inv_error_t inv_unlock_mutex(HANDLE mutex);
/hardware/ti/omap3/omx/system/src/openmax_il/omx_core/src/
DOMX_Core.c46 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable
122 if(pthread_mutex_lock(&mutex) != 0) in TIOMX_Init()
136 if(pthread_mutex_unlock(&mutex) != 0) in TIOMX_Init()
177 if(pthread_mutex_lock(&mutex) != 0) in TIOMX_GetHandle()
308 if(pthread_mutex_unlock(&mutex) != 0) in TIOMX_GetHandle()
338 if(pthread_mutex_lock(&mutex) != 0) in TIOMX_FreeHandle()
388 if(pthread_mutex_unlock(&mutex) != 0) in TIOMX_FreeHandle()
411 if(pthread_mutex_lock(&mutex) != 0) { in TIOMX_Deinit()
422 if(pthread_mutex_unlock(&mutex) != 0) { in TIOMX_Deinit()
/hardware/ti/omap4xxx/domx/omx_core/src/
DOMX_Core.c73 pthread_mutex_t mutex; variable
146 pthread_mutex_init(&mutex, NULL); in OMX_Init()
198 if (pthread_mutex_lock(&mutex) != 0) in OMX_GetHandle()
332 if (pthread_mutex_unlock(&mutex) != 0) in OMX_GetHandle()
362 if (pthread_mutex_lock(&mutex) != 0) in OMX_FreeHandle()
396 if (pthread_mutex_unlock(&mutex) != 0) in OMX_FreeHandle()
432 if (pthread_mutex_lock(&mutex) != 0) in OMX_Deinit()
437 if (pthread_mutex_unlock(&mutex) != 0) in OMX_Deinit()
439 if (pthread_mutex_destroy(&mutex) != 0) in OMX_Deinit()
445 if (pthread_mutex_unlock(&mutex) != 0) in OMX_Deinit()
/hardware/ti/omap3/omx/system/src/openmax_il/lcml/src/
DLCML_DspCodec.c176 pthread_mutex_init (&pHandle->mutex, NULL); in GetHandle()
894 pthread_mutex_lock(&phandle->mutex); in QueueBuffer()
1134 pthread_mutex_unlock(&phandle->mutex); in QueueBuffer()
1306 pthread_mutex_lock(&phandle->mutex); in ControlCodec()
1315 pthread_mutex_unlock(&phandle->mutex); in ControlCodec()
1324 pthread_mutex_unlock(&phandle->mutex); in ControlCodec()
1333 pthread_mutex_unlock(&phandle->mutex); in ControlCodec()
1347 pthread_mutex_unlock(&phandle->mutex); in ControlCodec()
1355 pthread_mutex_lock(&phandle->mutex); in ControlCodec()
1380 pthread_mutex_unlock(&phandle->mutex); in ControlCodec()
[all …]
/hardware/qcom/media/mm-video/vidc/vdec/inc/
Dmessage_queue.h53 pthread_mutex_t mutex; member
/hardware/qcom/media/mm-video/vidc/venc/inc/
Dqueue.h53 pthread_mutex_t mutex; member
/hardware/ti/omap3/omx/video/src/openmax_il/video_decode/inc/
DOMX_VideoDec_Utils.h625 pthread_mutex_t mutex; member
1242 pthread_mutex_init (&((_mutex_).mutex), NULL); \
1251 pthread_mutex_destroy (&((_mutex_).mutex)); \
1261 (_mutex_).nErrorExist = pthread_mutex_lock (&(_mutex_).mutex);
1266 (_mutex_).nErrorExist = pthread_mutex_unlock (&(_mutex_).mutex);
1271 (_mutex_).nErrorExist = pthread_mutex_trylock (&(_mutex_).mutex);
1286 (_mutex_).nErrorExist = pthread_cond_wait (&(_mutex_).condition, &(_mutex_).mutex); \
/hardware/ti/omap3/omx/system/src/openmax_il/lcml/inc/
DLCML_DspCodec.h288 pthread_mutex_t mutex; member
/hardware/qcom/media/mm-video/vidc/vdec/test/
Ddecoder_driver_test.c331 pthread_mutex_init (&queue_ptr->mutex,&init_values); in init_decoder()
770 pthread_mutex_destroy(&init_decode->queue_context.mutex); in deinit_decoder()
/hardware/ti/omap3/omx/audio/src/openmax_il/aac_enc/inc/
DOMX_AacEnc_Utils.h721 void AACENC_IncrementBufferCounterByOne(pthread_mutex_t* mutex, OMX_U32 *counter);
/hardware/ti/omap3/omx/audio/src/openmax_il/aac_enc/src/
DOMX_AacEnc_Utils.c3523 void AACENC_IncrementBufferCounterByOne(pthread_mutex_t* mutex, OMX_U32 *counter) in AACENC_IncrementBufferCounterByOne() argument
3525 pthread_mutex_lock(mutex); in AACENC_IncrementBufferCounterByOne()
3527 pthread_mutex_unlock(mutex); in AACENC_IncrementBufferCounterByOne()