Lines Matching refs:node
141 camera_cmd_t *node = (camera_cmd_t *)malloc(sizeof(camera_cmd_t)); in sendCmd() local
142 if (NULL == node) { in sendCmd()
146 memset(node, 0, sizeof(camera_cmd_t)); in sendCmd()
147 node->cmd = cmd; in sendCmd()
150 if (!cmd_queue.enqueueWithPriority((void *)node)) { in sendCmd()
151 free(node); in sendCmd()
152 node = NULL; in sendCmd()
155 if (!cmd_queue.enqueue((void *)node)) { in sendCmd()
156 free(node); in sendCmd()
157 node = NULL; in sendCmd()
181 camera_cmd_t *node = (camera_cmd_t *)cmd_queue.dequeue(); in getCmd() local
182 if (NULL == node) { in getCmd()
186 cmd = node->cmd; in getCmd()
187 free(node); in getCmd()