Lines Matching refs:buf_o

173 	struct evbuffer_overlapped *buf_o = upcast_evbuffer(buf);  in evbuffer_launch_write()  local
185 EVUTIL_ASSERT(!buf_o->read_in_progress); in evbuffer_launch_write()
186 if (buf->freeze_start || buf_o->write_in_progress) in evbuffer_launch_write()
197 buf_o->first_pinned = NULL; in evbuffer_launch_write()
198 buf_o->n_buffers = 0; in evbuffer_launch_write()
199 memset(buf_o->buffers, 0, sizeof(buf_o->buffers)); in evbuffer_launch_write()
201 chain = buf_o->first_pinned = buf->first; in evbuffer_launch_write()
204 WSABUF *b = &buf_o->buffers[i]; in evbuffer_launch_write()
222 buf_o->n_buffers = i; in evbuffer_launch_write()
224 if (WSASend(buf_o->fd, buf_o->buffers, i, &bytesSent, 0, in evbuffer_launch_write()
229 pin_release(buf_o, EVBUFFER_MEM_PINNED_W); in evbuffer_launch_write()
236 buf_o->write_in_progress = 1; in evbuffer_launch_write()
247 struct evbuffer_overlapped *buf_o = upcast_evbuffer(buf); in evbuffer_launch_read() local
256 if (!buf_o) in evbuffer_launch_read()
259 EVUTIL_ASSERT(!buf_o->write_in_progress); in evbuffer_launch_read()
260 if (buf->freeze_end || buf_o->read_in_progress) in evbuffer_launch_read()
263 buf_o->first_pinned = NULL; in evbuffer_launch_read()
264 buf_o->n_buffers = 0; in evbuffer_launch_read()
265 memset(buf_o->buffers, 0, sizeof(buf_o->buffers)); in evbuffer_launch_read()
275 &buf_o->buffers[i], in evbuffer_launch_read()
279 buf_o->n_buffers = nvecs; in evbuffer_launch_read()
280 buf_o->first_pinned = chain = *chainp; in evbuffer_launch_read()
290 if (WSARecv(buf_o->fd, buf_o->buffers, nvecs, &bytesRead, &flags, in evbuffer_launch_read()
295 pin_release(buf_o, EVBUFFER_MEM_PINNED_R); in evbuffer_launch_read()
302 buf_o->read_in_progress = 1; in evbuffer_launch_read()
312 struct evbuffer_overlapped *buf_o = upcast_evbuffer(buf); in _evbuffer_overlapped_get_fd() local
313 return buf_o ? buf_o->fd : -1; in _evbuffer_overlapped_get_fd()
319 struct evbuffer_overlapped *buf_o = upcast_evbuffer(buf); in _evbuffer_overlapped_set_fd() local
322 if (buf_o) in _evbuffer_overlapped_set_fd()
323 buf_o->fd = fd; in _evbuffer_overlapped_set_fd()