Lines Matching refs:bev_p
58 struct bufferevent_pair *bev_p; in upcast() local
61 bev_p = EVUTIL_UPCAST(bev, struct bufferevent_pair, bev.bev); in upcast()
62 EVUTIL_ASSERT(bev_p->bev.bev.be_ops == &bufferevent_ops_pair); in upcast()
63 return bev_p; in upcast()
227 struct bufferevent_pair *bev_p = upcast(bufev); in be_pair_enable() local
228 struct bufferevent_pair *partner = bev_p->partner; in be_pair_enable()
240 be_pair_wants_to_talk(partner, bev_p)) { in be_pair_enable()
245 be_pair_wants_to_talk(bev_p, partner)) { in be_pair_enable()
267 struct bufferevent_pair *bev_p = upcast(bev); in be_pair_unlink() local
269 if (bev_p->partner) { in be_pair_unlink()
270 bev_p->unlinked_partner = bev_p->partner; in be_pair_unlink()
271 bev_p->partner->partner = NULL; in be_pair_unlink()
272 bev_p->partner = NULL; in be_pair_unlink()
280 struct bufferevent_pair *bev_p = upcast(bev); in be_pair_destruct() local
297 if (bev_p->unlinked_partner && bev_p->bev.own_lock) { in be_pair_destruct()
298 bev_p->unlinked_partner->bev.own_lock = 1; in be_pair_destruct()
299 bev_p->bev.own_lock = 0; in be_pair_destruct()
301 bev_p->unlinked_partner = NULL; in be_pair_destruct()
308 struct bufferevent_pair *bev_p = upcast(bev); in be_pair_flush() local
311 if (!bev_p->partner) in be_pair_flush()
319 partner = downcast(bev_p->partner); in be_pair_flush()
342 struct bufferevent_pair *bev_p; in bufferevent_pair_get_partner() local
344 bev_p = upcast(bev); in bufferevent_pair_get_partner()
345 if (! bev_p) in bufferevent_pair_get_partner()
349 if (bev_p->partner) in bufferevent_pair_get_partner()
350 partner = downcast(bev_p->partner); in bufferevent_pair_get_partner()