Home
last modified time | relevance | path

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

12345678910

/hardware/intel/common/libwsbm/src/
Dwsbm_driver.c51 n_mutexInit(struct _WsbmMutex *mutex, struct _WsbmThreadFuncs *func) in n_mutexInit() argument
53 mutex->func = func; in n_mutexInit()
65 n_mutexNone(struct _WsbmMutex *mutex __attribute__ ((unused))) in n_mutexNone() argument
77 n_condWait(struct _WsbmCond *cond __attribute__ ((unused)), struct _WsbmMutex *mutex __attribute__ … in n_condWait() argument
109 pthread_mutex_t mutex; member
143 p_mutexInit(struct _WsbmMutex *mutex, struct _WsbmThreadFuncs *func) in p_mutexInit() argument
145 struct _WsbmPMutex *pMutex = pMutexConvert(mutex); in p_mutexInit()
151 pthread_mutex_init(&pMutex->mutex, NULL); in p_mutexInit()
156 p_mutexFree(struct _WsbmMutex *mutex) in p_mutexFree() argument
158 struct _WsbmPMutex *pMutex = pMutexConvert(mutex); in p_mutexFree()
[all …]
Dwsbm_userpool.c99 struct _WsbmMutex mutex; member
127 WSBM_COND_WAIT(&vBuf->event, &buf->mutex); in waitIdleLocked()
134 WSBM_MUTEX_UNLOCK(&buf->mutex); in waitIdleLocked()
137 WSBM_MUTEX_LOCK(&buf->mutex); in waitIdleLocked()
153 WSBM_MUTEX_UNLOCK(&buf->mutex); in pool_waitIdle()
155 WSBM_MUTEX_UNLOCK(&buf->mutex); in pool_waitIdle()
174 WSBM_MUTEX_UNLOCK(&p->mutex); in evict_lru()
175 WSBM_MUTEX_LOCK(&vBuf->buf.mutex); in evict_lru()
176 WSBM_MUTEX_LOCK(&p->mutex); in evict_lru()
199 WSBM_MUTEX_UNLOCK(&vBuf->buf.mutex); in evict_lru()
[all …]
/hardware/qcom/camera/msm8998/QCamera2/stack/common/
Dcam_semaphore.h49 pthread_mutex_t mutex; member
55 pthread_mutex_init(&(s->mutex), NULL); in cam_sem_init()
62 pthread_mutex_lock(&(s->mutex)); in cam_sem_post()
65 pthread_mutex_unlock(&(s->mutex)); in cam_sem_post()
71 pthread_mutex_lock(&(s->mutex)); in cam_sem_wait()
73 rc = pthread_cond_wait(&(s->cond), &(s->mutex)); in cam_sem_wait()
75 pthread_mutex_unlock(&(s->mutex)); in cam_sem_wait()
82 pthread_mutex_lock(&(s->mutex)); in cam_sem_timedwait()
84 rc = pthread_cond_timedwait(&(s->cond), &(s->mutex), abs_timeout); in cam_sem_timedwait()
89 pthread_mutex_unlock(&(s->mutex)); in cam_sem_timedwait()
[all …]
/hardware/interfaces/bluetooth/1.0/default/test/
Dh4_protocol_unittest.cc65 ACTION_P2(Notify, mutex, condition) { in ACTION_P2() argument
67 std::unique_lock<std::mutex> lock(*mutex); in ACTION_P2()
126 std::mutex mutex; in WriteAndExpectInboundAclData() local
130 .WillOnce(Notify(&mutex, &done)); in WriteAndExpectInboundAclData()
136 std::unique_lock<std::mutex> lock(mutex); in WriteAndExpectInboundAclData()
151 std::mutex mutex; in WriteAndExpectInboundScoData() local
155 .WillOnce(Notify(&mutex, &done)); in WriteAndExpectInboundScoData()
161 std::unique_lock<std::mutex> lock(mutex); in WriteAndExpectInboundScoData()
175 std::mutex mutex; in WriteAndExpectInboundEvent() local
179 .WillOnce(Notify(&mutex, &done)); in WriteAndExpectInboundEvent()
[all …]
Dmct_protocol_unittest.cc62 ACTION_P2(Notify, mutex, condition) { in ACTION_P2() argument
64 std::unique_lock<std::mutex> lock(*mutex); in ACTION_P2()
132 std::mutex mutex; in WriteAndExpectInboundAclData() local
136 .WillOnce(Notify(&mutex, &done)); in WriteAndExpectInboundAclData()
142 std::unique_lock<std::mutex> lock(mutex); in WriteAndExpectInboundAclData()
157 std::mutex mutex; in WriteAndExpectInboundEvent() local
161 .WillOnce(Notify(&mutex, &done)); in WriteAndExpectInboundEvent()
167 std::unique_lock<std::mutex> lock(mutex); in WriteAndExpectInboundEvent()
/hardware/interfaces/graphics/composer/2.1/utils/vts/
DGraphicsComposerCallback.cpp27 std::lock_guard<std::mutex> lock(mMutex); in setVsyncAllowed()
32 std::lock_guard<std::mutex> lock(mMutex); in getDisplays()
37 std::lock_guard<std::mutex> lock(mMutex); in getInvalidHotplugCount()
42 std::lock_guard<std::mutex> lock(mMutex); in getInvalidRefreshCount()
47 std::lock_guard<std::mutex> lock(mMutex); in getInvalidVsyncCount()
52 std::lock_guard<std::mutex> lock(mMutex); in onHotplug()
68 std::lock_guard<std::mutex> lock(mMutex); in onRefresh()
78 std::lock_guard<std::mutex> lock(mMutex); in onVsync()
/hardware/qcom/display/msm8909w_3100/sdm/include/utils/
Dsync_task.h58 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in SyncTask()
76 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in PerformTask()
81 std::unique_lock<std::mutex> worker_lock(worker_mutex_); in PerformTask()
103 std::unique_lock<std::mutex> worker_lock(worker_mutex_); in OnThreadCallback()
108 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in OnThreadCallback()
124 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in OnThreadCallback()
133 std::mutex caller_mutex_;
134 std::mutex worker_mutex_;
/hardware/qcom/display/msm8998/sdm/include/utils/
Dsync_task.h58 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in SyncTask()
76 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in PerformTask()
81 std::unique_lock<std::mutex> worker_lock(worker_mutex_); in PerformTask()
103 std::unique_lock<std::mutex> worker_lock(worker_mutex_); in OnThreadCallback()
108 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in OnThreadCallback()
124 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in OnThreadCallback()
133 std::mutex caller_mutex_;
134 std::mutex worker_mutex_;
/hardware/qcom/display/msm8909/sdm/include/utils/
Dsync_task.h58 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in SyncTask()
76 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in PerformTask()
81 std::unique_lock<std::mutex> worker_lock(worker_mutex_); in PerformTask()
103 std::unique_lock<std::mutex> worker_lock(worker_mutex_); in OnThreadCallback()
108 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in OnThreadCallback()
124 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in OnThreadCallback()
133 std::mutex caller_mutex_;
134 std::mutex worker_mutex_;
/hardware/qcom/camera/msm8998/QCamera2/HAL3/
DQCamera3HdrPlusListenerThread.cpp38 std::unique_lock<std::mutex> l(mCallbackLock); in onOpened()
49 std::unique_lock<std::mutex> l(mCallbackLock); in onOpenFailed()
61 std::unique_lock<std::mutex> l(mCallbackLock); in onFatalError()
73 std::unique_lock<std::mutex> l(mCallbackLock); in onCaptureResult()
87 std::unique_lock<std::mutex> l(mCallbackLock); in onFailedCaptureResult()
101 std::unique_lock<std::mutex> l(mCallbackLock); in onShutter()
112 std::unique_lock<std::mutex> l(mCallbackLock); in onNextCaptureReady()
124 std::unique_lock<std::mutex> l(mCallbackLock); in onPostview()
142 std::unique_lock<std::mutex> l(mCallbackLock); in requestExit()
151 std::unique_lock<std::mutex> lock(mCallbackLock); in handleFatalError()
[all …]
/hardware/qcom/media/msm8974/mm-video-legacy/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()
121 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_cmdq()
133 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_cmdq()
154 pthread_mutex_lock(&ptr_q->mutex); in queue_post_dataq()
160 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_dataq()
172 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_dataq()
/hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/src/
Dmessage_queue.c74 pthread_mutex_lock(&ptr_q->mutex); in queue_get_cmd()
87 pthread_mutex_unlock(&ptr_q->mutex); in queue_get_cmd()
106 pthread_mutex_lock(&ptr_q->mutex); in queue_post_cmdq()
111 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_cmdq()
121 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_cmdq()
142 pthread_mutex_lock(&ptr_q->mutex); in queue_post_dataq()
147 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_dataq()
157 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_dataq()
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/src/
Dmessage_queue.c74 pthread_mutex_lock(&ptr_q->mutex); in queue_get_cmd()
87 pthread_mutex_unlock(&ptr_q->mutex); in queue_get_cmd()
106 pthread_mutex_lock(&ptr_q->mutex); in queue_post_cmdq()
111 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_cmdq()
121 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_cmdq()
142 pthread_mutex_lock(&ptr_q->mutex); in queue_post_dataq()
147 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_dataq()
157 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_dataq()
/hardware/libhardware/modules/gralloc/
Dgr.h46 pthread_mutex_t mutex; variable
54 inline Locker() { pthread_mutex_init(&mutex, 0); } in Locker()
55 inline ~Locker() { pthread_mutex_destroy(&mutex); } in ~Locker()
56 inline void lock() { pthread_mutex_lock(&mutex); } in lock()
57 inline void unlock() { pthread_mutex_unlock(&mutex); } in unlock()
/hardware/invensense/6515/libsensors_iio/software/core/mllite/linux/
Dmlos_linux.c71 inv_error_t inv_create_mutex(HANDLE *mutex) in inv_create_mutex() argument
84 *mutex = (HANDLE)pm; in inv_create_mutex()
95 inv_error_t inv_lock_mutex(HANDLE mutex) in inv_lock_mutex() argument
98 pthread_mutex_t *pm = (pthread_mutex_t *)mutex; in inv_lock_mutex()
113 inv_error_t inv_unlock_mutex(HANDLE mutex) in inv_unlock_mutex() argument
116 pthread_mutex_t *pm = (pthread_mutex_t *)mutex; in inv_unlock_mutex()
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/linux/
Dmlos_linux.c71 inv_error_t inv_create_mutex(HANDLE *mutex) in inv_create_mutex() argument
84 *mutex = (HANDLE)pm; in inv_create_mutex()
95 inv_error_t inv_lock_mutex(HANDLE mutex) in inv_lock_mutex() argument
98 pthread_mutex_t *pm = (pthread_mutex_t *)mutex; in inv_lock_mutex()
113 inv_error_t inv_unlock_mutex(HANDLE mutex) in inv_unlock_mutex() argument
116 pthread_mutex_t *pm = (pthread_mutex_t *)mutex; in inv_unlock_mutex()
/hardware/interfaces/broadcastradio/common/tests/
DWorkerThread_test.cpp31 using std::mutex;
76 mutex mut; in TEST()
82 lock_guard<mutex> lk(mut); in TEST()
89 lock_guard<mutex> lk(mut); in TEST()
96 lock_guard<mutex> lk(mut); in TEST()
103 lock_guard<mutex> lk(mut); in TEST()
110 lock_guard<mutex> lk(mut); in TEST()
/hardware/interfaces/broadcastradio/1.1/default/
DTuner.cpp50 using std::mutex;
71 lock_guard<mutex> lk(mMut); in forceClose()
106 lock_guard<mutex> lk(mMut); in setConfiguration()
117 lock_guard<mutex> lk(mMut); in setConfiguration()
127 lock_guard<mutex> lk(mMut); in getConfiguration()
178 lock_guard<mutex> lk(mMut); in scan()
223 lock_guard<mutex> lk(mMut); in scan()
233 lock_guard<mutex> lk(mMut); in step()
252 lock_guard<mutex> lk(mMut); in step()
276 lock_guard<mutex> lk(mMut); in tune()
[all …]
/hardware/qcom/display/msm8960/libgralloc/
Dgr.h65 pthread_mutex_t mutex; variable
73 inline Locker() { pthread_mutex_init(&mutex, 0); } in Locker()
74 inline ~Locker() { pthread_mutex_destroy(&mutex); } in ~Locker()
75 inline void lock() { pthread_mutex_lock(&mutex); } in lock()
76 inline void unlock() { pthread_mutex_unlock(&mutex); } in unlock()
/hardware/qcom/display/msm8226/libgralloc/
Dgr.h77 pthread_mutex_t mutex; variable
87 pthread_mutex_init(&mutex, 0); in Locker()
91 pthread_mutex_destroy(&mutex); in ~Locker()
94 inline void lock() { pthread_mutex_lock(&mutex); } in lock()
95 inline void wait() { pthread_cond_wait(&cond, &mutex); } in wait()
96 inline void unlock() { pthread_mutex_unlock(&mutex); } in unlock()
/hardware/qcom/media/msm8974/mm-video-legacy/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()
/hardware/qcom/data/ipacfg-mgr/msm8998/ipacm/src/
DIPACM_CmdQueue.cpp45 pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable
145 if(pthread_mutex_lock(&mutex) != 0) in Process()
171 if(pthread_cond_wait(&cond_var, &mutex) != 0) in Process()
175 if(pthread_mutex_unlock(&mutex) != 0) in Process()
184 if(pthread_mutex_unlock(&mutex) != 0) in Process()
193 if(pthread_mutex_unlock(&mutex) != 0) in Process()
/hardware/interfaces/broadcastradio/common/utils/
DWorkerThread.cpp30 using std::mutex;
44 lock_guard<mutex> lk(mMut); in ~WorkerThread()
56 lock_guard<mutex> lk(mMut); in schedule()
64 lock_guard<mutex> lk(mMut); in cancelAll()
71 unique_lock<mutex> lk(mMut); in threadLoop()
/hardware/qcom/display/msm8909w_3100/libdrmutils/
Ddrm_lib_loader.cpp36 using std::mutex;
42 mutex DRMLibLoader::s_lock;
45 lock_guard<mutex> obj(s_lock); in GetInstance()
55 lock_guard<mutex> obj(s_lock); in Destroy()
/hardware/qcom/display/msm8909/libdrmutils/
Ddrm_lib_loader.cpp36 using std::mutex;
42 mutex DRMLibLoader::s_lock;
45 lock_guard<mutex> obj(s_lock); in GetInstance()
55 lock_guard<mutex> obj(s_lock); in Destroy()

12345678910