Lines Matching refs:new_limit
904 ev_ssize_t old_limit, new_limit; in bufferevent_decrement_read_limit() local
911 new_limit = (bevp->rate_limiting->limit.read_limit -= decr); in bufferevent_decrement_read_limit()
912 if (old_limit > 0 && new_limit <= 0) { in bufferevent_decrement_read_limit()
917 } else if (old_limit <= 0 && new_limit > 0) { in bufferevent_decrement_read_limit()
933 ev_ssize_t old_limit, new_limit; in bufferevent_decrement_write_limit() local
940 new_limit = (bevp->rate_limiting->limit.write_limit -= decr); in bufferevent_decrement_write_limit()
941 if (old_limit > 0 && new_limit <= 0) { in bufferevent_decrement_write_limit()
946 } else if (old_limit <= 0 && new_limit > 0) { in bufferevent_decrement_write_limit()
961 ev_ssize_t old_limit, new_limit; in bufferevent_rate_limit_group_decrement_read() local
964 new_limit = (grp->rate_limit.read_limit -= decr); in bufferevent_rate_limit_group_decrement_read()
966 if (old_limit > 0 && new_limit <= 0) { in bufferevent_rate_limit_group_decrement_read()
968 } else if (old_limit <= 0 && new_limit > 0) { in bufferevent_rate_limit_group_decrement_read()
981 ev_ssize_t old_limit, new_limit; in bufferevent_rate_limit_group_decrement_write() local
984 new_limit = (grp->rate_limit.write_limit -= decr); in bufferevent_rate_limit_group_decrement_write()
986 if (old_limit > 0 && new_limit <= 0) { in bufferevent_rate_limit_group_decrement_write()
988 } else if (old_limit <= 0 && new_limit > 0) { in bufferevent_rate_limit_group_decrement_write()