Searched refs:mparent (Results 1 – 1 of 1) sorted by relevance
4697 struct mlx5_ib_dev *mparent = to_mdev(parent), *mplane; in mlx5_ib_add_sub_dev() local4701 if (mparent->smi_dev) in mlx5_ib_add_sub_dev()4704 ll = mlx5_port_type_cap_to_rdma_ll(MLX5_CAP_GEN(mparent->mdev, in mlx5_ib_add_sub_dev()4706 if (type != RDMA_DEVICE_TYPE_SMI || !mparent->num_plane || in mlx5_ib_add_sub_dev()4708 !MLX5_CAP_GEN_2(mparent->mdev, multiplane_qp_ud)) in mlx5_ib_add_sub_dev()4715 mplane->port = kcalloc(mparent->num_plane * mparent->num_ports, in mlx5_ib_add_sub_dev()4723 mplane->mdev = mparent->mdev; in mlx5_ib_add_sub_dev()4724 mplane->num_ports = mparent->num_plane; in mlx5_ib_add_sub_dev()4732 mparent->smi_dev = mplane; in mlx5_ib_add_sub_dev()