| /lib/ |
| A D | list_sort.c | 32 tail->next = a; in merge() 33 a = a->next; in merge() 35 tail->next = b; in merge() 36 b = b->next; in merge() 40 tail->next = a?:b; in merge() 41 return head.next; in merge() 62 tail->next = a; in merge_and_restore_back_links() 64 a = a->next; in merge_and_restore_back_links() 68 b = b->next; in merge_and_restore_back_links() 81 (*cmp)(priv, tail->next, tail->next); in merge_and_restore_back_links() [all …]
|
| A D | uthread.c | 107 struct uthread *next; in uthread_schedule() local 110 list_for_each_entry_safe(next, tmp, ¤t->list, list) { in uthread_schedule() 111 if (!next->done) { in uthread_schedule() 112 uthread_resume(next); in uthread_schedule() 116 list_del(&next->list); in uthread_schedule() 117 uthread_free(next); in uthread_schedule() 131 struct uthread *next; in uthread_grp_done() local 133 list_for_each_entry(next, &main_thread.list, list) { in uthread_grp_done() 134 if (next->grp_id == grp_id && !next->done) in uthread_grp_done()
|
| /lib/lwip/lwip/src/core/ |
| A D | tcp_in.c | 271 prev->next = pcb->next; 1085 next = next->next; 1095 cseg->next = next; 1523 next = next->next; 1683 for (next = pcb->ooseq; next != NULL; next = next->next) { 1762 if (next->next == NULL && 1784 TCPH_FLAGS_SET(next->next->tcphdr, TCPH_FLAGS(next->next->tcphdr) & ~TCP_FIN); 1788 pbuf_realloc(next->next->p, next->next->len); 1808 next = prev->next; 1817 for ( ; (next != NULL) && (sackend == next->tcphdr->seqno); next = next->next) { [all …]
|
| A D | mem.c | 351 mem_size_t next; member 492 mem->next = nmem->next; in plug_holes() 505 pmem->next = mem->next; in plug_holes() 756 mem_size_t next; in mem_trim() local 759 next = mem2->next; in mem_trim() 768 mem2->next = next; in mem_trim() 772 mem->next = ptr2; in mem_trim() 796 mem2->next = mem->next; in mem_trim() 798 mem->next = ptr2; in mem_trim() 907 mem2->next = mem->next; in mem_malloc() [all …]
|
| A D | timeouts.c | 194 timeout->next = NULL; in sys_timeout_abs() 210 timeout->next = next_timeout; in sys_timeout_abs() 213 for (t = next_timeout; t != NULL; t = t->next) { in sys_timeout_abs() 214 if ((t->next == NULL) || TIME_LESS_THAN(timeout->time, t->next->time)) { in sys_timeout_abs() 215 timeout->next = t->next; in sys_timeout_abs() 216 t->next = timeout; in sys_timeout_abs() 327 for (t = next_timeout, prev_t = NULL; t != NULL; prev_t = t, t = t->next) { in sys_untimeout() 332 next_timeout = t->next; in sys_untimeout() 334 prev_t->next = t->next; in sys_untimeout() 378 next_timeout = tmptimeout->next; in sys_check_timeouts() [all …]
|
| A D | pbuf.c | 181 p->next = NULL; in pbuf_init_alloced_pbuf() 430 q = q->next; in pbuf_realloc() 460 q->next = NULL; in pbuf_realloc() 682 p = p->next; in pbuf_free_header() 762 q = p->next; in pbuf_free() 818 p = p->next; in pbuf_clen() 863 for (p = h; p->next != NULL; p = p->next) { in pbuf_cat() 873 p->next = t; in pbuf_cat() 919 q = p->next; in pbuf_dechain() 1191 q = q->next; in pbuf_skip_const() [all …]
|
| A D | tcp.c | 1224 pcb = pcb->next; in tcp_slowtmr() 1394 prev->next = pcb->next; in tcp_slowtmr() 1460 prev->next = pcb->next; in tcp_slowtmr() 1510 next = pcb->next; in tcp_fasttmr() 1521 pcb = next; in tcp_fasttmr() 1615 struct tcp_seg *next = seg->next; in tcp_segs_free() local 1617 seg = next; in tcp_segs_free() 1820 struct tcp_pcb *next = pcb->next; in tcp_handle_closepend() local 1827 pcb = next; in tcp_handle_closepend() 2325 struct tcp_pcb *next = pcb->next; in tcp_netif_ip_addr_changed_pcblist() local [all …]
|
| A D | raw.c | 185 prev->next = pcb->next; in raw_input() 186 pcb->next = raw_pcbs; in raw_input() 200 pcb = pcb->next; in raw_input() 569 raw_pcbs = raw_pcbs->next; in raw_remove() 572 for (pcb2 = raw_pcbs; pcb2 != NULL; pcb2 = pcb2->next) { in raw_remove() 574 if (pcb2->next != NULL && pcb2->next == pcb) { in raw_remove() 576 pcb2->next = pcb->next; in raw_remove() 614 pcb->next = raw_pcbs; in raw_new() 662 for (rpcb = raw_pcbs; rpcb != NULL; rpcb = rpcb->next) { in raw_netif_ip_addr_changed()
|
| A D | memp.c | 107 for (h = t->next; (t != NULL) && (h != NULL); t = t->next, in memp_sanity() 108 h = ((h->next != NULL) ? h->next->next : NULL)) { in memp_sanity() 195 memp->next = *desc->tab; in memp_init_pool() 268 *desc->tab = memp->next; in do_memp_malloc_pool() 270 memp->next = NULL; in do_memp_malloc_pool() 385 memp->next = *desc->tab; in do_memp_free_pool()
|
| /lib/efi_loader/ |
| A D | efi_var_mem.c | 57 if (next) in efi_var_mem_compare() 94 if (next) { in efi_var_mem_find() 96 if (*next >= last) in efi_var_mem_find() 97 *next = NULL; in efi_var_mem_find() 103 if (next && *next >= last) in efi_var_mem_find() 104 *next = NULL; in efi_var_mem_find() 118 if (next) in efi_var_mem_find() 119 *next = pos; in efi_var_mem_find() 125 if (next) in efi_var_mem_find() 126 *next = NULL; in efi_var_mem_find() [all …]
|
| A D | efi_signature.c | 215 for (siglist = db; siglist; siglist = siglist->next) { in efi_signature_lookup_digest() 247 sig_data = sig_data->next) { in efi_signature_lookup_digest() 310 for (siglist = db; siglist; siglist = siglist->next) { in efi_lookup_certificate() 316 sig_data = sig_data->next) { in efi_lookup_certificate() 374 for (siglist = db; siglist; siglist = siglist->next) { in efi_verify_certificate() 380 sig_data = sig_data->next) { in efi_verify_certificate() 452 sig_data = sig_data->next) { in efi_signature_check_revocation() 621 sigstore_next = sigstore->next; in efi_sigstore_free() 625 sig_data_next = sig_data->next; in efi_sigstore_free() 725 sig_data->next = sig_data_next; in efi_sigstore_parse_siglist() [all …]
|
| /lib/lwip/lwip/contrib/ports/unix/port/netif/ |
| A D | list.c | 59 elem->next = NULL; in list_push() 61 list->last->next = elem; in list_push() 82 list->last = elem->next; in list_pop() 84 list->first = elem->next; in list_pop() 121 for(e = list->first; e != NULL; e = e->next) { in list_remove() 124 p->next = e->next; in list_remove() 126 list->first = e->next; in list_remove() 131 p->next = NULL; in list_remove() 148 for(e = list->first; e != NULL; e = e->next) { in list_map()
|
| /lib/mbedtls/external/mbedtls/library/ |
| A D | ssl_cache.c | 195 last->next = cur; in ssl_cache_pick_writing_slot() 219 cache->chain = old->next; in ssl_cache_pick_writing_slot() 220 old->next = NULL; in ssl_cache_pick_writing_slot() 221 last->next = old; in ssl_cache_pick_writing_slot() 233 old = cur->next; in ssl_cache_pick_writing_slot() 235 cur->next = old; in ssl_cache_pick_writing_slot() 345 cache->chain = entry->next; in mbedtls_ssl_cache_remove() 348 for (prev = cache->chain; prev->next != NULL; prev = prev->next) { in mbedtls_ssl_cache_remove() 349 if (prev->next == entry) { in mbedtls_ssl_cache_remove() 350 prev->next = entry->next; in mbedtls_ssl_cache_remove() [all …]
|
| A D | memory_buffer_alloc.c | 38 memory_header *next; member 100 cur = cur->next; in debug_chain() 173 cur = heap.first->next; in verify_chain() 193 cur = cur->next; in verify_chain() 302 new->next = cur->next; in buffer_alloc_calloc() 310 if (new->next != NULL) { in buffer_alloc_calloc() 330 cur->next = new; in buffer_alloc_calloc() 412 hdr->prev->next = hdr->next; in buffer_alloc_free() 425 if (hdr->next != NULL && hdr->next->alloc == 0) { in buffer_alloc_free() 430 old = hdr->next; in buffer_alloc_free() [all …]
|
| A D | asn1parse.c | 296 mbedtls_asn1_sequence *next = seq->next; in mbedtls_asn1_sequence_free() local 298 seq = next; in mbedtls_asn1_sequence_free() 318 cur->next = in asn1_get_sequence_of_cb() 321 if (cur->next == NULL) { in asn1_get_sequence_of_cb() 325 cur = cur->next; in asn1_get_sequence_of_cb() 438 *head = cur->next; in mbedtls_asn1_free_named_data_list() 447 for (mbedtls_asn1_named_data *next; name != NULL; name = next) { in mbedtls_asn1_free_named_data_list_shallow() local 448 next = name->next; in mbedtls_asn1_free_named_data_list_shallow() 462 list = list->next; in mbedtls_asn1_find_named_data()
|
| A D | x509_crl.c | 269 if (cur_entry->next == NULL) { in x509_get_entries() 273 cur_entry = cur_entry->next; in x509_get_entries() 307 crl = crl->next; in mbedtls_x509_crl_parse_der() 310 if (crl->version != 0 && crl->next == NULL) { in mbedtls_x509_crl_parse_der() 313 if (crl->next == NULL) { in mbedtls_x509_crl_parse_der() 318 mbedtls_x509_crl_init(crl->next); in mbedtls_x509_crl_parse_der() 319 crl = crl->next; in mbedtls_x509_crl_parse_der() 649 entry = entry->next; in mbedtls_x509_crl_info() 691 entry_cur = crl_cur->entry.next; in mbedtls_x509_crl_free() 694 entry_cur = entry_cur->next; in mbedtls_x509_crl_free() [all …]
|
| /lib/lwip/lwip/contrib/apps/chargen/ |
| A D | chargen.c | 69 struct charcb *next; member 93 charcb_list = p_charcb->next; in close_chargen() 95 for (p_search_charcb = charcb_list; p_search_charcb; p_search_charcb = p_search_charcb->next) { in close_chargen() 96 if (p_search_charcb->next == p_charcb) { in close_chargen() 97 p_search_charcb->next = p_charcb->next; in close_chargen() 184 for (p_charcb = charcb_list; p_charcb; p_charcb = p_charcb->next) { in chargen_thread() 211 p_charcb->next = charcb_list; in chargen_thread() 228 for (p_charcb = charcb_list; p_charcb; p_charcb = p_charcb->next) { in chargen_thread()
|
| /lib/lwip/lwip/src/include/lwip/priv/ |
| A D | tcp_priv.h | 360 tcp_tmp_pcb = tcp_tmp_pcb->next) { \ 364 (npcb)->next = *(pcbs); \ 375 *(pcbs) = (*pcbs)->next; \ 378 tcp_tmp_pcb->next = (npcb)->next; \ 382 (npcb)->next = NULL; \ 391 (npcb)->next = *pcbs; \ 399 (*(pcbs)) = (*pcbs)->next; \ 405 tcp_tmp_pcb = tcp_tmp_pcb->next) { \ 406 if(tcp_tmp_pcb->next == (npcb)) { \ 407 tcp_tmp_pcb->next = (npcb)->next; \ [all …]
|
| /lib/lwip/lwip/contrib/ports/win32/ |
| A D | pcapif.c | 178 struct pcapipf_pending_packet *next; member 216 pack->next = priv->free_packets; in pcapif_init_tx_packets() 234 priv->tx_packets = pack->next; in pcapif_add_tx_packet() 237 priv->free_packets = pack->next; in pcapif_add_tx_packet() 238 pack->next = NULL; in pcapif_add_tx_packet() 248 for (tx = priv->tx_packets; tx->next != NULL; tx = tx->next); in pcapif_add_tx_packet() 250 tx->next = pack; in pcapif_add_tx_packet() 284 priv->tx_packets = last->next; in pcaipf_is_tx_packet() 285 last->next = priv->free_packets; in pcaipf_is_tx_packet() 292 for (iter = last->next; iter != NULL; last = iter, iter = iter->next) { in pcaipf_is_tx_packet() [all …]
|
| /lib/lwip/lwip/src/core/ipv6/ |
| A D | ip6_frag.c | 128 r = r->next; in ip6_reass_tmr() 133 r = r->next; in ip6_reass_tmr() 206 reassdatagrams = ipr->next; in ip6_reass_free_complete_datagram() 210 if (prev->next == ipr) { in ip6_reass_free_complete_datagram() 213 prev = prev->next; in ip6_reass_free_complete_datagram() 216 prev->next = ipr->next; in ip6_reass_free_complete_datagram() 251 r = r->next; in ip6_reass_remove_oldest_datagram() 358 ipr->next = reassdatagrams; in ip6_reass() 644 ipr_prev->next = ipr->next; in ip6_reass() 800 p = p->next; in ip6_frag() [all …]
|
| A D | mld6.c | 103 struct mld_group *next = group->next; /* avoid use-after-free below */ in mld6_stop() local 114 group = next; in mld6_stop() 131 group = group->next; in mld6_report_groups() 152 group = group->next; in mld6_lookfor_group() 179 group->next = netif_mld6_data(ifp); in mld6_new_group() 200 netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_MLD6, group->next); in mld6_remove_group() 204 for (tmpGroup = netif_mld6_data(netif); tmpGroup != NULL; tmpGroup = tmpGroup->next) { in mld6_remove_group() 205 if (tmpGroup->next == group) { in mld6_remove_group() 206 tmpGroup->next = group->next; in mld6_remove_group() 258 group = group->next; in mld6_input() [all …]
|
| /lib/lwip/lwip/src/core/ipv4/ |
| A D | igmp.c | 167 struct igmp_group *next = group->next; /* avoid use-after-free below */ in igmp_stop() local 181 group = next; in igmp_stop() 200 group = group->next; in igmp_report_groups() 205 group = group->next; in igmp_report_groups() 226 group = group->next; in igmp_lookfor_group() 270 group->next = NULL; in igmp_lookup_group() 276 group->next = list_head->next; in igmp_lookup_group() 277 list_head->next = group; in igmp_lookup_group() 302 if (tmp_group->next == group) { in igmp_remove_group() 303 tmp_group->next = group->next; in igmp_remove_group() [all …]
|
| /lib/lwip/lwip/src/netif/ |
| A D | slipif.c | 134 for (q = p; q != NULL; q = q->next) { in slipif_output() 291 if (priv->p->next != NULL && priv->p->next->len > 0) { in slipif_rxbyte() 293 priv->p = priv->p->next; in slipif_rxbyte() 465 while ((q->len != q->tot_len) && (q->next != NULL)) { in slipif_process_rxqueue() 466 q = q->next; in slipif_process_rxqueue() 468 priv->rxpackets = q->next; in slipif_process_rxqueue() 469 q->next = NULL; in slipif_process_rxqueue() 501 while (q->next != NULL) { in slipif_rxbyte_enqueue() 502 q = q->next; in slipif_rxbyte_enqueue() 504 q->next = p; in slipif_rxbyte_enqueue()
|
| /lib/acpi/ |
| A D | acpi_dp.c | 67 for (dp = array->next; dp; dp = dp->next) { in acpi_dp_write_array() 79 struct acpi_dp *p = dp->next; in acpi_dp_free() 112 prop = table->next; in acpi_dp_write_internal() 118 for (dp = prop; dp; dp = dp->next) { in acpi_dp_write_internal() 161 for (dp = prop; dp; dp = dp->next) in acpi_dp_write_internal() 172 for (dp = prop; dp; dp = dp->next) { in acpi_dp_write_internal() 213 while (dp->next) in acpi_dp_new() 214 dp = dp->next; in acpi_dp_new() 215 dp->next = new; in acpi_dp_new()
|
| /lib/zlib/ |
| A D | inftrees.c | 50 code FAR *next; /* next available space in table */ in inflate_table() local 198 next = *table; /* current table to fill in */ in inflate_table() 231 next[(huff >> drop) + fill] = this; in inflate_table() 259 next += min; /* here min is 1 << curr */ in inflate_table() 280 (*table)[low].val = (unsigned short)(next - *table); in inflate_table() 299 next = *table; in inflate_table() 304 next[huff >> drop] = this; in inflate_table()
|