Searched defs:lock (Results 51 - 75 of 78) sorted by relevance

1234

/hardware/qcom/display/msm8909/libgralloc/
H A Dmapper.cpp178 * If the buffer has been mapped during a lock operation, it's time
201 * If the buffer has been mapped during a lock operation, it's time
234 pthread_mutex_t* const lock = &sMapLock; local
235 pthread_mutex_lock(lock);
237 pthread_mutex_unlock(lock);
/hardware/qcom/display/msm8960/libgralloc/
H A Dmapper.cpp160 * If the buffer has been mapped during a lock operation, it's time
179 * If the buffer has been mapped during a lock operation, it's time
212 pthread_mutex_t* const lock = &sMapLock; local
213 pthread_mutex_lock(lock);
215 pthread_mutex_unlock(lock);
/hardware/qcom/display/msm8998/libgralloc/
H A Dmapper.cpp189 * If the buffer has been mapped during a lock operation, it's time
205 * If the buffer has been mapped during a lock operation, it's time
225 pthread_mutex_t* const lock = &sMapLock; local
226 pthread_mutex_lock(lock);
228 pthread_mutex_unlock(lock);
/hardware/interfaces/graphics/allocator/2.0/default/
H A DGralloc1On0Adapter.cpp153 lockHook<void*, &Gralloc1On0Adapter::lock>);
199 std::lock_guard<std::mutex> lock(mDescriptorMutex);
213 std::lock_guard<std::mutex> lock(mDescriptorMutex);
276 std::lock_guard<std::mutex> lock(mBufferMutex);
328 std::lock_guard<std::mutex> lock(mBufferMutex);
336 std::lock_guard<std::mutex> lock(mBufferMutex);
364 std::lock_guard<std::mutex> lock(mBufferMutex);
433 gralloc1_error_t Gralloc1On0Adapter::lock( function in class:android::hardware::Gralloc1On0Adapter
449 syncWaitForever(acquireFence, "Gralloc1On0Adapter::lock");
451 int result = mModule->lock(mModul
[all...]
/hardware/libhardware/modules/radio/
H A Dradio_hw.c92 pthread_mutex_t lock; member in struct:stub_radio_tuner
100 pthread_mutex_t lock; member in struct:stub_radio_device
125 /* must be called with out->lock locked */
263 pthread_mutex_lock(&tuner->lock);
266 // ea announcements at random. They are access protected by tuner->lock.
281 pthread_cond_timedwait(&tuner->cond, &tuner->lock, &ts);
284 pthread_cond_wait(&tuner->cond, &tuner->lock);
451 pthread_mutex_unlock(&tuner->lock);
453 pthread_mutex_lock(&tuner->lock);
484 pthread_mutex_unlock(&tuner->lock);
[all...]
/hardware/qcom/audio/post_proc/
H A Dbundle.c65 * lock must be held when modifying or accessing
68 pthread_mutex_t lock; variable
78 pthread_mutex_init(&lock, NULL);
192 pthread_mutex_lock(&lock);
240 pthread_mutex_unlock(&lock);
257 pthread_mutex_lock(&lock);
282 pthread_mutex_unlock(&lock);
439 pthread_mutex_lock(&lock);
444 pthread_mutex_unlock(&lock);
463 pthread_mutex_lock(&lock);
[all...]
/hardware/qcom/display/msm8994/libgralloc/
H A Dmapper.cpp191 * If the buffer has been mapped during a lock operation, it's time
207 * If the buffer has been mapped during a lock operation, it's time
227 pthread_mutex_t* const lock = &sMapLock; local
228 pthread_mutex_lock(lock);
230 pthread_mutex_unlock(lock);
588 // TODO lock RGB as a flexible format
/hardware/qcom/display/msm8996/libgralloc/
H A Dmapper.cpp191 * If the buffer has been mapped during a lock operation, it's time
207 * If the buffer has been mapped during a lock operation, it's time
227 pthread_mutex_t* const lock = &sMapLock; local
228 pthread_mutex_lock(lock);
230 pthread_mutex_unlock(lock);
639 // TODO lock RGB as a flexible format
/hardware/qcom/wlan/qcwcn/wifi_hal/
H A Dring_buffer.cpp81 inline void rb_lock(pthread_mutex_t *lock) argument
83 int error = pthread_mutex_lock(lock);
86 ALOGE("Failed to acquire lock with err %d", error);
87 // TODO Handle the lock failure
90 inline void rb_unlock(pthread_mutex_t *lock) argument
92 int error = pthread_mutex_unlock(lock);
95 ALOGE("Failed to release lock with err %d", error);
125 // TODO handle lock initialization failure
140 // TODO handle the lock destroy failure
282 /* don't use lock whil
[all...]
/hardware/libhardware/modules/audio_remote_submix/
H A Daudio_hw.cpp172 // Device lock, also used to protect access to submix_audio_device from the input and output
174 pthread_mutex_t lock; member in struct:android::submix_audio_device
357 // Must be called with lock held on the submix_audio_device
460 // Must be called with lock held on the submix_audio_device
485 // Must be called with lock held on the submix_audio_device
528 // Must be called with lock held on the submix_audio_device
571 // Must be called with lock held on the submix_audio_device
701 pthread_mutex_lock(&rsxadev->lock);
706 pthread_mutex_unlock(&rsxadev->lock);
729 pthread_mutex_lock(&rsxadev->lock);
[all...]
/hardware/libhardware/tests/hwc/
H A Dcnativewindow.c63 pthread_mutex_t lock; member in struct:CNativeWindow
135 pthread_mutex_lock(&win->lock);
138 pthread_cond_wait(&win->cvar, &win->lock);
146 pthread_mutex_unlock(&win->lock);
242 pthread_mutex_lock(&win->lock);
247 pthread_mutex_unlock(&win->lock);
257 pthread_mutex_lock(&win->lock);
259 pthread_mutex_unlock(&win->lock);
543 pthread_mutex_init(&win->lock, NULL);
/hardware/qcom/gps/loc_api/libloc_api_50001/
H A DLocEngAdapter.h315 /*Values for lock
316 1 = Do not lock any position sessions
321 inline int setGpsLock(LOC_GPS_LOCK_MASK lock) argument
323 return mLocApi->setGpsLock(lock);
326 int setGpsLockMsg(LOC_GPS_LOCK_MASK lock);
330 Current value of GPS lock on success
/hardware/qcom/gps/msm8994/loc_api/libloc_api_50001/
H A DLocEngAdapter.h315 /*Values for lock
316 1 = Do not lock any position sessions
321 inline int setGpsLock(LOC_GPS_LOCK_MASK lock) argument
323 return mLocApi->setGpsLock(lock);
326 int setGpsLockMsg(LOC_GPS_LOCK_MASK lock);
330 Current value of GPS lock on success
/hardware/intel/audio_media/hdmi/
H A Dtinyaudio_hw.c117 pthread_mutex_t lock; member in struct:audio_device
128 pthread_mutex_t lock; member in struct:stream_out
351 pthread_mutex_lock(&out->dev->lock);
352 pthread_mutex_lock(&out->lock);
362 pthread_mutex_unlock(&out->lock);
363 pthread_mutex_unlock(&out->dev->lock);
387 pthread_mutex_lock(&adev->lock);
391 pthread_mutex_unlock(&adev->lock);
403 pthread_mutex_unlock(&adev->lock);
574 pthread_mutex_lock(&out->dev->lock);
[all...]
/hardware/libhardware/modules/soundtrigger/
H A Dsound_trigger_hw.c113 pthread_mutex_t lock; member in struct:stub_sound_trigger_device
537 // Note: Since we acquire a lock inside this loop, do not use break or other
538 // exit methods without releasing this lock.
542 pthread_mutex_lock(&stdev->lock);
570 pthread_mutex_unlock(&stdev->lock);
616 pthread_mutex_lock(&stdev->lock);
619 pthread_mutex_unlock(&stdev->lock);
624 pthread_mutex_unlock(&stdev->lock);
632 pthread_mutex_unlock(&stdev->lock);
647 pthread_mutex_unlock(&stdev->lock);
[all...]
/hardware/libhardware/modules/usbaudio/
H A Daudio_hal.c54 pthread_mutex_t lock; /* see note below on mutex acquisition order */ member in struct:audio_device
64 /* lock input & output sample rates */
74 pthread_mutex_t lock; /* see note below on mutex acquisition order */ member in struct:stream_lock
75 pthread_mutex_t pre_lock; /* acquire before lock to avoid DOS by playback thread */
81 struct stream_lock lock; member in struct:stream_out
85 struct audio_device *adev; /* hardware information - only using this for the lock */
112 struct stream_lock lock; member in struct:stream_in
116 struct audio_device *adev; /* hardware information - only using this for the lock */
147 * stream pre_lock is always acquired before stream lock to prevent starvation of control thread by
151 static void stream_lock_init(struct stream_lock *lock) { argument
156 stream_lock(struct stream_lock *lock) argument
162 stream_unlock(struct stream_lock *lock) argument
[all...]
/hardware/qcom/gps/msm8084/loc_api/libloc_api_50001/
H A DLocEngAdapter.h317 /*Values for lock
318 1 = Do not lock any position sessions
323 inline int setGpsLock(LOC_GPS_LOCK_MASK lock) argument
325 return mLocApi->setGpsLock(lock);
328 int setGpsLockMsg(LOC_GPS_LOCK_MASK lock);
332 Current value of GPS lock on success
/hardware/qcom/gps/msm8909/loc_api/libloc_api_50001/
H A DLocEngAdapter.h320 /*Values for lock
321 1 = Do not lock any position sessions
326 inline int setGpsLock(LOC_GPS_LOCK_MASK lock) argument
328 return mLocApi->setGpsLock(lock);
331 int setGpsLockMsg(LOC_GPS_LOCK_MASK lock);
335 Current value of GPS lock on success
/hardware/qcom/gps/msm8996/loc_api/libloc_api_50001/
H A DLocEngAdapter.h320 /*Values for lock
321 1 = Do not lock any position sessions
326 inline int setGpsLock(LOC_GPS_LOCK_MASK lock) argument
328 return mLocApi->setGpsLock(lock);
331 int setGpsLockMsg(LOC_GPS_LOCK_MASK lock);
335 Current value of GPS lock on success
/hardware/interfaces/wifi/1.0/default/
H A Dwifi_legacy_hal.cpp59 const auto lock = hidl_sync_util::acquireGlobalLock(); local
87 const auto lock = hidl_sync_util::acquireGlobalLock(); local
99 const auto lock = hidl_sync_util::acquireGlobalLock(); local
124 const auto lock = hidl_sync_util::acquireGlobalLock(); local
137 const auto lock = hidl_sync_util::acquireGlobalLock(); local
151 const auto lock = hidl_sync_util::acquireGlobalLock(); local
164 const auto lock = hidl_sync_util::acquireGlobalLock(); local
178 const auto lock = hidl_sync_util::acquireGlobalLock(); local
187 const auto lock = hidl_sync_util::acquireGlobalLock(); local
195 const auto lock local
204 const auto lock = hidl_sync_util::acquireGlobalLock(); local
213 const auto lock = hidl_sync_util::acquireGlobalLock(); local
221 const auto lock = hidl_sync_util::acquireGlobalLock(); local
230 const auto lock = hidl_sync_util::acquireGlobalLock(); local
238 const auto lock = hidl_sync_util::acquireGlobalLock(); local
246 const auto lock = hidl_sync_util::acquireGlobalLock(); local
255 const auto lock = hidl_sync_util::acquireGlobalLock(); local
264 const auto lock = hidl_sync_util::acquireGlobalLock(); local
272 const auto lock = hidl_sync_util::acquireGlobalLock(); local
281 const auto lock = hidl_sync_util::acquireGlobalLock(); local
290 const auto lock = hidl_sync_util::acquireGlobalLock(); local
299 const auto lock = hidl_sync_util::acquireGlobalLock(); local
308 const auto lock = hidl_sync_util::acquireGlobalLock(); local
[all...]
/hardware/qcom/audio/hal/
H A Daudio_hw.h172 pthread_mutex_t lock; /* see note below on mutex acquisition order */ member in struct:stream_out
173 pthread_mutex_t pre_lock; /* acquire before lock to avoid DOS by playback thread */
216 pthread_mutex_t lock; /* see note below on mutex acquisition order */ member in struct:stream_in
217 pthread_mutex_t pre_lock; /* acquire before lock to avoid DOS by capture thread */
280 pthread_mutex_t lock; /* see note below on mutex acquisition order */ member in struct:audio_device
/hardware/qcom/audio/visualizer/
H A Doffload_visualizer.c160 /* lock must be held when modifying or accessing created_effects_list or active_outputs_list */
161 pthread_mutex_t lock; variable
163 * Locking order: thread_lock -> lock */
210 pthread_mutex_init(&lock, NULL);
338 pthread_mutex_lock(&lock);
347 pthread_mutex_unlock(&lock);
380 pthread_cond_wait(&cond, &lock);
385 pthread_mutex_unlock(&lock);
387 pthread_mutex_lock(&lock);
417 pthread_mutex_unlock(&lock);
[all...]
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/venc/inc/
H A Dvideo_encoder_device_v4l2.h278 pthread_mutex_t lock; member in class:encExtradata
398 pthread_mutex_t lock; member in class:venc_dev::venc_dev_vqzip
/hardware/qcom/media/msm8998/mm-video-v4l2/vidc/venc/inc/
H A Dvideo_encoder_device_v4l2.h386 pthread_mutex_t lock; member in class:venc_dev::venc_dev_vqzip
405 pthread_mutex_t lock; member in class:venc_dev::venc_dev_pq
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/vdec/test/
H A Domx_vdec_test.cpp206 pthread_mutex_t lock; variable
385 pthread_mutex_lock(&lock);
387 pthread_cond_wait(&cond, &lock);
390 pthread_mutex_unlock(&lock);
396 pthread_mutex_lock(&lock);
401 pthread_mutex_unlock(&lock);
1393 pthread_mutex_init(&lock, 0);
1451 pthread_mutex_destroy(&lock);

Completed in 881 milliseconds

1234