Lines Matching refs:BEV_UPCAST
581 BEV_UPCAST(bufev);
591 struct bufferevent_private *d = BEV_UPCAST(donor);
592 struct bufferevent_private *r = BEV_UPCAST(recipient);
703 if (BEV_UPCAST(bufev)->lock)
707 if (!lock && underlying && BEV_UPCAST(underlying)->lock) {
708 lock = BEV_UPCAST(underlying)->lock;
709 BEV_UPCAST(bufev)->lock = lock;
710 BEV_UPCAST(bufev)->own_lock = 0;
715 BEV_UPCAST(bufev)->lock = lock;
716 BEV_UPCAST(bufev)->own_lock = 1;
718 BEV_UPCAST(bufev)->lock = lock;
719 BEV_UPCAST(bufev)->own_lock = 0;
724 if (underlying && !BEV_UPCAST(underlying)->lock)