/device/linaro/dragonboard/qcom/qrtr/src/ |
D | list.h | 19 struct list_item *head; member 33 list->head = 0; in list_init() 44 list->head = item; in list_append() 51 item->next = list->head; in list_prepend() 52 if (list->head == 0) in list_prepend() 54 list->head = item; in list_prepend() 76 if (list->head == item) { in list_remove() 77 list->head = item->next; in list_remove() 78 if (list->head == 0) in list_remove() 91 item = list->head; in list_pop() [all …]
|
/device/google/contexthub/firmware/os/core/ |
D | simpleQ.c | 32 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 …]
|
D | eventQ.c | 29 #define for_each_item_safe(head, pos, tmp) \ argument 30 for (pos = (head)->next; tmp = (pos)->next, (pos) != (head); pos = (tmp)) 46 struct EvtList head; member 72 q->head.next = &q->head; in evtQueueAlloc() 73 q->head.prev = &q->head; in evtQueueAlloc() 89 for_each_item_safe (&q->head, pos, tmp) { in evtQueueFree() 116 for (pos = q->head.next; pos != &q->head; pos = pos->next) { in evtQueueEnqueue() 141 b = q->head.next; in evtQueueEnqueue() 144 a = q->head.prev; in evtQueueEnqueue() 165 for_each_item_safe (&q->head, pos, tmp) { in evtQueueRemoveAllMatching() [all …]
|
/device/generic/car/emulator/audio/driver/ |
D | audio_vbuffer.c | 41 audio_vbuffer->head = 0; in audio_vbuffer_init() 84 if (audio_vbuffer->live == 0 || audio_vbuffer->head > audio_vbuffer->tail) { in audio_vbuffer_write() 86 MIN(frame_count, audio_vbuffer->frame_count - audio_vbuffer->head); in audio_vbuffer_write() 87 } else if (audio_vbuffer->head < audio_vbuffer->tail) { in audio_vbuffer_write() 88 frames = MIN(frame_count, audio_vbuffer->tail - (audio_vbuffer->head)); in audio_vbuffer_write() 94 &audio_vbuffer->data[audio_vbuffer->head * audio_vbuffer->frame_size], in audio_vbuffer_write() 100 audio_vbuffer->head = in audio_vbuffer_write() 101 (audio_vbuffer->head + frames) % audio_vbuffer->frame_count; in audio_vbuffer_write() 116 audio_vbuffer->tail > audio_vbuffer->head) { in audio_vbuffer_read() 119 } else if (audio_vbuffer->tail < audio_vbuffer->head) { in audio_vbuffer_read() [all …]
|
D | audio_vbuffer.h | 27 size_t head; member
|
/device/linaro/hikey/hifi/xaf/hifi-dpf/include/ |
D | xf-msg.h | 73 __xf_message_t *head; member 94 xf_message_t *head; member 108 queue->head = queue->tail = NULL; in xf_msg_queue_init() 114 int empty = (queue->head == NULL); in xf_msg_enqueue() 120 queue->head = m; in xf_msg_enqueue() 140 xf_message_t *m = queue->head; in xf_msg_dequeue() 146 if ((queue->head = m->next) == NULL) in xf_msg_dequeue() 159 return (queue->head == NULL); in xf_msg_queue_empty() 165 return queue->head; in xf_msg_queue_head()
|
/device/linaro/hikey/hifi/xaf/hifi-dpf/core/ |
D | xf-msg.c | 51 for (pool->head = &pool->p[i = 0]; i < n - 1; i++) in xf_msg_pool_init() 79 XF_CHK_ERR(_m = pool->head, NULL); in xf_msg_pool_get() 82 pool->head = (__xf_message_t *)(((xf_message_t *) _m)->next); in xf_msg_pool_get() 103 m->next = (xf_message_t *) pool->head; in xf_msg_pool_put() 106 pool->head = _m; in xf_msg_pool_put()
|
/device/linaro/hikey/hifi/xaf/hifi-dpf/core/util/gdbstub/ |
D | gdbstub.c | 122 unsigned char head; member 137 return (ring->head + 1) & (RING_SIZE - 1); in ring_next_head() 156 GDB_INVALIDATE(&ring->head); in ring_have_data() 158 return ring->head != ring->tail; in ring_have_data() 175 rx->head = rx->tail = 0; in init_debug_comm() 176 tx->head = tx->tail = 0; in init_debug_comm() 177 GDB_FLUSH(&rx->head); in init_debug_comm() 179 GDB_FLUSH(&tx->head); in init_debug_comm() 199 tx->data[tx->head] = c; in putDebugChar() 202 GDB_FLUSH(&tx->data[tx->head]); in putDebugChar() [all …]
|
/device/google/cuttlefish/guest/hals/ril/reference-libril/ |
D | RilSapSocket.cpp | 31 static RilSapSocket::RilSapSocketList *head = NULL; variable 87 RilSapSocketList *current = head; in printList() 98 RilSapSocketList *current = head; in getSocketById() 165 if(NULL == head) { in addSocketToList() 166 head = listItem; in addSocketToList() 167 head->next = NULL; in addSocketToList() 170 current = head; in addSocketToList() 180 RilSapSocketList* current = head; in SocketExists()
|
/device/generic/goldfish/radio/libril/ |
D | RilSapSocket.cpp | 31 static RilSapSocket::RilSapSocketList *head = NULL; variable 87 RilSapSocketList *current = head; in printList() 98 RilSapSocketList *current = head; in getSocketById() 165 if(NULL == head) { in addSocketToList() 166 head = listItem; in addSocketToList() 167 head->next = NULL; in addSocketToList() 170 current = head; in addSocketToList() 180 RilSapSocketList* current = head; in SocketExists()
|
/device/google/cuttlefish/guest/hals/ril/libril/ |
D | RilSapSocket.cpp | 31 static RilSapSocket::RilSapSocketList *head = NULL; variable 87 RilSapSocketList *current = head; in printList() 98 RilSapSocketList *current = head; in getSocketById() 165 if(NULL == head) { in addSocketToList() 166 head = listItem; in addSocketToList() 167 head->next = NULL; in addSocketToList() 170 current = head; in addSocketToList() 180 RilSapSocketList* current = head; in SocketExists()
|
/device/google/crosshatch/json-c/ |
D | linkhash.c | 466 ent = t->head; in lh_table_resize() 474 t->head = new_t->head; in lh_table_resize() 483 for(c = t->head; c != NULL; c = c->next) { in lh_table_free() 513 if(t->head == NULL) { in lh_table_insert() 514 t->head = t->tail = &t->table[n]; in lh_table_insert() 575 if(t->tail == &t->table[n] && t->head == &t->table[n]) { in lh_table_delete_entry() 576 t->head = t->tail = NULL; in lh_table_delete_entry() 577 } else if (t->head == &t->table[n]) { in lh_table_delete_entry() 578 t->head->next->prev = NULL; in lh_table_delete_entry() 579 t->head = t->head->next; in lh_table_delete_entry()
|
D | linkhash.h | 128 struct lh_entry *head; member 160 for(entry = table->head; entry; entry = entry->next) 166 for(entry = table->head; entry && ((tmp = entry->next) || 1); entry = tmp)
|
D | json_object.h | 349 for(struct lh_entry *entry ## key = json_object_get_object(obj)->head, *entry_next ## key = NULL; \ 364 for(entry ## key = json_object_get_object(obj)->head; \ 379 …for(iter.entry = json_object_get_object(obj)->head; (iter.entry ? (iter.key = (char*)iter.entry->k…
|
D | json_object_iterator.c | 79 iter.opaque_ = pTable->head; in json_object_iter_begin()
|
/device/google/bonito/json-c/ |
D | linkhash.c | 466 ent = t->head; in lh_table_resize() 474 t->head = new_t->head; in lh_table_resize() 483 for(c = t->head; c != NULL; c = c->next) { in lh_table_free() 513 if(t->head == NULL) { in lh_table_insert() 514 t->head = t->tail = &t->table[n]; in lh_table_insert() 575 if(t->tail == &t->table[n] && t->head == &t->table[n]) { in lh_table_delete_entry() 576 t->head = t->tail = NULL; in lh_table_delete_entry() 577 } else if (t->head == &t->table[n]) { in lh_table_delete_entry() 578 t->head->next->prev = NULL; in lh_table_delete_entry() 579 t->head = t->head->next; in lh_table_delete_entry()
|
D | linkhash.h | 128 struct lh_entry *head; member 160 for(entry = table->head; entry; entry = entry->next) 166 for(entry = table->head; entry && ((tmp = entry->next) || 1); entry = tmp)
|
D | json_object.h | 349 for(struct lh_entry *entry ## key = json_object_get_object(obj)->head, *entry_next ## key = NULL; \ 364 for(entry ## key = json_object_get_object(obj)->head; \ 379 …for(iter.entry = json_object_get_object(obj)->head; (iter.entry ? (iter.key = (char*)iter.entry->k…
|
D | json_object_iterator.c | 79 iter.opaque_ = pTable->head; in json_object_iter_begin()
|
/device/google/coral/json-c/ |
D | linkhash.c | 466 ent = t->head; in lh_table_resize() 474 t->head = new_t->head; in lh_table_resize() 483 for(c = t->head; c != NULL; c = c->next) { in lh_table_free() 513 if(t->head == NULL) { in lh_table_insert() 514 t->head = t->tail = &t->table[n]; in lh_table_insert() 575 if(t->tail == &t->table[n] && t->head == &t->table[n]) { in lh_table_delete_entry() 576 t->head = t->tail = NULL; in lh_table_delete_entry() 577 } else if (t->head == &t->table[n]) { in lh_table_delete_entry() 578 t->head->next->prev = NULL; in lh_table_delete_entry() 579 t->head = t->head->next; in lh_table_delete_entry()
|
D | linkhash.h | 128 struct lh_entry *head; member 160 for(entry = table->head; entry; entry = entry->next) 166 for(entry = table->head; entry && ((tmp = entry->next) || 1); entry = tmp)
|
D | json_object.h | 349 for(struct lh_entry *entry ## key = json_object_get_object(obj)->head, *entry_next ## key = NULL; \ 364 for(entry ## key = json_object_get_object(obj)->head; \ 379 …for(iter.entry = json_object_get_object(obj)->head; (iter.entry ? (iter.key = (char*)iter.entry->k…
|
D | json_object_iterator.c | 79 iter.opaque_ = pTable->head; in json_object_iter_begin()
|
/device/generic/goldfish-opengl/system/vulkan_enc/ |
D | vk_util.h | 200 template <class T, class H> T* vk_find_struct(H* head) in vk_find_struct() argument 203 return static_cast<T*>(__vk_find_struct(static_cast<void*>(head), vk_get_vk_struct_id<T>::id)); in vk_find_struct() 206 template <class T, class H> const T* vk_find_struct(const H* head) in vk_find_struct() argument 209 return static_cast<const T*>(__vk_find_struct(const_cast<void*>(static_cast<const void*>(head)), in vk_find_struct()
|
/device/google/crosshatch/fuzzy_fastboot/ |
D | test.sh | 23 head -c $RADIO_SIZE </dev/urandom>radio_garbage.img 24 head -c $BOOTLOADER_SIZE </dev/urandom>bootloader_garbage.img
|