Lines Matching refs:mdev
36 static inline bool mlx5_is_real_time_rq(struct mlx5_core_dev *mdev) in mlx5_is_real_time_rq() argument
38 u8 rq_ts_format_cap = MLX5_CAP_GEN(mdev, rq_ts_format); in mlx5_is_real_time_rq()
45 static inline bool mlx5_is_real_time_sq(struct mlx5_core_dev *mdev) in mlx5_is_real_time_sq() argument
47 u8 sq_ts_format_cap = MLX5_CAP_GEN(mdev, sq_ts_format); in mlx5_is_real_time_sq()
57 void mlx5_init_clock(struct mlx5_core_dev *mdev);
58 void mlx5_cleanup_clock(struct mlx5_core_dev *mdev);
60 static inline int mlx5_clock_get_ptp_index(struct mlx5_core_dev *mdev) in mlx5_clock_get_ptp_index() argument
62 return mdev->clock.ptp ? ptp_clock_index(mdev->clock.ptp) : -1; in mlx5_clock_get_ptp_index()
90 static inline void mlx5_init_clock(struct mlx5_core_dev *mdev) {} in mlx5_init_clock() argument
91 static inline void mlx5_cleanup_clock(struct mlx5_core_dev *mdev) {} in mlx5_cleanup_clock() argument
92 static inline int mlx5_clock_get_ptp_index(struct mlx5_core_dev *mdev) in mlx5_clock_get_ptp_index() argument
110 static inline cqe_ts_to_ns mlx5_rq_ts_translator(struct mlx5_core_dev *mdev) in mlx5_rq_ts_translator() argument
112 return mlx5_is_real_time_rq(mdev) ? mlx5_real_time_cyc2time : in mlx5_rq_ts_translator()
116 static inline cqe_ts_to_ns mlx5_sq_ts_translator(struct mlx5_core_dev *mdev) in mlx5_sq_ts_translator() argument
118 return mlx5_is_real_time_sq(mdev) ? mlx5_real_time_cyc2time : in mlx5_sq_ts_translator()