Home
last modified time | relevance | path

Searched refs:queue (Results 1 – 25 of 26) sorted by relevance

12

/device/moto/shamu/camera/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_queue.c33 int mm_camera_queue_init(mm_camera_queue_t *queue, in mm_camera_queue_init() argument
37 if ( NULL == queue ) { in mm_camera_queue_init()
41 pthread_mutex_init(&queue->m_lock, NULL); in mm_camera_queue_init()
42 cam_list_init(&queue->m_head.list); in mm_camera_queue_init()
43 queue->m_size = 0; in mm_camera_queue_init()
44 queue->m_dataFn = data_rel_fn; in mm_camera_queue_init()
45 queue->m_userData = user_data; in mm_camera_queue_init()
50 int mm_qcamera_queue_release(mm_camera_queue_t *queue) in mm_qcamera_queue_release() argument
52 if ( NULL == queue ) { in mm_qcamera_queue_release()
56 mm_qcamera_queue_flush(queue); in mm_qcamera_queue_release()
[all …]
/device/moto/shamu/camera/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg_queue.c34 int32_t mm_jpeg_queue_init(mm_jpeg_queue_t* queue) in mm_jpeg_queue_init() argument
36 pthread_mutex_init(&queue->lock, NULL); in mm_jpeg_queue_init()
37 cam_list_init(&queue->head.list); in mm_jpeg_queue_init()
38 queue->size = 0; in mm_jpeg_queue_init()
42 int32_t mm_jpeg_queue_enq(mm_jpeg_queue_t* queue, void* data) in mm_jpeg_queue_enq() argument
54 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_enq()
55 cam_list_add_tail_node(&node->list, &queue->head.list); in mm_jpeg_queue_enq()
56 queue->size++; in mm_jpeg_queue_enq()
57 pthread_mutex_unlock(&queue->lock); in mm_jpeg_queue_enq()
63 int32_t mm_jpeg_queue_enq_head(mm_jpeg_queue_t* queue, void* data) in mm_jpeg_queue_enq_head() argument
[all …]
Dmm_jpeg.c71 mm_jpeg_queue_t* queue, void * dst_ptr);
2677 mm_jpeg_queue_t* queue, uint32_t client_hdl) in mm_jpeg_queue_remove_job_by_client_id() argument
2685 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_remove_job_by_client_id()
2686 head = &queue->head.list; in mm_jpeg_queue_remove_job_by_client_id()
2696 queue->size--; in mm_jpeg_queue_remove_job_by_client_id()
2698 CDBG_HIGH("%s: queue size = %d", __func__, queue->size); in mm_jpeg_queue_remove_job_by_client_id()
2704 pthread_mutex_unlock(&queue->lock); in mm_jpeg_queue_remove_job_by_client_id()
2711 mm_jpeg_queue_t* queue, uint32_t session_id) in mm_jpeg_queue_remove_job_by_session_id() argument
2719 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_remove_job_by_session_id()
2720 head = &queue->head.list; in mm_jpeg_queue_remove_job_by_session_id()
[all …]
/device/asus/flo/camera/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg_queue.c34 int32_t mm_jpeg_queue_init(mm_jpeg_queue_t* queue) in mm_jpeg_queue_init() argument
36 pthread_mutex_init(&queue->lock, NULL); in mm_jpeg_queue_init()
37 cam_list_init(&queue->head.list); in mm_jpeg_queue_init()
38 queue->size = 0; in mm_jpeg_queue_init()
42 int32_t mm_jpeg_queue_enq(mm_jpeg_queue_t* queue, void* data) in mm_jpeg_queue_enq() argument
54 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_enq()
55 cam_list_add_tail_node(&node->list, &queue->head.list); in mm_jpeg_queue_enq()
56 queue->size++; in mm_jpeg_queue_enq()
57 pthread_mutex_unlock(&queue->lock); in mm_jpeg_queue_enq()
63 void* mm_jpeg_queue_deq(mm_jpeg_queue_t* queue) in mm_jpeg_queue_deq() argument
[all …]
Dmm_jpeg.c227 mm_jpeg_queue_t* queue, uint32_t client_hdl);
229 mm_jpeg_queue_t* queue, uint32_t job_id);
231 mm_jpeg_queue_t* queue, uint32_t session_id);
233 mm_jpeg_queue_t* queue, uint32_t job_id);
2261 mm_jpeg_queue_t* queue, uint32_t client_hdl) in mm_jpeg_queue_remove_job_by_client_id() argument
2269 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_remove_job_by_client_id()
2270 head = &queue->head.list; in mm_jpeg_queue_remove_job_by_client_id()
2280 queue->size--; in mm_jpeg_queue_remove_job_by_client_id()
2282 CDBG_ERROR("%s: queue size = %d", __func__, queue->size); in mm_jpeg_queue_remove_job_by_client_id()
2288 pthread_mutex_unlock(&queue->lock); in mm_jpeg_queue_remove_job_by_client_id()
[all …]
/device/lge/hammerhead/camera/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg_queue.c34 int32_t mm_jpeg_queue_init(mm_jpeg_queue_t* queue) in mm_jpeg_queue_init() argument
36 pthread_mutex_init(&queue->lock, NULL); in mm_jpeg_queue_init()
37 cam_list_init(&queue->head.list); in mm_jpeg_queue_init()
38 queue->size = 0; in mm_jpeg_queue_init()
42 int32_t mm_jpeg_queue_enq(mm_jpeg_queue_t* queue, void* data) in mm_jpeg_queue_enq() argument
54 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_enq()
55 cam_list_add_tail_node(&node->list, &queue->head.list); in mm_jpeg_queue_enq()
56 queue->size++; in mm_jpeg_queue_enq()
57 pthread_mutex_unlock(&queue->lock); in mm_jpeg_queue_enq()
63 void* mm_jpeg_queue_deq(mm_jpeg_queue_t* queue) in mm_jpeg_queue_deq() argument
[all …]
Dmm_jpeg.c246 mm_jpeg_queue_t* queue, uint32_t client_hdl);
248 mm_jpeg_queue_t* queue, uint32_t job_id);
250 mm_jpeg_queue_t* queue, uint32_t session_id);
252 mm_jpeg_queue_t* queue, uint32_t job_id);
2439 mm_jpeg_queue_t* queue, uint32_t client_hdl) in mm_jpeg_queue_remove_job_by_client_id() argument
2447 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_remove_job_by_client_id()
2448 head = &queue->head.list; in mm_jpeg_queue_remove_job_by_client_id()
2458 queue->size--; in mm_jpeg_queue_remove_job_by_client_id()
2460 CDBG_HIGH("%s: queue size = %d", __func__, queue->size); in mm_jpeg_queue_remove_job_by_client_id()
2466 pthread_mutex_unlock(&queue->lock); in mm_jpeg_queue_remove_job_by_client_id()
[all …]
/device/moto/shamu/camera/QCamera/stack/mm-jpeg-interface/src/
Dmm_jpeg_queue.c34 int32_t mm_jpeg_queue_init(mm_jpeg_queue_t* queue) in mm_jpeg_queue_init() argument
36 pthread_mutex_init(&queue->lock, NULL); in mm_jpeg_queue_init()
37 cam_list_init(&queue->head.list); in mm_jpeg_queue_init()
38 queue->size = 0; in mm_jpeg_queue_init()
42 int32_t mm_jpeg_queue_enq(mm_jpeg_queue_t* queue, void* data) in mm_jpeg_queue_enq() argument
54 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_enq()
55 cam_list_add_tail_node(&node->list, &queue->head.list); in mm_jpeg_queue_enq()
56 queue->size++; in mm_jpeg_queue_enq()
57 pthread_mutex_unlock(&queue->lock); in mm_jpeg_queue_enq()
64 void* mm_jpeg_queue_peek(mm_jpeg_queue_t* queue) in mm_jpeg_queue_peek() argument
[all …]
Dmm_jpeg.c68 int32_t mm_jpeg_queue_update_flag(mm_jpeg_queue_t* queue, uint32_t job_id, uint8_t flag);
69 mm_jpeg_job_q_node_t* mm_jpeg_queue_remove_job_by_client_id(mm_jpeg_queue_t* queue, uint32_t client…
70 mm_jpeg_job_q_node_t* mm_jpeg_queue_remove_job_by_job_id(mm_jpeg_queue_t* queue, uint32_t job_id);
1322 mm_jpeg_job_q_node_t* mm_jpeg_queue_remove_job_by_client_id(mm_jpeg_queue_t* queue, uint32_t client… in mm_jpeg_queue_remove_job_by_client_id() argument
1330 pthread_mutex_lock(&queue->lock); in mm_jpeg_queue_remove_job_by_client_id()
1331 head = &queue->head.list; in mm_jpeg_queue_remove_job_by_client_id()
1341 queue->size--; in mm_jpeg_queue_remove_job_by_client_id()
1343 CDBG_ERROR("%s: queue size = %d", __func__, queue->size); in mm_jpeg_queue_remove_job_by_client_id()
1349 pthread_mutex_unlock(&queue->lock); in mm_jpeg_queue_remove_job_by_client_id()
1355 mm_jpeg_job_q_node_t* mm_jpeg_queue_remove_job_by_job_id(mm_jpeg_queue_t* queue, uint32_t job_id) in mm_jpeg_queue_remove_job_by_job_id() argument
[all …]
/device/lge/hammerhead/camera/QCamera2/stack/common/
Dcam_queue.h45 static inline int32_t cam_queue_init(cam_queue_t *queue) in cam_queue_init() argument
47 pthread_mutex_init(&queue->lock, NULL); in cam_queue_init()
48 cam_list_init(&queue->head.list); in cam_queue_init()
49 queue->size = 0; in cam_queue_init()
53 static inline int32_t cam_queue_enq(cam_queue_t *queue, void *data) in cam_queue_enq() argument
64 pthread_mutex_lock(&queue->lock); in cam_queue_enq()
65 cam_list_add_tail_node(&node->list, &queue->head.list); in cam_queue_enq()
66 queue->size++; in cam_queue_enq()
67 pthread_mutex_unlock(&queue->lock); in cam_queue_enq()
72 static inline void *cam_queue_deq(cam_queue_t *queue) in cam_queue_deq() argument
[all …]
/device/asus/flo/camera/QCamera2/stack/common/
Dcam_queue.h45 static inline int32_t cam_queue_init(cam_queue_t *queue) in cam_queue_init() argument
47 pthread_mutex_init(&queue->lock, NULL); in cam_queue_init()
48 cam_list_init(&queue->head.list); in cam_queue_init()
49 queue->size = 0; in cam_queue_init()
53 static inline int32_t cam_queue_enq(cam_queue_t *queue, void *data) in cam_queue_enq() argument
64 pthread_mutex_lock(&queue->lock); in cam_queue_enq()
65 cam_list_add_tail_node(&node->list, &queue->head.list); in cam_queue_enq()
66 queue->size++; in cam_queue_enq()
67 pthread_mutex_unlock(&queue->lock); in cam_queue_enq()
72 static inline void *cam_queue_deq(cam_queue_t *queue) in cam_queue_deq() argument
[all …]
/device/moto/shamu/camera/QCamera2/stack/common/
Dcam_queue.h45 static inline int32_t cam_queue_init(cam_queue_t *queue) in cam_queue_init() argument
47 pthread_mutex_init(&queue->lock, NULL); in cam_queue_init()
48 cam_list_init(&queue->head.list); in cam_queue_init()
49 queue->size = 0; in cam_queue_init()
53 static inline int32_t cam_queue_enq(cam_queue_t *queue, void *data) in cam_queue_enq() argument
64 pthread_mutex_lock(&queue->lock); in cam_queue_enq()
65 cam_list_add_tail_node(&node->list, &queue->head.list); in cam_queue_enq()
66 queue->size++; in cam_queue_enq()
67 pthread_mutex_unlock(&queue->lock); in cam_queue_enq()
72 static inline void *cam_queue_deq(cam_queue_t *queue) in cam_queue_deq() argument
[all …]
/device/moto/shamu/camera/QCamera/stack/mm-camera-interface/src/
Dmm_camera_data.c50 int32_t mm_camera_queue_init(mm_camera_queue_t* queue) in mm_camera_queue_init() argument
52 pthread_mutex_init(&queue->lock, NULL); in mm_camera_queue_init()
53 cam_list_init(&queue->head.list); in mm_camera_queue_init()
54 queue->size = 0; in mm_camera_queue_init()
58 int32_t mm_camera_queue_enq(mm_camera_queue_t* queue, void* data) in mm_camera_queue_enq() argument
70 pthread_mutex_lock(&queue->lock); in mm_camera_queue_enq()
71 cam_list_add_tail_node(&node->list, &queue->head.list); in mm_camera_queue_enq()
72 queue->size++; in mm_camera_queue_enq()
73 pthread_mutex_unlock(&queue->lock); in mm_camera_queue_enq()
79 void* mm_camera_queue_deq(mm_camera_queue_t* queue) in mm_camera_queue_deq() argument
[all …]
Dmm_camera_channel.c102 mm_channel_queue_t *queue);
104 mm_channel_queue_t *queue);
143 int32_t mm_channel_superbuf_queue_init(mm_channel_queue_t * queue);
145 mm_channel_queue_t * queue);
147 mm_channel_queue_t * queue,
149 mm_channel_queue_node_t* mm_channel_superbuf_dequeue(mm_channel_queue_t * queue);
1342 int32_t mm_channel_superbuf_queue_init(mm_channel_queue_t * queue) in mm_channel_superbuf_queue_init() argument
1344 return mm_camera_queue_init(&queue->que); in mm_channel_superbuf_queue_init()
1348 mm_channel_queue_t * queue) in mm_channel_superbuf_queue_deinit() argument
1350 return mm_camera_queue_deinit(&queue->que); in mm_channel_superbuf_queue_deinit()
[all …]
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_channel.c74 int32_t mm_channel_superbuf_flush(mm_channel_t* my_obj, mm_channel_queue_t * queue);
105 int32_t mm_channel_superbuf_queue_init(mm_channel_queue_t * queue);
106 int32_t mm_channel_superbuf_queue_deinit(mm_channel_queue_t * queue);
108 mm_channel_queue_t * queue,
110 mm_channel_queue_node_t* mm_channel_superbuf_dequeue(mm_channel_queue_t * queue);
112 mm_channel_queue_t *queue);
114 mm_channel_queue_t *queue);
119 mm_channel_queue_t * queue);
1693 int32_t mm_channel_superbuf_queue_init(mm_channel_queue_t * queue) in mm_channel_superbuf_queue_init() argument
1695 return cam_queue_init(&queue->que); in mm_channel_superbuf_queue_init()
[all …]
/device/asus/flo/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_channel.c72 int32_t mm_channel_superbuf_flush(mm_channel_t* my_obj, mm_channel_queue_t * queue);
103 int32_t mm_channel_superbuf_queue_init(mm_channel_queue_t * queue);
104 int32_t mm_channel_superbuf_queue_deinit(mm_channel_queue_t * queue);
106 mm_channel_queue_t * queue,
108 mm_channel_queue_node_t* mm_channel_superbuf_dequeue(mm_channel_queue_t * queue);
110 mm_channel_queue_t *queue);
112 mm_channel_queue_t *queue);
1404 int32_t mm_channel_superbuf_queue_init(mm_channel_queue_t * queue) in mm_channel_superbuf_queue_init() argument
1406 return cam_queue_init(&queue->que); in mm_channel_superbuf_queue_init()
1421 int32_t mm_channel_superbuf_queue_deinit(mm_channel_queue_t * queue) in mm_channel_superbuf_queue_deinit() argument
[all …]
/device/lge/hammerhead/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_channel.c72 int32_t mm_channel_superbuf_flush(mm_channel_t* my_obj, mm_channel_queue_t * queue);
103 int32_t mm_channel_superbuf_queue_init(mm_channel_queue_t * queue);
104 int32_t mm_channel_superbuf_queue_deinit(mm_channel_queue_t * queue);
106 mm_channel_queue_t * queue,
108 mm_channel_queue_node_t* mm_channel_superbuf_dequeue(mm_channel_queue_t * queue);
110 mm_channel_queue_t *queue);
112 mm_channel_queue_t *queue);
1407 int32_t mm_channel_superbuf_queue_init(mm_channel_queue_t * queue) in mm_channel_superbuf_queue_init() argument
1409 return cam_queue_init(&queue->que); in mm_channel_superbuf_queue_init()
1424 int32_t mm_channel_superbuf_queue_deinit(mm_channel_queue_t * queue) in mm_channel_superbuf_queue_deinit() argument
[all …]
/device/moto/shamu/camera/QCamera/stack/mm-jpeg-interface/inc/
Dmm_jpeg.h158 extern int32_t mm_jpeg_queue_init(mm_jpeg_queue_t* queue);
159 extern int32_t mm_jpeg_queue_enq(mm_jpeg_queue_t* queue, void* node);
160 extern void* mm_jpeg_queue_peek(mm_jpeg_queue_t* queue);
161 extern void* mm_jpeg_queue_deq(mm_jpeg_queue_t* queue);
162 extern int32_t mm_jpeg_queue_deinit(mm_jpeg_queue_t* queue);
163 extern int32_t mm_jpeg_queue_flush(mm_jpeg_queue_t* queue);
164 extern uint32_t mm_jpeg_queue_get_size(mm_jpeg_queue_t* queue);
/device/asus/flo/camera/QCamera2/stack/mm-jpeg-interface/inc/
Dmm_jpeg.h186 extern int32_t mm_jpeg_queue_init(mm_jpeg_queue_t* queue);
187 extern int32_t mm_jpeg_queue_enq(mm_jpeg_queue_t* queue, void* node);
188 extern void* mm_jpeg_queue_deq(mm_jpeg_queue_t* queue);
189 extern int32_t mm_jpeg_queue_deinit(mm_jpeg_queue_t* queue);
190 extern int32_t mm_jpeg_queue_flush(mm_jpeg_queue_t* queue);
191 extern uint32_t mm_jpeg_queue_get_size(mm_jpeg_queue_t* queue);
192 extern void* mm_jpeg_queue_peek(mm_jpeg_queue_t* queue);
/device/moto/shamu/camera/QCamera2/stack/mm-jpeg-interface/inc/
Dmm_jpeg.h443 extern int32_t mm_jpeg_queue_init(mm_jpeg_queue_t* queue);
444 extern int32_t mm_jpeg_queue_enq(mm_jpeg_queue_t* queue, void* node);
445 extern int32_t mm_jpeg_queue_enq_head(mm_jpeg_queue_t* queue, void* node);
446 extern void* mm_jpeg_queue_deq(mm_jpeg_queue_t* queue);
447 extern int32_t mm_jpeg_queue_deinit(mm_jpeg_queue_t* queue);
448 extern int32_t mm_jpeg_queue_flush(mm_jpeg_queue_t* queue);
449 extern uint32_t mm_jpeg_queue_get_size(mm_jpeg_queue_t* queue);
450 extern void* mm_jpeg_queue_peek(mm_jpeg_queue_t* queue);
470 mm_jpeg_queue_t* queue, uint32_t client_hdl);
472 mm_jpeg_queue_t* queue, uint32_t job_id);
[all …]
/device/lge/hammerhead/camera/QCamera2/stack/mm-jpeg-interface/inc/
Dmm_jpeg.h189 extern int32_t mm_jpeg_queue_init(mm_jpeg_queue_t* queue);
190 extern int32_t mm_jpeg_queue_enq(mm_jpeg_queue_t* queue, void* node);
191 extern void* mm_jpeg_queue_deq(mm_jpeg_queue_t* queue);
192 extern int32_t mm_jpeg_queue_deinit(mm_jpeg_queue_t* queue);
193 extern int32_t mm_jpeg_queue_flush(mm_jpeg_queue_t* queue);
194 extern uint32_t mm_jpeg_queue_get_size(mm_jpeg_queue_t* queue);
195 extern void* mm_jpeg_queue_peek(mm_jpeg_queue_t* queue);
/device/moto/shamu/camera/QCamera/stack/mm-camera-test/src/
Dmm_qcamera_pp.c44 int32_t mm_qcamera_queue_init(mm_qcamera_queue_t* queue);
45 int32_t mm_qcamera_queue_enq(mm_qcamera_queue_t* queue, void* data);
46 void* mm_qcamera_queue_deq(mm_qcamera_queue_t* queue);
47 void* mm_qcamera_queue_peek(mm_qcamera_queue_t* queue);
48 int32_t mm_qcamera_queue_deinit(mm_qcamera_queue_t* queue);
49 int32_t mm_qcamera_queue_flush(mm_qcamera_queue_t* queue);
674 int32_t mm_qcamera_queue_init(mm_qcamera_queue_t* queue) in mm_qcamera_queue_init() argument
676 pthread_mutex_init(&queue->lock, NULL); in mm_qcamera_queue_init()
677 cam_list_init(&queue->head.list); in mm_qcamera_queue_init()
678 queue->size = 0; in mm_qcamera_queue_init()
[all …]
/device/moto/shamu/camera/QCamera2/stack/mm-camera-test/inc/
Dmm_qcamera_app.h500 extern int mm_camera_queue_init(mm_camera_queue_t *queue,
503 extern int mm_qcamera_queue_release(mm_camera_queue_t *queue);
504 extern int mm_qcamera_queue_isempty(mm_camera_queue_t *queue);
505 extern int mm_qcamera_queue_enqueue(mm_camera_queue_t *queue, void *data);
506 extern void* mm_qcamera_queue_dequeue(mm_camera_queue_t *queue,
508 extern void mm_qcamera_queue_flush(mm_camera_queue_t *queue);
/device/moto/shamu/camera/QCamera/stack/mm-camera-interface/inc/
Dmm_camera.h670 extern int32_t mm_camera_queue_init(mm_camera_queue_t* queue);
671 extern int32_t mm_camera_queue_enq(mm_camera_queue_t* queue, void* node);
672 extern void* mm_camera_queue_deq(mm_camera_queue_t* queue);
673 extern int32_t mm_camera_queue_deinit(mm_camera_queue_t* queue);
674 extern int32_t mm_camera_queue_flush(mm_camera_queue_t* queue);
/device/htc/flounder/
Dinit.flounder.rc117 write /sys/block/dm-0/queue/read_ahead_kb 2048
118 write /sys/block/dm-1/queue/read_ahead_kb 2048

12