Lines Matching refs:bev
48 static void drained_writecb(struct bufferevent *bev, void *ctx);
49 static void eventcb(struct bufferevent *bev, short what, void *ctx);
52 readcb(struct bufferevent *bev, void *ctx) in readcb() argument
57 src = bufferevent_get_input(bev); in readcb()
71 eventcb, bev); in readcb()
74 bufferevent_disable(bev, EV_READ); in readcb()
79 drained_writecb(struct bufferevent *bev, void *ctx) in drained_writecb() argument
85 bufferevent_setcb(bev, readcb, NULL, eventcb, partner); in drained_writecb()
86 bufferevent_setwatermark(bev, EV_WRITE, 0, 0); in drained_writecb()
92 close_on_finished_writecb(struct bufferevent *bev, void *ctx) in close_on_finished_writecb() argument
94 struct evbuffer *b = bufferevent_get_output(bev); in close_on_finished_writecb()
97 bufferevent_free(bev); in close_on_finished_writecb()
102 eventcb(struct bufferevent *bev, short what, void *ctx) in eventcb() argument
109 while ((err = (bufferevent_get_openssl_error(bev)))) { in eventcb()
125 readcb(bev, ctx); in eventcb()
142 bufferevent_free(bev); in eventcb()