• Home
  • Raw
  • Download

Lines Matching refs:grp

878 	struct bufferevent_rate_limit_group *grp)  in bufferevent_rate_limit_group_get_read_limit()  argument
881 LOCK_GROUP(grp); in bufferevent_rate_limit_group_get_read_limit()
882 r = grp->rate_limit.read_limit; in bufferevent_rate_limit_group_get_read_limit()
883 UNLOCK_GROUP(grp); in bufferevent_rate_limit_group_get_read_limit()
891 struct bufferevent_rate_limit_group *grp) in bufferevent_rate_limit_group_get_write_limit() argument
894 LOCK_GROUP(grp); in bufferevent_rate_limit_group_get_write_limit()
895 r = grp->rate_limit.write_limit; in bufferevent_rate_limit_group_get_write_limit()
896 UNLOCK_GROUP(grp); in bufferevent_rate_limit_group_get_write_limit()
958 struct bufferevent_rate_limit_group *grp, ev_ssize_t decr) in bufferevent_rate_limit_group_decrement_read() argument
962 LOCK_GROUP(grp); in bufferevent_rate_limit_group_decrement_read()
963 old_limit = grp->rate_limit.read_limit; in bufferevent_rate_limit_group_decrement_read()
964 new_limit = (grp->rate_limit.read_limit -= decr); in bufferevent_rate_limit_group_decrement_read()
967 _bev_group_suspend_reading(grp); in bufferevent_rate_limit_group_decrement_read()
969 _bev_group_unsuspend_reading(grp); in bufferevent_rate_limit_group_decrement_read()
972 UNLOCK_GROUP(grp); in bufferevent_rate_limit_group_decrement_read()
978 struct bufferevent_rate_limit_group *grp, ev_ssize_t decr) in bufferevent_rate_limit_group_decrement_write() argument
982 LOCK_GROUP(grp); in bufferevent_rate_limit_group_decrement_write()
983 old_limit = grp->rate_limit.write_limit; in bufferevent_rate_limit_group_decrement_write()
984 new_limit = (grp->rate_limit.write_limit -= decr); in bufferevent_rate_limit_group_decrement_write()
987 _bev_group_suspend_writing(grp); in bufferevent_rate_limit_group_decrement_write()
989 _bev_group_unsuspend_writing(grp); in bufferevent_rate_limit_group_decrement_write()
992 UNLOCK_GROUP(grp); in bufferevent_rate_limit_group_decrement_write()
997 bufferevent_rate_limit_group_get_totals(struct bufferevent_rate_limit_group *grp, in bufferevent_rate_limit_group_get_totals() argument
1000 EVUTIL_ASSERT(grp != NULL); in bufferevent_rate_limit_group_get_totals()
1002 *total_read_out = grp->total_read; in bufferevent_rate_limit_group_get_totals()
1004 *total_written_out = grp->total_written; in bufferevent_rate_limit_group_get_totals()
1008 bufferevent_rate_limit_group_reset_totals(struct bufferevent_rate_limit_group *grp) in bufferevent_rate_limit_group_reset_totals() argument
1010 grp->total_read = grp->total_written = 0; in bufferevent_rate_limit_group_reset_totals()