Lines Matching refs:node

147     camera_q_node *node =  in enqueue()  local
149 if (NULL == node) { in enqueue()
154 memset(node, 0, sizeof(camera_q_node)); in enqueue()
155 node->data = data; in enqueue()
159 cam_list_add_tail_node(&node->list, &m_head.list); in enqueue()
163 free(node); in enqueue()
184 camera_q_node *node = in enqueueWithPriority() local
186 if (NULL == node) { in enqueueWithPriority()
191 memset(node, 0, sizeof(camera_q_node)); in enqueueWithPriority()
192 node->data = data; in enqueueWithPriority()
198 m_head.list.next = &node->list; in enqueueWithPriority()
199 p_next->prev = &node->list; in enqueueWithPriority()
200 node->list.next = p_next; in enqueueWithPriority()
201 node->list.prev = &m_head.list; in enqueueWithPriority()
206 free(node); in enqueueWithPriority()
224 camera_q_node* node = NULL; in peek() local
234 node = member_of(pos, camera_q_node, list); in peek()
239 if (NULL != node) { in peek()
240 data = node->data; in peek()
259 camera_q_node* node = NULL; in dequeue() local
273 node = member_of(pos, camera_q_node, list); in dequeue()
274 cam_list_del_node(&node->list); in dequeue()
280 if (NULL != node) { in dequeue()
281 data = node->data; in dequeue()
282 free(node); in dequeue()
300 camera_q_node* node = NULL; in dequeue() local
315 node = member_of(pos, camera_q_node, list); in dequeue()
317 if (NULL != node) { in dequeue()
318 if ( match(node->data, m_userData, match_data) ) { in dequeue()
319 cam_list_del_node(&node->list); in dequeue()
321 data = node->data; in dequeue()
322 free(node); in dequeue()
344 camera_q_node* node = NULL; in flush() local
354 node = member_of(pos, camera_q_node, list); in flush()
356 cam_list_del_node(&node->list); in flush()
359 if (NULL != node->data) { in flush()
361 m_dataFn(node->data, m_userData); in flush()
363 free(node->data); in flush()
365 free(node); in flush()
386 camera_q_node* node = NULL; in flushNodes() local
400 node = member_of(pos, camera_q_node, list); in flushNodes()
402 if ( match(node->data, m_userData) ) { in flushNodes()
403 cam_list_del_node(&node->list); in flushNodes()
406 if (NULL != node->data) { in flushNodes()
408 m_dataFn(node->data, m_userData); in flushNodes()
410 free(node->data); in flushNodes()
412 free(node); in flushNodes()
431 camera_q_node* node = NULL; in flushNodes() local
445 node = member_of(pos, camera_q_node, list); in flushNodes()
447 if ( match(node->data, m_userData, match_data) ) { in flushNodes()
448 cam_list_del_node(&node->list); in flushNodes()
451 if (NULL != node->data) { in flushNodes()
453 m_dataFn(node->data, m_userData); in flushNodes()
455 free(node->data); in flushNodes()
457 free(node); in flushNodes()