Searched refs:new_node (Results 1 – 6 of 6) sorted by relevance
/device/huawei/angler/power/ |
D | list.c | 50 struct list_node *new_node; in add_list_node() local 56 if (!(new_node = malloc(sizeof(struct list_node)))) { in add_list_node() 60 new_node->data = data; in add_list_node() 61 new_node->next = head->next; in add_list_node() 62 new_node->compare = head->compare; in add_list_node() 63 new_node->dump = head->dump; in add_list_node() 64 head->next = new_node; in add_list_node() 66 return new_node; in add_list_node()
|
/device/lge/bullhead/power/ |
D | list.c | 50 struct list_node *new_node; in add_list_node() local 56 if (!(new_node = malloc(sizeof(struct list_node)))) { in add_list_node() 60 new_node->data = data; in add_list_node() 61 new_node->next = head->next; in add_list_node() 62 new_node->compare = head->compare; in add_list_node() 63 new_node->dump = head->dump; in add_list_node() 64 head->next = new_node; in add_list_node() 66 return new_node; in add_list_node()
|
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/ |
D | mm_camera_channel.c | 2136 cam_node_t* new_node = NULL; in mm_channel_superbuf_comp_and_enqueue() local 2139 new_node = (cam_node_t*)malloc(sizeof(cam_node_t)); in mm_channel_superbuf_comp_and_enqueue() 2140 if (NULL != new_buf && NULL != new_node) { in mm_channel_superbuf_comp_and_enqueue() 2142 memset(new_node, 0, sizeof(cam_node_t)); in mm_channel_superbuf_comp_and_enqueue() 2143 new_node->data = (void *)new_buf; in mm_channel_superbuf_comp_and_enqueue() 2149 cam_list_insert_before_node(&new_node->list, insert_before_buf); in mm_channel_superbuf_comp_and_enqueue() 2151 cam_list_add_tail_node(&new_node->list, &queue->que.head.list); in mm_channel_superbuf_comp_and_enqueue() 2166 if (NULL != new_node) { in mm_channel_superbuf_comp_and_enqueue() 2167 free(new_node); in mm_channel_superbuf_comp_and_enqueue()
|
/device/moto/shamu/camera/QCamera/stack/mm-camera-interface/src/ |
D | mm_camera_channel.c | 1428 mm_camera_q_node_t* new_node = NULL; in mm_channel_superbuf_comp_and_enqueue() local 1431 new_node = (mm_camera_q_node_t*)malloc(sizeof(mm_camera_q_node_t)); in mm_channel_superbuf_comp_and_enqueue() 1432 if (NULL != new_buf && NULL != new_node) { in mm_channel_superbuf_comp_and_enqueue() 1434 memset(new_node, 0, sizeof(mm_camera_q_node_t)); in mm_channel_superbuf_comp_and_enqueue() 1435 new_node->data = (void *)new_buf; in mm_channel_superbuf_comp_and_enqueue() 1441 cam_list_add_tail_node(&new_node->list, &queue->que.head.list); in mm_channel_superbuf_comp_and_enqueue() 1458 if (NULL != new_node) { in mm_channel_superbuf_comp_and_enqueue() 1459 free(new_node); in mm_channel_superbuf_comp_and_enqueue()
|
/device/lge/bullhead/camera/QCamera2/stack/mm-camera-interface/src/ |
D | mm_camera_channel.c | 2522 cam_node_t* new_node = NULL; in mm_channel_superbuf_comp_and_enqueue() local 2525 new_node = (cam_node_t*)malloc(sizeof(cam_node_t)); in mm_channel_superbuf_comp_and_enqueue() 2526 if (NULL != new_buf && NULL != new_node) { in mm_channel_superbuf_comp_and_enqueue() 2528 memset(new_node, 0, sizeof(cam_node_t)); in mm_channel_superbuf_comp_and_enqueue() 2529 new_node->data = (void *)new_buf; in mm_channel_superbuf_comp_and_enqueue() 2541 cam_list_insert_before_node(&new_node->list, insert_before_buf); in mm_channel_superbuf_comp_and_enqueue() 2543 cam_list_add_tail_node(&new_node->list, &queue->que.head.list); in mm_channel_superbuf_comp_and_enqueue() 2565 if (NULL != new_node) { in mm_channel_superbuf_comp_and_enqueue() 2566 free(new_node); in mm_channel_superbuf_comp_and_enqueue()
|
/device/huawei/angler/camera/QCamera2/stack/mm-camera-interface/src/ |
D | mm_camera_channel.c | 2522 cam_node_t* new_node = NULL; in mm_channel_superbuf_comp_and_enqueue() local 2525 new_node = (cam_node_t*)malloc(sizeof(cam_node_t)); in mm_channel_superbuf_comp_and_enqueue() 2526 if (NULL != new_buf && NULL != new_node) { in mm_channel_superbuf_comp_and_enqueue() 2528 memset(new_node, 0, sizeof(cam_node_t)); in mm_channel_superbuf_comp_and_enqueue() 2529 new_node->data = (void *)new_buf; in mm_channel_superbuf_comp_and_enqueue() 2541 cam_list_insert_before_node(&new_node->list, insert_before_buf); in mm_channel_superbuf_comp_and_enqueue() 2543 cam_list_add_tail_node(&new_node->list, &queue->que.head.list); in mm_channel_superbuf_comp_and_enqueue() 2565 if (NULL != new_node) { in mm_channel_superbuf_comp_and_enqueue() 2566 free(new_node); in mm_channel_superbuf_comp_and_enqueue()
|