/* mlx4_en_read_clock - read raw cycle counter (to be used by time counter) */ static cycle_t mlx4_en_read_clock(const struct cyclecounter *tc) { struct mlx4_en_dev *mdev = container_of(tc, struct mlx4_en_dev, cycles); struct mlx4_dev *dev = mdev->dev; return mlx4_read_clock(dev) & tc->mask; }
/* * mlx4_en_read_clock - read raw cycle counter (to be used by time counter) */ cycle_t mlx4_en_read_clock(const struct cyclecounter *tc) { struct mlx4_en_dev *mdev = container_of(tc, struct mlx4_en_dev, cycles); struct mlx4_dev *dev = mdev->dev; return mlx4_read_clock(dev) & CORE_CLOCK_MASK; }