Home
last modified time | relevance | path

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

/external/libevent/
Dbufferevent_ratelim.c563 struct bufferevent_private *bevp = in bufferevent_set_rate_limit() local
575 if (bevp->rate_limiting) { in bufferevent_set_rate_limit()
576 rlim = bevp->rate_limiting; in bufferevent_set_rate_limit()
590 if (bevp->rate_limiting && bevp->rate_limiting->cfg == cfg) { in bufferevent_set_rate_limit()
595 if (bevp->rate_limiting == NULL) { in bufferevent_set_rate_limit()
599 bevp->rate_limiting = rlim; in bufferevent_set_rate_limit()
601 rlim = bevp->rate_limiting; in bufferevent_set_rate_limit()
613 -1, EV_FINALIZE, bev_refill_callback_, bevp); in bufferevent_set_rate_limit()
740 struct bufferevent_private *bevp = in bufferevent_add_to_rate_limit_group() local
744 if (!bevp->rate_limiting) { in bufferevent_add_to_rate_limit_group()
[all …]
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_ASYNC(bevp) ((bevp)->be_ops == &bufferevent_ops_async) argument
313 #define BEV_IS_ASYNC(bevp) 0 argument
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()
Dbufferevent.c211 #define SCHEDULE_DEFERRED(bevp) \ argument
214 (bevp)->bev.ev_base, \
215 &(bevp)->deferred)) \
216 bufferevent_incref_(&(bevp)->bev); \
/external/libevent/test/
Dregress_bufferevent.c509 struct bufferevent **bevp = ctx; in bufferevent_output_filter() local
524 if (bevp && test_ok == 1) { in bufferevent_output_filter()
526 bufferevent_write(*bevp, "-", 1); in bufferevent_output_filter()