Lines Matching refs:npcb
336 #define TCP_REG(pcbs, npcb) do {\ argument
337 … LWIP_DEBUGF(TCP_DEBUG, ("TCP_REG %p local port %d\n", (npcb), (npcb)->local_port)); \
341 … LWIP_ASSERT("TCP_REG: already registered\n", tcp_tmp_pcb != (npcb)); \
343 …_ASSERT("TCP_REG: pcb->state != CLOSED", ((pcbs) == &tcp_bound_pcbs) || ((npcb)->state != CLOSED))…
344 (npcb)->next = *(pcbs); \
345 LWIP_ASSERT("TCP_REG: npcb->next != npcb", (npcb)->next != (npcb)); \
346 *(pcbs) = (npcb); \
350 #define TCP_RMV(pcbs, npcb) do { \ argument
352 … LWIP_DEBUGF(TCP_DEBUG, ("TCP_RMV: removing %p from %p\n", (npcb), *(pcbs))); \
353 if(*(pcbs) == (npcb)) { \
356 if(tcp_tmp_pcb->next == (npcb)) { \
357 tcp_tmp_pcb->next = (npcb)->next; \
361 (npcb)->next = NULL; \
363 … LWIP_DEBUGF(TCP_DEBUG, ("TCP_RMV: removed %p from %p\n", (npcb), *(pcbs))); \
368 #define TCP_REG(pcbs, npcb) \ argument
370 (npcb)->next = *pcbs; \
371 *(pcbs) = (npcb); \
375 #define TCP_RMV(pcbs, npcb) \ argument
377 if(*(pcbs) == (npcb)) { \
384 if(tcp_tmp_pcb->next == (npcb)) { \
385 tcp_tmp_pcb->next = (npcb)->next; \
390 (npcb)->next = NULL; \
395 #define TCP_REG_ACTIVE(npcb) \ argument
397 TCP_REG(&tcp_active_pcbs, npcb); \
401 #define TCP_RMV_ACTIVE(npcb) \ argument
403 TCP_RMV(&tcp_active_pcbs, npcb); \