Lines Matching refs:pcbs
313 struct tcp_pcb *pcbs;
336 #define TCP_REG(pcbs, npcb) do {\
338 for(tcp_tmp_pcb = *(pcbs); \
343 LWIP_ASSERT("TCP_REG: pcb->state != CLOSED", ((pcbs) == &tcp_bound_pcbs) || ((npcb)->state != CLOSED)); \
344 (npcb)->next = *(pcbs); \
346 *(pcbs) = (npcb); \
350 #define TCP_RMV(pcbs, npcb) do { \
351 LWIP_ASSERT("TCP_RMV: pcbs != NULL", *(pcbs) != NULL); \
352 LWIP_DEBUGF(TCP_DEBUG, ("TCP_RMV: removing %p from %p\n", (npcb), *(pcbs))); \
353 if(*(pcbs) == (npcb)) { \
354 *(pcbs) = (*pcbs)->next; \
355 } else for(tcp_tmp_pcb = *(pcbs); tcp_tmp_pcb != NULL; tcp_tmp_pcb = tcp_tmp_pcb->next) { \
363 LWIP_DEBUGF(TCP_DEBUG, ("TCP_RMV: removed %p from %p\n", (npcb), *(pcbs))); \
368 #define TCP_REG(pcbs, npcb) \
370 (npcb)->next = *pcbs; \
371 *(pcbs) = (npcb); \
375 #define TCP_RMV(pcbs, npcb) \
377 if(*(pcbs) == (npcb)) { \
378 (*(pcbs)) = (*pcbs)->next; \
381 for(tcp_tmp_pcb = *pcbs; \