Lines Matching refs:to_mdev

770 	err = create_qp_rss(to_mdev(pd->device), init_attr, &ucmd, qp);  in _mlx4_ib_create_qp_rss()
786 struct mlx4_ib_dev *dev = to_mdev(context->ibucontext.device); in mlx4_ib_alloc_wqn()
836 struct mlx4_ib_dev *dev = to_mdev(context->ibucontext.device); in mlx4_ib_release_wqn()
864 struct mlx4_ib_dev *dev = to_mdev(pd->device); in create_rq()
995 struct mlx4_ib_dev *dev = to_mdev(pd->device); in create_qp_common()
1566 if (!(to_mdev(pd->device)->dev->caps.flags & MLX4_DEV_CAP_FLAG_XRC)) in _mlx4_ib_create_qp()
1589 int res = mlx4_qp_reserve_range(to_mdev(pd->device)->dev, in _mlx4_ib_create_qp()
1596 sqpn = get_sqp_num(to_mdev(pd->device), init_attr); in _mlx4_ib_create_qp()
1626 struct mlx4_ib_dev *dev = to_mdev(device); in mlx4_ib_create_qp()
1662 struct mlx4_ib_dev *dev = to_mdev(qp->device); in _mlx4_ib_destroy_qp()
2139 dev = to_mdev(ibwq->device); in __mlx4_ib_modify_qp()
2149 dev = to_mdev(ibqp->device); in __mlx4_ib_modify_qp()
2698 struct mlx4_ib_dev *dev = to_mdev(ibqp->device); in _mlx4_ib_modify_qp()
2864 struct mlx4_ib_dev *mdev = to_mdev(qp->ibqp.device); in build_sriov_qp0_header()
3018 struct mlx4_ib_dev *ibdev = to_mdev(ib_dev); in build_mlx_header()
3045 if (mlx4_is_mfunc(to_mdev(ib_dev)->dev)) { in build_mlx_header()
3049 err = mlx4_get_roce_gid_from_slave(to_mdev(ib_dev)->dev, in build_mlx_header()
3097 if (mlx4_is_mfunc(to_mdev(ib_dev)->dev)) { in build_mlx_header()
3105 &(to_mdev(ib_dev) in build_mlx_header()
3111 to_mdev(ib_dev) in build_mlx_header()
3197 sl_to_vl(to_mdev(ib_dev), in build_mlx_header()
3540 struct mlx4_ib_dev *mdev = to_mdev(ibqp->device); in _mlx4_ib_post_send()
3729 set_tunnel_datagram_seg(to_mdev(ibqp->device), wqe, in _mlx4_ib_post_send()
3825 to_mdev(ibqp->device)->uar_map + MLX4_SEND_DOORBELL); in _mlx4_ib_post_send()
3854 struct mlx4_ib_dev *mdev = to_mdev(ibqp->device); in _mlx4_ib_post_recv()
4013 struct mlx4_ib_dev *dev = to_mdev(ibqp->device); in mlx4_ib_query_qp()
4123 struct mlx4_dev *dev = to_mdev(pd->device)->dev; in mlx4_ib_create_wq()
4318 struct mlx4_ib_dev *dev = to_mdev(ibwq->device); in mlx4_ib_destroy_wq()
4460 struct mlx4_ib_dev *dev = to_mdev(qp->device); in mlx4_ib_drain_sq()
4489 struct mlx4_ib_dev *dev = to_mdev(qp->device); in mlx4_ib_drain_rq()