/device/google/contexthub/firmware/src/ |
D | trylock.c | 21 void trylockInit(struct TryLock *lock) in trylockInit() argument 23 lock->lock = 0; in trylockInit() 26 void trylockRelease(struct TryLock *lock) in trylockRelease() argument 28 lock->lock = 0; in trylockRelease() 31 bool trylockTryTake(struct TryLock *lock) in trylockTryTake() argument 33 return !atomicXchgByte(&lock->lock, 1); in trylockTryTake()
|
/device/huawei/angler/camera/QCamera2/HAL3/ |
D | QCamera3StreamMem.cpp | 92 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 …]
|
/device/lge/bullhead/camera/QCamera2/HAL3/ |
D | QCamera3StreamMem.cpp | 92 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 …]
|
/device/moto/shamu/camera/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpeg_queue.c | 36 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() 95 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_deq() 103 pthread_mutex_unlock(&queue->lock); in mm_jpeg_queue_deq() 117 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_get_size() 119 pthread_mutex_unlock(&queue->lock); in mm_jpeg_queue_get_size() 128 pthread_mutex_destroy(&queue->lock); in mm_jpeg_queue_deinit() [all …]
|
D | mm_jpegdec.c | 206 pthread_mutex_init(&p_session->lock, NULL); in mm_jpegdec_session_create() 274 pthread_mutex_destroy(&p_session->lock); in mm_jpegdec_session_destroy() 436 pthread_mutex_lock(&p_session->lock); in mm_jpeg_session_port_enable() 438 pthread_mutex_unlock(&p_session->lock); in mm_jpeg_session_port_enable() 450 pthread_mutex_lock(&p_session->lock); in mm_jpeg_session_port_enable() 453 pthread_cond_wait(&p_session->cond, &p_session->lock); in mm_jpeg_session_port_enable() 458 pthread_mutex_unlock(&p_session->lock); in mm_jpeg_session_port_enable() 476 pthread_mutex_lock(&p_session->lock); in mm_jpeg_session_port_disable() 478 pthread_mutex_unlock(&p_session->lock); in mm_jpeg_session_port_disable() 489 pthread_mutex_lock(&p_session->lock); in mm_jpeg_session_port_disable() [all …]
|
/device/moto/shamu/camera/QCamera/stack/mm-jpeg-interface/src/ |
D | mm_jpeg_queue.c | 36 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() 71 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_peek() 77 pthread_mutex_unlock(&queue->lock); in mm_jpeg_queue_peek() 92 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_deq() 100 pthread_mutex_unlock(&queue->lock); in mm_jpeg_queue_deq() 114 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_get_size() 116 pthread_mutex_unlock(&queue->lock); in mm_jpeg_queue_get_size() 125 pthread_mutex_destroy(&queue->lock); in mm_jpeg_queue_deinit() [all …]
|
/device/lge/bullhead/camera/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpeg_queue.c | 36 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 …]
|
D | mm_jpegdec.c | 202 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 …]
|
/device/huawei/angler/camera/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpeg_queue.c | 36 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 …]
|
D | mm_jpegdec.c | 202 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 …]
|
/device/huawei/angler/camera/QCamera2/stack/common/ |
D | cam_queue.h | 40 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/lge/bullhead/camera/QCamera2/stack/common/ |
D | cam_queue.h | 40 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/moto/shamu/camera/QCamera2/stack/common/ |
D | cam_queue.h | 42 pthread_mutex_t lock; member 47 pthread_mutex_init(&queue->lock, NULL); in cam_queue_init() 64 pthread_mutex_lock(&queue->lock); in cam_queue_enq() 67 pthread_mutex_unlock(&queue->lock); in cam_queue_enq() 79 pthread_mutex_lock(&queue->lock); in cam_queue_deq() 87 pthread_mutex_unlock(&queue->lock); in cam_queue_deq() 103 pthread_mutex_lock(&queue->lock); in cam_queue_flush() 123 pthread_mutex_unlock(&queue->lock); in cam_queue_flush() 130 pthread_mutex_destroy(&queue->lock); in cam_queue_deinit()
|
/device/generic/goldfish/fingerprint/ |
D | fingerprint.c | 87 pthread_mutex_t lock; member 245 pthread_mutex_lock(&qdev->lock); in fingerprint_get_auth_id() 247 pthread_mutex_unlock(&qdev->lock); in fingerprint_get_auth_id() 257 pthread_mutex_lock(&qdev->lock); in fingerprint_set_active_group() 274 pthread_mutex_unlock(&qdev->lock); in fingerprint_set_active_group() 290 pthread_mutex_lock(&qdev->lock); in fingerprint_authenticate() 293 pthread_mutex_unlock(&qdev->lock); in fingerprint_authenticate() 335 pthread_mutex_lock(&dev->lock); in fingerprint_enroll() 337 pthread_mutex_unlock(&dev->lock); in fingerprint_enroll() 362 pthread_mutex_lock(&qdev->lock); in fingerprint_pre_enroll() [all …]
|
/device/htc/flounder/audio/soundtrigger/ |
D | sound_trigger_hw.c | 69 pthread_mutex_t lock; member 95 static struct flounder_sound_trigger_device g_stdev = { .lock = PTHREAD_MUTEX_INITIALIZER }; 263 pthread_mutex_lock(&stdev->lock); in callback_thread_loop() 286 pthread_mutex_unlock(&stdev->lock); in callback_thread_loop() 290 pthread_mutex_lock(&stdev->lock); in callback_thread_loop() 299 pthread_mutex_unlock(&stdev->lock); in callback_thread_loop() 315 pthread_mutex_unlock(&stdev->lock); in callback_thread_loop() 319 pthread_mutex_lock(&stdev->lock); in callback_thread_loop() 337 pthread_mutex_unlock(&stdev->lock); in callback_thread_loop() 350 pthread_mutex_unlock(&stdev->lock); in callback_thread_loop() [all …]
|
/device/google/dragon/audio/soundtrigger/ |
D | sound_trigger_hw.c | 68 pthread_mutex_t lock; member 92 static struct dragon_sound_trigger_device g_stdev = { .lock = PTHREAD_MUTEX_INITIALIZER }; 218 pthread_mutex_lock(&stdev->lock); in callback_thread_loop() 262 pthread_mutex_unlock(&stdev->lock); in callback_thread_loop() 266 pthread_mutex_lock(&stdev->lock); in callback_thread_loop() 287 pthread_mutex_unlock(&stdev->lock); in callback_thread_loop() 291 pthread_mutex_lock(&stdev->lock); in callback_thread_loop() 302 pthread_mutex_unlock(&stdev->lock); in callback_thread_loop() 317 pthread_mutex_unlock(&stdev->lock); in callback_thread_loop() 346 pthread_mutex_lock(&stdev->lock); in stdev_load_sound_model() [all …]
|
/device/lge/bullhead/camera/QCamera2/stack/mm-jpeg-interface/inc/ |
D | mm_jpeg_inlines.h | 62 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()
|
D | mm_jpeg.h | 139 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
|
/device/huawei/angler/camera/QCamera2/stack/mm-jpeg-interface/inc/ |
D | mm_jpeg_inlines.h | 62 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()
|
D | mm_jpeg.h | 139 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
|
/device/moto/shamu/camera/QCamera2/stack/mm-jpeg-interface/inc/ |
D | mm_jpeg_inlines.h | 62 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()
|
D | mm_jpeg.h | 138 pthread_mutex_t lock; member 158 pthread_mutex_init(&q->lock, NULL); in cirq_reset() 204 pthread_mutex_lock(&q->lock); \ 212 pthread_mutex_unlock(&q->lock); \ 231 pthread_mutex_lock(&q->lock); \ 233 pthread_mutex_unlock(&q->lock); \ 239 pthread_mutex_unlock(&q->lock); \ 252 pthread_mutex_t lock; member 293 pthread_mutex_t lock; member 357 pthread_mutex_t lock; /* job lock */ member
|
/device/google/contexthub/firmware/inc/ |
D | trylock.h | 28 volatile uint8_t lock; member 34 void trylockInit(struct TryLock *lock); 35 void trylockRelease(struct TryLock *lock); 36 bool trylockTryTake(struct TryLock *lock); //true if we took it
|
/device/htc/flounder/power/ |
D | power_flounder.c | 51 pthread_mutex_t lock; member 138 pthread_mutex_lock(&flounder->lock); in boostpulse_open() 168 pthread_mutex_unlock(&flounder->lock); in boostpulse_open() 178 pthread_mutex_lock(&flounder->lock); in set_feature() 180 pthread_mutex_unlock(&flounder->lock); in set_feature() 213 pthread_mutex_lock(&flounder->lock); in flounder_power_hint() 220 pthread_mutex_unlock(&flounder->lock); in flounder_power_hint() 250 lock: PTHREAD_MUTEX_INITIALIZER,
|
/device/moto/shamu/camera/QCamera/stack/mm-camera-interface/src/ |
D | mm_camera_data.c | 52 pthread_mutex_init(&queue->lock, NULL); in mm_camera_queue_init() 70 pthread_mutex_lock(&queue->lock); in mm_camera_queue_enq() 73 pthread_mutex_unlock(&queue->lock); in mm_camera_queue_enq() 86 pthread_mutex_lock(&queue->lock); in mm_camera_queue_deq() 94 pthread_mutex_unlock(&queue->lock); in mm_camera_queue_deq() 107 pthread_mutex_destroy(&queue->lock); in mm_camera_queue_deinit() 118 pthread_mutex_lock(&queue->lock); in mm_camera_queue_flush() 138 pthread_mutex_unlock(&queue->lock); in mm_camera_queue_flush()
|