/hardware/qcom/camera/QCamera2/util/ |
D | QCameraQueue.cpp | 140 camera_q_node *node = in enqueue() local 142 if (NULL == node) { in enqueue() 147 memset(node, 0, sizeof(camera_q_node)); in enqueue() 148 node->data = data; in enqueue() 152 cam_list_add_tail_node(&node->list, &m_head.list); in enqueue() 156 free(node); in enqueue() 177 camera_q_node *node = in enqueueWithPriority() local 179 if (NULL == node) { in enqueueWithPriority() 184 memset(node, 0, sizeof(camera_q_node)); in enqueueWithPriority() 185 node->data = data; in enqueueWithPriority() [all …]
|
D | QCameraCmdThread.cpp | 132 camera_cmd_t *node = (camera_cmd_t *)malloc(sizeof(camera_cmd_t)); in sendCmd() local 133 if (NULL == node) { in sendCmd() 137 memset(node, 0, sizeof(camera_cmd_t)); in sendCmd() 138 node->cmd = cmd; in sendCmd() 141 if (!cmd_queue.enqueueWithPriority((void *)node)) { in sendCmd() 142 free(node); in sendCmd() 143 node = NULL; in sendCmd() 146 if (!cmd_queue.enqueue((void *)node)) { in sendCmd() 147 free(node); in sendCmd() 148 node = NULL; in sendCmd() [all …]
|
/hardware/qcom/camera/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpeg_queue.c | 44 mm_jpeg_q_node_t* node = in mm_jpeg_queue_enq() local 46 if (NULL == node) { in mm_jpeg_queue_enq() 51 memset(node, 0, sizeof(mm_jpeg_q_node_t)); in mm_jpeg_queue_enq() 52 node->data = data; in mm_jpeg_queue_enq() 55 cam_list_add_tail_node(&node->list, &queue->head.list); in mm_jpeg_queue_enq() 67 mm_jpeg_q_node_t* node = in mm_jpeg_queue_enq_head() local 69 if (NULL == node) { in mm_jpeg_queue_enq_head() 74 memset(node, 0, sizeof(mm_jpeg_q_node_t)); in mm_jpeg_queue_enq_head() 75 node->data = data; in mm_jpeg_queue_enq_head() 81 cam_list_insert_before_node(&node->list, pos); in mm_jpeg_queue_enq_head() [all …]
|
D | mm_jpegdec.c | 91 mm_jpeg_job_q_node_t *node = NULL; in mm_jpegdec_job_done() local 97 node = mm_jpeg_queue_remove_job_by_job_id(&my_obj->ongoing_job_q, in mm_jpegdec_job_done() 99 if (node) { in mm_jpegdec_job_done() 100 free(node); in mm_jpegdec_job_done() 743 mm_jpeg_job_q_node_t* node = NULL; in mm_jpegdec_start_decode_job() local 776 node = (mm_jpeg_job_q_node_t *)malloc(sizeof(mm_jpeg_job_q_node_t)); in mm_jpegdec_start_decode_job() 777 if (NULL == node) { in mm_jpegdec_start_decode_job() 785 memset(node, 0, sizeof(mm_jpeg_job_q_node_t)); in mm_jpegdec_start_decode_job() 786 node->dec_info.decode_job = job->decode_job; in mm_jpegdec_start_decode_job() 787 node->dec_info.job_id = *job_id; in mm_jpegdec_start_decode_job() [all …]
|
D | mm_jpeg.c | 1732 mm_jpeg_job_q_node_t* node = NULL; in mm_jpeg_jobmgr_thread() local 1759 node = (mm_jpeg_job_q_node_t*)qdata.p; in mm_jpeg_jobmgr_thread() 1760 if (node != NULL) { in mm_jpeg_jobmgr_thread() 1761 switch (node->type) { in mm_jpeg_jobmgr_thread() 1763 rc = mm_jpeg_process_encoding_job(my_obj, node); in mm_jpeg_jobmgr_thread() 1766 rc = mm_jpegdec_process_decoding_job(my_obj, node); in mm_jpeg_jobmgr_thread() 1771 free(node); in mm_jpeg_jobmgr_thread() 1829 mm_jpeg_job_q_node_t* node = in mm_jpeg_jobmgr_thread_release() local 1831 if (NULL == node) { in mm_jpeg_jobmgr_thread_release() 1836 memset(node, 0, sizeof(mm_jpeg_job_q_node_t)); in mm_jpeg_jobmgr_thread_release() [all …]
|
/hardware/intel/img/psb_video/src/ |
D | psb_ws_driver.c | 51 struct _ValidateNode *node = malloc(sizeof(*node)); in psb_alloc() local 53 if (node == NULL) return NULL; in psb_alloc() 55 node->func = func; in psb_alloc() 56 node->type_id = 1; in psb_alloc() 57 return node; in psb_alloc() 66 psb_free(struct _ValidateNode *node) in psb_free() argument 68 if (node->type_id == 0) in psb_free() 69 free(containerOf(node, struct _PsbDrmValidateNode, base)); in psb_free() 72 free(node); in psb_free() 83 psb_clear(struct _ValidateNode *node) in psb_clear() argument [all …]
|
/hardware/qcom/camera/QCamera2/stack/common/ |
D | cam_queue.h | 53 cam_node_t *node = in cam_queue_enq() local 55 if (NULL == node) { in cam_queue_enq() 59 memset(node, 0, sizeof(cam_node_t)); in cam_queue_enq() 60 node->data = data; in cam_queue_enq() 63 cam_list_add_tail_node(&node->list, &queue->head.list); in cam_queue_enq() 72 cam_node_t *node = NULL; in cam_queue_deq() local 81 node = member_of(pos, cam_node_t, list); in cam_queue_deq() 82 cam_list_del_node(&node->list); in cam_queue_deq() 87 if (NULL != node) { in cam_queue_deq() 88 data = node->data; in cam_queue_deq() [all …]
|
D | cam_list.h | 66 struct cam_list *node) in cam_list_insert_before_node() argument 68 item->next = node; in cam_list_insert_before_node() 69 item->prev = node->prev; in cam_list_insert_before_node() 71 node->prev = item; in cam_list_insert_before_node()
|
/hardware/libhardware/modules/input/evdev/ |
D | InputDeviceManager.cpp | 27 void InputDeviceManager::onInputEvent(std::shared_ptr<InputDeviceNode> node, InputEvent& event, in onInputEvent() argument 29 if (mDevices[node] == nullptr) { in onInputEvent() 30 ALOGE("got input event for unknown node %s", node->getPath().c_str()); in onInputEvent() 33 mDevices[node]->processInput(event, event_time); in onInputEvent() 36 void InputDeviceManager::onDeviceAdded(std::shared_ptr<InputDeviceNode> node) { in onDeviceAdded() argument 37 mDevices[node] = std::make_shared<EvdevDevice>(node); in onDeviceAdded() 40 void InputDeviceManager::onDeviceRemoved(std::shared_ptr<InputDeviceNode> node) { in onDeviceRemoved() argument 41 if (mDevices[node] == nullptr) { in onDeviceRemoved() 42 ALOGE("could not remove unknown node %s", node->getPath().c_str()); in onDeviceRemoved() 47 mDevices.erase(node); in onDeviceRemoved()
|
D | InputDeviceManager.h | 39 virtual void onInputEvent(std::shared_ptr<InputDeviceNode> node, InputEvent& event, 41 virtual void onDeviceAdded(std::shared_ptr<InputDeviceNode> node) override; 42 virtual void onDeviceRemoved(std::shared_ptr<InputDeviceNode> node) override;
|
/hardware/qcom/camera/QCamera2/stack/mm-camera-test/src/ |
D | mm_qcamera_queue.c | 84 camera_q_node *node = in mm_qcamera_queue_enqueue() local 86 if (NULL == node) { in mm_qcamera_queue_enqueue() 91 memset(node, 0, sizeof(camera_q_node)); in mm_qcamera_queue_enqueue() 92 node->data = data; in mm_qcamera_queue_enqueue() 95 cam_list_add_tail_node(&node->list, &queue->m_head.list); in mm_qcamera_queue_enqueue() 108 camera_q_node* node = NULL; in mm_qcamera_queue_dequeue() local 121 node = member_of(pos, camera_q_node, list); in mm_qcamera_queue_dequeue() 122 cam_list_del_node(&node->list); in mm_qcamera_queue_dequeue() 127 if (NULL != node) { in mm_qcamera_queue_dequeue() 128 data = node->data; in mm_qcamera_queue_dequeue() [all …]
|
/hardware/qcom/media/mm-video-legacy/vidc/vdec/inc/ |
D | Map.h | 37 struct node struct 41 node* prev; argument 42 node* next; argument 43 node(T t, T2 t2,node* p, node* n) : in node() function 46 node* head; 47 node* tail; 48 node* tmp; 68 node* temp(head); in ~Map() 144 tail = new node(data, data2,tail, NULL); in insert() 162 node* prevnode = tmp; in erase() [all …]
|
/hardware/qcom/media/mm-video-v4l2/vidc/vdec/inc/ |
D | Map.h | 37 struct node { struct 40 node* prev; argument 41 node* next; argument 42 node(T t, T2 t2,node* p, node* n) : in node() function 45 node* head; 46 node* tail; 47 node* tmp; 69 node* temp(head); in ~Map() 149 tail = new node(data, data2,tail, NULL); in insert() 168 node* prevnode = tmp; in erase() [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/ |
D | warnings.c | 40 struct WarningListNode **node = &warning_list->warning_node; in add_warning() local 50 while (*node != NULL) in add_warning() 51 node = &(*node)->next_warning; in add_warning() 53 *node = new_node; in add_warning() 58 struct WarningListNode *const node = warning_list->warning_node; in free_warning_list() local 59 warning_list->warning_node = node->next_warning; in free_warning_list() 60 free(node); in free_warning_list()
|
/hardware/intel/common/libwsbm/src/ |
D | wsbm_userpool.c | 81 struct _WsbmMMNode *node; member 224 vBuf->node = wsbmMMSearchFree(&p->agpMM, size, alignment, 1); in pool_create() 225 if (vBuf->node) in pool_create() 226 vBuf->node = wsbmMMGetBlock(vBuf->node, size, alignment); in pool_create() 228 if (vBuf->node) { in pool_create() 230 vBuf->kBuf.gpuOffset = p->agpOffset + vBuf->node->start; in pool_create() 231 vBuf->map = (void *)(p->agpMap + vBuf->node->start); in pool_create() 238 vBuf->node = wsbmMMSearchFree(&p->vramMM, size, alignment, 1); in pool_create() 239 if (vBuf->node) in pool_create() 240 vBuf->node = wsbmMMGetBlock(vBuf->node, size, alignment); in pool_create() [all …]
|
D | wsbm_manager.c | 150 struct _ValidateNode *node; in validateListAddNode() local 156 node = wsbmVNodeFuncs()->alloc(wsbmVNodeFuncs(), 0); in validateListAddNode() 157 if (!node) { in validateListAddNode() 163 node = WSBMLISTENTRY(l, struct _ValidateNode, head); in validateListAddNode() 165 node->buf = item; in validateListAddNode() 166 node->set_flags = flags & mask; in validateListAddNode() 167 node->clr_flags = (~flags) & mask; in validateListAddNode() 168 node->listItem = list->numOnList; in validateListAddNode() 169 WSBMLISTADDTAIL(&node->head, &list->list); in validateListAddNode() 172 WSBMLISTADDTAIL(&node->hashHead, hashHead); in validateListAddNode() [all …]
|
/hardware/libhardware/tests/input/evdev/ |
D | InputHub_test.cpp | 60 virtual void onInputEvent(std::shared_ptr<InputDeviceNode> node, InputEvent& event, in onInputEvent() argument 62 mInputCb(node, event, event_time); in onInputEvent() 64 virtual void onDeviceAdded(std::shared_ptr<InputDeviceNode> node) override { in onDeviceAdded() argument 65 mDeviceAddedCb(node); in onDeviceAdded() 67 virtual void onDeviceRemoved(std::shared_ptr<InputDeviceNode> node) override { in onDeviceRemoved() argument 68 mDeviceRemovedCb(node); in onDeviceRemoved() 104 [&](std::shared_ptr<InputDeviceNode> node) { in TEST_F() argument 105 pathname = node->getPath(); in TEST_F() 139 [&](std::shared_ptr<InputDeviceNode> node) { in TEST_F() argument 140 tempNode = node; in TEST_F() [all …]
|
D | InputDevice_test.cpp | 72 auto node = std::make_shared<MockInputDeviceNode>(); in TEST() local 73 auto device = std::make_unique<EvdevDevice>(node); in TEST() 101 auto node = std::make_shared<MockInputDeviceNode>(); in TEST() local 102 auto device = std::make_unique<EvdevDevice>(node); in TEST() 117 auto node = std::make_shared<MockInputDeviceNode>(); in TEST() local 118 auto device = std::make_unique<EvdevDevice>(node); in TEST()
|
/hardware/intel/common/libmix/videoencoder/ |
D | IntelMetadataBuffer.cpp | 157 List<ShareMemMap *>::iterator node; in ClearLocalMem() local 161 for(node = gShareMemMapList.begin(); node != gShareMemMapList.end(); ) in ClearLocalMem() 163 if ((*node)->sessionflag == sessionflag) //remove all buffers belong to this session in ClearLocalMem() 165 (*node)->membase = NULL; in ClearLocalMem() 166 (*node)->gbuffer = NULL; in ClearLocalMem() 167 delete (*node); in ClearLocalMem() 168 node = gShareMemMapList.erase(node); in ClearLocalMem() 171 node ++; in ClearLocalMem() 179 List<ShareMemMap *>::iterator node; in FindShareMem() local 182 for(node = gShareMemMapList.begin(); node != gShareMemMapList.end(); node++) in FindShareMem() [all …]
|
/hardware/intel/img/hwcomposer/moorefield_hdmi/ips/common/ |
D | WsbmWrapper.c | 56 struct _ValidateNode * node = malloc(sizeof(*node)); in pvrAlloc() local 57 if(!node) { in pvrAlloc() 62 node->func = func; in pvrAlloc() 63 node->type_id = 1; in pvrAlloc() 64 return node; in pvrAlloc() 68 static void pvrFree(struct _ValidateNode * node) in pvrFree() argument 71 if(node->type_id == 0) { in pvrFree() 72 free(containerOf(node, struct PsbWsbmValidateNode, base)); in pvrFree() 74 free(node); in pvrFree() 78 static void pvrClear(struct _ValidateNode * node) in pvrClear() argument [all …]
|
/hardware/intel/img/hwcomposer/merrifield/ips/common/ |
D | WsbmWrapper.c | 54 struct _ValidateNode * node = malloc(sizeof(*node)); in pvrAlloc() local 55 if(!node) { in pvrAlloc() 60 node->func = func; in pvrAlloc() 61 node->type_id = 1; in pvrAlloc() 62 return node; in pvrAlloc() 66 static void pvrFree(struct _ValidateNode * node) in pvrFree() argument 69 if(node->type_id == 0) { in pvrFree() 70 free(containerOf(node, struct PsbWsbmValidateNode, base)); in pvrFree() 72 free(node); in pvrFree() 76 static void pvrClear(struct _ValidateNode * node) in pvrClear() argument [all …]
|
/hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/ |
D | mm_camera_channel.c | 206 mm_channel_queue_node_t *node = NULL; in mm_channel_process_stream_buf() local 375 node = mm_channel_superbuf_dequeue(&ch_obj->bundle.superbuf_queue); in mm_channel_process_stream_buf() 376 if (NULL != node) { in mm_channel_process_stream_buf() 428 cb_node->u.superbuf.num_bufs = node->num_of_bufs; in mm_channel_process_stream_buf() 429 for (i=0; i<node->num_of_bufs; i++) { in mm_channel_process_stream_buf() 430 cb_node->u.superbuf.bufs[i] = node->super_buf[i].buf; in mm_channel_process_stream_buf() 448 for (i=0; i<node->num_of_bufs; i++) { in mm_channel_process_stream_buf() 449 mm_channel_qbuf(ch_obj, node->super_buf[i].buf); in mm_channel_process_stream_buf() 455 for (i=0; i<node->num_of_bufs; i++) { in mm_channel_process_stream_buf() 456 mm_channel_qbuf(ch_obj, node->super_buf[i].buf); in mm_channel_process_stream_buf() [all …]
|
D | mm_camera_thread.c | 583 mm_camera_cmdcb_t* node = NULL; in mm_camera_cmd_thread() local 596 node = (mm_camera_cmdcb_t*)cam_queue_deq(&cmd_thread->cmd_queue); in mm_camera_cmd_thread() 597 while (node != NULL) { in mm_camera_cmd_thread() 598 switch (node->cmd_type) { in mm_camera_cmd_thread() 609 cmd_thread->cb(node, cmd_thread->user_data); in mm_camera_cmd_thread() 617 free(node); in mm_camera_cmd_thread() 618 node = (mm_camera_cmdcb_t*)cam_queue_deq(&cmd_thread->cmd_queue); in mm_camera_cmd_thread() 661 mm_camera_cmdcb_t* node = (mm_camera_cmdcb_t *)malloc(sizeof(mm_camera_cmdcb_t)); in mm_camera_cmd_thread_stop() local 662 if (NULL == node) { in mm_camera_cmd_thread_stop() 667 memset(node, 0, sizeof(mm_camera_cmdcb_t)); in mm_camera_cmd_thread_stop() [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/third_party/nestegg/src/ |
D | nestegg.c | 277 struct ebml_element_desc * node; member 792 for (element = ancestor->node; element->id; ++element) in ne_is_ancestor_element() 818 item->node = ancestor; in ne_ctx_push() 910 struct ebml_list_node * node, * oldtail; in ne_read_master() local 919 node = ne_pool_alloc(sizeof(*node), ctx->alloc_pool); in ne_read_master() 920 node->id = desc->id; in ne_read_master() 921 node->data = ne_pool_alloc(desc->size, ctx->alloc_pool); in ne_read_master() 925 oldtail->next = node; in ne_read_master() 926 list->tail = node; in ne_read_master() 928 list->head = node; in ne_read_master() [all …]
|
/hardware/qcom/audio/voice_processing/ |
D | voice_processing.c | 68 struct listnode node; member 325 list_remove(&session->node); in session_release_effect() 396 struct listnode *node; in get_session() local 399 list_for_each(node, &session_list) { in get_session() 400 session = node_to_item(node, struct session_s, node); in get_session() 415 list_add_tail(&session_list, &session->node); in get_session() 699 list_remove(&session->node); in lib_create() 707 struct listnode *node; in lib_release() local 716 list_for_each(node, &session_list) { in lib_release() 717 session = node_to_item(node, struct session_s, node); in lib_release()
|