/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/fwlib/usb_otg/include/ |
A D | dwc_list.h | 167 __list_add(new, head, head->next); 172 __list_add(new, head->prev, head); 245 #define DWC_SLIST_EMPTY(head) (SLIST_FIRST(head) == SLIST_END(head)) argument 262 SLIST_FIRST(head) = SLIST_END(head); \ 318 #define DWC_SIMPLEQ_EMPTY(head) (SIMPLEQ_FIRST(head) == SIMPLEQ_END(head)) argument 331 (head)->sqh_last = &(head)->sqh_first; \ 354 (head)->sqh_last = &(head)->sqh_first; \ 387 (TAILQ_FIRST(head) == TAILQ_END(head)) 404 (head)->tqh_last = &(head)->tqh_first; \ 483 #define DWC_CIRCLEQ_END(head) ((void *)(head)) argument [all …]
|
/AliOS-Things-master/components/uvoice/internal/ |
A D | uvoice_list.h | 24 temp = (head)->next ? (head)->next->next : NULL; \ 30 uvoice_list_t *next = head->next; in uvoice_list_add() 32 node->prev = head; in uvoice_list_add() 34 head->next = node; in uvoice_list_add() 40 uvoice_list_t *prev = head->prev; in uvoice_list_add_tail() 41 node->next = head; in uvoice_list_add_tail() 45 head->prev = node; in uvoice_list_add_tail() 50 uvoice_list_t *pos = head; in uvoice_list_entry_count() 52 while (pos->next != head) { in uvoice_list_entry_count() 61 return head->next == head; in uvoice_list_empty() [all …]
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/api/platform/ |
A D | dlist.h | 81 __list_add(newitem, head, head->next); in list_add() 94 __list_add(newitem, head->prev, head); in list_add_tail() 161 return head->next == head; in list_empty() 165 struct list_head *head) in __list_splice() argument 171 first->prev = head; in __list_splice() 172 head->next = first; in __list_splice() 186 __list_splice(list, head); in list_splice() 200 __list_splice(list, head); in list_splice_init() 233 for (pos = (head)->next; pos != (head); \ 241 for (pos = (head)->prev; pos != (head); \ [all …]
|
/AliOS-Things-master/components/amp/engine/quickjs_engine/quickjs/ |
A D | list.h | 42 static inline void init_list_head(struct list_head *head) in init_list_head() argument 44 head->prev = head; in init_list_head() 45 head->next = head; in init_list_head() 61 __list_add(el, head, head->next); in list_add() 67 __list_add(el, head->prev, head); in list_add_tail() 93 #define list_for_each(el, head) \ argument 94 for(el = (head)->next; el != (head); el = el->next) 97 for(el = (head)->next, el1 = el->next; el != (head); \ 100 #define list_for_each_prev(el, head) \ argument 101 for(el = (head)->prev; el != (head); el = el->prev) [all …]
|
/AliOS-Things-master/components/linkkit/include/linkkit/infra/ |
A D | infra_list.h | 89 return head->next == head; in dlist_empty() 119 for (pos = (head)->next; pos != (head); pos = pos->next) 129 for (pos = (head)->next, n = pos->next; pos != (head); \ 200 #define dlist_entry_number(head) __dlist_entry_number(head) argument 227 head->next = node; in slist_add() 232 while (head->next) { in slist_add_tail() 233 head = head->next; in slist_add_tail() 241 while (head->next) { in slist_del() 247 head = head->next; in slist_del() 253 return !head->next; in slist_empty() [all …]
|
/AliOS-Things-master/components/amp/utils/list/ |
A D | amp_list.h | 135 return head->next == head; in dlist_empty() 160 #define dlist_for_each(pos, head) for (pos = (head)->next; pos != (head); pos = pos->next) argument 170 for (pos = (head)->next, n = pos->next; pos != (head); pos = n, n = pos->next) 268 head->next = node; in slist_add() 279 while (head->next) { in slist_add_tail() 280 head = head->next; in slist_add_tail() 283 slist_add(node, head); in slist_add_tail() 294 while (head->next) { in slist_del() 300 head = head->next; in slist_del() 313 return !head->next; in slist_empty() [all …]
|
/AliOS-Things-master/components/py_engine/external/amp_utils/ |
A D | amp_list.h | 134 return head->next == head; in dlist_empty() 162 #define dlist_for_each(pos, head) for (pos = (head)->next; pos != (head); pos = pos->next) argument 171 #define dlist_for_each_safe(pos, n, head) for (pos = (head)->next, n = pos->next; pos != (head); po… argument 215 for (pos = list_entry((head)->prev, type, member); &pos->member != (head); \ 268 head->next = node; in slist_add() 279 while (head->next) { in slist_add_tail() 280 head = head->next; in slist_add_tail() 294 while (head->next) { in slist_del() 300 head = head->next; in slist_del() 313 return !head->next; in slist_empty() [all …]
|
/AliOS-Things-master/components/osal_aos/include/aos/ |
A D | list.h | 135 return head->next == head; in dlist_empty() 160 #define dlist_for_each(pos, head) for (pos = (head)->next; pos != (head); pos = pos->next) argument 170 for (pos = (head)->next, n = pos->next; pos != (head); pos = n, n = pos->next) 268 head->next = node; in slist_add() 279 while (head->next) { in slist_add_tail() 280 head = head->next; in slist_add_tail() 283 slist_add(node, head); in slist_add_tail() 294 while (head->next) { in slist_del() 300 head = head->next; in slist_del() 313 return !head->next; in slist_empty() [all …]
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/mbed/targets/hal/rtl8721d/ |
A D | us_ticker_api.c | 21 static ticker_event_t *head = NULL; variable 36 if (head == NULL) { in us_ticker_irq_handler() 44 ticker_event_t *p = head; in us_ticker_irq_handler() 45 head = head->next; in us_ticker_irq_handler() 53 us_ticker_set_interrupt(head->timestamp); in us_ticker_irq_handler() 70 ticker_event_t *prev = NULL, *p = head; in us_ticker_insert_event() 82 head = obj; in us_ticker_insert_event() 98 if (head == obj) { in us_ticker_remove_event() 100 head = obj->next; in us_ticker_remove_event() 101 if (head == NULL) { in us_ticker_remove_event() [all …]
|
/AliOS-Things-master/components/linkkit/mqtt/impl/ |
A D | MQTTPacket.h | 66 #define MQTT_HEADER_GET_TYPE(head) ((head & 0xF0) >> 4) argument 67 #define MQTT_HEADER_GET_DUP(head) ((head & 0x08) >> 3) argument 68 #define MQTT_HEADER_GET_QOS(head) ((head & 0x06) >> 1) argument 69 #define MQTT_HEADER_GET_RETAIN(head) (head & 0x01) argument 71 #define MQTT_HEADER_SET_TYPE(head, type) \ argument 73 head |= ((type << 4) & 0xF0); \ 75 #define MQTT_HEADER_SET_DUP(head, dup) \ argument 77 head |= ((dup << 3) & 0x08); \ 79 #define MQTT_HEADER_SET_QOS(head, qos) \ argument 81 head |= ((qos << 1) & 0x06); \ [all …]
|
/AliOS-Things-master/components/csi/csi2/include/drv/ |
A D | list.h | 96 return head->next == head; in dlist_empty() 122 #define dlist_for_each(pos, head) \ argument 123 for (pos = (head)->next; pos != (head); pos = pos->next) 133 for (pos = (head)->next, n = pos->next; pos != (head); \ 217 node->next = head->next; in slist_add() 218 head->next = node; in slist_add() 225 while (head->next) { in slist_del() 226 if (head->next == node) { in slist_del() 231 head = head->next; in slist_del() 237 return !head->next; in slist_empty() [all …]
|
/AliOS-Things-master/components/linksdk/core/utils/ |
A D | core_list.h | 69 static inline void core_list_add(struct core_list_head *node, struct core_list_head *head) in core_list_add() argument 71 __core_list_add(node, head, head->next); in core_list_add() 84 __core_list_add(node, head->prev, head); in core_list_add_tail() 122 static inline int core_list_empty(const struct core_list_head *head) in core_list_empty() argument 124 return head->next == head; in core_list_empty() 163 #define core_list_for_each_entry(pos, head, member, type) \ argument 164 for (pos = core_list_first_entry(head, type, member); \ 165 &pos->member != (head); \ 176 #define core_list_for_each_entry_safe(pos, n, head, member, type) \ argument 177 for (pos = core_list_first_entry(head, type, member), \ [all …]
|
/AliOS-Things-master/kernel/rhino/ |
A D | k_ringbuf.c | 62 if (p_ringbuf->tail >= p_ringbuf->head && in ringbuf_push() 86 if (p_ringbuf->tail >= p_ringbuf->head && in ringbuf_push() 112 if (p_ringbuf->head == p_ringbuf->end) { in ringbuf_pop() 113 p_ringbuf->head = p_ringbuf->buf; in ringbuf_pop() 117 p_ringbuf->head += p_ringbuf->blk_size; in ringbuf_pop() 129 if (p_ringbuf->head == p_ringbuf->end) { in ringbuf_pop() 130 p_ringbuf->head = p_ringbuf->buf; in ringbuf_pop() 151 p_ringbuf->head = p_ringbuf->buf; in ringbuf_pop() 163 memcpy(data, p_ringbuf->head, len); in ringbuf_pop() 164 p_ringbuf->head += len; in ringbuf_pop() [all …]
|
A D | k_idle.c | 40 klist_t *head; in idle_task() local 42 head = &g_task_del_head; in idle_task() 56 if (head->next != head) { in idle_task() 57 task_del = krhino_list_entry(head->next, ktask_t, task_del_item); in idle_task()
|
/AliOS-Things-master/components/littlevgl/src/lv_misc/ |
A D | lv_ll.c | 52 ll_p->head = NULL; in lv_ll_init() 87 node_set_prev(ll_p, ll_p->head, n_new); in lv_ll_ins_head() 150 ll_p->head = n_new; in lv_ll_ins_tail() 168 if(ll_p->head == NULL) { in lv_ll_rem() 177 ll_p->head = NULL; in lv_ll_rem() 224 if(head) { in lv_ll_chg_list() 248 ll_new_p->head = node; in lv_ll_chg_list() 260 void * head = NULL; in lv_ll_get_head() local 263 head = ll_p->head; in lv_ll_get_head() 266 return head; in lv_ll_get_head() [all …]
|
/AliOS-Things-master/kernel/rhino/include/ |
A D | k_list.h | 71 RHINO_INLINE void klist_insert(klist_t *head, klist_t *element) in klist_insert() argument 73 element->prev = head->prev; in klist_insert() 74 element->next = head; in klist_insert() 76 head->prev->next = element; in klist_insert() 77 head->prev = element; in klist_insert() 87 RHINO_INLINE void klist_add(klist_t *head, klist_t *element) in klist_add() argument 89 element->prev = head; in klist_add() 90 element->next = head->next; in klist_add() 92 head->next->prev = element; in klist_add() 93 head->next = element; in klist_add()
|
A D | k_ringbuf.h | 33 uint8_t *head; member 72 if (p_ringbuf->head == p_ringbuf->end) { in ringbuf_queue_pop() 73 p_ringbuf->head = p_ringbuf->buf; in ringbuf_queue_pop() 76 memcpy(pdata, p_ringbuf->head, p_ringbuf->blk_size); in ringbuf_queue_pop() 77 p_ringbuf->head += p_ringbuf->blk_size; in ringbuf_queue_pop()
|
/AliOS-Things-master/components/ble_host/include/misc/ |
A D | slist.h | 31 sys_snode_t *head; member 184 list->head = NULL; in sys_slist_init() 199 return (!list->head); in sys_slist_is_empty() 211 return list->head; in sys_slist_peek_head() 261 node->next = list->head; in sys_slist_prepend() 262 list->head = node; in sys_slist_prepend() 265 list->tail = list->head; in sys_slist_prepend() 282 list->head = node; in sys_slist_append() 303 list->head = (sys_snode_t *)head; in sys_slist_append_list() 361 list->head = node->next; in sys_slist_get_not_empty() [all …]
|
A D | dlist.h | 190 list->head = (sys_dnode_t *)list; in sys_dlist_init() 207 return list->head == node; in sys_dlist_is_head() 234 return list->head == list; in sys_dlist_is_empty() 249 return list->head != list->tail; in sys_dlist_has_multiple_nodes() 262 return sys_dlist_is_empty(list) ? NULL : list->head; in sys_dlist_peek_head() 277 return list->head; in sys_dlist_peek_head_not_empty() 359 node->next = list->head; in sys_dlist_prepend() 362 list->head->prev = node; in sys_dlist_prepend() 363 list->head = node; in sys_dlist_prepend() 485 node = list->head; in sys_dlist_get() [all …]
|
/AliOS-Things-master/components/minilibc/include/ |
A D | mm_queue.h | 48 #define sq_init(q) do { (q)->head = NULL; (q)->tail = NULL; } while (0) 49 #define dq_init(q) do { (q)->head = NULL; (q)->tail = NULL; } while (0) 55 #define sq_empty(q) ((q)->head == NULL) 56 #define dq_empty(q) ((q)->head == NULL) 58 #define sq_peek(q) ((q)->head) 59 #define dq_peek(q) ((q)->head) 80 sq_entry_t *head; member 87 dq_entry_t *head; member
|
/AliOS-Things-master/components/posix/src/ |
A D | pthread_tsd.c | 30 pthread_key_value_head_t head; member 48 key_value_s_cur = pthread_key_list_s_c->head.next; in pthread_tsd_dtors() 54 key_value_s_prev = &pthread_key_list_s_c->head.next; in pthread_tsd_dtors() 58 if (pthread_key_list_s_c->head.fun != NULL) { in pthread_tsd_dtors() 93 pthread_key_list_head.head.fun = destructor; in pthread_key_create() 117 pthread_key_list_s_c->head.fun = destructor; in pthread_key_create() 147 key_value_s_o = pthread_key_list_s_c->head.next; in pthread_setspecific() 176 pthread_key_list_s_c->head.next = key_value_s; in pthread_setspecific() 276 key_value_s_c = pthread_key_list_head.head.next; in pthread_key_delete() 286 pthread_key_list_head.head.next = NULL; in pthread_key_delete() [all …]
|
/AliOS-Things-master/components/SDL2/src/image/ |
A D | IMG_xcf.c | 796 xcf_header * head; in IMG_LoadXCF_RW() local 813 head = read_xcf_header(src); in IMG_LoadXCF_RW() 814 if (!head) { in IMG_LoadXCF_RW() 818 switch (head->compr) { in IMG_LoadXCF_RW() 827 free_xcf_header (head); in IMG_LoadXCF_RW() 832 surface = SDL_CreateRGBSurface(SDL_SWSURFACE, head->width, head->height, 32, in IMG_LoadXCF_RW() 843 …head->layer_file_offsets = (Uint32 *) SDL_realloc (head->layer_file_offsets, sizeof (Uint32) * (of… in IMG_LoadXCF_RW() 849 lays = SDL_CreateRGBSurface(SDL_SWSURFACE, head->width, head->height, 32, in IMG_LoadXCF_RW() 862 layer = read_xcf_layer (src, head); in IMG_LoadXCF_RW() 900 chs = SDL_CreateRGBSurface(SDL_SWSURFACE, head->width, head->height, 32, in IMG_LoadXCF_RW() [all …]
|
/AliOS-Things-master/components/linkkit/external/nghttp2/ |
A D | nghttp2_outbound_item.c | 102 q->head = q->tail = NULL; in nghttp2_outbound_queue_init() 112 q->head = q->tail = item; in nghttp2_outbound_queue_push() 120 if (!q->head) { in nghttp2_outbound_queue_pop() 123 item = q->head; in nghttp2_outbound_queue_pop() 124 q->head = q->head->qnext; in nghttp2_outbound_queue_pop() 126 if (!q->head) { in nghttp2_outbound_queue_pop()
|
/AliOS-Things-master/components/SDL2/src/ |
A D | SDL_dataqueue.c | 37 SDL_DataQueuePacket *head; /* device fed from here. */ member 91 SDL_FreeDataQueueList(queue->head); in SDL_FreeDataQueue() 110 packet = queue->head; in SDL_ClearDataQueue() 121 queue->head = NULL; in SDL_ClearDataQueue() 165 queue->head = packet; in AllocateDataQueuePacket() 189 orighead = queue->head; in SDL_WriteToDataQueue() 208 queue->head = orighead; in SDL_WriteToDataQueue() 265 while ((len > 0) && ((packet = queue->head) != NULL)) { in SDL_ReadFromDataQueue() 277 queue->head = packet->next; in SDL_ReadFromDataQueue() 286 if (queue->head == NULL) { in SDL_ReadFromDataQueue() [all …]
|
/AliOS-Things-master/hardware/chip/haas1000/drivers/services/bt_if_enhanced/inc/ |
A D | bluetooth.h | 128 void insert_head_list(list_entry_t * head, list_entry_t * entry); 135 list_entry_t *remove_head_list(list_entry_t * head); 136 list_entry_t *_remove_head_list(list_entry_t * head); 142 BOOL is_node_on_list(list_entry_t * head, list_entry_t * node); 143 U8 get_list_number(list_entry_t * head); 148 #define iterate_list_safe(head, cur, next, type) \ argument 149 for ( (cur) = (type) get_head_list(head) ; \ 151 (cur) != (type) (head); \ 172 #define iterate_list(head, cur, type) \ argument 173 for ( (cur) = (type) get_head_list(&(head)) ; \ [all …]
|