Searched refs:tail (Results 1 – 12 of 12) sorted by relevance
/SCP-firmware-master/framework/src/ |
A D | fwk_ring.c | 46 if ((ring->tail >= ring->head) && !ring->full) { in fwk_ring_get_length() 47 return (ring->tail - ring->head); in fwk_ring_get_length() 49 return ((ring->capacity - ring->head) + ring->tail); in fwk_ring_get_length() 71 return ((ring->head == ring->tail) && !ring->full); in fwk_ring_is_empty() 143 if (fwk_ring_offset(ring, ring->tail + buffer_size) > ring->tail) { in fwk_ring_push() 144 (void)memcpy(ring->storage + ring->tail, buffer, buffer_size); in fwk_ring_push() 146 size_t chunk_size = ring->capacity - ring->tail; in fwk_ring_push() 148 (void)memcpy(ring->storage + ring->tail, buffer, chunk_size); in fwk_ring_push() 153 ring->tail = fwk_ring_offset(ring, ring->tail + buffer_size); in fwk_ring_push() 156 ring->head = ring->tail; in fwk_ring_push() [all …]
|
A D | fwk_slist.c | 23 list->tail = (struct fwk_slist_node *)list; in __fwk_slist_init() 46 fwk_assert(list->tail == list->head); in __fwk_slist_is_empty() 63 if (list->tail == (struct fwk_slist_node *)list) { in __fwk_slist_push_head() 64 list->tail = new; in __fwk_slist_push_head() 78 list->tail->next = new; in __fwk_slist_push_tail() 79 list->tail = new; in __fwk_slist_push_tail() 94 list->tail = (struct fwk_slist_node *)list; in __fwk_slist_pop_head() 131 list->tail = (struct fwk_slist_node *)node_iter; in __fwk_slist_remove()
|
A D | fwk_dlist.c | 41 new->prev = list->tail; in __fwk_dlist_push_tail() 121 static_assert(offsetof(struct fwk_dlist, tail) == 122 offsetof(struct fwk_slist, tail), 133 static_assert(offsetof(struct fwk_dlist, tail) ==
|
/SCP-firmware-master/framework/test/ |
A D | test_fwk_list_pop.c | 32 assert(slist.tail == (struct fwk_slist_node *)&slist); in test_slist_pop_head_on_empty() 40 assert(dlist.tail == (struct fwk_dlist_node *)&dlist); in test_dlist_pop_head_on_empty() 50 assert(slist.tail == (struct fwk_slist_node *)&slist); in test_slist_pop_head_on_one() 60 assert(dlist.tail == (struct fwk_dlist_node *)&dlist); in test_dlist_pop_head_on_one() 71 assert(slist.tail == &snodes[1]); in test_slist_pop_head_on_two() 84 assert(dlist.tail == &dnodes[1]); in test_dlist_pop_head_on_two() 99 assert(slist.tail == &snodes[2]); in test_slist_pop_head_on_many() 114 assert(dlist.tail == &dnodes[2]); in test_dlist_pop_head_on_many()
|
A D | test_fwk_list_push.c | 37 assert(slist.tail == &snodes[0]); in test_slist_push_head_from_empty() 47 assert(dlist.tail == &dnodes[0]); in test_dlist_push_head_from_empty() 58 assert(slist.tail == &snodes[0]); in test_slist_push_back_from_empty() 68 assert(dlist.tail == &dnodes[0]); in test_dlist_push_back_from_empty() 80 assert(slist.tail == &snodes[0]); in test_slist_push_head() 92 assert(dlist.tail == &dnodes[0]); in test_dlist_push_head() 107 assert(slist.tail == &snodes[1]); in test_slist_push_back() 119 assert(dlist.tail == &dnodes[1]); in test_dlist_push_back()
|
A D | test_fwk_list_remove.c | 38 assert(slist.tail == (struct fwk_slist_node *)&slist); in test_slist_remove_on_one() 48 assert(slist.tail == &snodes[1]); in test_slist_remove_first_of_two() 59 assert(slist.tail == &snodes[0]); in test_slist_remove_second_of_two() 71 assert(slist.tail == &snodes[2]); in test_slist_remove_second_of_three() 81 assert(dlist.tail == (struct fwk_dlist_node *)&dlist); in test_dlist_remove_on_one() 91 assert(dlist.tail == &dnodes[1]); in test_dlist_remove_first_of_two() 103 assert(dlist.tail == &dnodes[0]); in test_dlist_remove_second_of_two() 116 assert(dlist.tail == &dnodes[2]); in test_dlist_remove_second_of_three()
|
A D | test_fwk_list_insert.c | 42 assert(list.tail == &node[2]); in test_list_insert() 50 assert(list.tail == &node[0]); in test_list_insert_empty() 61 assert(list.tail == &node[0]); in test_list_insert_tail_implicit() 66 assert(list.tail == &node[1]); in test_list_insert_tail_implicit()
|
A D | test_fwk_list_init.c | 20 assert(list.tail == (struct fwk_slist_node *)&list); in test_slist_init() 30 assert(list.tail == (struct fwk_dlist_node *)&list); in test_dlist_init()
|
A D | test_fwk_core.c | 162 ctx->free_event_queue.tail == in test___fwk_init() 223 assert(ctx->isr_event_queue.tail == &(notification1.slist_node)); in test___fwk_run_main_loop() 225 assert(ctx->event_queue.tail == &(allocated_event->slist_node)); in test___fwk_run_main_loop() 242 assert(ctx->isr_event_queue.tail == &(notification1.slist_node)); in test___fwk_run_main_loop() 244 assert(ctx->event_queue.tail == &(allocated_event->slist_node)); in test___fwk_run_main_loop() 261 assert(ctx->isr_event_queue.tail == &(notification1.slist_node)); in test___fwk_run_main_loop() 281 assert(ctx->isr_event_queue.tail == &(notification1.slist_node)); in test___fwk_run_main_loop() 302 assert(ctx->event_queue.tail == &(allocated_event->slist_node)); in test___fwk_run_main_loop()
|
/SCP-firmware-master/framework/include/ |
A D | fwk_ring.h | 57 size_t tail; member
|
A D | fwk_dlist.h | 38 struct fwk_dlist_node *tail; member
|
A D | fwk_slist.h | 39 struct fwk_slist_node *tail; member
|
Completed in 12 milliseconds