Home
last modified time | relevance | path

Searched refs:head (Results 1 – 25 of 45) sorted by relevance

12

/device/google/dragon/audio/hal/
Dutlist.h64 #define LL_PREPEND(head, add) \ argument
66 (add)->next = head; \
67 head = add; \
82 #define LL_APPEND(head, add) \ argument
84 __typeof(head) _tmp; \
86 if (head) { \
87 _tmp = head; \
92 (head) = (add); \
96 #define LL_DELETE(head, del) \ argument
98 __typeof(head) _tmp; \
[all …]
/device/huawei/angler/power/
Dlist.c37 int init_list_head(struct list_node *head) in init_list_head() argument
39 if (head == NULL) in init_list_head()
42 memset(head, 0, sizeof(*head)); in init_list_head()
47 struct list_node *add_list_node(struct list_node *head, void *data) in add_list_node() argument
52 if (head == NULL) { 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()
69 int is_list_empty(struct list_node *head) in is_list_empty() argument
[all …]
Dlist.h37 int init_list_head(struct list_node *head);
38 struct list_node * add_list_node(struct list_node *head, void *data);
39 int remove_list_node(struct list_node *head, struct list_node *del_node);
40 void dump_list(struct list_node *head);
41 struct list_node *find_node(struct list_node *head, void *comparison_data);
/device/lge/bullhead/power/
Dlist.c37 int init_list_head(struct list_node *head) in init_list_head() argument
39 if (head == NULL) in init_list_head()
42 memset(head, 0, sizeof(*head)); in init_list_head()
47 struct list_node *add_list_node(struct list_node *head, void *data) in add_list_node() argument
52 if (head == NULL) { 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()
69 int is_list_empty(struct list_node *head) in is_list_empty() argument
[all …]
Dlist.h37 int init_list_head(struct list_node *head);
38 struct list_node * add_list_node(struct list_node *head, void *data);
39 int remove_list_node(struct list_node *head, struct list_node *del_node);
40 void dump_list(struct list_node *head);
41 struct list_node *find_node(struct list_node *head, void *comparison_data);
/device/moto/shamu/camera/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg_queue.c37 cam_list_init(&queue->head.list); in mm_jpeg_queue_init()
55 cam_list_add_tail_node(&node->list, &queue->head.list); in mm_jpeg_queue_enq()
65 struct cam_list *head = NULL; in mm_jpeg_queue_enq_head() local
77 head = &queue->head.list; in mm_jpeg_queue_enq_head()
78 pos = head->next; in mm_jpeg_queue_enq_head()
92 struct cam_list *head = NULL; in mm_jpeg_queue_deq() local
96 head = &queue->head.list; in mm_jpeg_queue_deq()
97 pos = head->next; in mm_jpeg_queue_deq()
98 if (pos != head) { in mm_jpeg_queue_deq()
136 struct cam_list *head = NULL; in mm_jpeg_queue_flush() local
[all …]
/device/lge/bullhead/camera/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg_queue.c37 cam_list_init(&queue->head.list); in mm_jpeg_queue_init()
55 cam_list_add_tail_node(&node->list, &queue->head.list); in mm_jpeg_queue_enq()
65 struct cam_list *head = NULL; in mm_jpeg_queue_enq_head() local
77 head = &queue->head.list; in mm_jpeg_queue_enq_head()
78 pos = head->next; in mm_jpeg_queue_enq_head()
92 struct cam_list *head = NULL; in mm_jpeg_queue_deq() local
98 head = &queue->head.list; in mm_jpeg_queue_deq()
99 pos = head->next; in mm_jpeg_queue_deq()
100 if (pos != head) { in mm_jpeg_queue_deq()
137 struct cam_list *head = NULL; in mm_jpeg_queue_flush() local
[all …]
/device/huawei/angler/camera/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg_queue.c37 cam_list_init(&queue->head.list); in mm_jpeg_queue_init()
55 cam_list_add_tail_node(&node->list, &queue->head.list); in mm_jpeg_queue_enq()
65 struct cam_list *head = NULL; in mm_jpeg_queue_enq_head() local
77 head = &queue->head.list; in mm_jpeg_queue_enq_head()
78 pos = head->next; in mm_jpeg_queue_enq_head()
92 struct cam_list *head = NULL; in mm_jpeg_queue_deq() local
98 head = &queue->head.list; in mm_jpeg_queue_deq()
99 pos = head->next; in mm_jpeg_queue_deq()
100 if (pos != head) { in mm_jpeg_queue_deq()
137 struct cam_list *head = NULL; in mm_jpeg_queue_flush() local
[all …]
/device/moto/shamu/camera/QCamera/stack/mm-jpeg-interface/src/
Dmm_jpeg_queue.c37 cam_list_init(&queue->head.list); in mm_jpeg_queue_init()
55 cam_list_add_tail_node(&node->list, &queue->head.list); in mm_jpeg_queue_enq()
68 struct cam_list *head = NULL; in mm_jpeg_queue_peek() local
72 head = &queue->head.list; in mm_jpeg_queue_peek()
73 pos = head->next; in mm_jpeg_queue_peek()
74 if (pos != head) { in mm_jpeg_queue_peek()
89 struct cam_list *head = NULL; in mm_jpeg_queue_deq() local
93 head = &queue->head.list; in mm_jpeg_queue_deq()
94 pos = head->next; in mm_jpeg_queue_deq()
95 if (pos != head) { in mm_jpeg_queue_deq()
[all …]
/device/huawei/angler/camera/QCamera2/stack/common/
Dcam_queue.h38 cam_node_t head; /* dummy head */ member
46 cam_list_init(&queue->head.list); in cam_queue_init()
63 cam_list_add_tail_node(&node->list, &queue->head.list); in cam_queue_enq()
74 struct cam_list *head = NULL; in cam_queue_deq() local
78 head = &queue->head.list; in cam_queue_deq()
79 pos = head->next; in cam_queue_deq()
80 if (pos != head) { in cam_queue_deq()
98 struct cam_list *head = NULL; in cam_queue_flush() local
102 head = &queue->head.list; in cam_queue_flush()
103 pos = head->next; in cam_queue_flush()
[all …]
Dcam_list.h55 struct cam_list *head) in cam_list_add_tail_node() argument
57 struct cam_list *prev = head->prev; in cam_list_add_tail_node()
59 head->prev = item; in cam_list_add_tail_node()
60 item->next = head; in cam_list_add_tail_node()
/device/moto/shamu/camera/QCamera2/stack/common/
Dcam_queue.h40 cam_node_t head; /* dummy head */ member
48 cam_list_init(&queue->head.list); in cam_queue_init()
65 cam_list_add_tail_node(&node->list, &queue->head.list); in cam_queue_enq()
76 struct cam_list *head = NULL; in cam_queue_deq() local
80 head = &queue->head.list; in cam_queue_deq()
81 pos = head->next; in cam_queue_deq()
82 if (pos != head) { in cam_queue_deq()
100 struct cam_list *head = NULL; in cam_queue_flush() local
104 head = &queue->head.list; in cam_queue_flush()
105 pos = head->next; in cam_queue_flush()
[all …]
Dcam_list.h53 struct cam_list *head) in cam_list_add_tail_node() argument
55 struct cam_list *prev = head->prev; in cam_list_add_tail_node()
57 head->prev = item; in cam_list_add_tail_node()
58 item->next = head; in cam_list_add_tail_node()
/device/lge/bullhead/camera/QCamera2/stack/common/
Dcam_queue.h38 cam_node_t head; /* dummy head */ member
46 cam_list_init(&queue->head.list); in cam_queue_init()
63 cam_list_add_tail_node(&node->list, &queue->head.list); in cam_queue_enq()
74 struct cam_list *head = NULL; in cam_queue_deq() local
78 head = &queue->head.list; in cam_queue_deq()
79 pos = head->next; in cam_queue_deq()
80 if (pos != head) { in cam_queue_deq()
98 struct cam_list *head = NULL; in cam_queue_flush() local
102 head = &queue->head.list; in cam_queue_flush()
103 pos = head->next; in cam_queue_flush()
[all …]
Dcam_list.h55 struct cam_list *head) in cam_list_add_tail_node() argument
57 struct cam_list *prev = head->prev; in cam_list_add_tail_node()
59 head->prev = item; in cam_list_add_tail_node()
60 item->next = head; in cam_list_add_tail_node()
/device/huawei/angler/camera/QCamera2/util/
DQCameraQueue.cpp219 struct cam_list *head = NULL; in peek() local
224 head = &m_head.list; in peek()
225 pos = head->next; in peek()
226 if (pos != head) { in peek()
254 struct cam_list *head = NULL; in dequeue() local
259 head = &m_head.list; in dequeue()
261 pos = head->next; in dequeue()
263 pos = head->prev; in dequeue()
265 if (pos != head) { in dequeue()
293 struct cam_list *head = NULL; in flush() local
[all …]
/device/lge/bullhead/camera/QCamera2/util/
DQCameraQueue.cpp219 struct cam_list *head = NULL; in peek() local
224 head = &m_head.list; in peek()
225 pos = head->next; in peek()
226 if (pos != head) { in peek()
254 struct cam_list *head = NULL; in dequeue() local
259 head = &m_head.list; in dequeue()
261 pos = head->next; in dequeue()
263 pos = head->prev; in dequeue()
265 if (pos != head) { in dequeue()
293 struct cam_list *head = NULL; in flush() local
[all …]
/device/google/contexthub/firmware/src/
DeventQ.c38 struct EvtRecord *head; member
54 q->head = NULL; in evtQueueAlloc()
71 while (q->head) { in evtQueueFree()
72 t = q->head; in evtQueueFree()
73 q->head = q->head->next; in evtQueueFree()
95 rec = q->head; in evtQueueEnqueue()
104 q->head = rec->next; in evtQueueEnqueue()
125 rec->next = q->head; in evtQueueEnqueue()
126 q->head = rec; in evtQueueEnqueue()
135 if (q->head) in evtQueueEnqueue()
[all …]
DsimpleQ.c32 uint32_t head, tail, num, freeHead, entrySz; member
64 sq->head = SIMPLE_QUEUE_IDX_NONE; in simpleQueueAlloc()
85 for (i = sq->head; i != SIMPLE_QUEUE_IDX_NONE; i = cur->nextIdx) { in simpleQueueDestroy()
96 uint32_t head; in simpleQueueDequeue() local
98 if (!sq || sq->head == SIMPLE_QUEUE_IDX_NONE) in simpleQueueDequeue()
101 head = sq->head; in simpleQueueDequeue()
102 e = simpleQueueGetNth(sq, head); in simpleQueueDequeue()
104 sq->head = e->nextIdx; in simpleQueueDequeue()
105 if (sq->tail == head) in simpleQueueDequeue()
122 for (idx = sq->head; idx != SIMPLE_QUEUE_IDX_NONE; prev=idx, idx = cur->nextIdx) { in simpleQueueAllocWithDiscard()
[all …]
/device/moto/shamu/camera/QCamera2/util/
DQCameraQueue.cpp223 struct cam_list *head = NULL; in dequeue() local
228 head = &m_head.list; in dequeue()
230 pos = head->next; in dequeue()
232 pos = head->prev; in dequeue()
234 if (pos != head) { in dequeue()
262 struct cam_list *head = NULL; in flush() local
267 head = &m_head.list; in flush()
268 pos = head->next; in flush()
270 while(pos != head) { in flush()
304 struct cam_list *head = NULL; in flushNodes() local
[all …]
/device/moto/shamu/camera/QCamera/stack/mm-camera-interface/src/
Dmm_camera_data.c53 cam_list_init(&queue->head.list); in mm_camera_queue_init()
71 cam_list_add_tail_node(&node->list, &queue->head.list); in mm_camera_queue_enq()
83 struct cam_list *head = NULL; in mm_camera_queue_deq() local
87 head = &queue->head.list; in mm_camera_queue_deq()
88 pos = head->next; in mm_camera_queue_deq()
89 if (pos != head) { in mm_camera_queue_deq()
115 struct cam_list *head = NULL; in mm_camera_queue_flush() local
119 head = &queue->head.list; in mm_camera_queue_flush()
120 pos = head->next; in mm_camera_queue_flush()
122 while(pos != head) { in mm_camera_queue_flush()
/device/huawei/angler/camera/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_queue.c110 struct cam_list *head = NULL; in mm_qcamera_queue_dequeue() local
114 head = &queue->m_head.list; in mm_qcamera_queue_dequeue()
116 pos = head->next; in mm_qcamera_queue_dequeue()
118 pos = head->prev; in mm_qcamera_queue_dequeue()
120 if (pos != head) { in mm_qcamera_queue_dequeue()
138 struct cam_list *head = NULL; in mm_qcamera_queue_flush() local
146 head = &queue->m_head.list; in mm_qcamera_queue_flush()
147 pos = head->next; in mm_qcamera_queue_flush()
149 while(pos != head) { in mm_qcamera_queue_flush()
/device/moto/shamu/camera/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_queue.c110 struct cam_list *head = NULL; in mm_qcamera_queue_dequeue() local
114 head = &queue->m_head.list; in mm_qcamera_queue_dequeue()
116 pos = head->next; in mm_qcamera_queue_dequeue()
118 pos = head->prev; in mm_qcamera_queue_dequeue()
120 if (pos != head) { in mm_qcamera_queue_dequeue()
138 struct cam_list *head = NULL; in mm_qcamera_queue_flush() local
146 head = &queue->m_head.list; in mm_qcamera_queue_flush()
147 pos = head->next; in mm_qcamera_queue_flush()
149 while(pos != head) { in mm_qcamera_queue_flush()
/device/lge/bullhead/camera/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_queue.c110 struct cam_list *head = NULL; in mm_qcamera_queue_dequeue() local
114 head = &queue->m_head.list; in mm_qcamera_queue_dequeue()
116 pos = head->next; in mm_qcamera_queue_dequeue()
118 pos = head->prev; in mm_qcamera_queue_dequeue()
120 if (pos != head) { in mm_qcamera_queue_dequeue()
138 struct cam_list *head = NULL; in mm_qcamera_queue_flush() local
146 head = &queue->m_head.list; in mm_qcamera_queue_flush()
147 pos = head->next; in mm_qcamera_queue_flush()
149 while(pos != head) { in mm_qcamera_queue_flush()
/device/moto/shamu/camera/QCamera/stack/common/
Dcam_list.h53 struct cam_list *head) in cam_list_add_tail_node() argument
55 struct cam_list *prev = head->prev; in cam_list_add_tail_node()
57 head->prev = item; in cam_list_add_tail_node()
58 item->next = head; in cam_list_add_tail_node()

12