Searched refs:newval (Results 1 - 3 of 3) sorted by relevance

/net/dccp/ccids/lib/
H A Dtfrc.h53 static inline u32 tfrc_ewma(const u32 avg, const u32 newval, const u8 weight) argument
55 return avg ? (weight * avg + (10 - weight) * newval) / 10 : newval;
/net/rds/
H A Dib_send.c400 long oldval, newval; local
408 oldval = newval = atomic_read(&ic->i_credits);
429 newval -= IB_SET_SEND_CREDITS(got);
438 newval -= IB_SET_POST_CREDITS(advertise);
442 if (atomic_cmpxchg(&ic->i_credits, oldval, newval) != oldval)
H A Diw_send.c352 long oldval, newval; local
360 oldval = newval = atomic_read(&ic->i_credits);
381 newval -= IB_SET_SEND_CREDITS(got);
390 newval -= IB_SET_POST_CREDITS(advertise);
394 if (atomic_cmpxchg(&ic->i_credits, oldval, newval) != oldval)

Completed in 444 milliseconds