Lines Matching full:dct
2739 qp->dct.in = kzalloc(MLX5_ST_SZ_BYTES(create_dct_in), GFP_KERNEL); in create_dct()
2740 if (!qp->dct.in) in create_dct()
2743 MLX5_SET(create_dct_in, qp->dct.in, uid, to_mpd(pd)->uid); in create_dct()
2744 dctc = MLX5_ADDR_OF(create_dct_in, qp->dct.in, dct_context_entry); in create_dct()
2767 if (attr->qp_type == IB_QPT_DRIVER && !MLX5_CAP_GEN(dev->mdev, dct)) in check_qp_type()
3182 err = mlx5_core_destroy_dct(dev, &mqp->dct.mdct); in mlx5_ib_destroy_dct()
3184 mlx5_ib_warn(dev, "failed to destroy DCT %d\n", err); in mlx5_ib_destroy_dct()
3189 kfree(mqp->dct.in); in mlx5_ib_destroy_dct()
4480 /* mlx5_ib_modify_dct: modify a DCT QP
4504 dctc = MLX5_ADDR_OF(create_dct_in, qp->dct.in, dct_context_entry); in mlx5_ib_modify_dct()
4507 * DCT doesn't initialize QP till modify command is executed, in mlx5_ib_modify_dct()
4577 err = mlx5_core_create_dct(dev, &qp->dct.mdct, qp->dct.in, in mlx5_ib_modify_dct()
4580 err = mlx5_cmd_check(dev->mdev, err, qp->dct.in, out); in mlx5_ib_modify_dct()
4583 resp.dctn = qp->dct.mdct.mqp.qpn; in mlx5_ib_modify_dct()
4588 mlx5_core_destroy_dct(dev, &qp->dct.mdct); in mlx5_ib_modify_dct()
4592 mlx5_ib_warn(dev, "Modify DCT: Invalid transition from %d to %d\n", cur_state, new_state); in mlx5_ib_modify_dct()
4993 struct mlx5_core_dct *dct = &mqp->dct.mdct; in mlx5_ib_dct_query_qp() local
5016 err = mlx5_core_dct_query(dev, dct, out, outlen); in mlx5_ib_dct_query_qp()