Lines Matching refs:chain
85 struct evbuffer_chain *next, *chain = eo->first_pinned; in pin_release() local
88 EVUTIL_ASSERT(chain); in pin_release()
89 next = chain->next; in pin_release()
90 _evbuffer_chain_unpin(chain, flag); in pin_release()
91 chain = next; in pin_release()
176 struct evbuffer_chain *chain; in evbuffer_launch_write() local
201 chain = buf_o->first_pinned = buf->first; in evbuffer_launch_write()
203 for (i=0; i < MAX_WSABUFS && chain; ++i, chain=chain->next) { in evbuffer_launch_write()
205 b->buf = (char*)( chain->buffer + chain->misalign ); in evbuffer_launch_write()
206 _evbuffer_chain_pin(chain, EVBUFFER_MEM_PINNED_W); in evbuffer_launch_write()
208 if ((size_t)at_most > chain->off) { in evbuffer_launch_write()
213 b->len = (unsigned long)chain->off; in evbuffer_launch_write()
214 at_most -= chain->off; in evbuffer_launch_write()
251 struct evbuffer_chain *chain=NULL, **chainp; in evbuffer_launch_read() local
280 buf_o->first_pinned = chain = *chainp; in evbuffer_launch_read()
283 for ( ; chain; chain = chain->next) { in evbuffer_launch_read()
284 _evbuffer_chain_pin(chain, EVBUFFER_MEM_PINNED_R); in evbuffer_launch_read()