Lines Matching defs:delta
250 * Function reads the content of the register and returns the delta
256 u32 delta = fm10k_read_reg(hw, addr) - stat->base_l;
261 return delta;
272 * Finally, a delta value is returned representing the difference between the
281 u64 delta;
292 delta = ((u64)(count_h - stat->base_h) << 32) + count_l;
293 delta -= stat->base_l;
295 return delta & FM10K_48_BIT_MASK;
301 * @delta: value to be updated into the hardware statistic structure
304 * a delta calculation. Only the base value will be updated.
306 static void fm10k_update_hw_base_48b(struct fm10k_hw_stat *stat, u64 delta)
308 if (!delta)
312 delta += stat->base_l;
313 stat->base_l = (u32)delta;
316 stat->base_h += (u32)(delta >> 32);