/Zephyr-Core-3.4.0/subsys/bluetooth/controller/util/ |
D | memq.c | 51 memq_link_t *memq_init(memq_link_t *link, memq_link_t **head, memq_link_t **tail) in memq_init() argument 54 *head = *tail = link; in memq_init() 66 memq_link_t *memq_deinit(memq_link_t **head, memq_link_t **tail) in memq_deinit() argument 71 if (*head != *tail) { in memq_deinit() 75 old_head = *head; in memq_deinit() 76 *head = *tail = NULL; in memq_deinit() 117 memq_link_t *memq_peek(memq_link_t *head, memq_link_t *tail, void **mem) in memq_peek() argument 120 if (head == tail) { in memq_peek() 126 *mem = head->mem; in memq_peek() 129 return head; /* queue was not empty */ in memq_peek() [all …]
|
D | memq.h | 21 memq_link_t *head; \ 25 memq_link_t *memq_init(memq_link_t *link, memq_link_t **head, 29 memq_init(link, &memq_##name.head, &memq_##name.tail) 31 memq_link_t *memq_deinit(memq_link_t **head, memq_link_t **tail); 33 memq_link_t *memq_peek(memq_link_t *head, memq_link_t *tail, void **mem); 34 memq_link_t *memq_peek_n(memq_link_t *head, memq_link_t *tail, uint8_t n, 36 memq_link_t *memq_dequeue(memq_link_t *tail, memq_link_t **head, void **mem);
|
D | mem.c | 44 void *head; in mem_acquire() local 53 memcpy(&head, mem, sizeof(head)); in mem_acquire() 56 if (head) { in mem_acquire() 57 *((uint16_t *)MROUND((uint8_t *)head + sizeof(head))) = in mem_acquire() 61 *mem_head = head; in mem_acquire()
|
D | mayfly.c | 15 memq_link_t *head; member 41 &mft[callee_id][caller_id].head, in mayfly_init() 150 &mft[callee_id][caller_id].head, in dequeue() 190 link = memq_peek(mft[callee_id][caller_id].head, in mayfly_run() 217 link = memq_peek(mft[callee_id][caller_id].head, in mayfly_run()
|
/Zephyr-Core-3.4.0/subsys/usb/device/ |
D | usb_descriptor.c | 194 struct usb_desc_header *head = __usb_descriptor_start; in usb_get_str_descriptor_idx() local 198 while (head->bLength != 0U) { in usb_get_str_descriptor_idx() 199 switch (head->bDescriptorType) { in usb_get_str_descriptor_idx() 201 if (head == (struct usb_desc_header *)str) { in usb_get_str_descriptor_idx() 212 head = (struct usb_desc_header *)((uint8_t *)head + head->bLength); in usb_get_str_descriptor_idx() 393 static int usb_fix_descriptor(struct usb_desc_header *head) in usb_fix_descriptor() argument 403 while (head->bLength != 0U) { in usb_fix_descriptor() 404 switch (head->bDescriptorType) { in usb_fix_descriptor() 406 LOG_DBG("Device descriptor %p", head); in usb_fix_descriptor() 407 usb_desc_update_mps0((void *)head); in usb_fix_descriptor() [all …]
|
/Zephyr-Core-3.4.0/tests/subsys/usb/desc_sections/src/ |
D | desc_sections.c | 113 static void interface_config(struct usb_desc_header *head, in interface_config() argument 116 struct usb_if_descriptor *if_desc = (struct usb_if_descriptor *)head; in interface_config() 118 LOG_DBG("head %p iface_num %u", head, iface_num); in interface_config() 160 static void check_endpoint_allocation(struct usb_desc_header *head) in check_endpoint_allocation() argument 166 while (head->bLength != 0) { in check_endpoint_allocation() 167 if (head->bDescriptorType == USB_DESC_INTERFACE) { in check_endpoint_allocation() 168 struct usb_if_descriptor *if_descr = (void *)head; in check_endpoint_allocation() 184 if (head->bDescriptorType == USB_DESC_ENDPOINT) { in check_endpoint_allocation() 186 (struct usb_ep_descriptor *)head; in check_endpoint_allocation() 197 head = (struct usb_desc_header *)((uint8_t *)head + head->bLength); in check_endpoint_allocation() [all …]
|
/Zephyr-Core-3.4.0/include/zephyr/rtio/ |
D | rtio_mpsc.h | 89 mpsc_ptr_t head; member 103 .head = (struct rtio_mpsc_node *)&symbol.stub, \ 117 mpsc_ptr_set(q->head, &q->stub); in rtio_mpsc_init() 136 prev = (struct rtio_mpsc_node *)mpsc_ptr_set_get(q->head, n); in rtio_mpsc_push() 149 struct rtio_mpsc_node *head; in rtio_mpsc_pop() local 170 head = (struct rtio_mpsc_node *)mpsc_ptr_get(q->head); in rtio_mpsc_pop() 175 if (tail != head) { in rtio_mpsc_pop()
|
/Zephyr-Core-3.4.0/include/zephyr/sys/ |
D | dlist.h | 39 struct _dnode *head; /* ptr to head of list (sys_dlist_t) */ member 199 list->head = (sys_dnode_t *)list; in sys_dlist_init() 241 return list->head == node; in sys_dlist_is_head() 268 return list->head == list; in sys_dlist_is_empty() 283 return list->head != list->tail; in sys_dlist_has_multiple_nodes() 296 return sys_dlist_is_empty(list) ? NULL : list->head; in sys_dlist_peek_head() 311 return list->head; in sys_dlist_peek_head_not_empty() 362 return (node == list->head) ? NULL : node->prev; in sys_dlist_peek_prev_no_check() 426 sys_dnode_t *const head = list->head; in sys_dlist_prepend() local 428 node->next = head; in sys_dlist_prepend() [all …]
|
D | slist.h | 36 sys_snode_t *head; member 198 list->head = NULL; in sys_slist_init() 216 list->head = node; in z_slist_head_set() 233 return list->head; in sys_slist_peek_head() 327 void *head, void *tail);
|
D | sflist.h | 42 sys_sfnode_t *head; member 204 list->head = NULL; in sys_sflist_init() 228 list->head = node; in z_sflist_head_set() 245 return list->head; in sys_sflist_peek_head() 389 void *head, void *tail);
|
D | list_gen.h | 116 void *head, void *tail) \ 118 if (head != NULL && tail != NULL) { \ 121 (sys_ ## __nname ## _t *)head); \ 125 (sys_ ## __nname ## _t *)head); \ 138 sys_ ## __nname ## _t *head, *tail; \ 139 head = sys_ ## __lname ## _peek_head(list_to_append); \ 141 sys_ ## __lname ## _append_list(list, head, tail); \
|
/Zephyr-Core-3.4.0/tests/kernel/queue/src/ |
D | test_queue_fail.c | 63 static qdata_t *head = NULL, *tail = &data_l[1]; in ZTEST() local 69 zassert_true(k_queue_append_list(&queue, (uint32_t *)head, in ZTEST() 73 head = &data_l[0]; in ZTEST() 75 zassert_true(k_queue_append_list(&queue, (uint32_t *)head, in ZTEST() 82 head = &data_l[0]; in ZTEST() 83 head->snode.next = NULL; in ZTEST() 86 head, NULL, K_PRIO_PREEMPT(0), 0, K_NO_WAIT); in ZTEST() 90 k_queue_append_list(&queue, (uint32_t *)head, (uint32_t *)head); in ZTEST()
|
/Zephyr-Core-3.4.0/samples/arch/smp/pktqueue/src/ |
D | pktqueue.c | 17 queue->head = queue->tail = desc; in phdr_desc_enqueue() 38 return_ptr = queue->head; in phdr_desc_dequeue() 39 queue->head = queue->head->next; in phdr_desc_dequeue()
|
/Zephyr-Core-3.4.0/subsys/sip_svc/ |
D | sip_svc_id_mgr.c | 59 id_pool->head = 0; in sip_svc_id_mgr_create() 91 if (id_pool->head == SIP_SVC_ID_INVALID) { in sip_svc_id_mgr_alloc() 95 id = id_pool->id_list[id_pool->head]; in sip_svc_id_mgr_alloc() 102 if (id_pool->head == id_pool->tail) { in sip_svc_id_mgr_alloc() 103 id_pool->head = SIP_SVC_ID_INVALID; in sip_svc_id_mgr_alloc() 106 id_pool->head++; in sip_svc_id_mgr_alloc() 107 if (id_pool->head == id_pool->size) { in sip_svc_id_mgr_alloc() 108 id_pool->head = 0; in sip_svc_id_mgr_alloc() 140 if (id_pool->head == SIP_SVC_ID_INVALID) { in sip_svc_id_mgr_free() 141 id_pool->head = 0; in sip_svc_id_mgr_free() [all …]
|
/Zephyr-Core-3.4.0/boards/posix/nrf52_bsim/ |
D | bstests_entry.c | 32 struct bst_test_list *head = tests; in bst_add_tests() local 41 head = malloc(sizeof(struct bst_test_list)); in bst_add_tests() 42 head->next = NULL; in bst_add_tests() 43 head->test_instance = (struct bst_test_instance *) in bst_add_tests() 45 tail = head; in bst_add_tests() 57 return head; in bst_add_tests()
|
/Zephyr-Core-3.4.0/tests/subsys/rtio/rtio_api/src/ |
D | test_rtio_mpsc.c | 29 mpsc_ptr_t node, head; in ZTEST() local 34 head = mpsc_ptr_get(push_pop_q.head); in ZTEST() 39 zassert_equal(head, stub, "Head should point at stub"); in ZTEST() 48 head = mpsc_ptr_get(push_pop_q.head); in ZTEST() 50 zassert_equal(head, &push_pop_nodes[0], "Queue head should point at push_pop_node"); in ZTEST()
|
/Zephyr-Core-3.4.0/kernel/ |
D | queue.c | 244 int k_queue_append_list(struct k_queue *queue, void *head, void *tail) in k_queue_append_list() argument 249 CHECKIF(head == NULL || tail == NULL) { in k_queue_append_list() 258 if (head != NULL) { in k_queue_append_list() 262 while ((head != NULL) && (thread != NULL)) { in k_queue_append_list() 263 prepare_thread_to_run(thread, head); in k_queue_append_list() 264 head = *(void **)head; in k_queue_append_list() 268 if (head != NULL) { in k_queue_append_list() 269 sys_sflist_append_list(&queue->data_q, head, tail); in k_queue_append_list() 301 ret = k_queue_append_list(queue, list->head, list->tail); in k_queue_merge_slist()
|
D | events.c | 43 struct k_thread *head; member 114 thread->next_event_link = event_data->head; in event_walk_op() 115 event_data->head = thread; in event_walk_op() 129 data.head = NULL; in k_event_post_internal() 151 if (data.head != NULL) { in k_event_post_internal() 152 thread = data.head; in k_event_post_internal()
|
/Zephyr-Core-3.4.0/tests/benchmarks/data_structure_perf/dlist_perf/src/ |
D | dlist_perf.c | 190 sys_dnode_t *head, *tail; in ZTEST() local 199 head = list.head; in ZTEST() 200 zassert_true(head == &node[0], in ZTEST()
|
/Zephyr-Core-3.4.0/tests/net/buf/src/ |
D | main.c | 127 struct net_buf *frag, *head; in ZTEST() local 131 head = net_buf_alloc_len(&bufs_pool, 74, K_NO_WAIT); in ZTEST() 132 zassert_not_null(head, "Failed to get fragment list head"); in ZTEST() 134 frag = head; in ZTEST() 142 net_buf_put(&fifo, head); in ZTEST() 143 head = net_buf_get(&fifo, K_NO_WAIT); in ZTEST() 146 net_buf_unref(head); in ZTEST() 175 struct net_buf *frag, *head; in ZTEST() local 180 head = net_buf_alloc_len(&bufs_pool, 74, K_NO_WAIT); in ZTEST() 181 zassert_not_null(head, "Failed to get fragment list head"); in ZTEST() [all …]
|
/Zephyr-Core-3.4.0/drivers/usb/uvb/ |
D | uvb.h | 130 bool head; member 251 .head = true, \
|
/Zephyr-Core-3.4.0/tests/kernel/fifo/fifo_api/src/ |
D | test_fifo_contexts.c | 31 static fdata_t *head = &data_l[0], *tail = &data_l[LIST_LEN - 1]; in tfifo_put() local 33 head->snode.next = (sys_snode_t *)tail; in tfifo_put() 35 k_fifo_put_list(pfifo, (uint32_t *)head, (uint32_t *)tail); in tfifo_put()
|
/Zephyr-Core-3.4.0/subsys/logging/backends/ |
D | log_backend_adsp_mtrace.c | 102 size_t head = out - tail; in mtrace_out() local 105 memcpy(data, str + tail, head); in mtrace_out() 106 w = head; in mtrace_out()
|
/Zephyr-Core-3.4.0/tests/bluetooth/ctrl_user_ext/src/ |
D | ull_vendor.h | 23 memq_link_t **head) in rx_demux_rx_proprietary() argument
|
/Zephyr-Core-3.4.0/tests/bluetooth/controller/mock_ctrl/include/ |
D | ull_vendor.h | 23 memq_link_t **head) in rx_demux_rx_proprietary() argument
|