Lines Matching defs:ref
36 * Example of custom pbuf usage: @ref zerocopyrx
187 p->ref = 1;
348 * Example of custom pbuf usage: @ref zerocopyrx
557 * Same as @ref pbuf_add_header but does not check if 'header_size > 0' is allowed.
666 * ATTENTION: this is the opposite direction as @ref pbuf_header, but
746 LWIP_PBUF_REF_T ref;
748 /* Since decrementing ref cannot be guaranteed to be a single machine operation
749 * we must protect it. We put the new ref into a local variable to prevent
753 LWIP_ASSERT("pbuf_free: p->ref > 0", p->ref > 0);
755 ref = --(p->ref);
758 if (ref == 0) {
789 /* p->ref > 0, this pbuf is still referenced to */
792 LWIP_DEBUGF( PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_free: %p has ref %"U16_F", ending here.\n", (void *)p, (u16_t)ref));
833 SYS_ARCH_SET(p->ref, (LWIP_PBUF_REF_T)(p->ref + 1));
834 LWIP_ASSERT("pbuf ref overflow", p->ref > 0);
891 * The ->ref field of the first pbuf of the tail chain is adjusted.