Lines Matching refs:downcast
66 #define downcast(bev_pair) (&(bev_pair)->bev.bev) macro
75 bufferevent_incref_and_lock_(downcast(bevp->partner)); in incref_and_lock()
83 bufferevent_decref_and_unlock_(downcast(bevp->partner)); in decref_and_unlock()
105 bufferevent_free(downcast(bufev)); in bufferevent_pair_elt_new()
129 bufferevent_free(downcast(bufev1)); in bufferevent_pair_new()
135 bufferevent_enable_locking_(downcast(bufev2), bufev1->bev.lock); in bufferevent_pair_new()
141 evbuffer_freeze(downcast(bufev1)->input, 0); in bufferevent_pair_new()
142 evbuffer_freeze(downcast(bufev1)->output, 1); in bufferevent_pair_new()
143 evbuffer_freeze(downcast(bufev2)->input, 0); in bufferevent_pair_new()
144 evbuffer_freeze(downcast(bufev2)->output, 1); in bufferevent_pair_new()
146 pair[0] = downcast(bufev1); in bufferevent_pair_new()
147 pair[1] = downcast(bufev2); in bufferevent_pair_new()
198 return (downcast(src)->enabled & EV_WRITE) && in be_pair_wants_to_talk()
199 (downcast(dst)->enabled & EV_READ) && in be_pair_wants_to_talk()
201 evbuffer_get_length(downcast(src)->output); in be_pair_wants_to_talk()
211 incref_and_lock(downcast(bev_pair)); in be_pair_outbuf_cb()
217 be_pair_transfer(downcast(bev_pair), downcast(partner), 0); in be_pair_outbuf_cb()
221 decref_and_unlock(downcast(bev_pair)); in be_pair_outbuf_cb()
241 be_pair_transfer(downcast(partner), bufev, 0); in be_pair_enable()
246 be_pair_transfer(bufev, downcast(partner), 0); in be_pair_enable()
319 partner = downcast(bev_p->partner); in be_pair_flush()
350 partner = downcast(bev_p->partner); in bufferevent_pair_get_partner()