Lines Matching refs:node

142     camera_q_node *node =  in enqueue()  local
144 if (NULL == node) { in enqueue()
149 memset(node, 0, sizeof(camera_q_node)); in enqueue()
150 node->data = data; in enqueue()
154 cam_list_add_tail_node(&node->list, &m_head.list); in enqueue()
158 free(node); in enqueue()
179 camera_q_node *node = in enqueueWithPriority() local
181 if (NULL == node) { in enqueueWithPriority()
186 memset(node, 0, sizeof(camera_q_node)); in enqueueWithPriority()
187 node->data = data; in enqueueWithPriority()
193 m_head.list.next = &node->list; in enqueueWithPriority()
194 p_next->prev = &node->list; in enqueueWithPriority()
195 node->list.next = p_next; in enqueueWithPriority()
196 node->list.prev = &m_head.list; in enqueueWithPriority()
201 free(node); in enqueueWithPriority()
221 camera_q_node* node = NULL; in dequeue() local
235 node = member_of(pos, camera_q_node, list); in dequeue()
236 cam_list_del_node(&node->list); in dequeue()
242 if (NULL != node) { in dequeue()
243 data = node->data; in dequeue()
244 free(node); in dequeue()
261 camera_q_node* node = NULL; in flush() local
271 node = member_of(pos, camera_q_node, list); in flush()
273 cam_list_del_node(&node->list); in flush()
276 if (NULL != node->data) { in flush()
278 m_dataFn(node->data, m_userData); in flush()
280 free(node->data); in flush()
282 free(node); in flush()
303 camera_q_node* node = NULL; in flushNodes() local
317 node = member_of(pos, camera_q_node, list); in flushNodes()
319 if ( match(node->data, m_userData) ) { in flushNodes()
320 cam_list_del_node(&node->list); in flushNodes()
323 if (NULL != node->data) { in flushNodes()
325 m_dataFn(node->data, m_userData); in flushNodes()
327 free(node->data); in flushNodes()
329 free(node); in flushNodes()