Home
last modified time | relevance | path

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

12345

/device/google/contexthub/firmware/os/core/
DeventQ.c29 #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 …]
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/linaro/dragonboard/shared/utils/qrtr/src/
Dlist.h21 struct list_item *head; member
35 list->head = 0; in list_init()
46 list->head = item; in list_append()
53 item->next = list->head; in list_prepend()
54 if (list->head == 0) in list_prepend()
56 list->head = item; in list_prepend()
78 if (list->head == item) { in list_remove()
79 list->head = item->next; in list_remove()
80 if (list->head == 0) in list_remove()
93 item = list->head; in list_pop()
[all …]
/device/generic/car/emulator/audio/driver/
Daudio_vbuffer.c42 audio_vbuffer->head = 0; in audio_vbuffer_init()
85 if (audio_vbuffer->live == 0 || audio_vbuffer->head > audio_vbuffer->tail) { in audio_vbuffer_write()
87 MIN(frame_count, audio_vbuffer->frame_count - audio_vbuffer->head); in audio_vbuffer_write()
88 } else if (audio_vbuffer->head < audio_vbuffer->tail) { in audio_vbuffer_write()
89 frames = MIN(frame_count, audio_vbuffer->tail - (audio_vbuffer->head)); in audio_vbuffer_write()
95 &audio_vbuffer->data[audio_vbuffer->head * audio_vbuffer->frame_size], in audio_vbuffer_write()
101 audio_vbuffer->head = in audio_vbuffer_write()
102 (audio_vbuffer->head + frames) % audio_vbuffer->frame_count; in audio_vbuffer_write()
117 audio_vbuffer->tail > audio_vbuffer->head) { in audio_vbuffer_read()
120 } else if (audio_vbuffer->tail < audio_vbuffer->head) { in audio_vbuffer_read()
[all …]
Daudio_vbuffer.h27 size_t head; member
/device/google/sunfish/json-c/
Dlinkhash.c466 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()
Dlinkhash.h128 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)
Djson_object.h349 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…
Djson_object_iterator.c79 iter.opaque_ = pTable->head; in json_object_iter_begin()
/device/google/redbull/json-c/
Dlinkhash.c466 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()
Dlinkhash.h128 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)
Djson_object.h349 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…
Djson_object_iterator.c79 iter.opaque_ = pTable->head; in json_object_iter_begin()
/device/google/coral/json-c/
Dlinkhash.c466 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()
Dlinkhash.h128 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)
Djson_object.h349 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…
Djson_object_iterator.c79 iter.opaque_ = pTable->head; in json_object_iter_begin()
/device/google/cuttlefish/guest/hals/ril/reference-libril/
DRilSapSocket.cpp30 static RilSapSocket::RilSapSocketList *head = NULL; variable
86 RilSapSocketList *current = head; in printList()
97 RilSapSocketList *current = head; in getSocketById()
164 if(NULL == head) { in addSocketToList()
165 head = listItem; in addSocketToList()
166 head->next = NULL; in addSocketToList()
169 current = head; in addSocketToList()
179 RilSapSocketList* current = head; in SocketExists()
/device/common/
Dgenerate-android-bp-for-blobs.sh70 file32=$(find "$PREBUILT_DIR" -type f -name "$file" | grep -v 'lib64' | head)
71 file64=$(find "$PREBUILT_DIR" -type f -name "$file" | grep 'lib64' | head)
/device/google/cuttlefish/host/libs/image_aggregator/
Dimage_aggregator.cc403 GptEnd End(const GptBeginning& head) const { in End()
405 std::memcpy((void*)gpt.entries, (void*)head.entries, sizeof(gpt.entries)); in End()
406 gpt.footer = head.header; in End()
/device/google/cuttlefish/tools/gigabyte-ampere-cuttlefish-installer/preseed/
Dpreseed.cfg55 DEVICE1=$(list-devices disk|head -n1); \
57 DEVICE1=$(list-devices disk|head -n$COUNTER|tail -1); \
/device/google/zuma/storage/
Dufs_firmware_update.sh14 file=$(find ${fw_dir} -name "*${vendor}${model}${rev}*" | head -n 1)
/device/google/zumapro/storage/
Dufs_firmware_update.sh14 file=$(find ${fw_dir} -name "*${vendor}${model}${rev}*" | head -n 1)
/device/google/bluejay/storage/
Dufs_firmware_update.sh14 file=$(find ${fw_dir} -name "*${vendor}${model}${rev}*" | head -n 1)
/device/google/gs201/storage/
Dufs_firmware_update.sh16 file=$(find ${fw_dir} -name "*${vendor}${model}${rev}*" | head -n 1)

12345