Home
last modified time | relevance | path

Searched refs:next (Results 1 – 25 of 64) sorted by relevance

123

/lib/liblwip/src/core/
Dmem.c158 mem_size_t next; member
246 LWIP_ASSERT("plug_holes: mem->next <= MEM_SIZE_ALIGNED", mem->next <= MEM_SIZE_ALIGNED); in plug_holes()
248 nmem = (struct mem *)(void *)&ram[mem->next]; in plug_holes()
254 mem->next = nmem->next; in plug_holes()
255 ((struct mem *)(void *)&ram[nmem->next])->prev = (mem_size_t)((u8_t *)mem - ram); in plug_holes()
265 pmem->next = mem->next; in plug_holes()
266 ((struct mem *)(void *)&ram[mem->next])->prev = (mem_size_t)((u8_t *)pmem - ram); in plug_holes()
285 mem->next = MEM_SIZE_ALIGNED; in mem_init()
291 ram_end->next = MEM_SIZE_ALIGNED; in mem_init()
348 MEM_STATS_DEC_USED(used, mem->next - (mem_size_t)(((u8_t *)mem - ram))); in mem_free()
[all …]
Dtcp_in.c170 for(pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) { in tcp_input()
182 LWIP_ASSERT("tcp_input: pcb->next != pcb (before cache)", pcb->next != pcb); in tcp_input()
184 prev->next = pcb->next; in tcp_input()
185 pcb->next = tcp_active_pcbs; in tcp_input()
188 LWIP_ASSERT("tcp_input: pcb->next != pcb (after cache)", pcb->next != pcb); in tcp_input()
197 for(pcb = tcp_tw_pcbs; pcb != NULL; pcb = pcb->next) { in tcp_input()
216 for(lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) { in tcp_input()
250 ((struct tcp_pcb_listen *)prev)->next = lpcb->next; in tcp_input()
252 lpcb->next = tcp_listen_pcbs.listen_pcbs; in tcp_input()
280 inseg.next = NULL; in tcp_input()
[all …]
Dtimers.c276 timeout->next = NULL; in sys_timeout_debug()
293 timeout->next = next_timeout; in sys_timeout_debug()
296 for(t = next_timeout; t != NULL; t = t->next) { in sys_timeout_debug()
298 if (t->next == NULL || t->next->time > timeout->time) { in sys_timeout_debug()
299 if (t->next != NULL) { in sys_timeout_debug()
300 t->next->time -= timeout->time; in sys_timeout_debug()
302 timeout->next = t->next; in sys_timeout_debug()
303 t->next = timeout; in sys_timeout_debug()
329 for (t = next_timeout, prev_t = NULL; t != NULL; prev_t = t, t = t->next) { in sys_untimeout()
334 next_timeout = t->next; in sys_untimeout()
[all …]
Draw.c111 prev->next = pcb->next; in raw_input()
112 pcb->next = raw_pcbs; in raw_input()
122 pcb = pcb->next; in raw_input()
306 raw_pcbs = raw_pcbs->next; in raw_remove()
309 for(pcb2 = raw_pcbs; pcb2 != NULL; pcb2 = pcb2->next) { in raw_remove()
311 if (pcb2->next != NULL && pcb2->next == pcb) { in raw_remove()
313 pcb2->next = pcb->next; in raw_remove()
344 pcb->next = raw_pcbs; in raw_new()
Dnetif.c189 netif->next = netif_list; in netif_add()
256 netif_list = netif->next; in netif_remove()
260 for (tmpNetif = netif_list; tmpNetif != NULL; tmpNetif = tmpNetif->next) { in netif_remove()
261 if (tmpNetif->next == netif) { in netif_remove()
262 tmpNetif->next = netif->next; in netif_remove()
301 for(netif = netif_list; netif != NULL; netif = netif->next) { in netif_find()
345 struct tcp_pcb *next = pcb->next; in netif_set_ipaddr() local
348 pcb = next; in netif_set_ipaddr()
350 pcb = pcb->next; in netif_set_ipaddr()
353 for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) { in netif_set_ipaddr()
[all …]
Dpbuf.c127 for (pcb = tcp_active_pcbs; NULL != pcb; pcb = pcb->next) { in pbuf_free_ooseq()
246 p->next = NULL; in pbuf_alloc()
282 q->next = NULL; in pbuf_alloc()
284 r->next = q; in pbuf_alloc()
315 p->next = NULL; in pbuf_alloc()
336 p->next = NULL; in pbuf_alloc()
400 p->pbuf.next = NULL; in pbuf_alloced_custom()
463 q = q->next; in pbuf_realloc()
481 if (q->next != NULL) { in pbuf_realloc()
483 pbuf_free(q->next); in pbuf_realloc()
[all …]
Dmemp.c67 struct memp *next; member
190 for (h = t->next; (t != NULL) && (h != NULL); t = t->next, in memp_sanity()
191 h = (((h->next != NULL) && (h->next->next != NULL)) ? h->next->next : NULL)) { in memp_sanity()
361 memp->next = memp_tab[i]; in memp_init()
408 memp_tab[type] = memp->next; in memp_malloc()
410 memp->next = NULL; in memp_malloc()
460 memp->next = memp_tab[type]; in memp_free()
Dtcp.c461 for(cpcb = *tcp_pcb_lists[i]; cpcb != NULL; cpcb = cpcb->next) { in tcp_bind()
535 for(lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) { in tcp_listen_with_backlog()
659 for(pcb = *tcp_pcb_lists[i]; pcb != NULL; pcb = pcb->next) { in tcp_new_port()
729 for(cpcb = *tcp_pcb_lists[i]; cpcb != NULL; cpcb = cpcb->next) { in tcp_connect()
815 pcb = pcb->next; in tcp_slowtmr()
955 prev->next = pcb->next; in tcp_slowtmr()
959 tcp_active_pcbs = pcb->next; in tcp_slowtmr()
970 pcb = pcb->next; in tcp_slowtmr()
981 pcb = pcb->next; in tcp_slowtmr()
1023 prev->next = pcb->next; in tcp_slowtmr()
[all …]
Dtcp_out.c130 for (last_unsent = pcb->unsent; last_unsent->next != NULL; in tcp_send_fin()
131 last_unsent = last_unsent->next); in tcp_send_fin()
170 seg->next = NULL; in tcp_create_segment()
259 LWIP_ASSERT("need unchained pbuf", p->next == NULL); in tcp_pbuf_prealloc()
427 for (last_unsent = pcb->unsent; last_unsent->next != NULL; in tcp_write()
428 last_unsent = last_unsent->next); in tcp_write()
604 prev_seg->next = seg; in tcp_write()
629 for (p = last_unsent->p; p; p = p->next) { in tcp_write()
631 if (p->next == NULL) { in tcp_write()
670 last_unsent->next = queue; in tcp_write()
[all …]
Dudp.c109 for(pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) { in udp_new_port()
128 ipcb = ipcb->next; in udp_new_port()
229 for (pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) {
274 prev->next = pcb->next;
275 pcb->next = udp_pcbs;
359 for (mpcb = udp_pcbs; mpcb != NULL; mpcb = mpcb->next) {
777 for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) {
825 pcb->next = udp_pcbs;
893 for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) {
900 pcb->next = udp_pcbs;
[all …]
Ddns.c333 entry->next = local_hostlist_dynamic; in dns_init_local()
356 entry = entry->next; in dns_lookup_local()
389 last_entry->next = entry->next; in dns_local_removehost()
391 local_hostlist_dynamic = entry->next; in dns_local_removehost()
394 entry = entry->next; in dns_local_removehost()
399 entry = entry->next; in dns_local_removehost()
429 entry->next = local_hostlist_dynamic; in dns_local_addhost()
579 LWIP_ASSERT("pbuf must be in one piece", p->next == NULL); in dns_send()
/sys/kern/
Dsched.c192 Thread *next; in Sched_Scheduler() local
197 next = TAILQ_FIRST(&runnableQueue); in Sched_Scheduler()
198 if (!next) { in Sched_Scheduler()
210 ASSERT(next->schedState == SCHED_STATE_RUNNABLE); in Sched_Scheduler()
211 TAILQ_REMOVE(&runnableQueue, next, schedQueue); in Sched_Scheduler()
214 curProc[CPU()] = next; in Sched_Scheduler()
215 next->schedState = SCHED_STATE_RUNNING; in Sched_Scheduler()
216 next->ctxSwitches++; in Sched_Scheduler()
223 Sched_Switch(prev, next); in Sched_Scheduler()
/lib/liblwip/src/core/snmp/
Dasn1_dec.c69 p = p->next; in snmp_asn1_dec_type()
126 p = p->next; in snmp_asn1_dec_length()
161 p = p->next; in snmp_asn1_dec_length()
187 p = p->next; in snmp_asn1_dec_length()
219 p = p->next; in snmp_asn1_dec_length()
274 p = p->next; in snmp_asn1_dec_u32t()
296 p = p->next; in snmp_asn1_dec_u32t()
315 p = p->next; in snmp_asn1_dec_u32t()
387 p = p->next; in snmp_asn1_dec_s32t()
413 p = p->next; in snmp_asn1_dec_s32t()
[all …]
Dasn1_enc.c198 p = p->next; in snmp_asn1_enc_type()
240 p = p->next; in snmp_asn1_enc_length()
266 p = p->next; in snmp_asn1_enc_length()
290 p = p->next; in snmp_asn1_enc_length()
332 p = p->next; in snmp_asn1_enc_u32t()
351 p = p->next; in snmp_asn1_enc_u32t()
366 p = p->next; in snmp_asn1_enc_u32t()
407 p = p->next; in snmp_asn1_enc_s32t()
422 p = p->next; in snmp_asn1_enc_s32t()
469 p = p->next; in snmp_asn1_enc_oid()
[all …]
Dmib_structs.c104 nif = nif->next; in snmp_ifindextonetif()
124 nif = nif->next; in snmp_netiftoifindex()
164 ln->next = NULL; in snmp_mib_ln_alloc()
258 if (n->next == NULL) in snmp_mib_node_insert()
265 nn->next = NULL; in snmp_mib_node_insert()
267 n->next = nn; in snmp_mib_node_insert()
282 n = n->next; in snmp_mib_node_insert()
296 nn->next = n; in snmp_mib_node_insert()
304 nn->next = n; in snmp_mib_node_insert()
306 n->prev->next = nn; in snmp_mib_node_insert()
[all …]
/lib/liblwip/src/include/lwip/
Dtcp_impl.h86 (((tpcb)->unsent != NULL) && (((tpcb)->unsent->next != NULL) || \
278 struct tcp_seg *next; /* used when putting segements on a queue */ member
340 tcp_tmp_pcb = tcp_tmp_pcb->next) { \
344 (npcb)->next = *(pcbs); \
345 LWIP_ASSERT("TCP_REG: npcb->next != npcb", (npcb)->next != (npcb)); \
354 *(pcbs) = (*pcbs)->next; \
355 … } else for(tcp_tmp_pcb = *(pcbs); tcp_tmp_pcb != NULL; tcp_tmp_pcb = tcp_tmp_pcb->next) { \
356 if(tcp_tmp_pcb->next == (npcb)) { \
357 tcp_tmp_pcb->next = (npcb)->next; \
361 (npcb)->next = NULL; \
[all …]
/lib/liblwip/src/core/ipv4/
Digmp.c177 group = group->next; in igmp_dump_group_list()
227 struct igmp_group *next; in igmp_stop() local
231 next = group->next; in igmp_stop()
236 igmp_group_list = next; in igmp_stop()
240 prev->next = next; in igmp_stop()
256 group = next; in igmp_stop()
277 group = group->next; in igmp_report_groups()
298 group = group->next; in igmp_lookfor_group()
336 group->next = igmp_group_list; in igmp_lookup_group()
361 igmp_group_list = group->next; in igmp_remove_group()
[all …]
Dip_frag.c134 r = r->next; in ip_reass_tmr()
141 r = r->next; in ip_reass_tmr()
167 LWIP_ASSERT("prev->next == ipr", prev->next == ipr); in ip_reass_free_complete_datagram()
248 if (r->next != NULL) { in ip_reass_remove_oldest_datagram()
251 r = r->next; in ip_reass_remove_oldest_datagram()
291 ipr->next = reassdatagrams; in ip_reass_enqueue_new_datagram()
310 reassdatagrams = ipr->next; in ip_reass_dequeue_datagram()
314 prev->next = ipr->next; in ip_reass_dequeue_datagram()
520 for (ipr = reassdatagrams; ipr != NULL; ipr = ipr->next) { in ip_reass()
743 (rambuf->len == rambuf->tot_len) && (rambuf->next == NULL)); in ip_frag()
[all …]
Dinet_chksum.c284 for(q = p; q != NULL; q = q->next) { in inet_chksum_pseudo()
286 (void *)q, (void *)q->next)); in inet_chksum_pseudo()
345 for(q = p; (q != NULL) && (chksum_len > 0); q = q->next) { in inet_chksum_pseudo_partial()
347 (void *)q, (void *)q->next)); in inet_chksum_pseudo_partial()
417 for(q = p; q != NULL; q = q->next) { in inet_chksum_pbuf()
/lib/libc/
Dexit.c8 struct atexit_cb *next; member
23 _atexits[_atexit_count].next = prev; in atexit()
40 _atexit_last = _atexit_last->next; in exit()
Dmalloc.c12 struct Header *next; member
89 obj->next = pool[idx].free; in grow_small()
109 pool[idx].free = hdr->next; in malloc_small()
119 mem->next = pool[idx].free; in free_small()
140 addr->next = 0; in malloc_large()
/lib/liblwip/src/netif/
Dslipif.c135 for (q = p; q != NULL; q = q->next) { in slipif_output()
248 if (priv->p->next != NULL && priv->p->next->len > 0) { in slipif_rxbyte()
250 priv->p = priv->p->next; in slipif_rxbyte()
418 while ((q->len != q->tot_len) && (q->next != NULL)) { in slipif_process_rxqueue()
419 q = q->next; in slipif_process_rxqueue()
421 priv->rxpackets = q->next; in slipif_process_rxqueue()
422 q->next = NULL; in slipif_process_rxqueue()
453 while(q->next != NULL) { in slipif_rxbyte_enqueue()
454 q = q->next; in slipif_rxbyte_enqueue()
456 q->next = p; in slipif_rxbyte_enqueue()
/lib/liblwip/src/api/
Dnetbuf.c221 if (buf->ptr->next == NULL) { in netbuf_next()
224 buf->ptr = buf->ptr->next; in netbuf_next()
225 if (buf->ptr->next == NULL) { in netbuf_next()
/lib/liblwip/src/core/ipv6/
Dinet6.c90 for(q = p; q != NULL; q = q->next) { in inet_chksum_pseudo()
148 for(q = p; q != NULL; q = q->next) { in inet_chksum_pbuf()
/lib/liblwip/test/unit/tcp/
Dtcp_helper.c21 pcb = pcb->next; in tcp_remove()
59 for(q = p; q != NULL; q = q->next) { in tcp_create_segment_wnd()
186 for(q = p; q != NULL; q = q->next) { in test_tcp_counters_check_rxdata()
287 for (n = netif_list; n != NULL; n = n->next) { in test_tcp_init_netif()
292 netif->next = NULL; in test_tcp_init_netif()

123