Lines Matching full:partner
47 struct bufferevent_pair *partner; member
74 if (bevp->partner) in incref_and_lock()
75 bufferevent_incref_and_lock_(downcast(bevp->partner)); in incref_and_lock()
82 if (bevp->partner) in decref_and_unlock()
83 bufferevent_decref_and_unlock_(downcast(bevp->partner)); in decref_and_unlock()
138 bufev1->partner = bufev2; in bufferevent_pair_new()
139 bufev2->partner = bufev1; in bufferevent_pair_new()
209 struct bufferevent_pair *partner = bev_pair->partner; in be_pair_outbuf_cb() local
213 if (info->n_added > info->n_deleted && partner) { in be_pair_outbuf_cb()
216 if (be_pair_wants_to_talk(bev_pair, partner)) { in be_pair_outbuf_cb()
217 be_pair_transfer(downcast(bev_pair), downcast(partner), 0); in be_pair_outbuf_cb()
228 struct bufferevent_pair *partner = bev_p->partner; in be_pair_enable() local
239 if ((events & EV_READ) && partner && in be_pair_enable()
240 be_pair_wants_to_talk(partner, bev_p)) { in be_pair_enable()
241 be_pair_transfer(downcast(partner), bufev, 0); in be_pair_enable()
244 if ((events & EV_WRITE) && partner && in be_pair_enable()
245 be_pair_wants_to_talk(bev_p, partner)) { in be_pair_enable()
246 be_pair_transfer(bufev, downcast(partner), 0); in be_pair_enable()
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()
282 /* Transfer ownership of the lock into partner, otherwise we will use in be_pair_destruct()
309 struct bufferevent *partner; in be_pair_flush() local
311 if (!bev_p->partner) in be_pair_flush()
319 partner = downcast(bev_p->partner); in be_pair_flush()
322 be_pair_transfer(partner, bev, 1); in be_pair_flush()
325 be_pair_transfer(bev, partner, 1); in be_pair_flush()
333 bufferevent_run_eventcb_(partner, what, 0); in be_pair_flush()
343 struct bufferevent *partner = NULL; in bufferevent_pair_get_partner() local
349 if (bev_p->partner) in bufferevent_pair_get_partner()
350 partner = downcast(bev_p->partner); in bufferevent_pair_get_partner()
352 return partner; in bufferevent_pair_get_partner()