Home
last modified time | relevance | path

Searched refs:tail (Results 1 – 20 of 20) sorted by relevance

/device/linaro/dragonboard/qcom/qrtr/src/
Dlist.h20 struct list_item *tail; member
34 list->tail = 0; in list_init()
40 item->prev = list->tail; in list_append()
41 if (list->tail != 0) in list_append()
42 list->tail->next = item; in list_append()
45 list->tail = item; in list_append()
53 list->tail = item; in list_prepend()
68 if (list->tail == after) in list_insert()
69 list->tail = item; in list_insert()
79 list->tail = 0; in list_remove()
[all …]
/device/generic/car/emulator/audio/driver/
Daudio_vbuffer.c42 audio_vbuffer->tail = 0; in audio_vbuffer_init()
84 if (audio_vbuffer->live == 0 || audio_vbuffer->head > audio_vbuffer->tail) { 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()
116 audio_vbuffer->tail > audio_vbuffer->head) { in audio_vbuffer_read()
118 MIN(frame_count, audio_vbuffer->frame_count - audio_vbuffer->tail); in audio_vbuffer_read()
119 } else if (audio_vbuffer->tail < audio_vbuffer->head) { in audio_vbuffer_read()
120 frames = MIN(frame_count, audio_vbuffer->head - audio_vbuffer->tail); in audio_vbuffer_read()
126 &audio_vbuffer->data[audio_vbuffer->tail * audio_vbuffer->frame_size], in audio_vbuffer_read()
131 audio_vbuffer->tail = in audio_vbuffer_read()
[all …]
Daudio_vbuffer.h28 size_t tail; member
/device/google/contexthub/firmware/os/core/
DsimpleQ.c32 uint32_t head, tail, num, freeHead, entrySz; member
65 sq->tail = SIMPLE_QUEUE_IDX_NONE; in simpleQueueAlloc()
105 if (sq->tail == head) in simpleQueueDequeue()
106 sq->tail = SIMPLE_QUEUE_IDX_NONE; in simpleQueueDequeue()
136 if (sq->tail == idx) in simpleQueueAllocWithDiscard()
137 sq->tail = prev; in simpleQueueAllocWithDiscard()
172 simpleQueueGetNth(sq, sq->tail)->nextIdx = simpleQueueGetIdx(sq, e); in simpleQueueEnqueue()
173 sq->tail = simpleQueueGetIdx(sq, e); in simpleQueueEnqueue()
/device/linaro/hikey/hifi/xaf/hifi-dpf/core/util/gdbstub/
Dgdbstub.c124 unsigned char tail; member
142 return (ring->tail + 1) & (RING_SIZE - 1); in ring_next_tail()
148 GDB_INVALIDATE(&ring->tail); in ring_have_space()
150 return ring_next_head(ring) != ring->tail; in ring_have_space()
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()
178 GDB_FLUSH(&rx->tail); in init_debug_comm()
180 GDB_FLUSH(&tx->tail); in init_debug_comm()
217 GDB_INVALIDATE(&rx->data[rx->tail]); in getDebugChar()
[all …]
/device/linaro/hikey/hifi/xaf/hifi-dpf/include/
Dxf-msg.h97 xf_message_t *tail; member
108 queue->head = queue->tail = NULL; in xf_msg_queue_init()
122 queue->tail->next = m; in xf_msg_enqueue()
125 queue->tail = m; in xf_msg_enqueue()
147 queue->tail = NULL; in xf_msg_dequeue()
/device/google/crosshatch/json-c/
Dlinkhash.c475 t->tail = new_t->tail; in lh_table_resize()
514 t->head = t->tail = &t->table[n]; in lh_table_insert()
517 t->tail->next = &t->table[n]; in lh_table_insert()
518 t->table[n].prev = t->tail; in lh_table_insert()
520 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()
580 } else if (t->tail == &t->table[n]) { in lh_table_delete_entry()
581 t->tail->prev->next = NULL; in lh_table_delete_entry()
582 t->tail = t->tail->prev; in lh_table_delete_entry()
Dlinkhash.h133 struct lh_entry *tail; member
/device/google/bonito/json-c/
Dlinkhash.c475 t->tail = new_t->tail; in lh_table_resize()
514 t->head = t->tail = &t->table[n]; in lh_table_insert()
517 t->tail->next = &t->table[n]; in lh_table_insert()
518 t->table[n].prev = t->tail; in lh_table_insert()
520 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()
580 } else if (t->tail == &t->table[n]) { in lh_table_delete_entry()
581 t->tail->prev->next = NULL; in lh_table_delete_entry()
582 t->tail = t->tail->prev; in lh_table_delete_entry()
Dlinkhash.h133 struct lh_entry *tail; member
/device/google/coral/json-c/
Dlinkhash.c475 t->tail = new_t->tail; in lh_table_resize()
514 t->head = t->tail = &t->table[n]; in lh_table_insert()
517 t->tail->next = &t->table[n]; in lh_table_insert()
518 t->table[n].prev = t->tail; in lh_table_insert()
520 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()
580 } else if (t->tail == &t->table[n]) { in lh_table_delete_entry()
581 t->tail->prev->next = NULL; in lh_table_delete_entry()
582 t->tail = t->tail->prev; in lh_table_delete_entry()
Dlinkhash.h133 struct lh_entry *tail; member
/device/google/cuttlefish/tools/
Dflash-blk-dev.sh102 parts=`sudo gdisk -l /dev/${blk_dev} | grep "^Number" -A999 | tail -n +2 | wc -l`
103 FIRST_SECTOR=`sudo gdisk -l /dev/${blk_dev} 2>/dev/null | tail -1 | tr -s ' ' | cut -d" " -f3`
Dcreate_base_image_gce.sh73 | tail -n 1) \
/device/google/cuttlefish_kernel/scripts/
Dextract-vmlinux41 tail -c+$pos "$img" | $3 > $tmp 2> /dev/null
/device/linaro/dragonboard/audio/
Daudio_hw.c78 size_t tail; member
95 audio_vbuffer->tail = 0; in audio_vbuffer_init()
127 if (audio_vbuffer->live == 0 || audio_vbuffer->head > audio_vbuffer->tail) { in audio_vbuffer_write()
129 } else if (audio_vbuffer->head < audio_vbuffer->tail) { in audio_vbuffer_write()
130 frames = MIN(frame_count, audio_vbuffer->tail - (audio_vbuffer->head)); in audio_vbuffer_write()
155 audio_vbuffer->tail > audio_vbuffer->head) { in audio_vbuffer_read()
156 frames = MIN(frame_count, audio_vbuffer->frame_count - audio_vbuffer->tail); in audio_vbuffer_read()
157 } else if (audio_vbuffer->tail < audio_vbuffer->head) { in audio_vbuffer_read()
158 frames = MIN(frame_count, audio_vbuffer->head - audio_vbuffer->tail); in audio_vbuffer_read()
163 &audio_vbuffer->data[audio_vbuffer->tail*audio_vbuffer->frame_size], in audio_vbuffer_read()
[all …]
/device/google/cuttlefish/guest/hals/audio/
Daudio_hw.c81 size_t tail; member
98 audio_vbuffer->tail = 0; in audio_vbuffer_init()
130 if (audio_vbuffer->live == 0 || audio_vbuffer->head > audio_vbuffer->tail) { in audio_vbuffer_write()
132 } else if (audio_vbuffer->head < audio_vbuffer->tail) { in audio_vbuffer_write()
133 frames = MIN(frame_count, audio_vbuffer->tail - (audio_vbuffer->head)); in audio_vbuffer_write()
158 audio_vbuffer->tail > audio_vbuffer->head) { in audio_vbuffer_read()
159 frames = MIN(frame_count, audio_vbuffer->frame_count - audio_vbuffer->tail); in audio_vbuffer_read()
160 } else if (audio_vbuffer->tail < audio_vbuffer->head) { in audio_vbuffer_read()
161 frames = MIN(frame_count, audio_vbuffer->head - audio_vbuffer->tail); in audio_vbuffer_read()
166 &audio_vbuffer->data[audio_vbuffer->tail*audio_vbuffer->frame_size], in audio_vbuffer_read()
[all …]
/device/common/
Dgenerate-packages.sh55 …TO_EXTRACT=`sed -n -e '/'" $COMPANY"'/,/;;/ p' $EXTRACT_LIST_FILENAME | tail -n+3 | head -n-2 | s…
170 …echo tail -n +$(expr 2 + $(cat PROLOGUE $COMPANY/COPYRIGHT PART1 $COMPANY/LICENSE PART2 PART3 | wc…
/device/linaro/hikey/hifi/xaf/hifi-dpf/build_hikey/tools/
Delftobin.sh53 tail -c $nbytes __zero.bin >> $VARBIN
/device/google/coral/vibrator/tests/
Dtest-vibrator.cpp103 auto tail = Queue(second, rest...); in Queue() local
104 auto string = std::get<0>(head) + "," + std::get<0>(tail); in Queue()
105 auto duration = std::get<1>(head) + std::get<1>(tail); in Queue()