Home
last modified time | relevance | path

Searched refs:bevp (Results 1 – 10 of 10) sorted by relevance

/freebsd/contrib/ntp/sntp/libevent/
H A Dbufferevent_ratelim.c563 struct bufferevent_private *bevp = BEV_UPCAST(bev); in bufferevent_set_rate_limit() local
574 if (bevp->rate_limiting) { in bufferevent_set_rate_limit()
575 rlim = bevp->rate_limiting; in bufferevent_set_rate_limit()
589 if (bevp->rate_limiting && bevp->rate_limiting->cfg == cfg) { in bufferevent_set_rate_limit()
594 if (bevp->rate_limiting == NULL) { in bufferevent_set_rate_limit()
598 bevp->rate_limiting = rlim; in bufferevent_set_rate_limit()
600 rlim = bevp->rate_limiting; in bufferevent_set_rate_limit()
612 -1, EV_FINALIZE, bev_refill_callback_, bevp); in bufferevent_set_rate_limit()
739 struct bufferevent_private *bevp = BEV_UPCAST(bev); in bufferevent_add_to_rate_limit_group() local
742 if (!bevp->rate_limiting) { in bufferevent_add_to_rate_limit_group()
[all …]
H A Dbufferevent-internal.h305 #define BEV_IS_SOCKET(bevp) ((bevp)->be_ops == &bufferevent_ops_socket) argument
306 #define BEV_IS_FILTER(bevp) ((bevp)->be_ops == &bufferevent_ops_filter) argument
307 #define BEV_IS_PAIR(bevp) ((bevp)->be_ops == &bufferevent_ops_pair) argument
311 #define BEV_IS_OPENSSL(bevp) ((bevp)->be_ops == &bufferevent_ops_openssl) argument
313 #define BEV_IS_OPENSSL(bevp) 0 argument
318 #define BEV_IS_ASYNC(bevp) ((bevp)->be_ops == &bufferevent_ops_async) argument
320 #define BEV_IS_ASYNC(bevp) 0 argument
H A Dbufferevent_pair.c71 struct bufferevent_pair *bevp; in incref_and_lock() local
73 bevp = upcast(b); in incref_and_lock()
74 if (bevp->partner) in incref_and_lock()
75 bufferevent_incref_and_lock_(downcast(bevp->partner)); in incref_and_lock()
81 struct bufferevent_pair *bevp = upcast(b); in decref_and_unlock() local
82 if (bevp->partner) in decref_and_unlock()
83 bufferevent_decref_and_unlock_(downcast(bevp->partner)); in decref_and_unlock()
H A Dbufferevent.c231 #define SCHEDULE_DEFERRED(bevp) \ argument
234 (bevp)->bev.ev_base, \
235 &(bevp)->deferred)) \
236 bufferevent_incref_(&(bevp)->bev); \
/freebsd/contrib/libevent/
H A Dbufferevent_ratelim.c563 struct bufferevent_private *bevp = BEV_UPCAST(bev); in bufferevent_set_rate_limit() local
574 if (bevp->rate_limiting) { in bufferevent_set_rate_limit()
575 rlim = bevp->rate_limiting; in bufferevent_set_rate_limit()
589 if (bevp->rate_limiting && bevp->rate_limiting->cfg == cfg) { in bufferevent_set_rate_limit()
594 if (bevp->rate_limiting == NULL) { in bufferevent_set_rate_limit()
598 bevp->rate_limiting = rlim; in bufferevent_set_rate_limit()
600 rlim = bevp->rate_limiting; in bufferevent_set_rate_limit()
612 -1, EV_FINALIZE, bev_refill_callback_, bevp); in bufferevent_set_rate_limit()
739 struct bufferevent_private *bevp = BEV_UPCAST(bev); in bufferevent_add_to_rate_limit_group() local
742 if (!bevp->rate_limiting) { in bufferevent_add_to_rate_limit_group()
[all …]
H A Dbufferevent-internal.h305 #define BEV_IS_SOCKET(bevp) ((bevp)->be_ops == &bufferevent_ops_socket) argument
306 #define BEV_IS_FILTER(bevp) ((bevp)->be_ops == &bufferevent_ops_filter) argument
307 #define BEV_IS_PAIR(bevp) ((bevp)->be_ops == &bufferevent_ops_pair) argument
311 #define BEV_IS_OPENSSL(bevp) ((bevp)->be_ops == &bufferevent_ops_openssl) argument
313 #define BEV_IS_OPENSSL(bevp) 0 argument
318 #define BEV_IS_ASYNC(bevp) ((bevp)->be_ops == &bufferevent_ops_async) argument
320 #define BEV_IS_ASYNC(bevp) 0 argument
H A Dbufferevent_pair.c71 struct bufferevent_pair *bevp; in incref_and_lock() local
73 bevp = upcast(b); in incref_and_lock()
74 if (bevp->partner) in incref_and_lock()
75 bufferevent_incref_and_lock_(downcast(bevp->partner)); in incref_and_lock()
81 struct bufferevent_pair *bevp = upcast(b); in decref_and_unlock() local
82 if (bevp->partner) in decref_and_unlock()
83 bufferevent_decref_and_unlock_(downcast(bevp->partner)); in decref_and_unlock()
H A Dbufferevent.c231 #define SCHEDULE_DEFERRED(bevp) \ argument
234 (bevp)->bev.ev_base, \
235 &(bevp)->deferred)) \
236 bufferevent_incref_(&(bevp)->bev); \
/freebsd/contrib/ntp/sntp/libevent/test/
H A Dregress_bufferevent.c522 struct bufferevent **bevp = ctx; in bufferevent_output_filter() local
537 if (bevp && test_ok == 1) { in bufferevent_output_filter()
539 bufferevent_write(*bevp, "-", 1); in bufferevent_output_filter()
/freebsd/contrib/libevent/test/
H A Dregress_bufferevent.c522 struct bufferevent **bevp = ctx; in bufferevent_output_filter() local
537 if (bevp && test_ok == 1) { in bufferevent_output_filter()
539 bufferevent_write(*bevp, "-", 1); in bufferevent_output_filter()