/components/utilities/libadt/uthash/ |
A D | uthash.h | 222 (head)->hh.tbl->tail = &((head)->hh); \ 225 (head)->hh.tbl->hho = (char*)(&(head)->hh) - (char*)(head); \ 284 (add)->hh.prev = ELMT_FROM_HH((head)->hh.tbl, (head)->hh.tbl->tail); \ 465 (head)->hh.tbl->tail = HH_FROM_ELMT((head)->hh.tbl, _hd_hh_del->prev); \ 892 #define HASH_SORT(head,cmpfcn) HASH_SRT(hh,head,cmpfcn) argument 934 DECLTYPE(head)(ELMT_FROM_HH((head)->hh.tbl, _hs_p)), \ 935 DECLTYPE(head)(ELMT_FROM_HH((head)->hh.tbl, _hs_q)) \ 1060 for(((el)=(head)), ((*(char**)(&(tmp)))=(char*)((head!=NULL)?(head)->hh.next:NULL)); \ 1064 for(((el)=(head)), ((tmp)=DECLTYPE(el)((head!=NULL)?(head)->hh.next:NULL)); \ 1069 #define HASH_COUNT(head) HASH_CNT(hh,head) argument [all …]
|
A D | rt_uthash.h | 51 #define RT_UTHASH_ADD(head, key_member, keylen_in, value) \ argument 52 HASH_ADD(hh, head, key_member, keylen_in, value) 53 #define RT_UTHASH_FIND(head, key_ptr, keylen_in, pval) \ argument 54 HASH_FIND(hh, head, key_ptr, keylen_in, pval) 55 #define RT_UTHASH_DELETE(head, pobj) HASH_DELETE(hh, head, pobj) argument
|
/components/drivers/usb/cherryusb/common/ |
A D | usb_list.h | 204 #define usb_slist_for_each(pos, head) \ argument 205 for (pos = (head)->next; pos != NULL; pos = pos->next) 207 #define usb_slist_for_each_safe(pos, next, head) \ argument 208 for (pos = (head)->next, next = pos->next; pos; \ 383 #define usb_dlist_for_each(pos, head) \ argument 384 for (pos = (head)->next; pos != (head); pos = pos->next) 391 #define usb_dlist_for_each_prev(pos, head) \ argument 392 for (pos = (head)->prev; pos != (head); pos = pos->prev) 400 #define usb_dlist_for_each_safe(pos, n, head) \ argument 401 for (pos = (head)->next, n = pos->next; pos != (head); \ [all …]
|
/components/utilities/rt-link/src/ |
A D | rtlink.c | 95 frame->head.crc = 1; in rt_link_frame_init() 99 frame->head.ack = 1; in rt_link_frame_init() 154 frame->head.extend = 1; in rt_link_frame_extend_config() 176 rt_memcpy(data, &command_frame.head, sizeof(command_frame.head)); in rt_link_command_frame_send() 219 if (frame->head.crc) in frame_send() 223 if (frame->head.extend) in frame_send() 232 if (frame->head.extend) in frame_send() 242 if (frame->head.crc) in frame_send() 351 if (find_frame->head.sequence == receive_frame->head.sequence) in rt_link_resend_handle() 402 seq_offset = rt_link_check_seq(receive_frame->head.sequence, send_frame->head.sequence); in rt_link_confirm_handle() [all …]
|
/components/drivers/wlan/ |
A D | dev_wlan_cfg.c | 136 struct cfg_save_info_head *head; in rt_wlan_cfg_cache_refresh() local 160 head = rt_malloc(len); in rt_wlan_cfg_cache_refresh() 161 if (head == RT_NULL) in rt_wlan_cfg_cache_refresh() 167 if (cfg_ops->read_cfg(head, len) != len) in rt_wlan_cfg_cache_refresh() 169 rt_free(head); in rt_wlan_cfg_cache_refresh() 182 (head->len != len) || in rt_wlan_cfg_cache_refresh() 184 (head->crc != crc)) in rt_wlan_cfg_cache_refresh() 186 rt_free(head); in rt_wlan_cfg_cache_refresh() 193 for (i = 0; i < head->num; i++) in rt_wlan_cfg_cache_refresh() 218 rt_free(head); in rt_wlan_cfg_cache_refresh() [all …]
|
/components/drivers/serial/ |
A D | bypass.c | 66 node = bypass->head.next; in rt_bypass_register() 68 if (node == &bypass->head) in rt_bypass_register() 95 } while (node != &bypass->head); in rt_bypass_register() 97 rt_list_insert_before(&bypass->head, &pass->node); in rt_bypass_register() 113 rt_list_init(&serial->bypass->upper_h->head); in rt_bypass_upper_register() 198 node = serial->bypass->lower_h->head.next; in _lower_work() 242 rt_list_init(&serial->bypass->lower_h->head); in rt_bypass_lower_register() 281 node = bypass->head.next; in rt_bypass_unregister() 296 } while (node != &bypass->head); in rt_bypass_unregister() 335 node = serial->bypass->upper_h->head.next; in serial_bypass_list() [all …]
|
/components/lwp/ |
A D | lwp_futex.c | 791 if (!lwp_user_accessable((void *)head, sizeof(*head))) in _fetch_robust_entry() 796 if (lwp_get_from_user(&uentry, (void *)head, sizeof(*head)) != in _fetch_robust_entry() 797 sizeof(*head)) in _fetch_robust_entry() 881 struct robust_list_head *head; in lwp_futex_exit_robust_list() local 887 head = thread->robust_list; in lwp_futex_exit_robust_list() 889 if (head == RT_NULL) in lwp_futex_exit_robust_list() 895 if (!lwp_user_accessable((void *)&head->futex_offset, in lwp_futex_exit_robust_list() 896 sizeof(head->futex_offset))) in lwp_futex_exit_robust_list() 902 sizeof(head->futex_offset)) != in lwp_futex_exit_robust_list() 903 sizeof(head->futex_offset)) in lwp_futex_exit_robust_list() [all …]
|
/components/net/lwip/lwip-2.0.3/src/api/ |
A D | netbuf.c | 172 netbuf_chain(struct netbuf *head, struct netbuf *tail) in netbuf_chain() argument 174 LWIP_ERROR("netbuf_chain: invalid head", (head != NULL), return;); in netbuf_chain() 176 pbuf_cat(head->p, tail->p); in netbuf_chain() 177 head->ptr = head->p; in netbuf_chain()
|
/components/net/lwip/lwip-2.1.2/src/api/ |
A D | netbuf.c | 176 netbuf_chain(struct netbuf *head, struct netbuf *tail) in netbuf_chain() argument 178 LWIP_ERROR("netbuf_chain: invalid head", (head != NULL), return;); in netbuf_chain() 180 pbuf_cat(head->p, tail->p); in netbuf_chain() 181 head->ptr = head->p; in netbuf_chain()
|
/components/net/lwip/lwip-1.4.1/src/api/ |
A D | netbuf.c | 174 netbuf_chain(struct netbuf *head, struct netbuf *tail) in netbuf_chain() argument 176 LWIP_ERROR("netbuf_ref: invalid head", (head != NULL), return;); in netbuf_chain() 178 pbuf_cat(head->p, tail->p); in netbuf_chain() 179 head->ptr = head->p; in netbuf_chain()
|
/components/vbus/ |
A D | prio_queue.c | 25 if (que->head[prio] == RT_NULL) in _do_push() 27 que->head[prio] = item; in _do_push() 48 item = que->head[ffs]; in _do_pop() 51 que->head[ffs] = item->next; in _do_pop() 52 if (que->head[ffs] == RT_NULL) in _do_pop() 246 for (item = que->head[level]; in rt_prio_queue_dump()
|
A D | prio_queue.h | 22 struct rt_prio_queue_item *head[RT_PRIO_QUEUE_PRIO_MAX]; member
|
/components/net/lwip/lwip-2.1.2/test/unit/arch/ |
A D | sys_arch.c | 217 mbox->head = mbox->tail = 0; in sys_mbox_new() 260 q->q_mem[q->head] = msg; in sys_mbox_post() 261 q->head++; in sys_mbox_post() 262 if (q->head >= (unsigned int)q->size) { in sys_mbox_post() 263 q->head = 0; in sys_mbox_post() 265 LWIP_ASSERT("mbox is full!", q->head != q->tail); in sys_mbox_post()
|
A D | sys_arch.h | 44 unsigned int head, tail; member
|
/components/mm/ |
A D | mm_page.c | 651 rt_page_t head; in __pages_alloc() local 671 head = p; in __pages_alloc() 672 p = head + (affid - (affid & AFFID_BITS_MASK(level))); in __pages_alloc() 679 rt_page_t middle = _buddy_get(head, lower_bits); in __pages_alloc() 684 head, lower_bits); in __pages_alloc() 685 head = middle; in __pages_alloc() 1084 _invalid_uninstalled_shadow(shad_head, head); in _install_page() 1244 static int _load_mpr_area(void *head, void *tail) in _load_mpr_area() argument 1276 void *head, *tail; in _get_mpr_ready_n_install() local 1280 head = addr_to_page(page_start, (void *)shadow.start); in _get_mpr_ready_n_install() [all …]
|
/components/net/lwip/lwip-1.4.1/src/core/snmp/ |
A D | mib_structs.c | 191 lrn->head = NULL; in snmp_mib_lrn_alloc() 225 if (rn->head == NULL) in snmp_mib_node_insert() 232 rn->head = nn; in snmp_mib_node_insert() 246 n = rn->head; in snmp_mib_node_insert() 344 n = rn->head; in snmp_mib_node_find() 406 if (n == rn->head) in snmp_mib_node_delete() 408 rn->head = n->next; in snmp_mib_node_delete() 434 rn->head = NULL; in snmp_mib_node_delete() 518 ln = lrn->head; in snmp_search_tree() 823 ln = lrn->head; in snmp_expand_tree() [all …]
|
A D | msg_in.c | 110 struct snmp_varbind *vbi = msg_ps->invb.head; in snmp_error_response() 111 struct snmp_varbind *vbo = msg_ps->outvb.head; in snmp_error_response() 124 msg_ps->invb.head = NULL; in snmp_error_response() 264 msg_ps->vb_ptr = msg_ps->invb.head; in snmp_msg_get_event() 453 msg_ps->vb_ptr = msg_ps->invb.head; in snmp_msg_getnext_event() 642 msg_ps->vb_ptr = msg_ps->invb.head; in snmp_msg_set_event() 737 msg_ps->vb_ptr = msg_ps->invb.head; in snmp_msg_set_event() 782 msg_ps->invb.head = NULL; in snmp_msg_set_event() 1130 m_stat->invb.head = NULL; in snmp_pdu_dec_varbindlist() 1409 root->head = NULL; in snmp_varbind_list_free() [all …]
|
/components/dfs/dfs_v2/src/ |
A D | dfs_dentry.c | 25 rt_list_t head[DFS_DENTRY_HASH_NR]; member 237 rt_list_for_each_entry(entry, &hash_head.head[_dentry_hash(mnt, path)], hashlist) in _dentry_hash_lookup() 261 …rt_list_insert_after(&hash_head.head[_dentry_hash(dentry->mnt, dentry->pathname)], &dentry->hashli… in dfs_dentry_insert() 320 … rt_list_insert_after(&hash_head.head[_dentry_hash(mnt, path)], &dentry->hashlist); in dfs_dentry_lookup() 482 rt_list_init(&hash_head.head[i]); in dfs_dentry_init() 506 rt_list_for_each_entry(entry, &hash_head.head[index], hashlist) in dfs_dentry_dump()
|
/components/drivers/rtc/ |
A D | dev_alarm.c | 244 if (!rt_list_isempty(&_container.head)) in alarm_update() 254 for (next = _container.head.next; next != &_container.head; next = next->next) in alarm_update() 270 for (next = _container.head.next; next != &_container.head; next = next->next) in alarm_update() 728 rt_list_insert_after(&_container.head, &alarm->list); in rt_alarm_create() 803 for (next = _container.head.next; next != &_container.head; next = next->next) in rt_alarm_dump() 826 rt_list_init(&_container.head); in rt_alarm_system_init()
|
/components/net/lwip/lwip-1.4.1/src/include/lwip/ |
A D | pbuf.h | 157 void pbuf_cat(struct pbuf *head, struct pbuf *tail); 158 void pbuf_chain(struct pbuf *head, struct pbuf *tail);
|
/components/drivers/ipc/ |
A D | ringblk_buf.c | 173 rt_rbb_blk_t head, tail, new_rbb = RT_NULL; in rt_rbb_blk_alloc() local 186 head = rt_slist_first_entry(&rbb->blk_list, struct rt_rbb_blk, list); in rt_rbb_blk_alloc() 189 if (head->buf <= tail->buf) in rt_rbb_blk_alloc() 199 empty2 = head->buf - rbb->buf; in rt_rbb_blk_alloc() 231 empty1 = head->buf - (tail->buf + tail->size); in rt_rbb_blk_alloc()
|
/components/net/lwip/lwip-2.0.3/src/include/lwip/ |
A D | pbuf.h | 235 void pbuf_cat(struct pbuf *head, struct pbuf *tail); 236 void pbuf_chain(struct pbuf *head, struct pbuf *tail);
|
/components/drivers/nvme/ |
A D | nvme.c | 108 rt_uint16_t tail, head; in nvme_submit_cmd() local 115 head = queue->cq_head; in nvme_submit_cmd() 117 if (tail + 1 == head) in nvme_submit_cmd() 652 rt_uint16_t head, phase, status; in nvme_queue_isr() local 658 head = queue->cq_head; in nvme_queue_isr() 660 status = HWREG16(&queue->cq_entry[head].status); in nvme_queue_isr() 677 if (++head == queue->depth) in nvme_queue_isr() 679 head = 0; in nvme_queue_isr() 683 HWREG32(queue->doorbell + nvme->doorbell_stride) = head; in nvme_queue_isr() 684 queue->cq_head = head; in nvme_queue_isr()
|
/components/drivers/include/drivers/ |
A D | dev_alarm.h | 60 rt_list_t head; member
|
/components/net/lwip/lwip-2.1.2/src/include/lwip/ |
A D | pbuf.h | 292 void pbuf_cat(struct pbuf *head, struct pbuf *tail); 293 void pbuf_chain(struct pbuf *head, struct pbuf *tail);
|