Lines Matching refs:npcb
358 #define TCP_REG(pcbs, npcb) do {\ argument
360 …LWIP_DEBUGF(TCP_DEBUG, ("TCP_REG %p local port %"U16_F"\n", (void *)(npcb), (npcb)->local_port)); \
364 … LWIP_ASSERT("TCP_REG: already registered\n", tcp_tmp_pcb != (npcb)); \
366 …_ASSERT("TCP_REG: pcb->state != CLOSED", ((pcbs) == &tcp_bound_pcbs) || ((npcb)->state != CLOSED))…
367 (npcb)->next = *(pcbs); \
368 LWIP_ASSERT("TCP_REG: npcb->next != npcb", (npcb)->next != (npcb)); \
369 *(pcbs) = (npcb); \
373 #define TCP_RMV(pcbs, npcb) do { \ argument
376 … LWIP_DEBUGF(TCP_DEBUG, ("TCP_RMV: removing %p from %p\n", (void *)(npcb), (void *)(*(pcbs)))); \
377 if(*(pcbs) == (npcb)) { \
380 if(tcp_tmp_pcb->next == (npcb)) { \
381 tcp_tmp_pcb->next = (npcb)->next; \
385 (npcb)->next = NULL; \
387 … LWIP_DEBUGF(TCP_DEBUG, ("TCP_RMV: removed %p from %p\n", (void *)(npcb), (void *)(*(pcbs)))); \
392 #define TCP_REG(pcbs, npcb) \ argument
394 (npcb)->next = *pcbs; \
395 *(pcbs) = (npcb); \
399 #define TCP_RMV(pcbs, npcb) \ argument
401 if(*(pcbs) == (npcb)) { \
409 if(tcp_tmp_pcb->next == (npcb)) { \
410 tcp_tmp_pcb->next = (npcb)->next; \
415 (npcb)->next = NULL; \
420 #define TCP_REG_ACTIVE(npcb) \ argument
422 TCP_REG(&tcp_active_pcbs, npcb); \
426 #define TCP_RMV_ACTIVE(npcb) \ argument
428 TCP_RMV(&tcp_active_pcbs, npcb); \