Searched refs:newval (Results 1 – 3 of 3) sorted by relevance
49 static inline u32 tfrc_ewma(const u32 avg, const u32 newval, const u8 weight) in tfrc_ewma() argument51 return avg ? (weight * avg + (10 - weight) * newval) / 10 : newval; in tfrc_ewma()
180 u32 newval; in ethnl_update_bitfield32() local185 newval = (*dst & ~change.selector) | (change.value & change.selector); in ethnl_update_bitfield32()186 if (*dst == newval) in ethnl_update_bitfield32()189 *dst = newval; in ethnl_update_bitfield32()
359 long oldval, newval; in rds_ib_send_grab_credits() local367 oldval = newval = atomic_read(&ic->i_credits); in rds_ib_send_grab_credits()388 newval -= IB_SET_SEND_CREDITS(got); in rds_ib_send_grab_credits()397 newval -= IB_SET_POST_CREDITS(advertise); in rds_ib_send_grab_credits()401 if (atomic_cmpxchg(&ic->i_credits, oldval, newval) != oldval) in rds_ib_send_grab_credits()