Lines Matching refs:pinned
812 struct evbuffer_chain *chain, **pinned; in PRESERVE_PINNED() local
821 pinned = src->last_with_datap; in PRESERVE_PINNED()
822 if (!CHAIN_PINNED_R(*pinned)) in PRESERVE_PINNED()
823 pinned = &(*pinned)->next; in PRESERVE_PINNED()
824 EVUTIL_ASSERT(CHAIN_PINNED_R(*pinned)); in PRESERVE_PINNED()
825 chain = *first = *pinned; in PRESERVE_PINNED()
833 EVUTIL_ASSERT(pinned == src->last_with_datap); in PRESERVE_PINNED()
846 *pinned = NULL; in PRESERVE_PINNED()
853 RESTORE_PINNED(struct evbuffer *src, struct evbuffer_chain *pinned, in RESTORE_PINNED() argument
858 if (!pinned) { in RESTORE_PINNED()
863 src->first = pinned; in RESTORE_PINNED()
963 struct evbuffer_chain *pinned, *last; in evbuffer_add_buffer() local
979 if (PRESERVE_PINNED(inbuf, &pinned, &last) < 0) { in evbuffer_add_buffer()
993 RESTORE_PINNED(inbuf, pinned, last); in evbuffer_add_buffer()
1052 struct evbuffer_chain *pinned, *last; in evbuffer_prepend_buffer() local
1069 if (PRESERVE_PINNED(inbuf, &pinned, &last) < 0) { in evbuffer_prepend_buffer()
1083 RESTORE_PINNED(inbuf, pinned, last); in evbuffer_prepend_buffer()