diff options
Diffstat (limited to 'drivers/infiniband/hw/mlx5/mlx5_ib.h')
-rw-r--r-- | drivers/infiniband/hw/mlx5/mlx5_ib.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mlx5/mlx5_ib.h b/drivers/infiniband/hw/mlx5/mlx5_ib.h index e438f08899ae..50541586e0a6 100644 --- a/drivers/infiniband/hw/mlx5/mlx5_ib.h +++ b/drivers/infiniband/hw/mlx5/mlx5_ib.h | |||
@@ -400,6 +400,11 @@ static inline struct mlx5_ib_qp *to_mibqp(struct mlx5_core_qp *mqp) | |||
400 | return container_of(mqp, struct mlx5_ib_qp, mqp); | 400 | return container_of(mqp, struct mlx5_ib_qp, mqp); |
401 | } | 401 | } |
402 | 402 | ||
403 | static inline struct mlx5_ib_mr *to_mibmr(struct mlx5_core_mr *mmr) | ||
404 | { | ||
405 | return container_of(mmr, struct mlx5_ib_mr, mmr); | ||
406 | } | ||
407 | |||
403 | static inline struct mlx5_ib_pd *to_mpd(struct ib_pd *ibpd) | 408 | static inline struct mlx5_ib_pd *to_mpd(struct ib_pd *ibpd) |
404 | { | 409 | { |
405 | return container_of(ibpd, struct mlx5_ib_pd, ibpd); | 410 | return container_of(ibpd, struct mlx5_ib_pd, ibpd); |
@@ -537,6 +542,8 @@ int mlx5_mr_cache_init(struct mlx5_ib_dev *dev); | |||
537 | int mlx5_mr_cache_cleanup(struct mlx5_ib_dev *dev); | 542 | int mlx5_mr_cache_cleanup(struct mlx5_ib_dev *dev); |
538 | int mlx5_mr_ib_cont_pages(struct ib_umem *umem, u64 addr, int *count, int *shift); | 543 | int mlx5_mr_ib_cont_pages(struct ib_umem *umem, u64 addr, int *count, int *shift); |
539 | void mlx5_umr_cq_handler(struct ib_cq *cq, void *cq_context); | 544 | void mlx5_umr_cq_handler(struct ib_cq *cq, void *cq_context); |
545 | int mlx5_ib_check_mr_status(struct ib_mr *ibmr, u32 check_mask, | ||
546 | struct ib_mr_status *mr_status); | ||
540 | 547 | ||
541 | static inline void init_query_mad(struct ib_smp *mad) | 548 | static inline void init_query_mad(struct ib_smp *mad) |
542 | { | 549 | { |