Home
last modified time | relevance | path

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

12

/device/asus/flo/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()
70 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_deq()
78 pthread_mutex_unlock(&queue->lock); in mm_jpeg_queue_deq()
92 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_get_size()
94 pthread_mutex_unlock(&queue->lock); in mm_jpeg_queue_get_size()
103 pthread_mutex_destroy(&queue->lock); in mm_jpeg_queue_deinit()
114 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_flush()
132 pthread_mutex_unlock(&queue->lock); in mm_jpeg_queue_flush()
[all …]
Dmm_jpeg.c137 pthread_mutex_init(&q->lock, NULL); in cirq_reset()
183 pthread_mutex_lock(&q->lock); \
191 pthread_mutex_unlock(&q->lock); \
210 pthread_mutex_lock(&q->lock); \
212 pthread_mutex_unlock(&q->lock); \
218 pthread_mutex_unlock(&q->lock); \
383 pthread_mutex_lock(&p_session->lock); in mm_jpeg_session_change_state()
388 pthread_mutex_unlock(&p_session->lock); in mm_jpeg_session_change_state()
393 pthread_mutex_unlock(&p_session->lock); in mm_jpeg_session_change_state()
402 pthread_mutex_unlock(&p_session->lock); in mm_jpeg_session_change_state()
[all …]
/device/lge/mako/camera/QCamera/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()
70 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_deq()
78 pthread_mutex_unlock(&queue->lock); in mm_jpeg_queue_deq()
92 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_get_size()
94 pthread_mutex_unlock(&queue->lock); in mm_jpeg_queue_get_size()
103 pthread_mutex_destroy(&queue->lock); in mm_jpeg_queue_deinit()
114 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_flush()
132 pthread_mutex_unlock(&queue->lock); in mm_jpeg_queue_flush()
/device/asus/flo/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()
/device/asus/grouper/audio/
Daudio_hw.c100 pthread_mutex_t lock; /* see note below on mutex acquisition order */ member
116 pthread_mutex_t lock; /* see note below on mutex acquisition order */ member
136 pthread_mutex_t lock; /* see note below on mutex acquisition order */ member
285 pthread_mutex_lock(&in->lock); in start_output_stream()
291 pthread_mutex_unlock(&in->lock); in start_output_stream()
353 pthread_mutex_lock(&out->lock); in start_input_stream()
359 pthread_mutex_unlock(&out->lock); in start_input_stream()
530 pthread_mutex_lock(&out->dev->lock); in out_standby()
531 pthread_mutex_lock(&out->lock); in out_standby()
533 pthread_mutex_unlock(&out->lock); in out_standby()
[all …]
/device/lge/mako/camera/QCamera/stack/mm-camera-interface/src/
Dmm_camera_data.c51 pthread_mutex_init(&queue->lock, NULL); in mm_camera_queue_init()
69 pthread_mutex_lock(&queue->lock); in mm_camera_queue_enq()
72 pthread_mutex_unlock(&queue->lock); in mm_camera_queue_enq()
85 pthread_mutex_lock(&queue->lock); in mm_camera_queue_deq()
93 pthread_mutex_unlock(&queue->lock); in mm_camera_queue_deq()
106 pthread_mutex_destroy(&queue->lock); in mm_camera_queue_deinit()
117 pthread_mutex_lock(&queue->lock); in mm_camera_queue_flush()
136 pthread_mutex_unlock(&queue->lock); in mm_camera_queue_flush()
/device/samsung/manta/audio/
Daudio_hw.c124 pthread_mutex_t lock; /* see note below on mutex acquisition order */ member
150 pthread_mutex_t lock; /* see note below on mutex acquisition order */ member
172 pthread_mutex_t lock; /* see note below on mutex acquisition order */ member
587 pthread_mutex_lock(&adev->lock); in bubblelevel_callback()
593 pthread_mutex_unlock(&adev->lock); in bubblelevel_callback()
616 pthread_mutex_lock(&out->lock); in force_non_hdmi_out_standby()
618 pthread_mutex_unlock(&out->lock); in force_non_hdmi_out_standby()
1005 pthread_mutex_lock(&out->dev->lock); in out_standby()
1006 pthread_mutex_lock(&out->lock); in out_standby()
1010 pthread_mutex_unlock(&out->lock); in out_standby()
[all …]
/device/generic/goldfish/audio/
Daudio_hw.c45 pthread_mutex_t lock; member
189 pthread_mutex_lock(&adev->lock); in out_write()
192 pthread_mutex_unlock(&adev->lock); in out_write()
341 pthread_mutex_lock(&adev->lock); in in_read()
347 pthread_mutex_unlock(&adev->lock); in in_read()
380 pthread_mutex_lock(&adev->lock); in adev_open_output_stream()
424 pthread_mutex_unlock(&adev->lock); in adev_open_output_stream()
434 pthread_mutex_lock(&adev->lock); in adev_close_output_stream()
439 pthread_mutex_unlock(&adev->lock); in adev_close_output_stream()
499 pthread_mutex_lock(&adev->lock); in adev_set_mic_mute()
[all …]
/device/generic/goldfish/camera/fake-pipeline2/
DJpegCompressor.cpp38 Mutex::Autolock lock(mMutex); in ~JpegCompressor() local
46 Mutex::Autolock lock(mMutex); in start() local
74 Mutex::Autolock lock(mMutex); in compressSynchronous() local
206 Mutex::Autolock lock(mBusyMutex); in isStreamInUse() local
217 Mutex::Autolock lock(mBusyMutex); in waitForDone() local
240 Mutex::Autolock lock(mBusyMutex); in cleanUp() local
DSensor.cpp151 Mutex::Autolock lock(mControlMutex); in setExposureTime() local
157 Mutex::Autolock lock(mControlMutex); in setFrameDuration() local
163 Mutex::Autolock lock(mControlMutex); in setSensitivity() local
169 Mutex::Autolock lock(mControlMutex); in setDestinationBuffers() local
174 Mutex::Autolock lock(mControlMutex); in setFrameNumber() local
180 Mutex::Autolock lock(mControlMutex); in waitForVSync() local
193 Mutex::Autolock lock(mReadoutMutex); in waitForNewFrame() local
217 Mutex::Autolock lock(mControlMutex); in setSensorListener() local
247 Mutex::Autolock lock(mControlMutex); in threadLoop() local
290 Mutex::Autolock lock(mReadoutMutex); in threadLoop() local
/device/asus/flo/camera/QCamera2/stack/mm-jpeg-interface/inc/
Dmm_jpeg.h55 pthread_mutex_t lock; member
72 pthread_mutex_t lock; member
104 pthread_mutex_t lock; member
142 pthread_mutex_t lock; /* job lock */ member
/device/samsung/manta/power/
Dpower_manta.c36 pthread_mutex_t lock; member
148 pthread_mutex_lock(&manta->lock); in boostpulse_open()
162 pthread_mutex_unlock(&manta->lock); in boostpulse_open()
215 lock: PTHREAD_MUTEX_INITIALIZER,
/device/lge/mako/camera/
DQCameraHWI_Preview.cpp66 Mutex::Autolock lock(mStopCallbackLock); in setPreviewWindow() local
106 mHalCamCtrl->mPreviewMemoryLock.lock(); in getBufferFromSurface()
260 mHalCamCtrl->mPreviewMemoryLock.lock(); in putBufferToSurface()
335 mHalCamCtrl->mPreviewMemoryLock.lock(); in getBufferNoDisplay()
381 mHalCamCtrl->mPreviewMemoryLock.lock(); in freeBufferNoDisplay()
414 mDisplayLock.lock(); in notifyROIEvent()
425 mHalCamCtrl->mCallbackLock.lock(); in notifyROIEvent()
439 mDisplayLock.lock(); in notifyROIEvent()
516 mHalCamCtrl->mCallbackLock.lock(); in notifyROIEvent()
547 mHalCamCtrl->mPreviewMemoryLock.lock(); in initDisplayBuffers()
[all …]
DQCameraHWI_Preview_7x27A.cpp69 mDisplayLock.lock(); in setPreviewWindow()
108 mHalCamCtrl->mPreviewMemoryLock.lock(); in getBufferFromSurface()
209 mHalCamCtrl->mPreviewMemoryLock.lock(); in putBufferToSurface()
238 mDisplayLock.lock(); in notifyROIEvent()
249 mHalCamCtrl->mCallbackLock.lock(); in notifyROIEvent()
262 mDisplayLock.lock(); in notifyROIEvent()
333 mHalCamCtrl->mCallbackLock.lock(); in notifyROIEvent()
362 mHalCamCtrl->mPreviewMemoryLock.lock(); in initDisplayBuffers()
390 mHalCamCtrl->mPreviewMemoryLock.lock(); in initDisplayBuffers()
522 Mutex::Autolock lock(mStopCallbackLock); in processPreviewFrame() local
[all …]
DQualcommCameraHardware.cpp1200 mQueueLock.lock(); in get()
2813 mPreviewThreadWaitLock.lock(); in runFrameThread()
2835 mPmemWaitLock.lock(); in runFrameThread()
2928 mFrameThreadWaitLock.lock(); in runFrameThread()
2951 mCallbackLock.lock(); in runPreviewThread()
2962 mSmoothzoomThreadWaitLock.lock(); in runPreviewThread()
3106 mDisplayLock.lock(); in runPreviewThread()
3193 mMetaDataWaitLock.lock(); in runPreviewThread()
3253 mDisplayLock.lock(); in runPreviewThread()
3262 mPreviewThreadWaitLock.lock(); in runPreviewThread()
[all …]
DQCameraHWI.cpp433 Mutex::Autolock lock(mLock); in setCallbacks() local
445 Mutex::Autolock lock(mLock); in enableMsgType() local
453 Mutex::Autolock lock(mLock); in disableMsgType() local
461 Mutex::Autolock lock(mLock); in msgTypeEnabled() local
472 AutoMutex lock(&mLock);
523 mMetaDataWaitLock.lock(); in sendCommand()
789 Mutex::Autolock lock(mLock); in processChannelEvent() local
810 Mutex::Autolock lock(mLock); in processCtrlEvent() local
1017 Mutex::Autolock lock(mLock); in startPreview() local
1206 Mutex::Autolock lock(mLock); in stopPreview() local
[all …]
/device/generic/goldfish/camera/
DEmulatedFakeCamera2.cpp747 Mutex::Autolock lock(mInputMutex); in readyToRun() local
759 Mutex::Autolock lock(mInputMutex); in waitUntilRunning() local
770 Mutex::Autolock lock(mInputMutex); in newRequestAvailable() local
779 Mutex::Autolock lock(mInternalsMutex); in isStreamInUse() local
789 Mutex::Autolock lock(mInputMutex); in getInProgressCount() local
798 Mutex::Autolock lock(mInputMutex); in threadLoop() local
829 Mutex::Autolock lock(mInputMutex); in threadLoop() local
833 Mutex::Autolock lock(mInputMutex); in threadLoop() local
1018 Mutex::Autolock lock(mInputMutex); in configureNextCapture() local
1120 Mutex::Autolock lock(mInputMutex); in configureNextReprocess() local
[all …]
/device/asus/flo/camera/QCamera2/stack/mm-jpeg-interface/test/
Dmm_jpeg_test.c70 pthread_mutex_t lock; member
179 pthread_mutex_init(&p_obj->lock, NULL); in encode_init()
294 pthread_mutex_lock(&jpeg_obj.lock); in encode_test()
295 pthread_cond_wait(&jpeg_obj.cond, &jpeg_obj.lock); in encode_test()
296 pthread_mutex_unlock(&jpeg_obj.lock); in encode_test()
/device/lge/mako/camera/mm-camera-interface/
Dmm_omx_jpeg_encoder.c103 static pthread_mutex_t lock; variable
155 pthread_mutex_lock(&lock); in etbdone()
160 pthread_mutex_unlock(&lock); in etbdone()
170 pthread_mutex_lock(&lock); in ftbdone()
175 pthread_mutex_unlock(&lock); in ftbdone()
207 pthread_mutex_lock(&lock); in eventHandler()
212 pthread_mutex_unlock(&lock); in eventHandler()
219 pthread_mutex_lock(&lock); in waitForEvent()
224 pthread_cond_wait(&cond, &lock); in waitForEvent()
232 pthread_mutex_unlock(&lock); in waitForEvent()
[all …]
/device/lge/mako/camera/QCamera/HAL/core/src/
DQCameraHWI_Preview.cpp66 Mutex::Autolock lock(mStopCallbackLock); in setPreviewWindow() local
105 mHalCamCtrl->mPreviewMemoryLock.lock(); in getBufferFromSurface()
252 mHalCamCtrl->mPreviewMemoryLock.lock(); in putBufferToSurface()
321 mHalCamCtrl->mPreviewMemoryLock.lock(); in getBufferNoDisplay()
367 mHalCamCtrl->mPreviewMemoryLock.lock(); in freeBufferNoDisplay()
393 mDisplayLock.lock(); in notifyROIEvent()
404 mHalCamCtrl->mCallbackLock.lock(); in notifyROIEvent()
417 mDisplayLock.lock(); in notifyROIEvent()
491 mHalCamCtrl->mCallbackLock.lock(); in notifyROIEvent()
520 mHalCamCtrl->mPreviewMemoryLock.lock(); in initDisplayBuffers()
[all …]
DQCameraHWI.cpp404 Mutex::Autolock lock(mLock); in setCallbacks() local
416 Mutex::Autolock lock(mLock); in enableMsgType() local
424 Mutex::Autolock lock(mLock); in disableMsgType() local
432 Mutex::Autolock lock(mLock); in msgTypeEnabled() local
443 AutoMutex lock(&mLock);
493 mMetaDataWaitLock.lock(); in sendCommand()
769 Mutex::Autolock lock(mLock); in processChannelEvent() local
790 Mutex::Autolock lock(mLock); in processCtrlEvent() local
979 Mutex::Autolock lock(mLock); in startPreview() local
1133 Mutex::Autolock lock(mLock); in stopPreview() local
[all …]
DQCameraHWI_Record.cpp156 Mutex::Autolock lock(mStopCallbackLock); in start() local
251 Mutex::Autolock lock(mStopCallbackLock); in stop() local
253 mRecordFreeQueueLock.lock(); in stop()
324 Mutex::Autolock lock(mStopCallbackLock); in processRecordFrame() local
335 mHalCamCtrl->mCallbackLock.lock(); in processRecordFrame()
/device/generic/goldfish/opengl/system/gralloc/
Dgralloc.cpp80 pthread_mutex_t lock; member
344 pthread_mutex_lock(&grdev->lock); in gralloc_alloc()
352 pthread_mutex_unlock(&grdev->lock); in gralloc_alloc()
390 pthread_mutex_lock(&grdev->lock); in gralloc_free()
409 pthread_mutex_unlock(&grdev->lock); in gralloc_free()
604 return sFallback->lock(sFallback, handle, usage, l, t, w, h, vaddr); in gralloc_lock()
920 pthread_mutex_init(&dev->lock, NULL); in gralloc_device_open()
1010 lock: gralloc_lock,
/device/samsung/manta/sepolicy/
Dgpsd.te2 # /data/.gps.interface.pipe.to_jni, /data/.gpsd.lock,
/device/asus/flo/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_channel.c1589 pthread_mutex_lock(&queue->que.lock); in mm_channel_superbuf_comp_and_enqueue()
1730 pthread_mutex_unlock(&queue->que.lock); in mm_channel_superbuf_comp_and_enqueue()
1796 pthread_mutex_lock(&queue->que.lock); in mm_channel_superbuf_dequeue()
1798 pthread_mutex_unlock(&queue->que.lock); in mm_channel_superbuf_dequeue()
1830 pthread_mutex_lock(&queue->que.lock); in mm_channel_superbuf_bufdone_overflow()
1842 pthread_mutex_unlock(&queue->que.lock); in mm_channel_superbuf_bufdone_overflow()
1874 pthread_mutex_lock(&queue->que.lock); in mm_channel_superbuf_skip()
1886 pthread_mutex_unlock(&queue->que.lock); in mm_channel_superbuf_skip()
1911 pthread_mutex_lock(&queue->que.lock); in mm_channel_superbuf_flush()
1922 pthread_mutex_unlock(&queue->que.lock); in mm_channel_superbuf_flush()

12