Lines Matching refs:chain
86 struct evbuffer_chain *next, *chain = eo->first_pinned; in pin_release() local
89 EVUTIL_ASSERT(chain); in pin_release()
90 next = chain->next; in pin_release()
91 evbuffer_chain_unpin_(chain, flag); in pin_release()
92 chain = next; in pin_release()
177 struct evbuffer_chain *chain; in evbuffer_launch_write_() local
202 chain = buf_o->first_pinned = buf->first; in evbuffer_launch_write_()
204 for (i=0; i < MAX_WSABUFS && chain; ++i, chain=chain->next) { in evbuffer_launch_write_()
206 b->buf = (char*)( chain->buffer + chain->misalign ); in evbuffer_launch_write_()
207 evbuffer_chain_pin_(chain, EVBUFFER_MEM_PINNED_W); in evbuffer_launch_write_()
209 if ((size_t)at_most > chain->off) { in evbuffer_launch_write_()
214 b->len = (unsigned long)chain->off; in evbuffer_launch_write_()
215 at_most -= chain->off; in evbuffer_launch_write_()
252 struct evbuffer_chain *chain=NULL, **chainp; in evbuffer_launch_read_() local
281 buf_o->first_pinned = chain = *chainp; in evbuffer_launch_read_()
284 for ( ; chain; chain = chain->next) { in evbuffer_launch_read_()
285 evbuffer_chain_pin_(chain, EVBUFFER_MEM_PINNED_R); in evbuffer_launch_read_()