Lines Matching refs:evbuf
97 evbuffer_commit_read_(struct evbuffer *evbuf, ev_ssize_t nBytes) in evbuffer_commit_read_() argument
99 struct evbuffer_overlapped *buf = upcast_evbuffer(evbuf); in evbuffer_commit_read_()
104 EVBUFFER_LOCK(evbuf); in evbuffer_commit_read_()
108 evbuffer_unfreeze(evbuf, 0); in evbuffer_commit_read_()
110 chainp = evbuf->last_with_datap; in evbuffer_commit_read_()
120 evbuf->last_with_datap = chainp; in evbuffer_commit_read_()
129 evbuf->total_len += nBytes; in evbuffer_commit_read_()
130 evbuf->n_add_for_cb += nBytes; in evbuffer_commit_read_()
132 evbuffer_invoke_callbacks_(evbuf); in evbuffer_commit_read_()
134 evbuffer_decref_and_unlock_(evbuf); in evbuffer_commit_read_()
138 evbuffer_commit_write_(struct evbuffer *evbuf, ev_ssize_t nBytes) in evbuffer_commit_write_() argument
140 struct evbuffer_overlapped *buf = upcast_evbuffer(evbuf); in evbuffer_commit_write_()
142 EVBUFFER_LOCK(evbuf); in evbuffer_commit_write_()
144 evbuffer_unfreeze(evbuf, 1); in evbuffer_commit_write_()
145 evbuffer_drain(evbuf, nBytes); in evbuffer_commit_write_()
148 evbuffer_decref_and_unlock_(evbuf); in evbuffer_commit_write_()