Searched refs:new_node (Results 1 – 2 of 2) sorted by relevance
81 Node *new_node = (Node *) malloc(sizeof(Node)); in push() local83 if (new_node == NULL) in push()86 new_node->element = element; in push()87 new_node->next = NULL; in push()91 q->head = new_node; in push()95 q->tail->next = new_node; in push()98 q->tail = new_node; in push()
1332 mm_camera_q_node_t* new_node = NULL; in mm_channel_superbuf_comp_and_enqueue() local1335 new_node = (mm_camera_q_node_t*)malloc(sizeof(mm_camera_q_node_t)); in mm_channel_superbuf_comp_and_enqueue()1336 if (NULL != new_buf && NULL != new_node) { in mm_channel_superbuf_comp_and_enqueue()1338 memset(new_node, 0, sizeof(mm_camera_q_node_t)); in mm_channel_superbuf_comp_and_enqueue()1339 new_node->data = (void *)new_buf; in mm_channel_superbuf_comp_and_enqueue()1345 cam_list_add_tail_node(&new_node->list, &queue->que.head.list); in mm_channel_superbuf_comp_and_enqueue()1362 if (NULL != new_node) { in mm_channel_superbuf_comp_and_enqueue()1363 free(new_node); in mm_channel_superbuf_comp_and_enqueue()