Lines Matching refs:delta
263 * Function reads the content of the register and returns the delta
269 u32 delta = fm10k_read_reg(hw, addr) - stat->base_l;
274 return delta;
284 * Finally, a delta value is returned representing the difference between the
293 u64 delta;
304 delta = ((u64)(count_h - stat->base_h) << 32) + count_l;
305 delta -= stat->base_l;
307 return delta & FM10K_48_BIT_MASK;
313 * @delta: value to be updated into the hardware statistic structure
316 * a delta calculation. Only the base value will be updated.
318 static void fm10k_update_hw_base_48b(struct fm10k_hw_stat *stat, u64 delta)
320 if (!delta)
324 delta += stat->base_l;
325 stat->base_l = (u32)delta;
328 stat->base_h += (u32)(delta >> 32);