/Zephyr-Core-3.7.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 | 20 memq_link_t *head; member 46 &mft[callee_id][caller_id].head, in mayfly_init() 155 &mft[callee_id][caller_id].head, in dequeue() 197 link = memq_peek(mft[callee_id][caller_id].head, in mayfly_run() 224 link = memq_peek(mft[callee_id][caller_id].head, in mayfly_run()
|
/Zephyr-Core-3.7.0/subsys/usb/device/ |
D | usb_descriptor.c | 218 struct usb_desc_header *head = __usb_descriptor_start; in usb_get_str_descriptor_idx() local 222 while (head->bLength != 0U) { in usb_get_str_descriptor_idx() 223 switch (head->bDescriptorType) { in usb_get_str_descriptor_idx() 225 if (head == (struct usb_desc_header *)str) { in usb_get_str_descriptor_idx() 236 head = (struct usb_desc_header *)((uint8_t *)head + head->bLength); in usb_get_str_descriptor_idx() 416 static int usb_fix_descriptor(struct usb_desc_header *head) in usb_fix_descriptor() argument 426 while (head->bLength != 0U) { in usb_fix_descriptor() 427 switch (head->bDescriptorType) { in usb_fix_descriptor() 429 LOG_DBG("Device descriptor %p", head); in usb_fix_descriptor() 430 usb_desc_update_mps0((void *)head); in usb_fix_descriptor() [all …]
|
/Zephyr-Core-3.7.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.7.0/include/zephyr/sys/ |
D | mpsc_lockfree.h | 87 mpsc_ptr_t head; member 101 .head = (struct mpsc_node *)&symbol.stub, \ 115 mpsc_ptr_set(q->head, &q->stub); in mpsc_init() 134 prev = (struct mpsc_node *)mpsc_ptr_set_get(q->head, n); in mpsc_push() 147 struct mpsc_node *head; in mpsc_pop() local 168 head = (struct mpsc_node *)mpsc_ptr_get(q->head); in mpsc_pop() 173 if (tail != head) { in mpsc_pop()
|
D | dlist.h | 38 struct _dnode *head; /* ptr to head of list (sys_dlist_t) */ member 204 list->head = (sys_dnode_t *)list; in sys_dlist_init() 249 return list->head == node; in sys_dlist_is_head() 276 return list->head == list; in sys_dlist_is_empty() 291 return list->head != list->tail; in sys_dlist_has_multiple_nodes() 304 return sys_dlist_is_empty(list) ? NULL : list->head; in sys_dlist_peek_head() 319 return list->head; in sys_dlist_peek_head_not_empty() 370 return (node == list->head) ? NULL : node->prev; in sys_dlist_peek_prev_no_check() 434 sys_dnode_t *const head = list->head; in sys_dlist_prepend() local 436 node->next = head; in sys_dlist_prepend() [all …]
|
D | slist.h | 43 sys_snode_t *head; member 201 list->head = NULL; in sys_slist_init() 223 list->head = node; in z_slist_head_set() 240 return list->head; in sys_slist_peek_head() 334 void *head, void *tail);
|
D | sflist.h | 48 sys_sfnode_t *head; member 206 list->head = NULL; in sys_sflist_init() 238 list->head = node; in z_sflist_head_set() 255 return list->head; in sys_sflist_peek_head() 402 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.7.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.7.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.7.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.7.0/boards/native/nrf_bsim/common/ |
D | bstests_entry.c | 34 struct bst_test_list *head = tests; in bst_add_tests() local 43 head = bs_malloc(sizeof(struct bst_test_list)); in bst_add_tests() 44 head->next = NULL; in bst_add_tests() 45 head->test_instance = (struct bst_test_instance *) in bst_add_tests() 47 tail = head; in bst_add_tests() 59 return head; in bst_add_tests()
|
/Zephyr-Core-3.7.0/tests/lib/lockfree/src/ |
D | test_mpsc.c | 28 mpsc_ptr_t node, head; in ZTEST() local 33 head = mpsc_ptr_get(push_pop_q.head); in ZTEST() 38 zassert_equal(head, stub, "Head should point at stub"); in ZTEST() 47 head = mpsc_ptr_get(push_pop_q.head); in ZTEST() 49 zassert_equal(head, &push_pop_nodes[0], "Queue head should point at push_pop_node"); in ZTEST()
|
/Zephyr-Core-3.7.0/samples/drivers/uart/native_tty/src/ |
D | main.c | 40 char *head = str; in recv_str() local 44 *head++ = c; in recv_str() 46 *head = '\0'; in recv_str()
|
/Zephyr-Core-3.7.0/kernel/ |
D | queue.c | 247 int k_queue_append_list(struct k_queue *queue, void *head, void *tail) in k_queue_append_list() argument 252 CHECKIF((head == NULL) || (tail == NULL)) { in k_queue_append_list() 261 if (head != NULL) { in k_queue_append_list() 265 while ((head != NULL) && (thread != NULL)) { in k_queue_append_list() 266 prepare_thread_to_run(thread, head); in k_queue_append_list() 267 head = *(void **)head; in k_queue_append_list() 271 if (head != NULL) { in k_queue_append_list() 272 sys_sflist_append_list(&queue->data_q, head, tail); in k_queue_append_list() 304 ret = k_queue_append_list(queue, list->head, list->tail); in k_queue_merge_slist()
|
D | events.c | 44 struct k_thread *head; member 123 thread->next_event_link = event_data->head; in event_walk_op() 124 event_data->head = thread; in event_walk_op() 139 data.head = NULL; in k_event_post_internal() 162 if (data.head != NULL) { in k_event_post_internal() 163 thread = data.head; in k_event_post_internal()
|
/Zephyr-Core-3.7.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.7.0/drivers/usb/uvb/ |
D | uvb.h | 130 bool head; member 251 .head = true, \
|
/Zephyr-Core-3.7.0/tests/bluetooth/controller/mock_ctrl/include/ |
D | ull_vendor.h | 23 memq_link_t **head) in rx_demux_rx_proprietary() argument
|
/Zephyr-Core-3.7.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.7.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.7.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()
|