Lines Matching refs:pinned
282 /* Free all trailing chains in 'buf' that are neither pinned nor empty, prior
805 * read-pinned chains. The first pinned chain is saved in first, and the
806 * last in last. If src has no read-pinned chains, first and last are set
812 struct evbuffer_chain *chain, **pinned;
821 pinned = src->last_with_datap;
822 if (!CHAIN_PINNED_R(*pinned))
823 pinned = &(*pinned)->next;
824 EVUTIL_ASSERT(CHAIN_PINNED_R(*pinned));
825 chain = *first = *pinned;
828 /* If there's data in the first pinned chain, we need to allocate
833 EVUTIL_ASSERT(pinned == src->last_with_datap);
846 *pinned = NULL;
853 RESTORE_PINNED(struct evbuffer *src, struct evbuffer_chain *pinned,
858 if (!pinned) {
863 src->first = pinned;
958 struct evbuffer_chain *pinned, *last;
974 if (PRESERVE_PINNED(inbuf, &pinned, &last) < 0) {
988 RESTORE_PINNED(inbuf, pinned, last);
1047 struct evbuffer_chain *pinned, *last;
1064 if (PRESERVE_PINNED(inbuf, &pinned, &last) < 0) {
1078 RESTORE_PINNED(inbuf, pinned, last);
1367 /* Make sure that none of the chains we need to copy from is pinned. */