Lines Matching refs:BEV_UPCAST
661 BEV_UPCAST(bufev);
671 struct bufferevent_private *d = BEV_UPCAST(donor);
672 struct bufferevent_private *r = BEV_UPCAST(recipient);
814 if (BEV_UPCAST(bufev)->lock)
818 if (!lock && underlying && BEV_UPCAST(underlying)->lock) {
819 lock = BEV_UPCAST(underlying)->lock;
820 BEV_UPCAST(bufev)->lock = lock;
821 BEV_UPCAST(bufev)->own_lock = 0;
826 BEV_UPCAST(bufev)->lock = lock;
827 BEV_UPCAST(bufev)->own_lock = 1;
829 BEV_UPCAST(bufev)->lock = lock;
830 BEV_UPCAST(bufev)->own_lock = 0;
835 if (underlying && !BEV_UPCAST(underlying)->lock)