Lines Matching refs:rep

12 		      struct mlx5_eswitch_rep *rep,  in mlx5_ib_set_vport_rep()  argument
21 ibdev->port[vport_index].rep = rep; in mlx5_ib_set_vport_rep()
22 rep->rep_data[REP_IB].priv = ibdev; in mlx5_ib_set_vport_rep()
25 mlx5_ib_get_rep_netdev(rep->esw, rep->vport); in mlx5_ib_set_vport_rep()
34 mlx5_ib_vport_rep_load(struct mlx5_core_dev *dev, struct mlx5_eswitch_rep *rep) in mlx5_ib_vport_rep_load() argument
44 vport_index = rep->vport_index; in mlx5_ib_vport_rep_load()
53 if (rep->vport == MLX5_VPORT_UPLINK) in mlx5_ib_vport_rep_load()
60 if (rep->vport == MLX5_VPORT_UPLINK) in mlx5_ib_vport_rep_load()
63 return mlx5_ib_set_vport_rep(dev, rep, vport_index); in mlx5_ib_vport_rep_load()
77 vport_index = rep->vport_index; in mlx5_ib_vport_rep_load()
78 ibdev->port[vport_index].rep = rep; in mlx5_ib_vport_rep_load()
80 mlx5_ib_get_rep_netdev(dev->priv.eswitch, rep->vport); in mlx5_ib_vport_rep_load()
88 rep->rep_data[REP_IB].priv = ibdev; in mlx5_ib_vport_rep_load()
101 static void *mlx5_ib_rep_to_dev(struct mlx5_eswitch_rep *rep) in mlx5_ib_rep_to_dev() argument
103 return rep->rep_data[REP_IB].priv; in mlx5_ib_rep_to_dev()
107 mlx5_ib_vport_rep_unload(struct mlx5_eswitch_rep *rep) in mlx5_ib_vport_rep_unload() argument
109 struct mlx5_core_dev *mdev = mlx5_eswitch_get_core_dev(rep->esw); in mlx5_ib_vport_rep_unload()
110 struct mlx5_ib_dev *dev = mlx5_ib_rep_to_dev(rep); in mlx5_ib_vport_rep_unload()
111 int vport_index = rep->vport_index; in mlx5_ib_vport_rep_unload()
121 if (rep->vport == MLX5_VPORT_UPLINK) in mlx5_ib_vport_rep_unload()
134 rep->rep_data[REP_IB].priv = NULL; in mlx5_ib_vport_rep_unload()
135 port->rep = NULL; in mlx5_ib_vport_rep_unload()
137 if (rep->vport == MLX5_VPORT_UPLINK) { in mlx5_ib_vport_rep_unload()
179 struct mlx5_eswitch_rep *rep; in create_flow_rule_vport_sq() local
184 if (!dev->port[port - 1].rep) in create_flow_rule_vport_sq()
187 rep = dev->port[port - 1].rep; in create_flow_rule_vport_sq()
189 return mlx5_eswitch_add_send_to_vport_rule(esw, esw, rep, sq->base.mqp.qpn); in create_flow_rule_vport_sq()